summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
diff options
context:
space:
mode:
authorAric Cyr <aric.cyr@amd.com>2019-09-04 01:18:08 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-10-03 17:10:58 +0300
commitbb2746ac9143fe57adab57c30d19718dbaed7901 (patch)
tree117158cdf753a9d4b8facfe29bf8dca604d1ce66 /drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
parentec4388a267e09061ca401eb7c2dcf104385c1a65 (diff)
downloadlinux-bb2746ac9143fe57adab57c30d19718dbaed7901.tar.xz
drm/amd/display: Improve LFC behaviour
[Why] There can be some unsynchronized frames when entering/exiting LFC. This may cause tearing or stuttering at such transitions. [How] Add a enter/exit margin to algorithm to smoothly transition into and out of LFC without desynchronizing frames. Signed-off-by: Aric Cyr <aric.cyr@amd.com> Reviewed-by: Reza Amini <Reza.Amini@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Acked-by: Sivapiriyan Kumarasamy <Sivapiriyan.Kumarasamy@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h')
-rw-r--r--drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h b/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
index dc187844d10b..dbe7835aabcf 100644
--- a/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
+++ b/drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
@@ -92,6 +92,7 @@ struct mod_vrr_params_btr {
uint32_t inserted_duration_in_us;
uint32_t frames_to_insert;
uint32_t frame_counter;
+ uint32_t margin_in_us;
};
struct mod_vrr_params_fixed_refresh {