summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-28 13:18:51 -0600
committerBrian Paul <brianp@vmware.com>2010-04-28 15:25:50 -0600
commitac6725b8f9c331cacd08d95eb22d0c81b0bc9821 (patch)
tree136396f8661eeb865d158f7b7a73aa89d88a8d12 /src/gallium/drivers/llvmpipe/lp_state_fs.c
parent18d1d59484d2aa8b4f965558f18e13657e4812a9 (diff)
llvmpipe: dump shaders if LP_DEBUG=tgsi
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index bc1dc39392..d1afb535c4 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -967,6 +967,11 @@ 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 (LP_DEBUG & DEBUG_TGSI) {
+ debug_printf("llvmpipe: Create fragment shader %p:\n", (void *) shader);
+ tgsi_dump(templ->tokens, 0);
+ }
+
return shader;
}