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

drm/i915/scaler: Nuke redundant code



The tgl+ and mtl+ numbers in skl_scaler_max_dst_size() are
identical. Combine them to a single piece of code.

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


Reviewed-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent c5877587
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -119,10 +119,7 @@ static void skl_scaler_max_dst_size(struct intel_crtc *crtc,
{
	struct intel_display *display = to_intel_display(crtc);

	if (DISPLAY_VER(display) >= 14) {
		*max_w = 8192;
		*max_h = 8192;
	} else if (DISPLAY_VER(display) >= 12) {
	if (DISPLAY_VER(display) >= 12) {
		*max_w = 8192;
		*max_h = 8192;
	} else if (DISPLAY_VER(display) == 11) {