Skip to content

Commit cc81951

Browse files
committed
drm/i915/dp: Pass connector DSC DPCD to drm_dp_dsc_sink_supported_input_bpcs()
Use the connector's DSC DPCD capabilities in drm_dp_dsc_sink_supported_input_bpcs(). 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 bb414c9 commit cc81951

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ static int intel_dp_dsc_compute_pipe_bpp(struct intel_dp *intel_dp,
20372037
* Get the maximum DSC bpc that will be supported by any valid
20382038
* link configuration and compressed bpp.
20392039
*/
2040-
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(intel_dp->dsc_dpcd, dsc_bpc);
2040+
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(connector->dp.dsc_dpcd, dsc_bpc);
20412041
for (i = 0; i < num_bpc; i++) {
20422042
pipe_bpp = dsc_bpc[i] * 3;
20432043
if (pipe_bpp < dsc_min_bpp)

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ static int intel_dp_dsc_mst_compute_link_config(struct intel_encoder *encoder,
185185
struct drm_connector_state *conn_state,
186186
struct link_config_limits *limits)
187187
{
188-
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
189-
struct intel_dp *intel_dp = &intel_mst->primary->dp;
190188
struct intel_connector *connector =
191189
to_intel_connector(conn_state->connector);
192190
struct drm_i915_private *i915 = to_i915(connector->base.dev);
@@ -209,7 +207,7 @@ static int intel_dp_dsc_mst_compute_link_config(struct intel_encoder *encoder,
209207
max_bpp = min_t(u8, dsc_max_bpc * 3, limits->pipe.max_bpp);
210208
min_bpp = limits->pipe.min_bpp;
211209

212-
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(intel_dp->dsc_dpcd,
210+
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(connector->dp.dsc_dpcd,
213211
dsc_bpc);
214212

215213
drm_dbg_kms(&i915->drm, "DSC Source supported min bpp %d max bpp %d\n",

0 commit comments

Comments
 (0)