r300-gallium: Properly init shader state.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 18 Feb 2009 05:31:33 +0000 (21:31 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 18 Feb 2009 05:34:12 +0000 (21:34 -0800)
src/gallium/drivers/r300/r300_state.c

index eae1a5698d005dfd77f75dd2a0c754906d677666..c8533d764dfcb71db48fa7ad25212f48279ba9c5 100644 (file)
@@ -435,6 +435,8 @@ static void* r300_create_fs_state(struct pipe_context* pipe,
     /* Copy state directly into shader. */
     fs->state = *shader;
 
+    tgsi_scan_shader(shader->tokens, &fs->info);
+
     return (void*)fs;
 }