Commit b33171cc authored by Aric Cyr's avatar Aric Cyr Committed by Alex Deucher

drm/amd/display: Use VCP for extended colorimetry

DPRX should send the VCP extended colorimetry packet if the
sink supports DPCD rev1.4 and reports the extended colorimetry
bit.
Signed-off-by: default avatarAric Cyr <aric.cyr@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2da4605d
...@@ -63,7 +63,9 @@ void mod_build_vsc_infopacket(const struct dc_stream_state *stream, ...@@ -63,7 +63,9 @@ void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
if (stream->psr_version != 0) if (stream->psr_version != 0)
vscPacketRevision = 2; vscPacketRevision = 2;
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) /* Update to revision 5 for extended colorimetry support for DPCD 1.4+ */
if (stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
vscPacketRevision = 5; vscPacketRevision = 5;
/* VSC packet not needed based on the features /* VSC packet not needed based on the features
......
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