Commit c0aa7cf4 authored by Timur Kristóf's avatar Timur Kristóf Committed by Alex Deucher
Browse files

drm/amd/display: Properly clear SCL_*_FILTER_CONTROL on DCE6



Previously, the code would set a bit field which didn't exist
on DCE6 so it would be effectively a no-op.

Fixes: b70aaf55 ("drm/amd/display: dce_transform: add DCE6 specific macros,functions")
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarTimur Kristóf <timur.kristof@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d60f9c45
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -527,8 +527,7 @@ static void dce60_transform_set_scaler(
		if (coeffs_v != xfm_dce->filter_v || coeffs_h != xfm_dce->filter_h) {
			/* 4. Program vertical filters */
			if (xfm_dce->filter_v == NULL)
				REG_SET(SCL_VERT_FILTER_CONTROL, 0,
						SCL_V_2TAP_HARDCODE_COEF_EN, 0);
				REG_WRITE(SCL_VERT_FILTER_CONTROL, 0);
			program_multi_taps_filter(
					xfm_dce,
					data->taps.v_taps,
@@ -542,8 +541,7 @@ static void dce60_transform_set_scaler(

			/* 5. Program horizontal filters */
			if (xfm_dce->filter_h == NULL)
				REG_SET(SCL_HORZ_FILTER_CONTROL, 0,
						SCL_H_2TAP_HARDCODE_COEF_EN, 0);
				REG_WRITE(SCL_HORZ_FILTER_CONTROL, 0);
			program_multi_taps_filter(
					xfm_dce,
					data->taps.h_taps,