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:
Mike Blumenkrantz 2022-07-15 11:05:50 -04:00 committed by Marge Bot
parent 4a3cea6730
commit f42212983c
1 changed files with 8 additions and 6 deletions

View File

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