[PATCH i-g-t 0/8] lib/igt_kms: pipe vs CRTC index cleanups

Jani Nikula
2026-01-27T11:56:14Z

Some manual CRTC index vs pipe cleanups to complement Ville's coccinelle
changes.

Superceeds [1].

BR,
Jani.

[1] https://lore.kernel.org/r/cover.1768906414.git.jani.nikula@intel.com

Jani Nikula (8):
lib/igt_kms: Drop the ioctl fallback for CRTC id to pipe mapping
lib/igt_kms: Remove kmstest_pipe_to_index()
tests/kms_setmode: drop redundant drmModeGetCrtc() call
tests/kms_setmode: use CRTC index instead of pipe for
intel_drrs_disable()
tests/kms_setmode: use __intel_get_pipe_from_crtc_index() directly
lib/igt_kms: Always return CRTC index from
kmstest_get_pipe_from_crtc_id()
lib/igt_debugfs: rename igt_debugfs_pipe_dir() to
igt_debugfs_crtc_dir()
lib/i915/drrs: switch the interface from pipe to CRTC index

lib/i915/intel_drrs.c | 36 ++++++------
lib/i915/intel_drrs.h | 8 +--
lib/i915/intel_fbc.c | 4 +-
lib/igt_debugfs.c | 10 ++--
lib/igt_debugfs.h | 4 +-
lib/igt_kms.c | 77 ++++++--------------------
lib/igt_kms.h | 4 +-
tests/intel/kms_fbcon_fbt.c | 6 +-
tests/intel/kms_frontbuffer_tracking.c | 2 +-
tests/kms_async_flips.c | 10 ++--
tests/kms_setmode.c | 14 ++---
tests/nouveau_crc.c | 2 +-
12 files changed, 66 insertions(+), 111 deletions(-)

--
2.47.3