summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-05-31 20:01:29 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-05-31 21:58:38 +0100
commit524ec6464d5c9d66b58c78c5e68c3bcb6a845f69 (patch)
treebc972b351519a7cd8815b4e96d292642b833688f /src
parenta27690931be9479353dd8ae0d52186f5c72f4380 (diff)
llvmpipe: Show fs's TGSI when LP_DEBUG=tgsi is set.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 0e5fd17974..21e90fe00e 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -88,6 +88,7 @@
#include "lp_bld_depth.h"
#include "lp_bld_interp.h"
#include "lp_context.h"
+#include "lp_debug.h"
#include "lp_perf.h"
#include "lp_screen.h"
#include "lp_setup.h"
@@ -1011,7 +1012,7 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
/* we need to keep a local copy of the tokens */
shader->base.tokens = tgsi_dup_tokens(templ->tokens);
- if (gallivm_debug & GALLIVM_DEBUG_TGSI) {
+ if (LP_DEBUG & DEBUG_TGSI) {
debug_printf("llvmpipe: Create fragment shader %p:\n", (void *) shader);
tgsi_dump(templ->tokens, 0);
}