drm/amd/display: Block YCbCr formats for eDP. Revert previous change.
authorZeyu Fan <Zeyu.Fan@amd.com>
Mon, 17 Apr 2017 23:02:19 +0000 (19:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:06:30 +0000 (18:06 -0400)
Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c

index 1a84ee0105da9d862e0c1689727ba04f562fe41d..812c29982a2e498dd20d894316617b083695f848 100644 (file)
@@ -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;