summaryrefslogtreecommitdiff
path: root/tests/gem_exec_schedule.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_exec_schedule.c')
-rw-r--r--tests/gem_exec_schedule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_exec_schedule.c b/tests/gem_exec_schedule.c
index 89cf4285..d2f040ab 100644
--- a/tests/gem_exec_schedule.c
+++ b/tests/gem_exec_schedule.c
@@ -171,7 +171,7 @@ static void smoketest(int fd, unsigned ring, unsigned timeout)
uint32_t *ptr;
nengine = 0;
- if (ring == -1) {
+ if (ring == ALL_ENGINES) {
for_each_physical_engine(fd, engine)
engines[nengine++] = engine;
} else {
@@ -949,7 +949,7 @@ igt_main
}
igt_subtest("smoketest-all")
- smoketest(fd, -1, 30);
+ smoketest(fd, ALL_ENGINES, 30);
for (e = intel_execution_engines; e->name; e++) {
if (e->exec_id == 0)