cell: allocate batch buffers w/ 16-byte alignment
authorJonathan Adamczewski <jadamcze@utas.edu.au>
Mon, 12 Jan 2009 23:24:49 +0000 (16:24 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 12 Jan 2009 23:25:28 +0000 (16:25 -0700)
commit402e6752b53d04af0bbfc5391547c2d127bce859
tree18a284b4bf9a377c915a610797d3efc1dbb3159f
parent45604ffac705a39e4cefa6b523e69535daf0db5b
cell: allocate batch buffers w/ 16-byte alignment

Replace cell_batch{align,alloc)*() with cell_batch_alloc16(), allocating
multiples of 16 bytes that are 16 byte aligned.

Opcodes are stored in preferred slot of SPU machine word.

Various structures are explicitly padded to 16 byte multiples.

Added STATIC_ASSERT().
src/gallium/drivers/cell/common.h
src/gallium/drivers/cell/ppu/cell_batch.c
src/gallium/drivers/cell/ppu/cell_batch.h
src/gallium/drivers/cell/ppu/cell_clear.c
src/gallium/drivers/cell/ppu/cell_flush.c
src/gallium/drivers/cell/ppu/cell_state_emit.c
src/gallium/drivers/cell/ppu/cell_vbuf.c
src/gallium/drivers/cell/spu/spu_command.c