cell: need to flush draw module when constants change
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Oct 2008 16:43:53 +0000 (10:43 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Oct 2008 16:54:57 +0000 (10:54 -0600)
src/gallium/drivers/cell/ppu/cell_state_shader.c

index 54a17eaf2b7692cc3592a596bc619270452c3b40..cda39f8d59262aac99334a390624399c5f27519c 100644 (file)
@@ -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,