diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-02-05 14:23:34 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-02-05 15:08:06 -0700 |
commit | 4da82fd5c5e0a7535e30aa81f08dcbe1a26358b7 (patch) | |
tree | 21c7bfe48efb55638d2632f8c835cc0581c000aa /src/mesa/pipe/cell/spu/spu_main.c | |
parent | 2174890ed030bde8494b7f13b7090e27771695fa (diff) |
Cell: re-enable inlined vertex buffers
Vertex data must be on a 16-byte address/offset so SIMD operations will work
properly in the SPU code.
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_main.c')
-rw-r--r-- | src/mesa/pipe/cell/spu/spu_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.c b/src/mesa/pipe/cell/spu/spu_main.c index 4f126d5e5b..e375197fe6 100644 --- a/src/mesa/pipe/cell/spu/spu_main.c +++ b/src/mesa/pipe/cell/spu/spu_main.c @@ -387,7 +387,7 @@ cmd_batch(uint opcode) = (struct cell_command_render *) &buffer[pos]; uint pos_incr; cmd_render(render, &pos_incr); - pos += sizeof(*render) / 8 + ((pos_incr + 1) / 2); + pos += pos_incr; } break; case CELL_CMD_RELEASE_VERTS: @@ -541,6 +541,7 @@ main(main_param_t speid, main_param_t argp) (void) speid; ASSERT(sizeof(tile_t) == TILE_SIZE * TILE_SIZE * 4); + ASSERT(sizeof(struct cell_command_render) % 8 == 0); one_time_init(); |