mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user