aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
diff options
context:
space:
mode:
authorAndrew Wong <[email protected]>2016-12-12 16:47:47 +0000
committerAlex Deucher <[email protected]>2017-09-26 21:04:55 +0000
commit4b5752c7422f36664cea2ed300b698b4755b6dc5 (patch)
tree8fa954cdb004fd0f42b0253c97f5f1169e320682 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c
parentdrm/amd/display: Change locking of registers when flipping frames. (diff)
downloadkernel-4b5752c7422f36664cea2ed300b698b4755b6dc5.tar.gz
kernel-4b5752c7422f36664cea2ed300b698b4755b6dc5.zip
drm/amd/display: Retrieve windowed fullscreen state
- Retrieve windowed fullscreen state when getting freesync params. Signed-off-by: Andrew Wong <[email protected]> Reviewed-by: Anthony Koo <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
-rw-r--r--drivers/gpu/drm/amd/display/modules/freesync/freesync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
index 8892e8bec7c3..6f4d169f4e4e 100644
--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
@@ -784,6 +784,9 @@ bool mod_freesync_get_state(struct mod_freesync *mod_freesync,
freesync_params->update_duration_in_ns =
core_freesync->map[index].state.time.update_duration_in_ns;
+ freesync_params->windowed_fullscreen =
+ core_freesync->map[index].state.windowed_fullscreen;
+
return true;
}