From: Keith Whitwell Date: Thu, 16 Sep 2010 14:16:27 +0000 (+0100) Subject: llvmpipe: add DEBUG_FS to dump variant information X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09863554259aeb7b0522b130837b6a1f12ffaebe;p=mesa.git llvmpipe: add DEBUG_FS to dump variant information --- diff --git a/src/gallium/drivers/llvmpipe/lp_debug.h b/src/gallium/drivers/llvmpipe/lp_debug.h index 588cda52ad0..15dca5218fd 100644 --- a/src/gallium/drivers/llvmpipe/lp_debug.h +++ b/src/gallium/drivers/llvmpipe/lp_debug.h @@ -49,6 +49,7 @@ st_print_current(void); #define DEBUG_SCENE 0x1000 #define DEBUG_FENCE 0x2000 #define DEBUG_MEM 0x4000 +#define DEBUG_FS 0x8000 /* 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 f920607d053..c66313f0ed8 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -64,6 +64,7 @@ static const struct debug_named_value lp_debug_flags[] = { { "scene", DEBUG_SCENE, NULL }, { "fence", DEBUG_FENCE, NULL }, { "mem", DEBUG_MEM, NULL }, + { "fs", DEBUG_FS, NULL }, DEBUG_NAMED_VALUE_END }; #endif diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 8101e2d843d..e54dd9f0a3c 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -865,7 +865,7 @@ generate_variant(struct llvmpipe_context *lp, ? TRUE : FALSE; - if (gallivm_debug & GALLIVM_DEBUG_IR) { + if ((LP_DEBUG & DEBUG_FS) || (gallivm_debug & GALLIVM_DEBUG_IR)) { lp_debug_fs_variant(variant); }