Commit e58d866e authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

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: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c12eefc2
...@@ -650,6 +650,9 @@ void dpp1_dscl_set_scaler_manual_scale( ...@@ -650,6 +650,9 @@ void dpp1_dscl_set_scaler_manual_scale(
if (memcmp(&dpp->scl_data, scl_data, sizeof(*scl_data)) == 0) if (memcmp(&dpp->scl_data, scl_data, sizeof(*scl_data)) == 0)
return; return;
dpp->scl_data = *scl_data;
/* Recout */ /* Recout */
dpp1_dscl_set_recout(dpp, &scl_data->recout); dpp1_dscl_set_recout(dpp, &scl_data->recout);
...@@ -701,5 +704,4 @@ void dpp1_dscl_set_scaler_manual_scale( ...@@ -701,5 +704,4 @@ void dpp1_dscl_set_scaler_manual_scale(
SCL_H_NUM_TAPS_C, scl_data->taps.h_taps_c - 1); SCL_H_NUM_TAPS_C, scl_data->taps.h_taps_c - 1);
dpp1_dscl_set_scl_filter(dpp, scl_data, ycbcr); dpp1_dscl_set_scl_filter(dpp, scl_data, ycbcr);
dpp->scl_data = *scl_data;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment