@@ -823,11 +823,11 @@ u16 intel_dp_dsc_get_max_compressed_bpp(struct drm_i915_private *i915,
823
823
return bits_per_pixel ;
824
824
}
825
825
826
- u8 intel_dp_dsc_get_slice_count (struct intel_dp * intel_dp ,
826
+ u8 intel_dp_dsc_get_slice_count (const struct intel_connector * connector ,
827
827
int mode_clock , int mode_hdisplay ,
828
828
bool bigjoiner )
829
829
{
830
- struct drm_i915_private * i915 = dp_to_i915 ( intel_dp );
830
+ struct drm_i915_private * i915 = to_i915 ( connector -> base . dev );
831
831
u8 min_slice_count , i ;
832
832
int max_slice_width ;
833
833
@@ -845,7 +845,7 @@ u8 intel_dp_dsc_get_slice_count(struct intel_dp *intel_dp,
845
845
if (mode_clock >= ((i915 -> display .cdclk .max_cdclk_freq * 85 ) / 100 ))
846
846
min_slice_count = max_t (u8 , min_slice_count , 2 );
847
847
848
- max_slice_width = drm_dp_dsc_sink_max_slice_width (intel_dp -> dsc_dpcd );
848
+ max_slice_width = drm_dp_dsc_sink_max_slice_width (connector -> dp . dsc_dpcd );
849
849
if (max_slice_width < DP_DSC_MIN_SLICE_WIDTH_VALUE ) {
850
850
drm_dbg_kms (& i915 -> drm ,
851
851
"Unsupported slice width %d by DP DSC Sink device\n" ,
@@ -862,7 +862,7 @@ u8 intel_dp_dsc_get_slice_count(struct intel_dp *intel_dp,
862
862
u8 test_slice_count = valid_dsc_slicecount [i ] << bigjoiner ;
863
863
864
864
if (test_slice_count >
865
- drm_dp_dsc_sink_max_slice_count (intel_dp -> dsc_dpcd , false))
865
+ drm_dp_dsc_sink_max_slice_count (connector -> dp . dsc_dpcd , false))
866
866
break ;
867
867
868
868
/* big joiner needs small joiner to be enabled */
@@ -1238,7 +1238,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,
1238
1238
output_format ,
1239
1239
pipe_bpp , 64 );
1240
1240
dsc_slice_count =
1241
- intel_dp_dsc_get_slice_count (intel_dp ,
1241
+ intel_dp_dsc_get_slice_count (connector ,
1242
1242
target_clock ,
1243
1243
mode -> hdisplay ,
1244
1244
bigjoiner );
@@ -2161,7 +2161,7 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
2161
2161
u8 dsc_dp_slice_count ;
2162
2162
2163
2163
dsc_dp_slice_count =
2164
- intel_dp_dsc_get_slice_count (intel_dp ,
2164
+ intel_dp_dsc_get_slice_count (connector ,
2165
2165
adjusted_mode -> crtc_clock ,
2166
2166
adjusted_mode -> crtc_hdisplay ,
2167
2167
pipe_config -> bigjoiner_pipes );
0 commit comments