summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-22 18:34:31 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-22 18:34:31 -0700
commitaec315f05f860337bccfce827a7c1c80960dd476 (patch)
treea7d9f52ae9ceb7025bdba7378904ea8aa9dfa23a /src
parente9276efafe43219d7af548ce7f5d2440e19836b0 (diff)
gallium: fix a state validation bug found w/ pointblast.c
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_prim_setup.c4
1 files changed, 4 insertions, 0 deletions
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);