zink: convert ZINK_DEBUG to enum
more readable/debuggable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17667>
This commit is contained in:

committed by
Marge Bot

parent
4a3cea6730
commit
f42212983c
@@ -62,12 +62,14 @@ enum zink_descriptor_type;
|
|||||||
/* this is the spec minimum */
|
/* this is the spec minimum */
|
||||||
#define ZINK_SPARSE_BUFFER_PAGE_SIZE (64 * 1024)
|
#define ZINK_SPARSE_BUFFER_PAGE_SIZE (64 * 1024)
|
||||||
|
|
||||||
#define ZINK_DEBUG_NIR 0x1
|
enum zink_debug {
|
||||||
#define ZINK_DEBUG_SPIRV 0x2
|
ZINK_DEBUG_NIR = (1<<0),
|
||||||
#define ZINK_DEBUG_TGSI 0x4
|
ZINK_DEBUG_SPIRV = (1<<1),
|
||||||
#define ZINK_DEBUG_VALIDATION 0x8
|
ZINK_DEBUG_TGSI = (1<<2),
|
||||||
#define ZINK_DEBUG_SYNC 0x10
|
ZINK_DEBUG_VALIDATION = (1<<3),
|
||||||
#define ZINK_DEBUG_COMPACT (1<<5)
|
ZINK_DEBUG_SYNC = (1<<4),
|
||||||
|
ZINK_DEBUG_COMPACT = (1<<5),
|
||||||
|
};
|
||||||
|
|
||||||
#define NUM_SLAB_ALLOCATORS 3
|
#define NUM_SLAB_ALLOCATORS 3
|
||||||
#define MIN_SLAB_ORDER 8
|
#define MIN_SLAB_ORDER 8
|
||||||
|
Reference in New Issue
Block a user