intel/blorp: Use the depth copy format more on BDW+
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 8 May 2023 23:22:20 +0000 (16:22 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 22 May 2023 22:20:58 +0000 (22:20 +0000)
Sampling with HiZ is introduced on BDW+. For BLORP copies, instead of
using the depth format when the source uses HiZ, use it for all depth
sampling on BDW+.

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

src/intel/blorp/blorp_blit.c

index f865649..be83bfa 100644 (file)
@@ -2911,7 +2911,8 @@ blorp_copy(struct blorp_batch *batch,
           params.src.aux_usage == ISL_AUX_USAGE_GFX12_CCS_E ||
           params.src.aux_usage == ISL_AUX_USAGE_STC_CCS);
 
-   if (isl_aux_usage_has_hiz(params.src.aux_usage)) {
+   if ((params.src.surf.usage & ISL_SURF_USAGE_DEPTH_BIT) &&
+       isl_dev->info->ver >= 8) {
       /* In order to use HiZ, we have to use the real format for the source.
        * Depth <-> Color copies are not allowed.
        */