From: Brian Paul Date: Fri, 10 Oct 2008 18:38:27 +0000 (-0600) Subject: cell: call cell_flush_int() at end of cell_create_context() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02931db3117cd064175a07412b860e8051d9ed58;p=mesa.git 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. --- diff --git a/src/gallium/drivers/cell/ppu/cell_context.c b/src/gallium/drivers/cell/ppu/cell_context.c index 30ce6f97624..35cd6874a27 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; }