cell: call cell_flush_int() at end of cell_create_context()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Oct 2008 18:38:27 +0000 (12:38 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Oct 2008 18:38:27 +0000 (12:38 -0600)
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.

src/gallium/drivers/cell/ppu/cell_context.c

index 30ce6f976242d06b312bf852539877d877b39d2c..35cd6874a27ba2a4a78a029830bfa15708922e87 100644 (file)
@@ -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;
 }