summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/ppu/cell_flush.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-12-11 12:40:58 -0800
committerIan Romanick <idr@us.ibm.com>2007-12-11 12:43:50 -0800
commit9a0fe23d493dc9307d76f0a35cbe4f410ee3df28 (patch)
tree1f74ba9ca00ded31caf7d26e55ba707f4c81b0b1 /src/mesa/pipe/cell/ppu/cell_flush.c
parentbfb43e8e79c3b0d85c1b459c5524619c8eb33280 (diff)
Port to libspe2
libspe is deprecated in Cell SDK 2.1, and it is removed in Cell SDK 3.0. This patch ports the existing libspe-based code to libspe2. Some error checking (eh-hem) would be nice.
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_flush.c')
-rw-r--r--src/mesa/pipe/cell/ppu/cell_flush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_flush.c b/src/mesa/pipe/cell/ppu/cell_flush.c
index e844d13f06..39b72c435d 100644
--- a/src/mesa/pipe/cell/ppu/cell_flush.c
+++ b/src/mesa/pipe/cell/ppu/cell_flush.c
@@ -43,12 +43,12 @@ cell_flush(struct pipe_context *pipe, unsigned flags)
/* Send CMD_FINISH to all SPUs */
for (i = 0; i < cell->num_spus; i++) {
- send_mbox_message(control_ps_area[i], CELL_CMD_FINISH);
+ send_mbox_message(spe_contexts[i], CELL_CMD_FINISH);
}
/* Wait for ack */
for (i = 0; i < cell->num_spus; i++) {
- uint k = wait_mbox_message(control_ps_area[i]);
+ uint k = wait_mbox_message(spe_contexts[i]);
assert(k == CELL_CMD_FINISH);
}
}