Skip to content

lib/kms: Clean up more of igt_kms API

Ville Syrjala igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19tests/kms_plane_multiple: Clean up n_planes stufftests/kms_plane_multiple.c+5 -30 replies
2/19tests/kms_async_flips: Remove redundant data.crtc_idtests/kms_async_flips.c+11 -181 reply
3/19tests/kms_lease: Consolidate igt_crtc_for_pipe() callstests/kms_lease.c+19 -120 replies
4/19tests/kms: Consolidate igt_crtc_for_pipe() callstests/amdgpu/amd_mode_switch.c tests/amdgpu/amd_multidisplay_modeset.c tests/amdgpu/amd_odm.c +6 more+54 -400 replies
5/19lib/kms: Introduce igt_first_crtc_with_single_output()lib/igt_kms.c lib/igt_kms.h+17 -01 reply
6/19tests/kms: Use igt_first_crtc_with_single_output()tests/intel/gem_exec_reloc.c tests/kms_plane.c tests/kms_plane_scaling.c+8 -130 replies
7/19lib/kms: Introduce and use igt_first_crtc()lib/igt_kms.c lib/igt_kms.h tests/amdgpu/amd_abm.c +13 more+35 -181 reply
8/19tests/kms: Stop using igt_require_pipe()lib/igt_kms.c lib/igt_kms.h tests/chamelium/kms_chamelium_color.c +1 more+1 -280 replies
9/19lib/kms: Replace get_num_scalers() with igt_crtc_num_scalers()lib/igt_kms.c lib/igt_kms.h tests/kms_hdr.c +1 more+21 -210 replies
10/19lib/kms: Pass igt_crtc_t* to igt_max_bpc_constraint()lib/igt_kms.c lib/igt_kms.h tests/kms_color.c +2 more+10 -80 replies
11/19lib/kms: Introduce for_each_plane_on_crtc()lib/igt_kms.h+13 -00 replies
12/19tests/kms: Use for_each_plane_on_crtc()lib/igt_kms.c tests/amdgpu/amd_cursor_overlay.c tests/intel/kms_big_fb.c +18 more+78 -501 reply
13/19lib/kms: Nuke for_each_plane_on_pipe()lib/igt_kms.h+0 -140 replies
14/19tests/kms: Switch to for_each_valid_output_on_crtc_local()tests/kms_display_modes.c tests/kms_plane_multiple.c+6 -80 replies
15/19tests/kms: Replace igt_pipe_connector_valid() with igt_crtc_connector_valid()lib/igt_kms.c tests/amdgpu/amd_freesync_video_mode.c tests/amdgpu/amd_ilr.c +6 more+12 -120 replies
16/19lib/kms: Intreoduce for_each_valid_output_on_crtc()lib/igt_kms.h+14 -00 replies
17/19tests/intel/kms_frontbuffer_tracking: Use for_each_valid_output_on_crtc()tests/intel/kms_frontbuffer_tracking.c+1 -10 replies
18/19tests/kms: Use for_each_valid_output_on_crtc()lib/igt_kms.c tests/amdgpu/amd_abm.c tests/chamelium/kms_chamelium_color.c +15 more+98 -460 replies
19/19lib/kms: Nuke for_each_valid_output_on_pipe()lib/igt_kms.h+0 -271 reply

Reviews trailers per patch

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

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

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/19] lib/kms: Clean up more of igt_kms API

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

Adjust more of the igt_kms API to pass around igt_crtc_t* instead of enum pipe.

I also wanted to have a better idea where in the tests we're still using igt_crtc_for_pipe(), so there's some cleanup around that. And then I added some new functions into igt_kms to replace some of those with more sensible things.

This was supposed to be the last treewide series I'd do, but it naturally became too big. So I cut it roughly in the middle, and this is the first part. The second part is already done, but I'll hang on to it until this gets in.

Ville Syrjälä (19):
tests/kms_plane_multiple: Clean up n_planes stuff tests/kms_async_flips: Remove redundant data.crtc_id tests/kms_lease: Consolidate igt_crtc_for_pipe() calls tests/kms: Consolidate igt_crtc_for_pipe() calls lib/kms: Introduce igt_first_crtc_with_single_output() tests/kms: Use igt_first_crtc_with_single_output() lib/kms: Introduce and use igt_first_crtc() tests/kms: Stop using igt_require_pipe()
lib/kms: Replace get_num_scalers() with igt_crtc_num_scalers() lib/kms: Pass igt_crtc_t* to igt_max_bpc_constraint() lib/kms: Introduce for_each_plane_on_crtc() tests/kms: Use for_each_plane_on_crtc()
lib/kms: Nuke for_each_plane_on_pipe()
tests/kms: Switch to for_each_valid_output_on_crtc_local() tests/kms: Replace igt_pipe_connector_valid() with
igt_crtc_connector_valid()
lib/kms: Intreoduce for_each_valid_output_on_crtc() tests/intel/kms_frontbuffer_tracking: Use
for_each_valid_output_on_crtc()
tests/kms: Use for_each_valid_output_on_crtc() lib/kms: Nuke for_each_valid_output_on_pipe()

 lib/igt_kms.c                                 | 83 +++++++++++++------
 lib/igt_kms.h                                 | 60 ++++----------
 tests/amdgpu/amd_abm.c                        | 20 +++--
 tests/amdgpu/amd_assr.c                       |  2 +-
 tests/amdgpu/amd_bypass.c                     |  2 +-
 tests/amdgpu/amd_color.c                      |  2 +-
 tests/amdgpu/amd_cursor_overlay.c             |  2 +-
 tests/amdgpu/amd_freesync_video_mode.c        |  2 +-
 tests/amdgpu/amd_ilr.c                        |  2 +-
 tests/amdgpu/amd_link_settings.c              |  2 +-
 tests/amdgpu/amd_mall.c                       |  2 +-
 tests/amdgpu/amd_max_bpc.c                    |  2 +-
 tests/amdgpu/amd_mem_leak.c                   |  2 +-
 tests/amdgpu/amd_mode_switch.c                |  5 +-
 tests/amdgpu/amd_multidisplay_modeset.c       |  7 +-
 tests/amdgpu/amd_odm.c                        |  6 +-
 tests/amdgpu/amd_psr.c                        |  2 +-
 tests/amdgpu/amd_replay.c                     |  2 +-
 tests/chamelium/kms_chamelium_color.c         |  8 +-
 .../kms_chamelium_sharpness_filter.c          |  6 +-
 tests/intel/gem_eio.c                         | 11 ++-
 tests/intel/gem_exec_reloc.c                  |  9 +-
 tests/intel/gem_pxp.c                         |  4 +-
 tests/intel/kms_big_fb.c                      |  3 +-
 tests/intel/kms_busy.c                        |  3 +-
 tests/intel/kms_ccs.c                         |  3 +-
 tests/intel/kms_cdclk.c                       | 14 ++--
 tests/intel/kms_dirtyfb.c                     |  4 +-
 tests/intel/kms_dp_linktrain_fallback.c       |  2 +-
 tests/intel/kms_fbc_dirty_rect.c              | 15 ++--
 tests/intel/kms_flip_scaled_crc.c             |  8 +-
 tests/intel/kms_frontbuffer_tracking.c        |  5 +-
 tests/intel/kms_legacy_colorkey.c             |  5 +-
 tests/intel/kms_pipe_stress.c                 | 30 ++++---
 tests/intel/kms_pm_lpsp.c                     |  2 +-
 tests/intel/xe_pxp.c                          |  6 +-
 tests/kms_async_flips.c                       | 29 +++----
 tests/kms_atomic.c                            |  3 +-
 tests/kms_atomic_transition.c                 | 36 +++++---
 tests/kms_bw.c                                |  5 +-
 tests/kms_color.c                             | 11 +--
 tests/kms_colorop.c                           |  3 +-
 tests/kms_content_protection.c                |  2 +-
 tests/kms_cursor_legacy.c                     |  6 +-
 tests/kms_debugfs.c                           |  7 +-
 tests/kms_display_modes.c                     | 11 +--
 tests/kms_dither.c                            |  4 +-
 tests/kms_feature_discovery.c                 |  4 +-
 tests/kms_hdr.c                               |  6 +-
 tests/kms_lease.c                             | 31 ++++---
 tests/kms_plane.c                             |  9 +-
 tests/kms_plane_alpha_blend.c                 |  8 +-
 tests/kms_plane_lowres.c                      |  6 +-
 tests/kms_plane_multiple.c                    | 25 +++---
 tests/kms_plane_scaling.c                     | 78 +++++++++--------
 tests/kms_properties.c                        | 16 ++--
 tests/kms_rmfb.c                              |  6 +-
 tests/kms_rotation_crc.c                      | 19 +++--
 tests/kms_tiled_display.c                     |  2 +-
 tools/amd_hdmi_compliance.c                   |  2 +-
 60 files changed, 378 insertions(+), 294 deletions(-)
Signature · 1 line
2.52.0