Commit 4d2dd78
committed
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.com1 parent 2bd5dd6 commit 4d2dd78
1 file changed
Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2218 | 2218 | | |
2219 | 2219 | | |
2220 | 2220 | | |
2221 | | - | |
2222 | 2221 | | |
2223 | 2222 | | |
2224 | 2223 | | |
| 2224 | + | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
| 2228 | + | |
| 2229 | + | |
2235 | 2230 | | |
2236 | 2231 | | |
2237 | 2232 | | |
| |||
2347 | 2342 | | |
2348 | 2343 | | |
2349 | 2344 | | |
2350 | | - | |
2351 | | - | |
2352 | 2345 | | |
2353 | 2346 | | |
2354 | 2347 | | |
| |||
2368 | 2361 | | |
2369 | 2362 | | |
2370 | 2363 | | |
2371 | | - | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | | - | |
2378 | 2364 | | |
2379 | | - | |
| 2365 | + | |
| 2366 | + | |
2380 | 2367 | | |
2381 | 2368 | | |
2382 | 2369 | | |
| |||
0 commit comments