gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY
authorMarek Olšák <maraeo@gmail.com>
Mon, 2 Jan 2012 00:13:15 +0000 (01:13 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 5 Jan 2012 17:29:11 +0000 (18:29 +0100)
commit0950086376b1c8b7fb89eda81ed7f2f06dee58bc
tree0ca11705eb95036df1590d2fda13239f684d6dee
parent7cd1c62b6be88072e3d937b67c499592490927f1
gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY

Please see the diff for further info.

This paves the way for moving user buffer uploads out of drivers and should
allow to clean up the mess in u_upload_mgr in the meantime.

For now only allowed for buffers on r300 and r600.

Acked-by: Christian König <deathsimple@vodafone.de>
12 files changed:
src/gallium/drivers/i915/i915_resource_buffer.c
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/nouveau/nouveau_buffer.c
src/gallium/drivers/nv50/nv50_transfer.c
src/gallium/drivers/nvc0/nvc0_transfer.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/svga/svga_resource_buffer.c
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/include/pipe/p_defines.h