drm/amd/display: Fixed not set scaler bug.
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 3 Nov 2017 20:02:50 +0000 (16:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:35 +0000 (12:47 -0500)
New scaler parameter assign to dpp is after early return,
cause next flip scaler not program.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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_dpp_dscl.c

index 242a568294e24e49d47565d8553c4e6997f49af8..4b5b70907202a7bd13388d8b5950d2da2272352f 100644 (file)
@@ -650,6 +650,9 @@ void dpp1_dscl_set_scaler_manual_scale(
 
        if (memcmp(&dpp->scl_data, scl_data, sizeof(*scl_data)) == 0)
                return;
+
+       dpp->scl_data = *scl_data;
+
        /* Recout */
        dpp1_dscl_set_recout(dpp, &scl_data->recout);
 
@@ -701,5 +704,4 @@ void dpp1_dscl_set_scaler_manual_scale(
                SCL_H_NUM_TAPS_C, scl_data->taps.h_taps_c - 1);
 
        dpp1_dscl_set_scl_filter(dpp, scl_data, ycbcr);
-       dpp->scl_data = *scl_data;
 }