aboutsummaryrefslogtreecommitdiffstats
path: root/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0483-drm-amd-display-stop-adjusting-scl-taps-when-scl-rat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0483-drm-amd-display-stop-adjusting-scl-taps-when-scl-rat.patch')
-rw-r--r--meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0483-drm-amd-display-stop-adjusting-scl-taps-when-scl-rat.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0483-drm-amd-display-stop-adjusting-scl-taps-when-scl-rat.patch b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0483-drm-amd-display-stop-adjusting-scl-taps-when-scl-rat.patch
new file mode 100644
index 00000000..1b0b7fc6
--- /dev/null
+++ b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0483-drm-amd-display-stop-adjusting-scl-taps-when-scl-rat.patch
@@ -0,0 +1,46 @@
+From 491b7450c04ad00380662bbe84dcc5820c9bf258 Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Thu, 25 May 2017 18:39:49 -0400
+Subject: [PATCH 0483/4131] drm/amd/display: stop adjusting scl taps when scl
+ ratio is one on dcn
+
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@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/dcn10/dcn10_transform.c | 18 ++++++++++--------
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_transform.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_transform.c
+index 6098058..d9815a9 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_transform.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_transform.c
+@@ -851,14 +851,16 @@ static bool transform_get_optimal_number_of_taps(
+ else
+ scl_data->taps.h_taps_c = in_taps->h_taps_c;
+
+- if (IDENTITY_RATIO(scl_data->ratios.horz))
+- scl_data->taps.h_taps = 1;
+- if (IDENTITY_RATIO(scl_data->ratios.vert))
+- scl_data->taps.v_taps = 1;
+- if (IDENTITY_RATIO(scl_data->ratios.horz_c))
+- scl_data->taps.h_taps_c = 1;
+- if (IDENTITY_RATIO(scl_data->ratios.vert_c))
+- scl_data->taps.v_taps_c = 1;
++ if (!xfm->ctx->dc->debug.always_scale) {
++ if (IDENTITY_RATIO(scl_data->ratios.horz))
++ scl_data->taps.h_taps = 1;
++ if (IDENTITY_RATIO(scl_data->ratios.vert))
++ scl_data->taps.v_taps = 1;
++ if (IDENTITY_RATIO(scl_data->ratios.horz_c))
++ scl_data->taps.h_taps_c = 1;
++ if (IDENTITY_RATIO(scl_data->ratios.vert_c))
++ scl_data->taps.v_taps_c = 1;
++ }
+
+ return true;
+ }
+--
+2.7.4
+