[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.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Wed Mar 14 11:20:16 UTC 2018


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(-)

-- 
2.16.2



More information about the igt-dev mailing list