summaryrefslogtreecommitdiff
path: root/tests/gem_exec_reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_exec_reloc.c')
-rw-r--r--tests/gem_exec_reloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_exec_reloc.c b/tests/gem_exec_reloc.c
index 213de1d7..91c6691a 100644
--- a/tests/gem_exec_reloc.c
+++ b/tests/gem_exec_reloc.c
@@ -257,7 +257,7 @@ static void active(int fd, unsigned engine)
int pass;
nengine = 0;
- if (engine == -1) {
+ if (engine == ALL_ENGINES) {
for_each_physical_engine(fd, engine) {
if (gem_can_store_dword(fd, engine))
engines[nengine++] = engine;
@@ -746,7 +746,7 @@ igt_main
from_gpu(fd);
igt_subtest("active")
- active(fd, -1);
+ active(fd, ALL_ENGINES);
for (const struct intel_execution_engine *e = intel_execution_engines;
e->name; e++) {
igt_subtest_f("active-%s", e->name)