Skip to content

Commit 031c19b

Browse files
committed
drm/i915/dp: Use connector DSC DPCD in intel_dp_mode_valid()
Use the connector's DSC DPCD capabilities in intel_dp_mode_valid(). 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 7bca1b8 commit 031c19b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,
12051205
intel_dp_mode_min_output_bpp(connector, mode));
12061206

12071207
if (HAS_DSC(dev_priv) &&
1208-
drm_dp_sink_supports_dsc(intel_dp->dsc_dpcd)) {
1208+
drm_dp_sink_supports_dsc(connector->dp.dsc_dpcd)) {
12091209
enum intel_output_format sink_format, output_format;
12101210
int pipe_bpp;
12111211

@@ -1223,11 +1223,11 @@ intel_dp_mode_valid(struct drm_connector *_connector,
12231223
*/
12241224
if (intel_dp_is_edp(intel_dp)) {
12251225
dsc_max_compressed_bpp =
1226-
drm_edp_dsc_sink_output_bpp(intel_dp->dsc_dpcd) >> 4;
1226+
drm_edp_dsc_sink_output_bpp(connector->dp.dsc_dpcd) >> 4;
12271227
dsc_slice_count =
1228-
drm_dp_dsc_sink_max_slice_count(intel_dp->dsc_dpcd,
1228+
drm_dp_dsc_sink_max_slice_count(connector->dp.dsc_dpcd,
12291229
true);
1230-
} else if (drm_dp_sink_supports_fec(intel_dp->fec_capable)) {
1230+
} else if (drm_dp_sink_supports_fec(connector->dp.fec_capability)) {
12311231
dsc_max_compressed_bpp =
12321232
intel_dp_dsc_get_max_compressed_bpp(dev_priv,
12331233
max_link_clock,

0 commit comments

Comments
 (0)