drm/amd/display: Retrieve windowed fullscreen state
authorAndrew Wong <andrew.wong1@amd.com>
Mon, 12 Dec 2016 16:47:47 +0000 (11:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:04:55 +0000 (17:04 -0400)
- Retrieve windowed fullscreen state when getting freesync params.

Signed-off-by: Andrew Wong <andrew.wong1@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c

index 8892e8bec7c3e88c1acb40275b387fb6baa5a0f1..6f4d169f4e4ee3243d86f1168e2aeb880924af60 100644 (file)
@@ -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;
 }