Commit a67f7a0b authored by George Shen's avatar George Shen Committed by Alex Deucher

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: default avatarWenjing Liu <wenjing.liu@amd.com>
Acked-by: default avatarRoman Li <roman.li@amd.com>
Signed-off-by: default avatarGeorge Shen <george.shen@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d5912842
...@@ -839,6 +839,12 @@ bool dp_set_test_pattern( ...@@ -839,6 +839,12 @@ bool dp_set_test_pattern(
pipe_ctx->stream->vsc_infopacket.sb[17] |= (1 << 7); // sb17 bit 7 Dynamic Range: 0 = VESA range, 1 = CTA range pipe_ctx->stream->vsc_infopacket.sb[17] |= (1 << 7); // sb17 bit 7 Dynamic Range: 0 = VESA range, 1 = CTA range
else else
pipe_ctx->stream->vsc_infopacket.sb[17] &= ~(1 << 7); pipe_ctx->stream->vsc_infopacket.sb[17] &= ~(1 << 7);
if (color_space == COLOR_SPACE_YCBCR601_LIMITED)
pipe_ctx->stream->vsc_infopacket.sb[16] &= 0xf0;
else if (color_space == COLOR_SPACE_YCBCR709_LIMITED)
pipe_ctx->stream->vsc_infopacket.sb[16] |= 1;
resource_build_info_frame(pipe_ctx); resource_build_info_frame(pipe_ctx);
link->dc->hwss.update_info_frame(pipe_ctx); link->dc->hwss.update_info_frame(pipe_ctx);
} }
......
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