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 8892e8b..6f4d169 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;
 }