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 7b1e131ee1417efa2ef3199d48abced5eb273235..b6a3fddb29c9acc1fd42ec02f9c6c03e91dbb9d2 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);