intel/isl: Add a score for I915_FORMAT_MOD_4_TILED

Enables the modifier in anv.

Cc: 22.1 <mesa-stable>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14521>
This commit is contained in:
Nanley Chery 2021-09-29 15:59:21 -07:00 committed by Marge Bot
parent ac441d0953
commit a53abeb7fb
1 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,12 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
if (devinfo->verx10 >= 125)
return 0;
return 3;
case I915_FORMAT_MOD_4_TILED:
/* Gfx12.5 introduces Tile4. */
if (devinfo->verx10 < 125)
return 0;
return 3;
case I915_FORMAT_MOD_Y_TILED_CCS:
/* Gfx12's CCS layout differs from Gfx9-11. */