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ä <ville.syrjala@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231006133727.1822579-11-imre.deak@intel.com
This commit is contained in:
parent
bb414c941b
commit
cc81951d9a
@ -2037,7 +2037,7 @@ static int intel_dp_dsc_compute_pipe_bpp(struct intel_dp *intel_dp,
|
||||
* Get the maximum DSC bpc that will be supported by any valid
|
||||
* link configuration and compressed bpp.
|
||||
*/
|
||||
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(intel_dp->dsc_dpcd, dsc_bpc);
|
||||
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(connector->dp.dsc_dpcd, dsc_bpc);
|
||||
for (i = 0; i < num_bpc; i++) {
|
||||
pipe_bpp = dsc_bpc[i] * 3;
|
||||
if (pipe_bpp < dsc_min_bpp)
|
||||
|
@ -185,8 +185,6 @@ static int intel_dp_dsc_mst_compute_link_config(struct intel_encoder *encoder,
|
||||
struct drm_connector_state *conn_state,
|
||||
struct link_config_limits *limits)
|
||||
{
|
||||
struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder);
|
||||
struct intel_dp *intel_dp = &intel_mst->primary->dp;
|
||||
struct intel_connector *connector =
|
||||
to_intel_connector(conn_state->connector);
|
||||
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,
|
||||
max_bpp = min_t(u8, dsc_max_bpc * 3, limits->pipe.max_bpp);
|
||||
min_bpp = limits->pipe.min_bpp;
|
||||
|
||||
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(intel_dp->dsc_dpcd,
|
||||
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(connector->dp.dsc_dpcd,
|
||||
dsc_bpc);
|
||||
|
||||
drm_dbg_kms(&i915->drm, "DSC Source supported min bpp %d max bpp %d\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user