1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules/inc
Angus Wang 3fe5739db4 drm/amd/display: Add flip interval workaround
[WHY]
Some games experience low FPS issues when FreeSync is on and VSync is
toggled to half refresh rate.

[HOW]
First create a function to determine workaround conditions, which is
when we detect 2 or more VSync interrupts between flips and a very short
VSync to flip interval. We do the workaround during VSync interrupts and
set the v_total_max and min to nominal. We also cleanup after we exit
the game.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Angus Wang <Angus.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-04-05 10:29:47 -04:00
..
mod_freesync.h drm/amd/display: Add flip interval workaround 2022-04-05 10:29:47 -04:00
mod_hdcp.h drm/amd/display: Fix HDCP SEND AKI INIT error 2022-03-25 12:40:26 -04:00
mod_info_packet.h drm/amd/display: Update VSC HDR infoPacket on TF change 2022-01-25 18:00:35 -05:00
mod_shared.h drm/amd/display: Change infopacket type programming 2020-04-22 18:11:47 -04:00
mod_stats.h drm/amd/display: Handle persistence in DM 2020-05-28 14:00:47 -04:00
mod_vmid.h drm/amd/display: add missing mod_vmid destructor 2019-06-22 09:34:14 -05:00