Commit 8a488f5d authored by Roman Li's avatar Roman Li Committed by Alex Deucher

drm/amd/display: Remove VSC infoframe dep on DMCU

[Why]
VSC infoframe is needed for PSR. Previously only DMCU controller
supported PSR. Now DMUB also implements PSR.

[How]
Remove VSC infoframe dependency on DMCU.
Signed-off-by: default avatarRoman Li <roman.li@amd.com>
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: default avatarEryk Brol <eryk.brol@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 486b7680
...@@ -4556,24 +4556,20 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector, ...@@ -4556,24 +4556,20 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket, false, false); mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket, false, false);
if (stream->link->psr_settings.psr_feature_enabled) { if (stream->link->psr_settings.psr_feature_enabled) {
struct dc *core_dc = stream->link->ctx->dc; //
// should decide stream support vsc sdp colorimetry capability
if (dc_is_dmcu_initialized(core_dc)) { // before building vsc info packet
// //
// should decide stream support vsc sdp colorimetry capability stream->use_vsc_sdp_for_colorimetry = false;
// before building vsc info packet if (aconnector->dc_sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
// stream->use_vsc_sdp_for_colorimetry =
stream->use_vsc_sdp_for_colorimetry = false; aconnector->dc_sink->is_vsc_sdp_colorimetry_supported;
if (aconnector->dc_sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { } else {
stream->use_vsc_sdp_for_colorimetry = if (stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
aconnector->dc_sink->is_vsc_sdp_colorimetry_supported; stream->use_vsc_sdp_for_colorimetry = true;
} else {
if (stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
stream->use_vsc_sdp_for_colorimetry = true;
}
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket);
} }
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket);
} }
finish: finish:
dc_sink_release(sink); dc_sink_release(sink);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment