summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_state_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_fs.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_state_fs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_fs.c b/src/mesa/pipe/softpipe/sp_state_fs.c
index a94ec1e92c..ad8ab561ef 100644
--- a/src/mesa/pipe/softpipe/sp_state_fs.c
+++ b/src/mesa/pipe/softpipe/sp_state_fs.c
@@ -46,6 +46,12 @@ void * softpipe_create_fs_state(struct pipe_context *pipe,
struct sp_fragment_shader_state *state = malloc(sizeof(struct sp_fragment_shader_state));
state->shader = *templ;
+ if( softpipe->dump_fs ) {
+ tgsi_dump(
+ state->shader.tokens,
+ 0 );
+ }
+
#if defined(__i386__) || defined(__386__)
if (softpipe->use_sse) {
x86_init_func( &state->sse2_program );