summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-09-16 15:16:27 +0100
committerKeith Whitwell <keithw@vmware.com>2010-09-16 17:34:58 +0100
commit09863554259aeb7b0522b130837b6a1f12ffaebe (patch)
treec9562d8a4b25d175120d1b83bfd07dbb1ef76a81
parent5f00819cb382bdb70c29e2db3c6ff22a879bf10f (diff)
llvmpipe: add DEBUG_FS to dump variant information
-rw-r--r--src/gallium/drivers/llvmpipe/lp_debug.h1
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c1
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_debug.h b/src/gallium/drivers/llvmpipe/lp_debug.h
index 588cda52ad..15dca5218f 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 f920607d05..c66313f0ed 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 8101e2d843..e54dd9f0a3 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);
}