gallium: add external usage flags to resource_from(get)_handle (v2)
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Feb 2016 17:51:15 +0000 (18:51 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 9 Mar 2016 14:02:25 +0000 (15:02 +0100)
commit82db518f1519cec9e3842f23455a105e2006afbd
tree5baa1ddfa03e94f1edc53b10473c67b9dce26fee
parentd943ac432de1f46cea47bdbf5ffe5365e2aef386
gallium: add external usage flags to resource_from(get)_handle (v2)

This will allow drivers to make better decisions about texture sharing
for DRI2, DRI3, Wayland, and OpenCL.

v2: add read/write flags, take advantage of __DRI_IMAGE_USE_BACKBUFFER

Reviewed-by: Axel Davy <axel.davy@ens.fr>
30 files changed:
src/gallium/auxiliary/util/u_transfer.c
src/gallium/auxiliary/util/u_transfer.h
src/gallium/auxiliary/vl/vl_winsys_dri.c
src/gallium/drivers/ddebug/dd_screen.c
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/i915/i915_resource.c
src/gallium/drivers/ilo/ilo_resource.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/noop/noop_pipe.c
src/gallium/drivers/nouveau/nv30/nv30_resource.c
src/gallium/drivers/nouveau/nv50/nv50_resource.c
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture.h
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/rbug/rbug_screen.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/svga/svga_resource.c
src/gallium/drivers/trace/tr_screen.c
src/gallium/drivers/vc4/vc4_resource.c
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_screen.h
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_screen.h
src/gallium/state_trackers/nine/swapchain9.c
src/gallium/state_trackers/va/buffer.c
src/gallium/state_trackers/va/surface.c
src/gallium/state_trackers/xa/xa_tracker.c
src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c