summaryrefslogtreecommitdiff
path: root/tests/gem_cs_tlb.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-01-27 14:17:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-01-27 14:47:19 +0000
commit8cd52893346c647e475e801c5f5267f2f2b75ebe (patch)
tree28e81469d3a68662e63558f829deb25665257982 /tests/gem_cs_tlb.c
parent7e0853c9c717f8e1ce6ed7f0d2fa6bd973bd0f6a (diff)
igt/gem_cs_tlb: Use common array of rings
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_cs_tlb.c')
-rw-r--r--tests/gem_cs_tlb.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c
index 7ab34b0f..bb507d82 100644
--- a/tests/gem_cs_tlb.c
+++ b/tests/gem_cs_tlb.c
@@ -142,6 +142,7 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
igt_main
{
+ const struct intel_execution_engine *e;
int fd = -1;
igt_skip_on_simulation();
@@ -149,17 +150,9 @@ igt_main
igt_fixture
fd = drm_open_driver(DRIVER_INTEL);
- igt_subtest("render")
- run_on_ring(fd, I915_EXEC_RENDER, "render");
-
- igt_subtest("bsd")
- run_on_ring(fd, I915_EXEC_BSD, "bsd");
-
- igt_subtest("blt")
- run_on_ring(fd, I915_EXEC_BLT, "blt");
-
- igt_subtest("vebox")
- run_on_ring(fd, LOCAL_I915_EXEC_VEBOX, "vebox");
+ for (e = intel_execution_engines; e->name; e++)
+ igt_subtest_f("%s", e->name)
+ run_on_ring(fd, e->exec_id | e->flags, e->name);
igt_fixture
close(fd);