summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-10-15 10:43:53 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-15 10:54:57 -0600
commitabcd28b0b3fb77d3f99da957faa94e21ed54cae6 (patch)
treeafaa217ab31631dfab5fe0a4e045a2dcaccdb9be
parentb261ed1f613dc8c13c69d8770afd6cb9ebec3cca (diff)
cell: need to flush draw module when constants change
-rw-r--r--src/gallium/drivers/cell/ppu/cell_state_shader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_shader.c b/src/gallium/drivers/cell/ppu/cell_state_shader.c
index 54a17eaf2b..cda39f8d59 100644
--- a/src/gallium/drivers/cell/ppu/cell_state_shader.c
+++ b/src/gallium/drivers/cell/ppu/cell_state_shader.c
@@ -191,6 +191,8 @@ cell_set_constant_buffer(struct pipe_context *pipe,
assert(shader < PIPE_SHADER_TYPES);
assert(index == 0);
+ draw_flush(cell->draw);
+
/* note: reference counting */
winsys_buffer_reference(ws,
&cell->constants[shader].buffer,