iris: Drop depth cache flush requirement after depth clear/resolve
authorSagar Ghuge <sagar.ghuge@intel.com>
Thu, 6 Jul 2023 16:34:44 +0000 (09:34 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Jul 2023 18:03:39 +0000 (18:03 +0000)
commit34ef0c15db05e40f344bd7bdd9ab72a1b4b93670
tree28c3bedc139f15dfaadeeb55fbdf4f0db3a88ccf
parent66a6f48747266f9adb4c36ea3e846dae3e0647b7
iris: Drop depth cache flush requirement after depth clear/resolve

From Bspec 46959, a programming note applicable to Gfx12+:

   "Since HZ_OP has to be sent twice (first time set the clear/resolve
   state and 2nd time to clear the state), and HW internally flushes the
   depth cache on HZ_OP, there is no need to explicitly send a Depth
   Cache flush after Clear or Resolve."

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24027>
src/gallium/drivers/iris/iris_resolve.c