@@ -695,15 +695,14 @@ static void glk_program_nearest_filter_coefs(struct intel_display *display,
695
695
GLK_PS_COEF_INDEX_SET (pipe , id , set ), 0 );
696
696
}
697
697
698
- static u32 skl_scaler_get_filter_select (enum drm_scaling_filter filter , int set )
698
+ static u32 skl_scaler_get_filter_select (enum drm_scaling_filter filter )
699
699
{
700
- if (filter == DRM_SCALING_FILTER_NEAREST_NEIGHBOR ) {
700
+ if (filter == DRM_SCALING_FILTER_NEAREST_NEIGHBOR )
701
701
return (PS_FILTER_PROGRAMMED |
702
- PS_Y_VERT_FILTER_SELECT (set ) |
703
- PS_Y_HORZ_FILTER_SELECT (set ) |
704
- PS_UV_VERT_FILTER_SELECT (set ) |
705
- PS_UV_HORZ_FILTER_SELECT (set ));
706
- }
702
+ PS_Y_VERT_FILTER_SELECT (0 ) |
703
+ PS_Y_HORZ_FILTER_SELECT (0 ) |
704
+ PS_UV_VERT_FILTER_SELECT (0 ) |
705
+ PS_UV_HORZ_FILTER_SELECT (0 ));
707
706
708
707
return PS_FILTER_MEDIUM ;
709
708
}
@@ -761,7 +760,7 @@ void skl_pfit_enable(const struct intel_crtc_state *crtc_state)
761
760
id = scaler_state -> scaler_id ;
762
761
763
762
ps_ctrl = PS_SCALER_EN | PS_BINDING_PIPE | scaler_state -> scalers [id ].mode |
764
- skl_scaler_get_filter_select (crtc_state -> hw .scaling_filter , 0 );
763
+ skl_scaler_get_filter_select (crtc_state -> hw .scaling_filter );
765
764
766
765
trace_intel_pipe_scaler_update_arm (crtc , id , x , y , width , height );
767
766
@@ -827,7 +826,7 @@ skl_program_plane_scaler(struct intel_dsb *dsb,
827
826
}
828
827
829
828
ps_ctrl = PS_SCALER_EN | PS_BINDING_PLANE (plane -> id ) | scaler -> mode |
830
- skl_scaler_get_filter_select (plane_state -> hw .scaling_filter , 0 );
829
+ skl_scaler_get_filter_select (plane_state -> hw .scaling_filter );
831
830
832
831
trace_intel_plane_scaler_update_arm (plane , scaler_id ,
833
832
crtc_x , crtc_y , crtc_w , crtc_h );
0 commit comments