Skip to content

Commit 5ca6cbd

Browse files
Harry Wentlandgregkh
authored andcommitted
drm/amd/display: Set VSC SDP Colorimetry same way for MST and SST
commit c3e2a5f upstream. The previous check for the is_vsc_sdp_colorimetry_supported flag for MST sink signals did nothing. Simplify the code and use the same check for MST and SST. Cc: [email protected] Reviewed-by: Agustin Gutierrez <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b12c3cf commit 5ca6cbd

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6129,15 +6129,9 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
61296129
// should decide stream support vsc sdp colorimetry capability
61306130
// before building vsc info packet
61316131
//
6132-
stream->use_vsc_sdp_for_colorimetry = false;
6133-
if (aconnector->dc_sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
6134-
stream->use_vsc_sdp_for_colorimetry =
6135-
aconnector->dc_sink->is_vsc_sdp_colorimetry_supported;
6136-
} else {
6137-
if (stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
6138-
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
6139-
stream->use_vsc_sdp_for_colorimetry = true;
6140-
}
6132+
stream->use_vsc_sdp_for_colorimetry = stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
6133+
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED;
6134+
61416135
if (stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22)
61426136
tf = TRANSFER_FUNC_GAMMA_22;
61436137
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket, stream->output_color_space, tf);

0 commit comments

Comments
 (0)