cell: implement fencing for texture buffers
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 22 Oct 2008 16:34:13 +0000 (10:34 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 22 Oct 2008 16:34:13 +0000 (10:34 -0600)
commit70dd4379d2cd54f229c3940312537912470218d3
treecf24b8e884221c7637cf9c9b27890c2c9b8ec599
parent0ae4728eb429d7b5217d34ec96fc973a5e7cfe95
cell: implement fencing for texture buffers

If we delete a texture, we need to keep the underlying tiled data buffer
around until any rendering that references it has completed.
Keep a list of buffers referenced by a rendering batch.  Unref/free them when
the associated batch's fence is executed/signalled.
13 files changed:
src/gallium/drivers/cell/common.h
src/gallium/drivers/cell/ppu/Makefile
src/gallium/drivers/cell/ppu/cell_batch.c
src/gallium/drivers/cell/ppu/cell_context.c
src/gallium/drivers/cell/ppu/cell_context.h
src/gallium/drivers/cell/ppu/cell_fence.c [new file with mode: 0644]
src/gallium/drivers/cell/ppu/cell_fence.h [new file with mode: 0644]
src/gallium/drivers/cell/ppu/cell_state_emit.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/cell/ppu/cell_texture.h
src/gallium/drivers/cell/ppu/cell_vbuf.c
src/gallium/drivers/cell/spu/spu_command.c
src/gallium/drivers/cell/spu/spu_main.h