Commit b7cd6487 authored by Eric Yang's avatar Eric Yang Committed by Alex Deucher

drm/amd/display: block DP YCbCr420 modes

[why]
Currently not supported, will black screen when set.

[How]
Fail validate timing helper for those modes.
Signed-off-by: default avatarEric Yang <Eric.Yang2@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8ab2180f
...@@ -662,6 +662,9 @@ bool dce110_link_encoder_validate_dp_output( ...@@ -662,6 +662,9 @@ bool dce110_link_encoder_validate_dp_output(
const struct dce110_link_encoder *enc110, const struct dce110_link_encoder *enc110,
const struct dc_crtc_timing *crtc_timing) const struct dc_crtc_timing *crtc_timing)
{ {
if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
return false;
/* default RGB only */ /* default RGB only */
if (crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB) if (crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB)
return true; return true;
......
...@@ -606,6 +606,9 @@ bool dcn10_link_encoder_validate_dp_output( ...@@ -606,6 +606,9 @@ bool dcn10_link_encoder_validate_dp_output(
const struct dcn10_link_encoder *enc10, const struct dcn10_link_encoder *enc10,
const struct dc_crtc_timing *crtc_timing) const struct dc_crtc_timing *crtc_timing)
{ {
if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
return false;
/* default RGB only */ /* default RGB only */
if (crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB) if (crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB)
return true; return true;
......
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