drm/amd/display: stop adjusting scl taps when scl ratio is one on dcn
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 25 May 2017 22:39:49 +0000 (18:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:41 +0000 (18:07 -0400)
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

index 609805877508e80322751d02a6aab9d20b93e0f0..d9815a9916827e80a78b2dee77c038ed0d054bd3 100644 (file)
@@ -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;
 }