drm/i915/dp: Check for HAS_DSC_3ENGINES while configuring DSC slices
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 14 Apr 2025 02:42:56 +0000 (08:12 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 15 Apr 2025 05:44:26 +0000 (11:14 +0530)
commitda9b1c61e7f7b327dd70c5f073ba04d419a55ef8
tree414b2d680d16668e4dab3ebec6c9a3c32881db21
parent6998cfce0e1db58c730d08cadc6bfd71e26e2de0
drm/i915/dp: Check for HAS_DSC_3ENGINES while configuring DSC slices

DSC 12 slices configuration is used for some specific cases with
Ultrajoiner. This can be supported only when each of the 4 joined pipes
have 3 DSC engines each.

Add the missing check for 3 DSC engines support before using 3 DSC
slices per pipe.

Fixes: be7f5fcdf4a0 ("drm/i915/dp: Enable 3 DSC engines for 12 slices")
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: <stable@vger.kernel.org> # v6.14+
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250414024256.2782702-3-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c