Skip to content

Commit c3e2a5f

Browse files
Harry Wentlandalexdeucher
authored andcommitted
drm/amd/display: Set VSC SDP Colorimetry same way for MST and SST
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]>
1 parent 9e61ef8 commit c3e2a5f

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
@@ -6325,15 +6325,9 @@ create_stream_for_sink(struct drm_connector *connector,
63256325
// should decide stream support vsc sdp colorimetry capability
63266326
// before building vsc info packet
63276327
//
6328-
stream->use_vsc_sdp_for_colorimetry = false;
6329-
if (aconnector->dc_sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
6330-
stream->use_vsc_sdp_for_colorimetry =
6331-
aconnector->dc_sink->is_vsc_sdp_colorimetry_supported;
6332-
} else {
6333-
if (stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
6334-
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
6335-
stream->use_vsc_sdp_for_colorimetry = true;
6336-
}
6328+
stream->use_vsc_sdp_for_colorimetry = stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
6329+
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED;
6330+
63376331
if (stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22)
63386332
tf = TRANSFER_FUNC_GAMMA_22;
63396333
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket, stream->output_color_space, tf);

0 commit comments

Comments
 (0)