aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2024-07-05 17:52:41 +0300
committerVille Syrjälä <[email protected]>2024-07-12 15:05:40 +0300
commit94900000380300b230dc1bed489b598a2a2c55a1 (patch)
treef0739372a059312370b85eae1cb9afff09420d71
parent4c46e34e67587b268abc3916c9613426018561e6 (diff)
drm/i915/fbc: Adjust g4x+ platform checks
Do the "is this ilk+ or g4x" checks in the customary order instead of the reverse order. Easier for the poor brain to parse this when it's always done the same way. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/i915/display/intel_fbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index 779e96dd3f6f..6853573f8486 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -1086,7 +1086,7 @@ static void intel_fbc_max_surface_size(struct intel_display *display,
} else if (DISPLAY_VER(display) >= 7) {
*w = 4096;
*h = 4096;
- } else if (IS_G4X(i915) || DISPLAY_VER(display) >= 5) {
+ } else if (DISPLAY_VER(display) >= 5 || IS_G4X(i915)) {
*w = 4096;
*h = 2048;
} else {
@@ -1127,7 +1127,7 @@ static void intel_fbc_max_plane_size(struct intel_display *display,
} else if (DISPLAY_VER(display) >= 8 || IS_HASWELL(i915)) {
*w = 4096;
*h = 4096;
- } else if (IS_G4X(i915) || DISPLAY_VER(display) >= 5) {
+ } else if (DISPLAY_VER(display) >= 5 || IS_G4X(i915)) {
*w = 4096;
*h = 2048;
} else {