summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_state_fs.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2009-12-23 13:30:12 -0500
committerZack Rusin <zackr@vmware.com>2009-12-25 05:52:18 -0500
commitac96ee1c16419583aa43c9f4100aaca774b9439a (patch)
tree011f6e8187a89e00bf5d9cd67129868917bfeba0 /src/gallium/drivers/softpipe/sp_state_fs.c
parent22370990f28987b361c6adf8e81c5a18184e88ea (diff)
softpipe: make it possible to dump geometry shader from the softpipe
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state_fs.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_fs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_fs.c b/src/gallium/drivers/softpipe/sp_state_fs.c
index b904bde25c..acec62dc2a 100644
--- a/src/gallium/drivers/softpipe/sp_state_fs.c
+++ b/src/gallium/drivers/softpipe/sp_state_fs.c
@@ -177,6 +177,10 @@ softpipe_create_gs_state(struct pipe_context *pipe,
if (state == NULL )
goto fail;
+ /* debug */
+ if (softpipe->dump_gs)
+ tgsi_dump(templ->tokens, 0);
+
/* copy shader tokens, the ones passed in will go away.
*/
state->shader.tokens = tgsi_dup_tokens(templ->tokens);