diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-10 11:50:53 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-10 12:46:52 +0000 |
commit | 3e2443f8386166dbd2586af1d454b766182f04b3 (patch) | |
tree | 1fd104a870d8b7cc2c7d17b88e9fc6d7cfda04dd /benchmarks/gem_syslatency.c | |
parent | 544ba6ca88e9ff01fd9f308252f5e08679b275da (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 'benchmarks/gem_syslatency.c')
-rw-r--r-- | benchmarks/gem_syslatency.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c index 4a7811d8..f09050c7 100644 --- a/benchmarks/gem_syslatency.c +++ b/benchmarks/gem_syslatency.c @@ -105,7 +105,6 @@ static void *gem_busyspin(void *arg) nengine = 0; for_each_engine(fd, engine) if (!ignore_engine(fd, engine)) engines[nengine++] = engine; - igt_require(nengine); memset(&obj, 0, sizeof(obj)); obj.handle = gem_create(fd, 4096); @@ -116,7 +115,7 @@ static void *gem_busyspin(void *arg) 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); } |