summaryrefslogtreecommitdiff
path: root/tests/gem_eio.c
diff options
context:
space:
mode:
authorAntonio Argenziano <antonio.argenziano@intel.com>2018-03-19 15:30:38 -0700
committerAntonio Argenziano <antonio.argenziano@intel.com>2018-03-20 10:44:10 -0700
commit94e886203a99ef19b8319489a45cd348e76e8ccd (patch)
treec26a1fe72268b6049b1aa5b3ffb256e1edc1ef7d /tests/gem_eio.c
parent178e7f3da66cd02660a86257df75708a0efa3bbc (diff)
igt: Replace 'all-engines' magic numbers with macro
In interfaces where a parameter allow to select an engine, we usually use '-1' or '~0u' to select all engines. This patch replaces magic numbers with a named constant. Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_eio.c')
-rw-r--r--tests/gem_eio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index 249f5bff..4bcc5937 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -66,7 +66,7 @@ static void trigger_reset(int fd)
/* And just check the gpu is indeed running again */
igt_debug("Checking that the GPU recovered\n");
- gem_test_engine(fd, -1);
+ gem_test_engine(fd, ALL_ENGINES);
gem_quiescent_gpu(fd);
}