diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-24 09:16:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-24 09:18:30 +0100 |
commit | 65a9987c41defb084561a35988aacab89931187c (patch) | |
tree | 5406a52edf298f57b3adefcd55090c6885b2c659 /tests/kms_busy.c | |
parent | 1105d9f8d64cc41e48a6d7316807548f4fa4e9ad (diff) |
igt/kms_busy: Fix subtest enumeration
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_busy.c')
-rw-r--r-- | tests/kms_busy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/kms_busy.c b/tests/kms_busy.c index 75a13bac..b555f993 100644 --- a/tests/kms_busy.c +++ b/tests/kms_busy.c @@ -230,7 +230,7 @@ static void test_flip(igt_display_t *dpy, unsigned ring, int pipe) igt_main { - igt_display_t display = { .drm_fd = -1 }; + igt_display_t display = { .drm_fd = -1, .n_pipes = I915_MAX_PIPES }; const struct intel_execution_engine *e; igt_skip_on_simulation(); @@ -255,14 +255,14 @@ igt_main } for (e = intel_execution_engines; e->name; e++) { - if (!gem_has_ring(display.drm_fd, - e->exec_id | e->flags)) - continue; - igt_subtest_f("%sflip-%s-%s", e->exec_id == 0 ? "basic-" : "", - e->name, kmstest_pipe_name(n)) + e->name, kmstest_pipe_name(n)) { + igt_require(gem_has_ring(display.drm_fd, + e->exec_id | e->flags)); + test_flip(&display, e->exec_id | e->flags, n); + } } } |