]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Use helpers to align min/max compressed BPPs
authorImre Deak <imre.deak@intel.com>
Mon, 22 Dec 2025 15:35:41 +0000 (17:35 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 13 Jan 2026 16:42:18 +0000 (18:42 +0200)
commit4d2dd780970d33d4dd66c718077ee703938b0a71
tree729296eecb1ee9108150b00057c77e5b94b6e866
parent2bd5dd6e720952778233636e0d0dd1ede3563634
drm/i915/dp: Use helpers to align min/max compressed BPPs

The minimum/maximum compressed BPP values are aligned/bounded in
intel_dp_compute_link_bpp_limits() to the corresponding source limits.
The minimum compressed BPP value doesn't change afterwards, so no need
to align it again, remove that.

The maximum compressed BPP, which depends on the pipe BPP value still
needs to be aligned, since the pipe BPP value could change after the
above limits were computed, via intel_dp_force_dsc_pipe_bpp(). Use the
corresponding helper for this alignment instead of open-coding the same.

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251222153547.713360-15-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c