From: Charlene Liu Date: Sun, 23 Jul 2017 20:45:45 +0000 (-0400) Subject: drm/amd/display: fix YCbCr420 deep color mode not supported X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e63825be738ea0bb975aee43b603ac5f0190d7a8;p=linux.git drm/amd/display: fix YCbCr420 deep color mode not supported Signed-off-by: Charlene Liu Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c index a1eabc47558e2..17b28280236f6 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c @@ -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){