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

Commit a7adb0df 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: restore pipe src/dst rect after multiple PU ROI update"

parents 74e95335 55931ab7
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1923,6 +1923,8 @@ static void __restore_pipe(struct mdss_mdp_pipe *pipe)
	pipe->dst.y = pipe->layer.dst_rect.y;
	pipe->dst.w = pipe->layer.dst_rect.w;
	pipe->dst.h = pipe->layer.dst_rect.h;

	pipe->restore_roi = false;
}

 /**
@@ -1946,7 +1948,6 @@ static int __crop_adjust_pipe_rect(struct mdss_mdp_pipe *pipe,
	u32 roi_y_pos;
	int ret = 0;

	pipe->restore_roi = false;
	if (mdss_rect_overlap_check(&pipe->dst, &dual_roi->first_roi)) {
		mdss_mdp_crop_rect(&pipe->src, &pipe->dst,
				&dual_roi->first_roi, false);
@@ -2092,6 +2093,13 @@ static void __validate_and_set_roi(struct msm_fb_data_type *mfd,
	}

	list_for_each_entry(pipe, &mdp5_data->pipes_used, list) {
		/*
		 * Restore the pipe src/dst ROI if it was altered
		 * in the previous kickoff.
		 */
		if (pipe->restore_roi)
			__restore_pipe(pipe);

		pr_debug("pipe:%d src:{%d,%d,%d,%d} dst:{%d,%d,%d,%d}\n",
			pipe->num, pipe->src.x, pipe->src.y,
			pipe->src.w, pipe->src.h, pipe->dst.x,
+1 −0
Original line number Diff line number Diff line
@@ -1114,6 +1114,7 @@ static void mdss_mdp_init_pipe_params(struct mdss_mdp_pipe *pipe)
	pipe->is_right_blend = false;
	pipe->src_split_req = false;
	pipe->bwc_mode = 0;
	pipe->restore_roi = false;

	pipe->mfd = NULL;
	pipe->mixer_left = pipe->mixer_right = NULL;