mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
drm/i915/dp_mst: Use pipe_bpp->limits.{max/min}_bpp for dsc
The dsc limits->pipe.max/min_bpp are already set in intel_dp_compute_config_limits. Use the limits while computing the link config with DSC for MST. Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241217093244.3938132-11-ankit.k.nautiyal@intel.com
This commit is contained in:
parent
21ebc319fe
commit
a35dc4aee3
|
|
@ -396,14 +396,10 @@ static int mst_stream_dsc_compute_link_config(struct intel_dp *intel_dp,
|
|||
int i, num_bpc;
|
||||
u8 dsc_bpc[3] = {};
|
||||
int min_bpp, max_bpp, sink_min_bpp, sink_max_bpp;
|
||||
int dsc_max_bpc, dsc_min_bpc;
|
||||
int min_compressed_bpp, max_compressed_bpp;
|
||||
|
||||
dsc_max_bpc = intel_dp_dsc_max_src_input_bpc(display);
|
||||
dsc_min_bpc = intel_dp_dsc_min_src_input_bpc();
|
||||
|
||||
max_bpp = min(dsc_max_bpc * 3, limits->pipe.max_bpp);
|
||||
min_bpp = max(dsc_min_bpc * 3, limits->pipe.min_bpp);
|
||||
max_bpp = limits->pipe.max_bpp;
|
||||
min_bpp = limits->pipe.min_bpp;
|
||||
|
||||
num_bpc = drm_dp_dsc_sink_supported_input_bpcs(connector->dp.dsc_dpcd,
|
||||
dsc_bpc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user