[PATCH 025/120] drm/amd/display: fix YCbCr420 deep color mode not supported

Harry Wentland harry.wentland at amd.com
Wed Aug 9 15:01:11 UTC 2017


From: Charlene Liu <charlene.liu at amd.com>

Change-Id: I293c8500c1a67873a2b793129b70d9f952fc8f89
Signed-off-by: Charlene Liu <charlene.liu at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
 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 a1eabc47558e..17b28280236f 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.11.0



More information about the amd-gfx mailing list