diff options
author | Jani Nikula <[email protected]> | 2021-06-10 12:05:28 +0300 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2021-06-28 07:43:52 -0400 |
commit | a1934772719333afc47d776049b65231c2704317 (patch) | |
tree | 64f0b66a2e2f1085364586c28ab1a79d8b5e7653 /drivers/gpu/drm/i915/display/intel_dp_mst.c | |
parent | 2328e1b35ac2bb003236c3268aabe456ffab8b56 (diff) |
drm/i915/dsc: abstract helpers to get bigjoiner primary/secondary crtc
Add a single point of truth for figuring out the primary/secondary crtc
for bigjoiner instead of duplicating the magic pipe +/- 1 in multiple
places.
Also fix the pipe validity checks to properly take non-contiguous pipes
into account. The current checks may theoretically overflow
i915->pipe_to_crtc_mapping[pipe], albeit with a warning, due to fused
off pipes, as INTEL_NUM_PIPES() returns the actual number of pipes on
the platform, and the check is for INTEL_NUM_PIPES() == pipe + 1.
Prefer primary/secondary terminology going forward.
v2:
- Improved abstractions for pipe validity etc.
Fixes: 8a029c113b17 ("drm/i915/dp: Modify VDSC helpers to configure DSC for Bigjoiner slave")
Fixes: d961eb20adb6 ("drm/i915/bigjoiner: atomic commit changes for uncompressed joiner")
Cc: Animesh Manna <[email protected]>
Cc: Manasi Navare <[email protected]>
Cc: Vandita Kulkarni <[email protected]>
Reviewed-by: Manasi Navare <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 17203224f0536cf223dc5789028d04a768d96ec3)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions