Add I915_EXEC_DEFAULT to list of known engines

I dropped this from the list of rings for some tests when refactoring to
a common array. Almost all of the tests should be run over the default
exec engine to ensure ABI backwards compatiblity.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-01-27 16:28:35 +00:00
parent d130899084
commit de70769cc0
3 changed files with 7 additions and 2 deletions

View File

@ -539,6 +539,7 @@ 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*/ },

View File

@ -233,9 +233,13 @@ igt_main
igt_require(has_semaphores(fd));
}
for (e = intel_execution_engines; e->name; e++)
for (e = intel_execution_engines; e->name; e++) {
if (e->exec_id == 0) /* default exec-id is purely symbolic */
continue;
igt_subtest_f("%s", e->name)
test_ring(fd, e->exec_id, e->flags);
}
igt_fixture
close(fd);

View File

@ -212,7 +212,7 @@ igt_main
for (mode = modes; mode->prefix; mode++) {
for (e = intel_execution_engines; e->name; e++) {
igt_subtest_f("%s%s%s",
e->exec_id || mode->flags ? "" : mode->prefix,
e->exec_id || (mode->flags & ~INTERRUPTIBLE) ? "" : mode->prefix,
e->name,
mode->suffix)
run_test(fd, e->exec_id | e->flags, mode->flags);