summaryrefslogtreecommitdiff
path: root/tests/gem_busy.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-01-27 14:07:27 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-01-27 14:45:19 +0000
commit04f5215f00962f746c5bd1aa7bdbcaf62280f235 (patch)
tree308f51fcaa73a9baec6dfd19cfc1dd1cb97ff5e9 /tests/gem_busy.c
parentb7f150b606bc27199a007dab8d248d9510967173 (diff)
Extract array of execution engines
A few tests wish to execute on every engine, so centralise the array of known engines. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_busy.c')
-rw-r--r--tests/gem_busy.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c
index d99806f4..f6710de8 100644
--- a/tests/gem_busy.c
+++ b/tests/gem_busy.c
@@ -223,6 +223,7 @@ static bool has_semaphores(int fd)
igt_main
{
+ const struct intel_execution_engine *e;
int fd = -1;
igt_skip_on_simulation();
@@ -232,18 +233,9 @@ igt_main
igt_require(has_semaphores(fd));
}
- igt_subtest("render")
- test_ring(fd, I915_EXEC_RENDER, 0);
- igt_subtest("bsd")
- test_ring(fd, I915_EXEC_BSD, 0);
- igt_subtest("bsd1")
- test_ring(fd, I915_EXEC_BSD, 1<<13 /*I915_EXEC_BSD_RING1*/);
- igt_subtest("bsd2")
- test_ring(fd, I915_EXEC_BSD, 2<<13 /*I915_EXEC_BSD_RING2*/);
- igt_subtest("blt")
- test_ring(fd, I915_EXEC_BLT, 0);
- igt_subtest("vebox")
- test_ring(fd, I915_EXEC_VEBOX, 0);
+ for (e = intel_execution_engines; e->name; e++)
+ igt_subtest_f("%s", e->name)
+ test_ring(fd, e->exec_id, e->flags);
igt_fixture
close(fd);