@@ -1691,10 +1691,10 @@ static int intel_dp_dsc_compute_params(const struct intel_connector *connector,
1691
1691
return drm_dsc_compute_rc_parameters (vdsc_cfg );
1692
1692
}
1693
1693
1694
- static bool intel_dp_dsc_supports_format (struct intel_dp * intel_dp ,
1694
+ static bool intel_dp_dsc_supports_format (const struct intel_connector * connector ,
1695
1695
enum intel_output_format output_format )
1696
1696
{
1697
- struct drm_i915_private * i915 = dp_to_i915 ( intel_dp );
1697
+ struct drm_i915_private * i915 = to_i915 ( connector -> base . dev );
1698
1698
u8 sink_dsc_format ;
1699
1699
1700
1700
switch (output_format ) {
@@ -1706,15 +1706,15 @@ static bool intel_dp_dsc_supports_format(struct intel_dp *intel_dp,
1706
1706
break ;
1707
1707
case INTEL_OUTPUT_FORMAT_YCBCR420 :
1708
1708
if (min (intel_dp_source_dsc_version_minor (i915 ),
1709
- intel_dp_sink_dsc_version_minor (intel_dp -> dsc_dpcd )) < 2 )
1709
+ intel_dp_sink_dsc_version_minor (connector -> dp . dsc_dpcd )) < 2 )
1710
1710
return false;
1711
1711
sink_dsc_format = DP_DSC_YCbCr420_Native ;
1712
1712
break ;
1713
1713
default :
1714
1714
return false;
1715
1715
}
1716
1716
1717
- return drm_dp_dsc_sink_supports_format (intel_dp -> dsc_dpcd , sink_dsc_format );
1717
+ return drm_dp_dsc_sink_supports_format (connector -> dp . dsc_dpcd , sink_dsc_format );
1718
1718
}
1719
1719
1720
1720
static bool is_bw_sufficient_for_dsc_config (u16 compressed_bpp , u32 link_clock ,
@@ -2124,7 +2124,7 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
2124
2124
if (!intel_dp_supports_dsc (connector , pipe_config ))
2125
2125
return - EINVAL ;
2126
2126
2127
- if (!intel_dp_dsc_supports_format (intel_dp , pipe_config -> output_format ))
2127
+ if (!intel_dp_dsc_supports_format (connector , pipe_config -> output_format ))
2128
2128
return - EINVAL ;
2129
2129
2130
2130
/*
0 commit comments