From 89aed24c180be9be215923136faebcda0aa344a1 Mon Sep 17 00:00:00 2001 From: Zeyu Fan Date: Mon, 17 Apr 2017 19:02:19 -0400 Subject: [PATCH] drm/amd/display: Block YCbCr formats for eDP. Revert previous change. Signed-off-by: Zeyu Fan Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c index 1a84ee0105da..812c29982a2e 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c @@ -1026,9 +1026,13 @@ bool dce110_link_encoder_validate_output_with_stream( break; case SIGNAL_TYPE_DISPLAY_PORT: case SIGNAL_TYPE_DISPLAY_PORT_MST: - case SIGNAL_TYPE_EDP: is_valid = dce110_link_encoder_validate_dp_output( - enc110, &stream->public.timing); + enc110, &stream->public.timing); + break; + case SIGNAL_TYPE_EDP: + is_valid = + (stream->public.timing. + pixel_encoding == PIXEL_ENCODING_RGB) ? true : false; break; case SIGNAL_TYPE_VIRTUAL: is_valid = true;