Commit 94900000 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240705145254.3355-8-ville.syrjala@linux.intel.com


Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 4c46e34e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {