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

Commit 786b2f77 authored by randy lin's avatar randy lin Committed by randy.lin
Browse files

[ALPS08836730] disp: fix discrete report abnormal fps



[Description]
fix discrete report abnormal fps.

[Test]
build pass.
customer test pass.

MTK-Commit-Id: 3abafca2a8ab33d656ef2624e3fc570db7687d0d

Signed-off-by: default avatarrandy lin <randy.lin@mediatek.com>
CR-Id: ALPS08836730
Feature: display_mobile
Change-Id: I30e962f6647af349154f5a4c595be8d5a48dcf94
parent 5fc53971
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -5593,9 +5593,11 @@ static void mtk_crtc_disp_mode_switch_begin(struct drm_crtc *crtc,
	if (old_mtk_state->prop_val[CRTC_PROP_DISP_MODE_IDX] ==
		mtk_state->prop_val[CRTC_PROP_DISP_MODE_IDX]) {
		if (drm_need_fisrt_invoke_fps_callbacks()) {
			if (!(mtk_crtc->path_data->is_discrete_path)) {
				fps_dst = drm_mode_vrefresh(&crtc->state->mode);
				drm_invoke_fps_chg_callbacks(fps_dst);
			}
		}
		return;
	}
@@ -5678,6 +5680,7 @@ static void mtk_crtc_disp_mode_switch_begin(struct drm_crtc *crtc,
	for_each_comp_in_cur_crtc_path(comp, mtk_crtc, i, j)
		mtk_ddp_comp_io_cmd(comp, cmdq_handle, NOTIFY_MODE_SWITCH, &modeswitch_param);
	if (!(mtk_crtc->path_data->is_discrete_path))
		drm_invoke_fps_chg_callbacks(fps_dst);
	/* update framedur_ns for VSYNC report */