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

Commit 6a9de8cf authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: Returning generic error code on overlay scaling hw limitation



Added appropriate error code for hardware limitation on mdp overlay
vertical scaling. On encountering the error, it is expected to ignore
the error and fallback to GPU.

Change-Id: Ib3a7767a856ed4d80632aabd7e371d2766b53dc1
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 2f0184f7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -529,10 +529,12 @@ static int __mdss_mdp_overlay_setup_scaling(struct mdss_mdp_pipe *pipe)
	if ((rc == -EOVERFLOW) && (pipe->type == MDSS_MDP_PIPE_TYPE_VIG)) {
		/* overflow on Qseed2 scaler is acceptable */
		rc = 0;
	} else if (rc == -EOVERFLOW) {
		/* overflow expected and should fallback to GPU */
		rc = -ECANCELED;
	} else if (rc) {
		pr_err("Vertical scaling calculation failed=%d! %d->%d\n",
				rc, src, pipe->dst.h);
		return rc;
	}
	return rc;
}