mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
disp: msm: sde: skip vsync wait during rsc state switch
When switching from CMD to VIDEO or vice-versa, HW no longer requires a vsync wait in between since the vsyncs will be synchronized. So skip the wait for HW which supports this feature. Change-Id: Ia5823495bc7bfc7d590098775b0a5f4b4347b5ed Signed-off-by: Steve Cohen <cohens@codeaurora.org>
This commit is contained in:
parent
80aa9f9c32
commit
7a5d2d5d00
1 changed files with 14 additions and 0 deletions
|
|
@ -543,6 +543,13 @@ static int sde_rsc_switch_to_cmd(struct sde_rsc_priv *rsc,
|
|||
}
|
||||
}
|
||||
|
||||
/* vsync wait not needed during VID->CMD switch (rev 4+ HW only) */
|
||||
if (rsc->current_state == SDE_RSC_VID_STATE &&
|
||||
rsc->version >= SDE_RSC_REV_4) {
|
||||
rc = 0;
|
||||
goto end;
|
||||
}
|
||||
|
||||
vsync_wait:
|
||||
/* indicate wait for vsync for vid to cmd state switch & cfg update */
|
||||
if (!rc && (rsc->current_state == SDE_RSC_VID_STATE ||
|
||||
|
|
@ -689,6 +696,13 @@ static int sde_rsc_switch_to_vid(struct sde_rsc_priv *rsc,
|
|||
}
|
||||
}
|
||||
|
||||
/* vsync wait not needed during CMD->VID switch (rev 4+ HW only) */
|
||||
if (rsc->current_state == SDE_RSC_CMD_STATE &&
|
||||
rsc->version >= SDE_RSC_REV_4) {
|
||||
rc = 0;
|
||||
goto end;
|
||||
}
|
||||
|
||||
vsync_wait:
|
||||
/* indicate wait for vsync for vid to cmd state switch & cfg update */
|
||||
if (!rc && (rsc->current_state == SDE_RSC_VID_STATE ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue