summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-01 15:20:07 -0700
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:50:28 +1100
commitb25f1244ab8b082c01e45b1068c233f4c2b21fb3 (patch)
treedd901170ecc77db10d561571260520e189037cfb /src
parent1b6b5db4e2e891c62cfb868f2c6ae7f27b29709d (diff)
Cell: remove commands from top-level while loop which should only appear in batch buffers
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/cell/spu/spu_main.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.c b/src/mesa/pipe/cell/spu/spu_main.c
index 7d6e910ad5..1760de02b7 100644
--- a/src/mesa/pipe/cell/spu/spu_main.c
+++ b/src/mesa/pipe/cell/spu/spu_main.c
@@ -447,34 +447,22 @@ main_loop(void)
0 /* rid */);
wait_on_mask( 1 << tag );
+ /*
+ * NOTE: most commands should be contained in a batch buffer
+ */
+
switch (opcode & CELL_CMD_OPCODE_MASK) {
case CELL_CMD_EXIT:
if (Debug)
printf("SPU %u: EXIT\n", spu.init.id);
exitFlag = 1;
break;
- case CELL_CMD_STATE_FRAMEBUFFER:
- cmd_state_framebuffer(&cmd.fb);
- break;
- case CELL_CMD_CLEAR_SURFACE:
- cmd_clear_surface(&cmd.clear);
- break;
- case CELL_CMD_RENDER:
- {
- uint pos_incr;
- cmd_render(&cmd.render, &pos_incr);
- assert(pos_incr == 0);
- }
- break;
case CELL_CMD_VS_EXECUTE:
spu_execute_vertex_shader(&draw, &cmd.vs);
break;
case CELL_CMD_BATCH:
cmd_batch(opcode);
break;
- case CELL_CMD_FINISH:
- cmd_finish();
- break;
default:
printf("Bad opcode!\n");
}