Skip to content

lib/kms: Finish the igt_crtc_t API refactoring

Ville Syrjala igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17lib/kms: Replace igt_pipe_has_valid_output() with igt_crtc_has_valid_output()lib/igt_kms.c+7 -81 reply
2/17lib/kms: Replace igt_display_require_output_on_pipe() with igt_display_require_output_on_crtc()lib/igt_kms.c lib/igt_kms.h tests/intel/kms_ccs.c +2 more+11 -161 reply
3/17lib/kms: Replace igt_get_single_output_for_pipe() with igt_get_single_output_for_crtc()lib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_abm.c +7 more+17 -331 reply
4/17lib/kms: Make the igt_*_bpc_*() interfaces more abstractlib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_bypass.c +8 more+61 -480 replies
5/17tests/kms: Use igt_crtc_name()tests/intel/kms_dsc_helper.c tests/kms_bw.c+3 -20 replies
6/17tests/kms: Clean up crtc->pipe comparionstests/kms_display_modes.c tests/kms_plane_multiple.c tests/kms_tiled_display.c+3 -31 reply
7/17tests/vmwgfx/vmw_prime: Replace igt_pipe_crc_new() with igt_crtc_crc_new()tests/vmwgfx/vmw_prime.c+2 -20 replies
8/17lib/kms: Prefer "crtc" over "pipe" in function nameslib/igt_kms.c lib/igt_kms.h tests/intel/kms_dsc.c +1 more+5 -50 replies
9/17tests/kms_color*: Prefer "crtc" over "pipe" in function namestests/chamelium/kms_chamelium_color.c tests/kms_color.c tests/kms_color_helper.c +2 more+41 -410 replies
10/17tests/kms: Prefer "crtc" over "pipe" in function namestests/amdgpu/amd_freesync_video_mode.c tests/chamelium/kms_chamelium_sharpness_filter.c tests/intel/kms_busy.c +14 more+135 -1350 replies
11/17tests/kms_tiled_display: Remove mention of PIPE_NONEtests/kms_tiled_display.c+0 -10 replies
12/17tests/kms: Remove hand rolled get_vblank() stufftests/intel/kms_pipe_stress.c tests/prime_vgem.c+4 -480 replies
13/17lib/kms: Fix kmstest_get_vblank() docslib/igt_kms.c+1 -10 replies
14/17tests/kms: Pass crtc_index to kmstest_get_vbl_flag()tests/intel/perf_pmu.c tests/kms_vblank.c+8 -80 replies
15/17tests/kms: Pass crtc_index to kmstest_get_vblank()tests/drm_read.c tests/kms_cursor_legacy.c tests/kms_plane.c +1 more+80 -380 replies
16/17lib/kms: Introduce igt_crtc_get_vbl_flag()lib/igt_kms.c lib/igt_kms.h tests/intel/perf_pmu.c +2 more+28 -120 replies
17/17lib/kms: Introduce igt_crtc_get_vblank()lib/igt_kms.c lib/igt_kms.h tests/drm_read.c +3 more+72 -720 replies

Reviews trailers per patch

None of the 17 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJani Nikula
SeriesR-b
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH i-g-t 00/17] lib/kms: Finish the igt_crtc_t API refactoring

From: Ville Syrjälä <[email protected]>

Convert the remaining (more or less) igt_kms APIs to igt_crtc_t* from enum pipe.

To get rid of the kmstest_vbl*() stuff from most places I did some (technically functional) pipe to crtc_index conversions, and then added the igt_crtc_t* based igt_crtc_vbl*() wrappers.

There are also some cleanups of a few random leftovers from earlier conversion attempts.

I also did a bunch of renaming across the tree, just to reduce the appearance of the word "pipe". That should hopefully make it a bit easier to see which parts of the codebase still need work.

Ville Syrjälä (17):
lib/kms: Replace igt_pipe_has_valid_output() with
igt_crtc_has_valid_output()
lib/kms: Replace igt_display_require_output_on_pipe() with
igt_display_require_output_on_crtc()
lib/kms: Replace igt_get_single_output_for_pipe() with
igt_get_single_output_for_crtc()
lib/kms: Make the igt_*_bpc_*() interfaces more abstract tests/kms: Use igt_crtc_name()
tests/kms: Clean up crtc->pipe comparions tests/vmwgfx/vmw_prime: Replace igt_pipe_crc_new() with

    igt_crtc_crc_new()

lib/kms: Prefer "crtc" over "pipe" in function names tests/kms_color*: Prefer "crtc" over "pipe" in function names tests/kms: Prefer "crtc" over "pipe" in function names tests/kms_tiled_display: Remove mention of PIPE_NONE tests/kms: Remove hand rolled get_vblank() stuff lib/kms: Fix kmstest_get_vblank() docs
tests/kms: Pass crtc_index to kmstest_get_vbl_flag() tests/kms: Pass crtc_index to kmstest_get_vblank() lib/kms: Introduce igt_crtc_get_vbl_flag()
lib/kms: Introduce igt_crtc_get_vblank()

 lib/igt_kms.c                                 | 120 ++++++++++--------
 lib/igt_kms.h                                 |  19 +--
 tests/amdgpu/amd_abm.c                        |   3 +-
 tests/amdgpu/amd_bypass.c                     |   5 +-
 tests/amdgpu/amd_color.c                      |   3 +-
 tests/amdgpu/amd_dp_dsc.c                     |   7 +-
 tests/amdgpu/amd_freesync_video_mode.c        |   6 +-
 tests/amdgpu/amd_max_bpc.c                    |   4 +-
 tests/amdgpu/amd_multidisplay_modeset.c       |   2 +-
 tests/amdgpu/amd_psr.c                        |   3 +-
 tests/amdgpu/amd_replay.c                     |   3 +-
 tests/chamelium/kms_chamelium_color.c         |  22 ++--
 .../kms_chamelium_sharpness_filter.c          |   4 +-
 tests/drm_read.c                              |   4 +-
 tests/intel/gem_eio.c                         |   2 +-
 tests/intel/kms_busy.c                        |  10 +-
 tests/intel/kms_ccs.c                         |   3 +-
 tests/intel/kms_dsc.c                         |   4 +-
 tests/intel/kms_dsc_helper.c                  |   2 +-
 tests/intel/kms_flip_tiling.c                 |   4 +-
 tests/intel/kms_pipe_b_c_ivb.c                |  40 +++---
 tests/intel/kms_pipe_stress.c                 |  28 +---
 tests/intel/perf_pmu.c                        |   2 +-
 tests/kms_async_flips.c                       |   8 +-
 tests/kms_atomic.c                            |  26 ++--
 tests/kms_atomic_interruptible.c              |  16 +--
 tests/kms_atomic_transition.c                 |   6 +-
 tests/kms_bw.c                                |   3 +-
 tests/kms_color.c                             |  24 ++--
 tests/kms_color_helper.c                      |  34 ++---
 tests/kms_color_helper.h                      |   8 +-
 tests/kms_color_pipeline.c                    |   2 +-
 tests/kms_cursor_legacy.c                     | 119 ++++++++++-------
 tests/kms_display_modes.c                     |   2 +-
 tests/kms_dither.c                            |   4 +-
 tests/kms_hdr.c                               |  31 +++--
 tests/kms_pipe_crc_basic.c                    |  10 +-
 tests/kms_plane.c                             |   9 +-
 tests/kms_plane_alpha_blend.c                 |  10 +-
 tests/kms_plane_multiple.c                    |   2 +-
 tests/kms_plane_scaling.c                     |  40 +++---
 tests/kms_properties.c                        |  20 +--
 tests/kms_rotation_crc.c                      |  10 +-
 tests/kms_tiled_display.c                     |   3 +-
 tests/kms_universal_plane.c                   |  32 ++---
 tests/kms_vblank.c                            |  24 ++--
 tests/kms_vrr.c                               |   8 +-
 tests/nouveau_crc.c                           |   6 +-
 tests/prime_vgem.c                            |  28 +---
 tests/vmwgfx/vmw_prime.c                      |   4 +-
 50 files changed, 397 insertions(+), 392 deletions(-)
Signature · 1 line
2.52.0