These DG2 modifiers should be disabled on other devices.
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20363>
return false;
break;
case I915_FORMAT_MOD_4_TILED:
+ if (devinfo->verx10 < 125)
+ return false;
+ break;
case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS:
case I915_FORMAT_MOD_4_TILED_DG2_MC_CCS:
case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC:
- if (devinfo->verx10 < 125)
+ if (!intel_device_info_is_dg2(devinfo))
return false;
break;
case DRM_FORMAT_MOD_INVALID: