drm/i915/dsc: Add intel_dsc_get_slice_config()

Add intel_dsc_get_slice_config() and move the logic to select a given
slice configuration to that function from the configuration loop in
intel_dp_dsc_get_slice_count(). The same functionality can be used by
other outputs like DSI as well, done as a follow-up.

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260114162232.92731-12-imre.deak@intel.com
This commit is contained in:
Imre Deak 2026-01-14 18:22:28 +02:00
commit 91f0a94974
3 changed files with 58 additions and 15 deletions