Module: Mesa
Branch: gallium-0.2
Commit: 02931db3117cd064175a07412b860e8051d9ed58
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=02931db3117cd064175a07412b860e8051d9ed58

Author: Brian Paul <[EMAIL PROTECTED]>
Date:   Fri Oct 10 12:38:27 2008 -0600

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.

---

 src/gallium/drivers/cell/ppu/cell_context.c |    3 +++
 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 30ce6f9..35cd687 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;
 }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to