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

Commit a734dbe8 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: Consider FLIP flags while optimizing pixel fetch"

parents 57cd2287 e0780eef
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -1139,8 +1139,17 @@ static int mdss_mdp_image_setup(struct mdss_mdp_pipe *pipe,

	if ((pipe->mixer_left->type != MDSS_MDP_MIXER_TYPE_WRITEBACK) &&
		!pipe->mixer_left->ctl->is_video_mode &&
		!pipe->src_split_req)
		!pipe->src_split_req) {
		mdss_mdp_crop_rect(&src, &dst, &sci);
		if (pipe->flags & MDP_FLIP_LR) {
			src.x = pipe->src.x + (pipe->src.x + pipe->src.w)
				- (src.x + src.w);
		}
		if (pipe->flags & MDP_FLIP_UD) {
			src.y = pipe->src.y + (pipe->src.y + pipe->src.h)
				- (src.y + src.h);
		}
	}

	src_size = (src.h << 16) | src.w;
	src_xy = (src.y << 16) | src.x;