File tree Expand file tree Collapse file tree
drivers/gpu/drm/i915/display Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1608,9 +1608,9 @@ static int intel_dp_source_dsc_version_minor(struct drm_i915_private *i915)
16081608 return DISPLAY_VER (i915 ) >= 14 ? 2 : 1 ;
16091609}
16101610
1611- static int intel_dp_sink_dsc_version_minor (struct intel_dp * intel_dp )
1611+ static int intel_dp_sink_dsc_version_minor (const u8 dsc_dpcd [ DP_DSC_RECEIVER_CAP_SIZE ] )
16121612{
1613- return (intel_dp -> dsc_dpcd [DP_DSC_REV - DP_DSC_SUPPORT ] & DP_DSC_MINOR_MASK ) >>
1613+ return (dsc_dpcd [DP_DSC_REV - DP_DSC_SUPPORT ] & DP_DSC_MINOR_MASK ) >>
16141614 DP_DSC_MINOR_SHIFT ;
16151615}
16161616
@@ -1665,7 +1665,7 @@ static int intel_dp_dsc_compute_params(struct intel_encoder *encoder,
16651665 DP_DSC_MAJOR_MASK ) >> DP_DSC_MAJOR_SHIFT ;
16661666 vdsc_cfg -> dsc_version_minor =
16671667 min (intel_dp_source_dsc_version_minor (i915 ),
1668- intel_dp_sink_dsc_version_minor (intel_dp ));
1668+ intel_dp_sink_dsc_version_minor (intel_dp -> dsc_dpcd ));
16691669 if (vdsc_cfg -> convert_rgb )
16701670 vdsc_cfg -> convert_rgb =
16711671 intel_dp -> dsc_dpcd [DP_DSC_DEC_COLOR_FORMAT_CAP - DP_DSC_SUPPORT ] &
@@ -1707,7 +1707,7 @@ static bool intel_dp_dsc_supports_format(struct intel_dp *intel_dp,
17071707 break ;
17081708 case INTEL_OUTPUT_FORMAT_YCBCR420 :
17091709 if (min (intel_dp_source_dsc_version_minor (i915 ),
1710- intel_dp_sink_dsc_version_minor (intel_dp )) < 2 )
1710+ intel_dp_sink_dsc_version_minor (intel_dp -> dsc_dpcd )) < 2 )
17111711 return false;
17121712 sink_dsc_format = DP_DSC_YCbCr420_Native ;
17131713 break ;
You can’t perform that action at this time.
0 commit comments