From b34c23d1710f20f7d95a1800d711a715914ab414 Mon Sep 17 00:00:00 2001 From: Charlene Liu Date: Sun, 23 Jul 2017 16:45:45 -0400 Subject: [PATCH 0655/4131] 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 --- drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 2 ++ 1 file changed, 2 insertions(+) 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 a1eabc4..17b2828 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){ -- 2.7.4