gallium: add a pipe_context parameter to resource_get_handle
authorMarek Olšák <marek.olsak@amd.com>
Sun, 21 Aug 2016 10:24:59 +0000 (12:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 25 Aug 2016 12:09:48 +0000 (14:09 +0200)
commit9daaa6f5a66ab6cc99c6f0af37fc1007ab3d09af
tree47e62319d0ddea75f93bccf52305133e2e0be5f3
parentb662c70aeab6a92751514f30719c13a6de253b40
gallium: add a pipe_context parameter to resource_get_handle

radeonsi needs to do some operations (DCC decompression) for OpenGL-OpenCL
interop and this is the only way to make it coherent with the current
context. It can optionally be set to NULL.

Reviewed-by: Brian Paul <brianp@vmware.com>
21 files changed:
src/gallium/auxiliary/util/u_transfer.c
src/gallium/auxiliary/util/u_transfer.h
src/gallium/auxiliary/vl/vl_winsys_dri3.c
src/gallium/drivers/ddebug/dd_screen.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/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/trace/tr_screen.c
src/gallium/include/pipe/p_screen.h
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/nine/swapchain9.c
src/gallium/state_trackers/va/buffer.c
src/gallium/state_trackers/vdpau/output.c
src/gallium/state_trackers/vdpau/surface.c
src/gallium/state_trackers/xa/xa_tracker.c
src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c