tgsi: pass a shader type to the machine create and clean up.
[mesa.git] / src / gallium / drivers / softpipe / sp_context.c
index 0342fc6f8cd035feccfa8d0630f5181f0f4bab36..e3ec52462a897882055bac15cd5b3f57aefb6fa5 100644 (file)
@@ -256,7 +256,7 @@ softpipe_create_context(struct pipe_screen *screen,
       }
    }
 
-   softpipe->fs_machine = tgsi_exec_machine_create();
+   softpipe->fs_machine = tgsi_exec_machine_create(PIPE_SHADER_FRAGMENT);
 
    /* setup quad rendering stages */
    softpipe->quad.shade = sp_quad_shade_stage(softpipe);