isl: don't report I915_FORMAT_MOD_Y_TILED_CCS on Gfx8

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19852>
This commit is contained in:
Lionel Landwerlin 2022-11-18 11:08:29 +02:00 committed by Marge Bot
parent 3964a77454
commit 0626b68c88

View file

@ -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))