Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff122954 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: Fix to skip validate when no ds data available"

parents 413701ae 4ff4164e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2530,6 +2530,11 @@ static int _sde_crtc_set_dest_scaler(struct sde_crtc *sde_crtc,
	}

	count = ds_data.num_dest_scaler;
	if (!count) {
		SDE_DEBUG("no ds data available\n");
		return 0;
	}

	if (!sde_crtc->num_mixers || count > sde_crtc->num_mixers ||
		(count && (count != sde_crtc->num_mixers) &&
		!(ds_data.ds_cfg[0].flags & SDE_DRM_DESTSCALER_PU_ENABLE))) {