summaryrefslogtreecommitdiff
path: root/tests/kms_rmfb.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-06-13 15:43:15 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-06-29 14:57:11 +0200
commitd31b9b307f164668ddd23da6bef619c002e75a14 (patch)
tree943de88a2f0cbbc1c2739152742d195f8f0f12d0 /tests/kms_rmfb.c
parentbe13126cc861b886720bfbffe8edeb60f10fdb94 (diff)
tests/kms_rmfb: Use for_each_pipe_with_valid_output.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_rmfb.c')
-rw-r--r--tests/kms_rmfb.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c
index a3fde9f4..89aa3232 100644
--- a/tests/kms_rmfb.c
+++ b/tests/kms_rmfb.c
@@ -144,12 +144,9 @@ run_rmfb_test(struct rmfb_data *data, bool reopen)
int valid_tests = 0;
enum pipe pipe;
- for_each_connected_output(&data->display, output) {
- for_each_pipe(&data->display, pipe) {
- if (test_rmfb(data, output, pipe, reopen))
- valid_tests++;
- }
- }
+ for_each_pipe_with_valid_output(&data->display, pipe, output)
+ if (test_rmfb(data, output, pipe, reopen))
+ valid_tests++;
igt_require_f(valid_tests, "no valid crtc/connector combinations found\n");
}