From: Hawking Zhang <Hawking.Zhang@xxxxxxx> It prefers that freesync is enable/disable per client lifecycle rather than per flip. With the patch, freesync will be disabled when clientgone or switch to windowed mode. Change-Id: I2c725bd045c4855f9e1436f0791755b0a47a6ecc Signed-off-by: Hawking Zhang <Hawking.Zhang at amd.com> Reviewed-by: Flora Cui <Flora.Cui at amd.com> --- src/amdgpu_present.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c index 66d264c..9ed000b 100644 --- a/src/amdgpu_present.c +++ b/src/amdgpu_present.c @@ -371,12 +371,6 @@ amdgpu_present_unflip(ScreenPtr screen, uint64_t event_id) if (!amdgpu_present_check_unflip(scrn)) goto modeset; - if (info->freesync_capable_client && - info->freesync_enabled == TRUE) { - if (!AMDGPUFreesyncControl(pAMDGPUEnt->fd, FALSE)) - info->freesync_enabled = FALSE; - } - event = calloc(1, sizeof(struct amdgpu_present_vblank_event)); if (!event) { ErrorF("%s: calloc failed, display might freeze\n", __func__); -- 2.18.0