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

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

Merge "msm: mdss: Disable smart blit optimization for BG layer"

parents 8492e34a f84e7ec8
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