summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/calcs
diff options
context:
space:
mode:
authorAndrey Grodzovsky2017-07-26 21:51:31 +0200
committerAlex Deucher2017-09-27 00:15:55 +0200
commitcdc95cbb4cc29679e6116548d6e39d02a2b91649 (patch)
tree53d551445849004240da5a3529d0e882ff415eb7 /drivers/gpu/drm/amd/display/dc/calcs
parentdrm/amd/display: Add per surface validation hook. (diff)
downloadkernel-qcow2-linux-cdc95cbb4cc29679e6116548d6e39d02a2b91649.tar.gz
kernel-qcow2-linux-cdc95cbb4cc29679e6116548d6e39d02a2b91649.tar.xz
kernel-qcow2-linux-cdc95cbb4cc29679e6116548d6e39d02a2b91649.zip
drm/amd/display: add preferred mode from Video Format Preference Data Block
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/calcs')
-rw-r--r--drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c2
1 files changed, 0 insertions, 2 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 875b98dae6e1..be6e3ca9fb0d 100644
--- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
+++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
@@ -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){