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

drm/i915/fbc: Reoder CFB max height platform checks



Rearrange the max CFB max height platform into the
more common "new first, old last" order.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240705145254.3355-11-ville.syrjala@linux.intel.com


Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 566ad72b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -205,10 +205,10 @@ static unsigned int intel_fbc_cfb_size(const struct intel_plane_state *plane_sta
	struct intel_display *display = to_intel_display(plane_state->uapi.plane->dev);
	int height = drm_rect_height(&plane_state->uapi.src) >> 16;

	if (DISPLAY_VER(display) == 7)
		height = min(height, 2048);
	else if (DISPLAY_VER(display) >= 8)
	if (DISPLAY_VER(display) >= 8)
		height = min(height, 2560);
	else if (DISPLAY_VER(display) == 7)
		height = min(height, 2048);

	return height * intel_fbc_cfb_stride(plane_state);
}