summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-02-04 11:17:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-02-04 11:22:00 +0000
commit38fe49d9a80a45ca529adaf8bbbba63e271ad30d (patch)
tree776a4e303bab3509fdf94592b3c79fe2fc3a0924 /lib
parent01e467a6312184f963b82c9004b6d7ce09961cc2 (diff)
tests/drv_hangman: Convert to using central list of engines
Rather than encoding our own list of engines, use the common one for greater coverage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_gt.c14
-rw-r--r--lib/igt_gt.h1
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index ebff9030..9f8634b0 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -539,12 +539,12 @@ unsigned intel_detect_and_clear_missed_interrupts(int fd)
}
const struct intel_execution_engine intel_execution_engines[] = {
- { "default", 0, 0 },
- { "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 },
+ { "default", NULL, 0, 0 },
+ { "render", "render ring", I915_EXEC_RENDER, 0 },
+ { "bsd", "bsd ring", I915_EXEC_BSD, 0 },
+ { "bsd1", "bsd ring", I915_EXEC_BSD, 1<<13 /*I915_EXEC_BSD_RING1*/ },
+ { "bsd2", "bsd2 ring", I915_EXEC_BSD, 2<<13 /*I915_EXEC_BSD_RING2*/ },
+ { "blt", "blitter ring", I915_EXEC_BLT, 0 },
+ { "vebox", "video enhancement ring", I915_EXEC_VEBOX, 0 },
{ NULL, 0, 0 }
};
diff --git a/lib/igt_gt.h b/lib/igt_gt.h
index d4a582e2..b7c5c4a9 100644
--- a/lib/igt_gt.h
+++ b/lib/igt_gt.h
@@ -93,6 +93,7 @@ unsigned intel_detect_and_clear_missed_interrupts(int fd);
extern const struct intel_execution_engine {
const char *name;
+ const char *full_name;
unsigned exec_id;
unsigned flags;
} intel_execution_engines[];