isl: Reuse Xe2 modifers on newer platforms

We will reuse LNL and BMG modifiers on newer platforms until
new modifiers show up.

Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35776>
This commit is contained in:
Jianxun Zhang 2025-06-23 10:17:07 -07:00
parent 9533e7cdae
commit 42c3585ea1

View file

@ -292,7 +292,7 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
return 5;
case I915_FORMAT_MOD_4_TILED_LNL_CCS:
if (devinfo->platform != INTEL_PLATFORM_LNL)
if (devinfo->ver < 20 || devinfo->has_local_mem)
return 0;
if (INTEL_DEBUG(DEBUG_NO_CCS))
@ -300,7 +300,7 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
return 4;
case I915_FORMAT_MOD_4_TILED_BMG_CCS:
if (devinfo->platform != INTEL_PLATFORM_BMG)
if (devinfo->ver < 20 || !devinfo->has_local_mem)
return 0;
if (INTEL_DEBUG(DEBUG_NO_CCS))