aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/display/dc/dc_stream.h
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>2017-11-10 16:12:08 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:48:11 -0500
commit27b3f4fc91e1df74aa15f669c9b032d73dee2ef8 (patch)
treee2a2038612e973e8072b605eb4fb4e01d8929108 /drivers/gpu/drm/amd/display/dc/dc_stream.h
parentdrm/amd/display: Trigger full update on plane change (diff)
downloadwireguard-linux-27b3f4fc91e1df74aa15f669c9b032d73dee2ef8.tar.xz
wireguard-linux-27b3f4fc91e1df74aa15f669c9b032d73dee2ef8.zip
drm/amd/display: Do not program front-end twice
The sequence of front-end > back-end > front-end programming will program the front-end more than once. Add a mode_changed flag, and use it to determine whether the front-end should be programmed before, or after back-end. Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_stream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_stream.h b/drivers/gpu/drm/amd/display/dc/dc_stream.h
index 9a64cf16c798..fed0e5ea9625 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_stream.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_stream.h
@@ -92,6 +92,9 @@ struct dc_stream_state {
struct crtc_trigger_info triggered_crtc_reset;
+ /* Computed state bits */
+ bool mode_changed : 1;
+
};
struct dc_stream_update {