blorp: update and move fast clear PIPE_CONTROLs to drivers
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 8 Jun 2023 05:52:28 +0000 (08:52 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Jul 2023 00:07:15 +0000 (00:07 +0000)
commit87149cc545afdacb339a933d47ded5c1adf8f429
tree208d07cc3f780361671c537d342b442fe8e505dd
parentc94bd5611438fe8b5af9386d7a6511136c80b126
blorp: update and move fast clear PIPE_CONTROLs to drivers

Before this patch, when updating the indirect clear color, BLORP only
invalidated the texture cache on gfx11. The hardware docs state that
the texture cache invalidation is also needed on gfx12 however. Add
this invalidation for gfx12 and move the fast-clear related cache
invalidations to the drivers for clarity and performance.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5850
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23588>
src/gallium/drivers/iris/iris_clear.c
src/intel/blorp/blorp_genX_exec.h
src/intel/vulkan/anv_blorp.c