drm/amd/display: Program vsc_infopacket in commit_planes_for_stream
authorAlvin lee <alvin.lee3@amd.com>
Fri, 8 Jun 2018 17:58:36 +0000 (13:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:58 +0000 (11:10 -0500)
Signed-off-by: Alvin lee <alvin.lee3@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_stream.h

index 699cb6f511217ca4ab2bf313857c13fb2bfeabdb..eda21868c8928903401461fb6761d26638816094 100644 (file)
@@ -1385,7 +1385,8 @@ static void commit_planes_do_stream_update(struct dc *dc,
                        }
 
                        if (stream_update->hdr_static_metadata ||
-                               stream_update->vrr_infopacket) {
+                               stream_update->vrr_infopacket ||
+                               stream_update->vsc_infopacket) {
                                resource_build_info_frame(pipe_ctx);
                                dc->hwss.update_info_frame(pipe_ctx);
                        }
index 8f81133ac0c1ae35a1c545f674ef1e512b0ff785..790beb5cb358551852ac246005413e8758358978 100644 (file)
@@ -129,6 +129,7 @@ struct dc_stream_update {
        unsigned long long *periodic_fn_vsync_delta;
        struct dc_crtc_timing_adjust *adjust;
        struct dc_info_packet *vrr_infopacket;
+       struct dc_info_packet *vsc_infopacket;
 
        bool *dpms_off;
 };