Skip to content

lib/igt_kms: Add for_each_pipe_with_single_output and igt_get_single_output_for_pipe.

Maarten Lankhorst igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib/igt_kms: Add functions to get only a single output for a pipe.lib/igt_kms.c lib/igt_kms.h+119 -02 replies
2/5tests/kms_rmfb: Use for_each_pipe_with_single_output.tests/kms_rmfb.c+2 -61 reply
3/5tests/kms_busy: Convert to using igt_get_single_output_for_pipe.tests/kms_busy.c+15 -232 replies
4/5tests/kms_chv_cursor_fail: Reorder tests, and use igt_display_require_output_on_pipe.tests/kms_chv_cursor_fail.c+34 -510 replies
5/5tests/kms_chv_cursor_fail: Handle cleanup better.tests/kms_chv_cursor_fail.c+2 -52 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchVille Syrjälä
1/5R-b R-b
2/5R-b
3/5R-b R-b
4/5
5/5R-b

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

Read the v1 thread

Cover letter [igt-dev] [PATCH i-g-t 0/5] lib/igt_kms: Add for_each_pipe_with_single_output and igt_get_single_output_for_pipe.

Some tests don't have to be called on all outputs, because they only manipulate the pipe. For these tests we create 2 helper functions, so we reduce the amount of modesets required.

for_each_pipe_with_single_output is a drop in replacement for for_each_pipe_with_valid_output, and only iterates 1 output per pipe.

igt_get_single_output_for_pipe returns a valid output for a given pipe, if it can be found. It can be used in place of a for_each_valid_output_on_pipe loop.

This is just a sample conversion, other tests can be changed when this is accepted..

Maarten Lankhorst (5):
lib/igt_kms: Add functions to get only a single output for a pipe. tests/kms_rmfb: Use for_each_pipe_with_single_output. tests/kms_busy: Convert to using igt_get_single_output_for_pipe. tests/kms_chv_cursor_fail: Reorder tests, and use
igt_display_require_output_on_pipe.
tests/kms_chv_cursor_fail: Handle cleanup better.

 lib/igt_kms.c               | 93 +++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_kms.h               | 26 +++++++++++++
 tests/kms_busy.c            | 38 ++++++++----------
 tests/kms_chv_cursor_fail.c | 90 +++++++++++++++++--------------------------
 tests/kms_rmfb.c            |  8 +---
 5 files changed, 171 insertions(+), 84 deletions(-)
Signature · 6 lines
2.16.2

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev