drm/amd/display: add preferred mode from Video Format Preference Data Block
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 26 Jul 2017 19:51:31 +0000 (15:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:15:55 +0000 (18:15 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Vitaly Prosyak <Vitaly.Prosyak@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 875b98d..be6e3ca 100644 (file)
@@ -856,8 +856,6 @@ bool dcn_validate_bandwidth(
                                - pipe->stream->timing.v_front_porch;
                v->vactive[input_idx] = pipe->stream->timing.v_addressable;
                v->pixel_clock[input_idx] = pipe->stream->timing.pix_clk_khz / 1000.0f;
-               if (pipe->stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
-                       v->pixel_clock[input_idx] /= 2;
 
 
                if (!pipe->surface){