]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Simplify computing forced DSC BPP for DP-SST
authorImre Deak <imre.deak@intel.com>
Mon, 22 Dec 2025 15:35:44 +0000 (17:35 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 13 Jan 2026 16:42:20 +0000 (18:42 +0200)
commit2b68b9b80f9ee75d4e7e159aa082dcd8c1e4e05c
treefa997d5feaa0e108e337ef17959d6a366da173ee
parentce46682f89111fd0ded74a90c1ea04b36780221b
drm/i915/dp: Simplify computing forced DSC BPP for DP-SST

If dsc_compute_compressed_bpp() failed with a forced pipe BPP value
(where the forced pipe BPP value itself is valid within the min/max pipe
BPP limits), the function will also fail when called with the maximum
pipe BPP value: dsc_compute_compressed_bpp() will try all compressed
BPPs below the passed in pipe BPP value and if the function failed with
a given (low) compressed BPP value it will also fail with a compressed
BPP value higher than the one which failed already.

Based on the above remove the logic to retry computing a compressed BPP
value with the maximum pipe BPP value if computing the compressed BPP
failed already with the (lower) forced pipe BPP value.

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