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

Commit e0780eef authored by Jeykumar Sankaran's avatar Jeykumar Sankaran
Browse files

msm: mdss: Consider FLIP flags while optimizing pixel fetch



While calculating source and destination rect of a pipe for the
programmed ROI, consider FLIP flags set for the pipe.

Change-Id: I631453c26f443b08a23556f83195d9914e05b41d
Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
parent 799792ac
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;