[PATCH i-g-t 0/5] igt: reduce igt_crtc_for_pipe() usage

Jani Nikula
2026-03-06T13:24:08Z

Add igt_next_crtc() and igt_random_crtc() to let us remove a few more
igt_crtc_for_pipe() calls.

Jani Nikula (5):
lib/kms: add igt_next_crtc()
tests/intel/gem_pxp: use igt_next_crtc()
tests/intel/xe_pxp: use igt_next_crtc()
tests/kms_multipipe_modeset: use igt_next_crtc()
lib/kms: add igt_random_crtc() and use it in gem_eio

lib/igt_kms.c | 39 +++++++++++++++++++++++++++++++++++
lib/igt_kms.h | 2 ++
tests/intel/gem_eio.c | 7 +------
tests/intel/gem_pxp.c | 7 +++----
tests/intel/xe_pxp.c | 15 ++++++--------
tests/kms_multipipe_modeset.c | 32 +++++++++++++---------------
6 files changed, 65 insertions(+), 37 deletions(-)

--
2.47.3