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

Commit a39d5e1e authored by Yuchao Ma's avatar Yuchao Ma
Browse files

drm/msm/sde: Fix roi incorrect offset of ad4 core1 in the merge mode



The patch moves the roi area of AD4 core1 by 6 pixels to the right
in the merge mode.

Change-Id: Ie054b2fd225f98720b517fe1e16f48fec24a1476
Signed-off-by: default avatarYuchao Ma <yuchaom@codeaurora.org>
parent 8bb5b25a
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -1075,15 +1075,18 @@ static int ad4_roi_coordinate_offset(struct sde_hw_cp_cfg *hw_cfg,
		/* the region occupy both sides of screen: left and right */
		/* the region occupy both sides of screen: left and right */
		if (hw_lm->cfg.right_mixer) {
		if (hw_lm->cfg.right_mixer) {
			output->h_start = 0;
			output->h_start = 0;
			output->h_end -= hw_lm->cfg.out_width;
			output->h_end -= (hw_lm->cfg.out_width -
					MERGE_WIDTH_RIGHT);
		} else {
		} else {
			output->h_end = hw_lm->cfg.out_width;
			output->h_end = hw_lm->cfg.out_width;
		}
		}
	} else {
	} else {
		/* the region on the right of the screen*/
		/* the region on the right of the screen*/
		if (hw_lm->cfg.right_mixer) {
		if (hw_lm->cfg.right_mixer) {
			output->h_start -= hw_lm->cfg.out_width;
			output->h_start -= (hw_lm->cfg.out_width -
			output->h_end -= hw_lm->cfg.out_width;
					MERGE_WIDTH_RIGHT);
			output->h_end -= (hw_lm->cfg.out_width -
					MERGE_WIDTH_RIGHT);
		} else {
		} else {
			output->h_start = 0;
			output->h_start = 0;
			output->h_end = 0;
			output->h_end = 0;