anv: Only flush Tile Cache on VK_ACCESS_HOST_R/W
authorFelix DeGrood <felix.j.degrood@intel.com>
Fri, 12 Mar 2021 23:36:49 +0000 (15:36 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 12:57:42 +0000 (12:57 +0000)
commit82952deb8b80ff705586f1e4f3b98dee463cd09b
treecbd7a0f869dd17bad8e313b92ce25d21f269dc90
parent6f26a51f47e2be7ad6c0cc81d07ecf9a49fdf305
anv: Only flush Tile Cache on VK_ACCESS_HOST_R/W

Tile Cache flush flushes all Color/Depth values from L3 cache
to memory in Unified Cache mode. This is only required when
CPU access is required.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9834>
src/intel/vulkan/anv_private.h