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

Commit f84e7ec8 authored by raghavendra ambadas's avatar raghavendra ambadas
Browse files

msm: mdss: Disable smart blit optimization for BG layer



BG layer with scaling, rotation and up down flip is not supported.
To fix the garbled screen with green lines for front camera use case,
disable the smart blit optimization for YUV layers with above properties.

Change-Id: I134d0b535cae56bbee680f68f681e5edd55ea1b5
Signed-off-by: default avatarRaghavendra Ambadas <rambad@codeaurora.org>
parent 22980fb5
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1467,6 +1467,18 @@ static bool is_blit_optimization_possible(struct blit_req_list *req, int indx)
			(!(fg_req.flags & (MDP_ROT_90))) && (dst_roi_equal) &&
			(!(check_if_rgb(bg_req.src.format))) &&
			(!(hw_woraround_active))) {
			/*
			 * Disable SMART blit for BG(YUV) layer when
			 * Scaling on BG layer
			 * Rotation on BG layer
			 * UD flip on BG layer
			 */
			if ((is_scaling_needed(bg_req)) && (
				bg_req.flags & MDP_ROT_90) &&
				(bg_req.flags & MDP_FLIP_UD)) {
				pr_debug("YUV layer with ROT+UD_FLIP+Scaling Not supported\n");
				return false;
			}
			/*
			 * swap blit requests at index 0 and 1. YUV layer at
			 * index 0 is replaced with UI layer request present