Module: Mesa
Branch: main
Commit: 15dec3087700492cd6ab538250ba9de8a50d4f57
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=15dec3087700492cd6ab538250ba9de8a50d4f57

Author: Nanley Chery <[email protected]>
Date:   Thu May  4 13:36:21 2023 -0700

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24120>

---

 src/intel/isl/isl_drm.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c
index b8855dba1b9..0520c0dd07b 100644
--- a/src/intel/isl/isl_drm.c
+++ b/src/intel/isl/isl_drm.c
@@ -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;
    }
 }
 

Reply via email to