summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-03-10 11:50:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-10 12:46:52 +0000
commit3e2443f8386166dbd2586af1d454b766182f04b3 (patch)
tree1fd104a870d8b7cc2c7d17b88e9fc6d7cfda04dd /tests
parent544ba6ca88e9ff01fd9f308252f5e08679b275da (diff)
igt/gem_exec_nop: Fix logical inversion for checking of valid execbuf
Only if the trial __gem_execbuf reports an error do we want to remove the fancy LUT flags. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_nop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index 189f749b..c82895bd 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -72,7 +72,7 @@ static void single(int fd, uint32_t handle, unsigned ring_id, const char *ring_n
execbuf.flags = ring_id;
execbuf.flags |= LOCAL_I915_EXEC_HANDLE_LUT;
execbuf.flags |= LOCAL_I915_EXEC_NO_RELOC;
- if (__gem_execbuf(fd, &execbuf) == 0) {
+ if (__gem_execbuf(fd, &execbuf)) {
execbuf.flags = ring_id;
gem_execbuf(fd, &execbuf);
}
@@ -127,7 +127,7 @@ static void all(int fd, uint32_t handle)
execbuf.buffer_count = 1;
execbuf.flags |= LOCAL_I915_EXEC_HANDLE_LUT;
execbuf.flags |= LOCAL_I915_EXEC_NO_RELOC;
- if (__gem_execbuf(fd, &execbuf) == 0) {
+ if (__gem_execbuf(fd, &execbuf)) {
execbuf.flags = 0;
gem_execbuf(fd, &execbuf);
}