summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-10 21:59:15 -0700
committerBrian <[email protected]>2008-01-10 21:59:15 -0700
commit299dffce4fafa2ed03a6e1f7ca7a5357c147477e (patch)
treefdb59acbb1143b056db061c5c60e64b0aa5d4f2c /src
parentaee5f471ce30f0511769c02a24160e9bb5047792 (diff)
Cell: wait_on_mask_all()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/cell/spu/main.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/spu/main.c b/src/mesa/pipe/cell/spu/main.c
index 7c420132791..548ef127ba2 100644
--- a/src/mesa/pipe/cell/spu/main.c
+++ b/src/mesa/pipe/cell/spu/main.c
@@ -62,6 +62,15 @@ wait_on_mask(unsigned tagMask)
}
+static void
+wait_on_mask_all(unsigned tagMask)
+{
+ mfc_write_tag_mask( tagMask );
+ /* wait for completion of _any_ DMAs specified by tagMask */
+ mfc_read_tag_status_all();
+}
+
+
/**
* For tiles whose status is TILE_STATUS_CLEAR, write solid-filled
@@ -327,8 +336,8 @@ render_vbuf(const struct cell_command_render_vbuf *render)
0, /* tid */
0 /* rid */);
- wait_on_mask(1 << TAG_VERTEX_BUFFER);
- wait_on_mask(1 << TAG_INDEX_BUFFER);
+ wait_on_mask_all((1 << TAG_VERTEX_BUFFER) |
+ (1 << TAG_INDEX_BUFFER));
/* find tiles which intersect the prim bounding box */
uint txmin, tymin, box_width_tiles, box_num_tiles;