From: Brian Date: Sat, 23 Feb 2008 01:34:31 +0000 (-0700) Subject: gallium: fix a state validation bug found w/ pointblast.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aec315f05f860337bccfce827a7c1c80960dd476;p=mesa.git gallium: fix a state validation bug found w/ pointblast.c --- diff --git a/src/gallium/drivers/softpipe/sp_prim_setup.c b/src/gallium/drivers/softpipe/sp_prim_setup.c index 7b1e131ee14..b6a3fddb29c 100644 --- a/src/gallium/drivers/softpipe/sp_prim_setup.c +++ b/src/gallium/drivers/softpipe/sp_prim_setup.c @@ -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);