From 32450d0901c982b03af2bf639fce4f1bada04234 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 2 Jan 2024 10:52:20 +0200 Subject: [PATCH] isl: further restrict alignment constraints We can limit the AUX-TT requirements to formats supporting CCS. Signed-off-by: Lionel Landwerlin Reviewed-by: Jianxun Zhang Part-of: --- src/intel/isl/isl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 75a21aab42e..b32e74f9691 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -2577,6 +2577,8 @@ isl_calc_base_alignment(const struct isl_device *dev, * there. */ if (dev->info->has_aux_map && + (isl_format_supports_ccs_d(dev->info, info->format) || + isl_format_supports_ccs_e(dev->info, info->format)) && !INTEL_DEBUG(DEBUG_NO_CCS) && !(info->usage & ISL_SURF_USAGE_DISABLE_AUX_BIT)) { base_alignment_B = MAX(base_alignment_B, dev->info->verx10 >= 125 ?