Module: Mesa Branch: main Commit: 32450d0901c982b03af2bf639fce4f1bada04234 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=32450d0901c982b03af2bf639fce4f1bada04234
Author: Lionel Landwerlin <lionel.g.landwer...@intel.com> Date: Tue Jan 2 10:52:20 2024 +0200 isl: further restrict alignment constraints We can limit the AUX-TT requirements to formats supporting CCS. Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Reviewed-by: Jianxun Zhang <jianxun.zh...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26890> --- 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 ?