1 /* 2 * Copyright © 2024 Collabora, Ltd. 3 * SPDX-License-Identifier: MIT 4 */ 5 #ifndef NVK_DEBUG_H 6 #define NVK_DEBUG_H 1 7 8 enum nvk_debug { 9 /* dumps all push buffers after submission */ 10 NVK_DEBUG_PUSH_DUMP = 1ull << 0, 11 12 /* push buffer submissions wait on completion 13 * 14 * This is useful to find the submission killing the GPU context. For 15 * easier debugging it also dumps the buffer leading to that. 16 */ 17 NVK_DEBUG_PUSH_SYNC = 1ull << 1, 18 19 /* Zero all client memory allocations 20 */ 21 NVK_DEBUG_ZERO_MEMORY = 1ull << 2, 22 23 /* Dump VM bind/unbinds 24 */ 25 NVK_DEBUG_VM = 1ull << 3, 26 27 /* Disable most cbufs 28 * 29 * Root descriptors still end up in a cbuf 30 */ 31 NVK_DEBUG_NO_CBUF = 1ull << 5, 32 33 /* Use the EXT_descriptor_buffer path for all buffer views */ 34 NVK_DEBUG_FORCE_EDB_BVIEW = 1ull << 6, 35 }; 36 37 #endif /* NVK_DEBUG_H */ 38