From 85142f3fce2f24ec39e075d48d171d6e6ad0289d Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 8 May 2023 16:22:20 -0700 Subject: [PATCH] intel/blorp: Use the depth copy format more on BDW+ 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 Part-of: --- src/intel/blorp/blorp_blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index f865649..be83bfa 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -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. */ -- 2.7.4