drm/amd/display: fix YCbCr420 deep color mode not supported
authorCharlene Liu <charlene.liu@amd.com>
Sun, 23 Jul 2017 20:45:45 +0000 (16:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:15:33 +0000 (18:15 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c

index a1eabc47558e2b8a46902342c6873680eaf48463..17b28280236f617b30b9b60952f9882bcb2f5897 100644 (file)
@@ -858,6 +858,8 @@ bool dcn_validate_bandwidth(
                                - pipe->stream->public.timing.v_front_porch;
                v->vactive[input_idx] = pipe->stream->public.timing.v_addressable;
                v->pixel_clock[input_idx] = pipe->stream->public.timing.pix_clk_khz / 1000.0f;
+               if (pipe->stream->public.timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
+                       v->pixel_clock[input_idx] /= 2;
 
 
                if (!pipe->surface){