[PATCH 19/19] drm/amd/display: stop adjusting scl taps when scl ratio is one on dcn

Harry Wentland harry.wentland at amd.com
Wed May 31 15:52:18 UTC 2017


From: Dmytro Laktyushkin <Dmytro.Laktyushkin at amd.com>

Change-Id: I7df3470eb793f91e9a3d765b476bf181a56663b3
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin at amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at 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 609805877508..d9815a991682 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.11.0



More information about the amd-gfx mailing list