gallium: fix a state validation bug found w/ pointblast.c
authorBrian <brian.paul@tungstengraphics.com>
Sat, 23 Feb 2008 01:34:31 +0000 (18:34 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 23 Feb 2008 01:34:31 +0000 (18:34 -0700)
src/gallium/drivers/softpipe/sp_prim_setup.c

index 7b1e131..b6a3fdd 100644 (file)
@@ -1165,6 +1165,10 @@ static void setup_begin( struct draw_stage *stage )
    struct softpipe_context *sp = setup->softpipe;
    const struct pipe_shader_state *fs = &setup->softpipe->fs->shader;
 
+   if (sp->dirty) {
+      softpipe_update_derived(sp);
+   }
+
    setup->quad.nr_attrs = fs->num_inputs;
 
    sp->quad.first->begin(sp->quad.first);