File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 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)
1608
1608
return DISPLAY_VER (i915 ) >= 14 ? 2 : 1 ;
1609
1609
}
1610
1610
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 ] )
1612
1612
{
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 ) >>
1614
1614
DP_DSC_MINOR_SHIFT ;
1615
1615
}
1616
1616
@@ -1665,7 +1665,7 @@ static int intel_dp_dsc_compute_params(struct intel_encoder *encoder,
1665
1665
DP_DSC_MAJOR_MASK ) >> DP_DSC_MAJOR_SHIFT ;
1666
1666
vdsc_cfg -> dsc_version_minor =
1667
1667
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 ));
1669
1669
if (vdsc_cfg -> convert_rgb )
1670
1670
vdsc_cfg -> convert_rgb =
1671
1671
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,
1707
1707
break ;
1708
1708
case INTEL_OUTPUT_FORMAT_YCBCR420 :
1709
1709
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 )
1711
1711
return false;
1712
1712
sink_dsc_format = DP_DSC_YCbCr420_Native ;
1713
1713
break ;
You can’t perform that action at this time.
0 commit comments