Skip to content

Commit a67f7a0

Browse files
George Shenalexdeucher
authored andcommitted
drm/amd/display: Update SDP VSC colorimetry from DP test automation request
[Why] Certain test equipment vendors check the SDP VSC for colorimetry against the value from the test request during certain DP link layer tests for YCbCr test cases. [How] Update SDP VSC with colorimetry from test automation request. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: George Shen <george.shen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d591284 commit a67f7a0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,12 @@ bool dp_set_test_pattern(
839839
pipe_ctx->stream->vsc_infopacket.sb[17] |= (1 << 7); // sb17 bit 7 Dynamic Range: 0 = VESA range, 1 = CTA range
840840
else
841841
pipe_ctx->stream->vsc_infopacket.sb[17] &= ~(1 << 7);
842+
843+
if (color_space == COLOR_SPACE_YCBCR601_LIMITED)
844+
pipe_ctx->stream->vsc_infopacket.sb[16] &= 0xf0;
845+
else if (color_space == COLOR_SPACE_YCBCR709_LIMITED)
846+
pipe_ctx->stream->vsc_infopacket.sb[16] |= 1;
847+
842848
resource_build_info_frame(pipe_ctx);
843849
link->dc->hwss.update_info_frame(pipe_ctx);
844850
}

0 commit comments

Comments
 (0)