From 575cc620cdff00538c855744237faba01bbb2aa4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 17 May 2023 11:54:57 +1000 Subject: [PATCH] llvmpipe: add debug bit for mesh shaders Reviewed-by: Roland Scheidegger # Part-of: --- src/gallium/drivers/llvmpipe/lp_debug.h | 1 + src/gallium/drivers/llvmpipe/lp_screen.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_debug.h b/src/gallium/drivers/llvmpipe/lp_debug.h index d552aa97c57..9bea35c5493 100644 --- a/src/gallium/drivers/llvmpipe/lp_debug.h +++ b/src/gallium/drivers/llvmpipe/lp_debug.h @@ -52,6 +52,7 @@ #define DEBUG_LINEAR2 0x200000 #define DEBUG_SHOW_DEPTH 0x400000 #define DEBUG_ACCURATE_A0 0x800000 /* verbose */ +#define DEBUG_MESH 0x1000000 /* Performance flags. These are active even on release builds. */ diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index facec7ba01f..dd28bdcd5b0 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -81,6 +81,7 @@ static const struct debug_named_value lp_debug_flags[] = { { "cs", DEBUG_CS, NULL }, { "tgsi_ir", DEBUG_TGSI_IR, NULL }, { "accurate_a0", DEBUG_ACCURATE_A0 }, + { "mesh", DEBUG_MESH }, DEBUG_NAMED_VALUE_END };