anv: Add a helper for doing buffer copies with nothing but VF and SOL.
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 26 Sep 2016 19:10:11 +0000 (12:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Nov 2016 18:11:07 +0000 (10:11 -0800)
commit3d9747780bc2508f4474230a0998d9dba7b02d1e
tree4733d8eca2c91f73151b62067b1a2c6e09b1ef12
parent184bbfd69bf74cc5b4c27cd80d4d8d0b16b24a17
anv: Add a helper for doing buffer copies with nothing but VF and SOL.

This method of doing copies has the advantage of touching very little of
the GPU state.  While it does disable all the shader stages, it doesn't
have to blow away binding tables, viewports, scissors, or any other bits of
dynamic state other than VBO 32 which is already reserved.  All of the
state that it does touch is contained within a pipeline anyway so that's
the only thing that has to be dirtied.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/vulkan/Makefile.sources
src/intel/vulkan/anv_genX.h
src/intel/vulkan/genX_gpu_memcpy.c [new file with mode: 0644]