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>
This commit is contained in:
Chris Wilson
2016-01-27 14:07:27 +00:00
parent b7f150b606
commit 04f5215f00
3 changed files with 20 additions and 12 deletions
+10
View File
@@ -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 }
};
+6
View File
@@ -91,4 +91,10 @@ void igt_clflush_range(void *addr, int size);
unsigned intel_detect_and_clear_missed_interrupts(int fd);
extern const struct intel_execution_engine {
const char *name;
unsigned exec_id;
unsigned flags;
} intel_execution_engines[];
#endif /* IGT_GT_H */