From 0626b68c88df50e30e61e9fd2ba3e46144ff9ad5 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 18 Nov 2022 11:08:29 +0200 Subject: [PATCH] isl: don't report I915_FORMAT_MOD_Y_TILED_CCS on Gfx8 Signed-off-by: Lionel Landwerlin Cc: mesa-stable Acked-by: Caio Oliveira Part-of: --- src/intel/isl/isl_drm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c index c42bdfdc33c..23d2de0a9d4 100644 --- a/src/intel/isl/isl_drm.c +++ b/src/intel/isl/isl_drm.c @@ -188,8 +188,10 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo, return 3; case I915_FORMAT_MOD_Y_TILED_CCS: - /* Gfx12's CCS layout differs from Gfx9-11. */ - if (devinfo->ver >= 12) + /* Not supported before Gfx9 and also Gfx12's CCS layout differs from + * Gfx9-11. + */ + if (devinfo->ver <= 8 || devinfo->ver >= 12) return 0; if (INTEL_DEBUG(DEBUG_NO_CCS))