diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-03 09:25:02 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-03 09:25:42 +0100 |
commit | 43a1f64e7222e9b5a8d7cb2b887002a8b539452e (patch) | |
tree | e98062f04c377daa789839ae7d8248dd48542974 /tests/gem_cpu_reloc.c | |
parent | 71de427b53582348f96974920dd40d4b4d3163a0 (diff) |
igt/gem_cpu_reloc: Pretty print execbuf failures
References: https://bugs.freedesktop.org/show_bug.cgi?id=85672
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_cpu_reloc.c')
-rw-r--r-- | tests/gem_cpu_reloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_cpu_reloc.c b/tests/gem_cpu_reloc.c index c67907ad..058089cc 100644 --- a/tests/gem_cpu_reloc.c +++ b/tests/gem_cpu_reloc.c @@ -103,7 +103,7 @@ static void copy(int fd, uint32_t batch, uint32_t src, uint32_t dst) execbuf.batch_len = 4096; execbuf.flags = use_blt; - do_or_die(drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf)); + gem_execbuf(fd, &execbuf); } static void exec(int fd, uint32_t handle) @@ -119,7 +119,7 @@ static void exec(int fd, uint32_t handle) execbuf.buffer_count = 1; execbuf.batch_len = 4096; - do_or_die(drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf)); + gem_execbuf(fd, &execbuf); } uint32_t gen6_batch[] = { |