From f42212983c84b430b19638150a441a919b57412a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 15 Jul 2022 11:05:50 -0400 Subject: [PATCH] zink: convert ZINK_DEBUG to enum more readable/debuggable Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_screen.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/zink/zink_screen.h b/src/gallium/drivers/zink/zink_screen.h index 24f0a63fa33..d1c1ecce3d6 100644 --- a/src/gallium/drivers/zink/zink_screen.h +++ b/src/gallium/drivers/zink/zink_screen.h @@ -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