Skip to content

Commit 0d8665e

Browse files
committed
drm/i915/dp: Use connector DSC DPCD in intel_dp_supports_dsc()
Use the connector's DSC DPCD capabilities in intel_dp_supports_dsc(). Reviewed-by: Stanislav Lisovskiy <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 987c945 commit 0d8665e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,14 +1377,14 @@ static bool intel_dp_supports_fec(struct intel_dp *intel_dp,
13771377
drm_dp_sink_supports_fec(connector->dp.fec_capability);
13781378
}
13791379

1380-
static bool intel_dp_supports_dsc(struct intel_dp *intel_dp,
1380+
static bool intel_dp_supports_dsc(const struct intel_connector *connector,
13811381
const struct intel_crtc_state *crtc_state)
13821382
{
13831383
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP) && !crtc_state->fec_enable)
13841384
return false;
13851385

13861386
return intel_dsc_source_support(crtc_state) &&
1387-
drm_dp_sink_supports_dsc(intel_dp->dsc_dpcd);
1387+
drm_dp_sink_supports_dsc(connector->dp.dsc_dpcd);
13881388
}
13891389

13901390
static int intel_dp_hdmi_compute_bpc(struct intel_dp *intel_dp,
@@ -2120,7 +2120,7 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
21202120
pipe_config->fec_enable = !intel_dp_is_edp(intel_dp) &&
21212121
intel_dp_supports_fec(intel_dp, connector, pipe_config);
21222122

2123-
if (!intel_dp_supports_dsc(intel_dp, pipe_config))
2123+
if (!intel_dp_supports_dsc(connector, pipe_config))
21242124
return -EINVAL;
21252125

21262126
if (!intel_dp_dsc_supports_format(intel_dp, pipe_config->output_format))

0 commit comments

Comments
 (0)