anv: remove unnecessary Tile Cache flushes
authorFelix DeGrood <felix.j.degrood@intel.com>
Wed, 17 Mar 2021 04:02:35 +0000 (21:02 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 12:57:42 +0000 (12:57 +0000)
commit6f26a51f47e2be7ad6c0cc81d07ecf9a49fdf305
treef1e6d3e47b20519b9960ab464031d55ec0f579c9
parenta7bb74db7b2bb21c06dc773fee545b47dfcbb9c9
anv: remove unnecessary Tile Cache flushes

On Gfx12+, flushing tile cache ensures color/depth values are
globally visible, but that's expensive.  Most operations only
need values to be GT-visible which can be achieved with depth
or rt flush.  Remove a bunch of unnecessary Tile Cache flushes.
Fast clears and slow depth clears still require Tile Cache flush.

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