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

Commit 1cd1eea7 authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran Committed by Abhijith Desai
Browse files

msm: mdss: add checks to fail solid fill with scaling



Scaling is not allowed for layers with solid-fill.
Add checks in validate call to fail such cases.

Change-Id: I02cb2d129d27c6173429fd02b5ff84702936d98e
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 246787af
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -564,6 +564,15 @@ static int __configure_pipe_params(struct msm_fb_data_type *mfd,
		goto end;
	}

	/* scaling is not allowed for solid_fill layers */
	if ((pipe->flags & MDP_SOLID_FILL) &&
		((pipe->src.w != pipe->dst.w) ||
			(pipe->src.h != pipe->dst.h))) {
		pr_err("solid fill pipe:%d cannot have scaling\n", pipe->num);
		ret = -EINVAL;
		goto end;
	}

	/*
	 * unstage the pipe if it's current z_order does not match with new
	 * z_order because client may only call the validate.