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

Commit bc01cbda authored by Lloyd Atkinson's avatar Lloyd Atkinson Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: clear cached encoder rois on enable



Clear the stored roi data cached in the encoder on previous
frames when the encoder goes through the enable sequence.

Change-Id: Ia38dcce2a1bdd04a07db03020dabc345b31d87b4
Signed-off-by: default avatarLloyd Atkinson <latkinso@codeaurora.org>
parent 7529b53b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1416,6 +1416,9 @@ static void _sde_encoder_virt_enable_helper(struct drm_encoder *drm_enc)
		hw_mdptop->ops.setup_vsync_sel(hw_mdptop, &te_cfg,
				sde_enc->disp_info.is_te_using_watchdog_timer);
	}

	memset(&sde_enc->prv_conn_roi, 0, sizeof(sde_enc->prv_conn_roi));
	memset(&sde_enc->cur_conn_roi, 0, sizeof(sde_enc->cur_conn_roi));
}

void sde_encoder_virt_restore(struct drm_encoder *drm_enc)