intel/isl: Move the Tile4 modifier score case down

Group modifiers by platform first, then the score. I find it easier to
read this way.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24120>
This commit is contained in:
Nanley Chery
2023-05-04 13:36:21 -07:00
committed by Marge Bot
parent d9bdffa708
commit 15dec30877
+6 -6
View File
@@ -201,12 +201,6 @@ 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:
/* Not supported before Gfx9 and also Gfx12's CCS layout differs from
@@ -219,6 +213,12 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
return 0;
return 4;
case I915_FORMAT_MOD_4_TILED:
/* Gfx12.5 introduces Tile4. */
if (devinfo->verx10 < 125)
return 0;
return 3;
}
}