summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/spu/spu_tile.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-14 16:39:26 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-14 16:39:26 -0700
commitf20cb1d81b120c8de9b00e2fb523e2367b25e875 (patch)
tree9840a6e39c82fa066a2e021ca6f1d8c14fd794be /src/mesa/pipe/cell/spu/spu_tile.c
parentc28b112ce37022aa6e00ac4557ad6fe5a57ae578 (diff)
Cell: after sending a batch, wait for a DMA completion signal.
This fixes sporadic rendering glitches. Using a mailbox msg for now, until spe_mfcio_tag_status_read() or similar is found to work.
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_tile.c')
-rw-r--r--src/mesa/pipe/cell/spu/spu_tile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_tile.c b/src/mesa/pipe/cell/spu/spu_tile.c
index 99d779007e..1505cb322b 100644
--- a/src/mesa/pipe/cell/spu/spu_tile.c
+++ b/src/mesa/pipe/cell/spu/spu_tile.c
@@ -77,9 +77,11 @@ put_tile(uint tx, uint ty, const uint *tile, int tag, int zBuf)
ASSERT(ty < spu.fb.height_tiles);
ASSERT_ALIGN16(tile);
/*
- printf("put_tile: src: %p dst: 0x%x size: %d\n",
+ printf("SPU %u: put_tile: src: %p dst: 0x%x size: %d\n",
+ spu.init.id,
tile, (unsigned int) dst, bytesPerTile);
*/
+
mfc_put((void *) tile, /* src in local memory */
(unsigned int) dst, /* dst in main memory */
bytesPerTile,