summaryrefslogtreecommitdiff
path: root/tests/i915/gem_busy.c
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@intel.com>2019-05-23 01:13:02 +0300
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2019-05-23 07:15:43 +0100
commit95d22d5fece7af1448e3b533228c9298080d26e7 (patch)
tree60bb8121973b6821bad22d6208ffcc1bad091f8f /tests/i915/gem_busy.c
parenta693e5776e31514e5731433432c99f1b22412626 (diff)
test/i915: gem_busy: fix misuse of the "flags" parameter in basic()
The "flags" parameter received by the "basic()" function checks for the HANG (0x2) bit, while callers give it a boolean true/false value. Restore the original meaning of "flags" as a bit mask. Fixes: 88318b0771f9 ("test/i915: gem_busy: use the gem_engine_topology library") Signed-off-by: Andi Shyti <andi.shyti@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/gem_busy.c')
-rw-r--r--tests/i915/gem_busy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/gem_busy.c b/tests/i915/gem_busy.c
index 2872e7b7..781a3bfa 100644
--- a/tests/i915/gem_busy.c
+++ b/tests/i915/gem_busy.c
@@ -483,7 +483,7 @@ igt_main
e->class == I915_ENGINE_CLASS_RENDER
? "basic-" : "", e->name) {
gem_quiescent_gpu(fd);
- basic(fd, e, false);
+ basic(fd, e, 0);
}
}
}
@@ -548,7 +548,7 @@ igt_main
? "basic-" : "", e->name) {
igt_skip_on_simulation();
gem_quiescent_gpu(fd);
- basic(fd, e, true);
+ basic(fd, e, HANG);
}
}