drm/amd/display: Fixed not set scaler bug.

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>
This commit is contained in:
Yongqiang Sun 2017-11-03 16:02:50 -04:00 committed by Alex Deucher
parent c12eefc257
commit e58d866e8d
1 changed files with 3 additions and 1 deletions

View 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;
}