summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-10-10 12:38:27 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-10 12:38:27 -0600
commit02931db3117cd064175a07412b860e8051d9ed58 (patch)
treed92657d50df66435ed1526887aa4c779c2251096
parenta13f61d34d40475a6f12fb8696b6e7d58aaa78b7 (diff)
cell: call cell_flush_int() at end of cell_create_context()
Ensures that SPUs are initialized/ready before proceeding. This fixes a spurious assertion failure when the SPU-side shader function info hasn't been returned to the PPU before shader codegen.
-rw-r--r--src/gallium/drivers/cell/ppu/cell_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_context.c b/src/gallium/drivers/cell/ppu/cell_context.c
index 30ce6f9762..35cd6874a2 100644
--- a/src/gallium/drivers/cell/ppu/cell_context.c
+++ b/src/gallium/drivers/cell/ppu/cell_context.c
@@ -162,5 +162,8 @@ cell_create_context(struct pipe_screen *screen,
cell_init_batch_buffers(cell);
+ /* make sure SPU initializations are done before proceeding */
+ cell_flush_int(cell, CELL_FLUSH_WAIT);
+
return &cell->pipe;
}