Module: Mesa Branch: main Commit: 0626b68c88df50e30e61e9fd2ba3e46144ff9ad5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0626b68c88df50e30e61e9fd2ba3e46144ff9ad5
Author: Lionel Landwerlin <[email protected]> Date: Fri Nov 18 11:08:29 2022 +0200 isl: don't report I915_FORMAT_MOD_Y_TILED_CCS on Gfx8 Signed-off-by: Lionel Landwerlin <[email protected]> Cc: mesa-stable Acked-by: Caio Oliveira <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19852> --- 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))
