summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCharlene Liu <charlene.liu@amd.com>2017-07-23 16:45:45 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:15:33 -0400
commite63825be738ea0bb975aee43b603ac5f0190d7a8 (patch)
tree7dc379e511cd415bc84bace5fcd88e9894b5b27c /drivers
parentb6762f0c16a43c3d2867fb652f8efa429f70c83d (diff)
downloadlinux-e63825be738ea0bb975aee43b603ac5f0190d7a8.tar.bz2
drm/amd/display: fix YCbCr420 deep color mode not supported
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c2
1 files changed, 2 insertions, 0 deletions
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){