summaryrefslogtreecommitdiff
path: root/lib/igt_gt.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 /lib/igt_gt.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 'lib/igt_gt.c')
-rw-r--r--lib/igt_gt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index 6d827826..3207e515 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -537,3 +537,13 @@ unsigned intel_detect_and_clear_missed_interrupts(int fd)
return missed;
}
+
+const struct intel_execution_engine intel_execution_engines[] = {
+ { "render", I915_EXEC_RENDER, 0 },
+ { "bsd", I915_EXEC_BSD, 0 },
+ { "bsd1", I915_EXEC_BSD, 1<<13 /*I915_EXEC_BSD_RING1*/ },
+ { "bsd2", I915_EXEC_BSD, 2<<13 /*I915_EXEC_BSD_RING2*/ },
+ { "blt", I915_EXEC_BLT, 0 },
+ { "vebox", I915_EXEC_VEBOX, 0 },
+ { NULL, 0, 0 }
+};