public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 00/21] tests/kms: More igt_crtc_t conversions
@ 2026-02-20 14:01 Ville Syrjala
  2026-02-20 14:01 ` [PATCH i-g-t 01/21] tests/intel/kms_flip_scaled_crc: Remove unused 'enum pipe pipe' Ville Syrjala
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: Ville Syrjala @ 2026-02-20 14:01 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Convert more tests to track/pass around igt_crtc_t instead of
enum pipe.

This gets rid of most 'enum pipe' typed variables under tests/.
The remaining ones are:
* active_pipes[] array
  - kms_vblank
  - kms_plane_alpha_blend
  - kms_pipe_crc_basic
  - kms_cursor_edge_walk
  - kms_cursor_crc
* uninitialized on stack enum pipe passed to
  intel_fbc_supported_on_chipset()
  - kms_psr
* incorrect pipe usage for igt_debugfs_crtc_dir()
  - kms_frontbuffer_tracking
* the big mess that still needs to be sorted:
  - kms_joiner*

Additionally a lot of crtc->pipe usage still remains:
- some will disappear once all external igt_kms functions get
  converted to igt_crtc_t. I still plan to send at least one
  cocci series for that
- some need to be converted to crtc->crtc_index for correctness
- some are used for local array indexing which probably should also
  be converted to crtc_index (or some other sensible thing)
- what should remain in the end are the actual crtc->pipe vs. PIPE_?
  comparisons used for hardware specific quirks and whatnot

Ville Syrjälä (21):
  tests/intel/kms_flip_scaled_crc: Remove unused 'enum pipe pipe'
  tests/kms_concurrent: Actually run the test over all connected crtcs
  tests/amdgpu/amd_abm: Don't use uninitialized 'pipe'
  tests/kms: Use 'enum pipe' over int'
  lib/kms: Add igt_crtc_for_crtc_id()
  tests/kms_lease: Use igt_crtc_t instead of enum pipe
  tests/kms_lease: Pass lease_t to prepare_crtc()
  tests/intel/kms_frontbuffer_tracking: Use igt_crtc_t instead of enum
    pipe
  tests/kms_plane_scaling: Use igt_crtc_t instead of enum pipe
  tests/drm_read: Use igt_crtc_t instead of enum pipe
  tests/intel/kms_psr2_sf: Convert pipes[] to crtcs[]
  tests/kms_vblank: Use igt_crtc_t instead of enum pipe
  tests/kms_plane_multiple: Use igt_crtc_t instead of enum pipe
  tests/kms_tiled_display: Use igt_crtc_t instead of enum pipe
  tests/intel/kms_psr: Use igt_crtc_t instead of enum pipe
  tests/kms_prime: Use igt_crtc_t instead of enum pipe
  tests/chamelium: Use igt_crtc_t instead of enum pipe
  tests/kms: Use igt_crtc_t instead of enum pipe, part 1
  tests/kms: Use igt_crtc_t instead of enum pipe, part 2
  tests/kms: Use igt_crtc_t instead of enum pipe, part 3
  tests/kms: Use igt_crtc_t instead of enum pipe, part 4

 lib/igt_kms.c                                 |  12 ++
 lib/igt_kms.h                                 |   1 +
 tests/amdgpu/amd_abm.c                        |  34 +++---
 tests/amdgpu/amd_bypass.c                     |   7 +-
 tests/amdgpu/amd_color.c                      |   7 +-
 tests/amdgpu/amd_cursor_overlay.c             |  28 ++---
 tests/amdgpu/amd_dp_dsc.c                     |  12 +-
 tests/amdgpu/amd_hotplug.c                    |   4 +-
 tests/amdgpu/amd_ilr.c                        |   8 +-
 tests/amdgpu/amd_link_settings.c              |   8 +-
 tests/amdgpu/amd_mall.c                       |   4 +-
 tests/amdgpu/amd_max_bpc.c                    |   6 +-
 tests/amdgpu/amd_mem_leak.c                   |   4 +-
 tests/amdgpu/amd_odm.c                        |   4 +-
 tests/amdgpu/amd_plane.c                      |  14 +--
 tests/amdgpu/amd_psr.c                        |  23 ++--
 tests/amdgpu/amd_replay.c                     |   7 +-
 tests/amdgpu/amd_subvp.c                      |   4 +-
 tests/chamelium/kms_chamelium_edid.c          |  13 +-
 tests/chamelium/kms_chamelium_helper.c        |  10 +-
 tests/chamelium/kms_chamelium_helper.h        |   2 +-
 tests/chamelium/kms_chamelium_hpd.c           |   8 +-
 .../kms_chamelium_sharpness_filter.c          |  35 +++---
 tests/drm_read.c                              |  36 +++---
 tests/intel/kms_big_fb.c                      |  28 ++---
 tests/intel/kms_ccs.c                         |   8 +-
 tests/intel/kms_cdclk.c                       |  16 ++-
 tests/intel/kms_dirtyfb.c                     |  25 ++--
 tests/intel/kms_dp_linktrain_fallback.c       |  11 +-
 tests/intel/kms_fb_coherency.c                |   8 +-
 tests/intel/kms_fbc_dirty_rect.c              |  17 ++-
 tests/intel/kms_flip_scaled_crc.c             |   1 -
 tests/intel/kms_flip_tiling.c                 |  12 +-
 tests/intel/kms_frontbuffer_tracking.c        |  99 +++++++--------
 tests/intel/kms_mmap_write_crc.c              |   8 +-
 tests/intel/kms_pipe_stress.c                 |  65 +++++-----
 tests/intel/kms_pm_lpsp.c                     |   7 +-
 tests/intel/kms_psr.c                         |  10 +-
 tests/intel/kms_psr2_sf.c                     |  93 +++++++-------
 tests/intel/kms_pwrite_crc.c                  |   8 +-
 tests/intel/kms_sharpness_filter.c            |  25 ++--
 tests/intel/perf_pmu.c                        |  10 +-
 tests/intel/prime_mmap_kms.c                  |   6 +-
 tests/kms_async_flips.c                       |  13 +-
 tests/kms_bw.c                                |   2 -
 tests/kms_concurrent.c                        |  45 +++----
 tests/kms_content_protection.c                |   5 +-
 tests/kms_cursor_crc.c                        |  66 +++++-----
 tests/kms_cursor_edge_walk.c                  |  13 +-
 tests/kms_hdr.c                               |  32 ++---
 tests/kms_invalid_mode.c                      |   7 +-
 tests/kms_lease.c                             |  35 +++---
 tests/kms_plane_cursor.c                      |  20 ++-
 tests/kms_plane_lowres.c                      |  11 +-
 tests/kms_plane_multiple.c                    |  88 ++++++++------
 tests/kms_plane_scaling.c                     | 114 +++++++++---------
 tests/kms_prime.c                             |  14 +--
 tests/kms_sequence.c                          |  12 +-
 tests/kms_tiled_display.c                     |  14 +--
 tests/kms_vblank.c                            |  55 +++++----
 tests/nouveau_crc.c                           |  31 +++--
 tests/vmwgfx/vmw_prime.c                      |  10 +-
 tools/amd_hdmi_compliance.c                   |   4 +-
 tools/intel_hdcp.c                            |   4 +-
 64 files changed, 652 insertions(+), 691 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2026-02-21  6:32 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 14:01 [PATCH i-g-t 00/21] tests/kms: More igt_crtc_t conversions Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 01/21] tests/intel/kms_flip_scaled_crc: Remove unused 'enum pipe pipe' Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 02/21] tests/kms_concurrent: Actually run the test over all connected crtcs Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 03/21] tests/amdgpu/amd_abm: Don't use uninitialized 'pipe' Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 04/21] tests/kms: Use 'enum pipe' over int' Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 05/21] lib/kms: Add igt_crtc_for_crtc_id() Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 06/21] tests/kms_lease: Use igt_crtc_t instead of enum pipe Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 07/21] tests/kms_lease: Pass lease_t to prepare_crtc() Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 08/21] tests/intel/kms_frontbuffer_tracking: Use igt_crtc_t instead of enum pipe Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 09/21] tests/kms_plane_scaling: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 10/21] tests/drm_read: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 11/21] tests/intel/kms_psr2_sf: Convert pipes[] to crtcs[] Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 12/21] tests/kms_vblank: Use igt_crtc_t instead of enum pipe Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 13/21] tests/kms_plane_multiple: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 14/21] tests/kms_tiled_display: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 15/21] tests/intel/kms_psr: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 16/21] tests/kms_prime: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 17/21] tests/chamelium: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 18/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 1 Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 19/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 2 Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 20/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 3 Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 21/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 4 Ville Syrjala
2026-02-20 17:33 ` ✓ Xe.CI.BAT: success for tests/kms: More igt_crtc_t conversions Patchwork
2026-02-20 17:49 ` ✓ i915.CI.BAT: " Patchwork
2026-02-21  1:27 ` ✗ i915.CI.Full: failure " Patchwork
2026-02-21  6:32 ` ✗ Xe.CI.FULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox