mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-26 03:07:24 +00:00
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>
This commit is contained in:
parent
71de427b53
commit
43a1f64e72
@ -429,12 +429,10 @@ uint32_t gem_create(int fd, int size)
|
||||
*/
|
||||
void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
|
||||
{
|
||||
int ret;
|
||||
int result;
|
||||
|
||||
ret = drmIoctl(fd,
|
||||
DRM_IOCTL_I915_GEM_EXECBUFFER2,
|
||||
execbuf);
|
||||
igt_assert(ret == 0);
|
||||
result = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
|
||||
igt_assert(result == 0);
|
||||
errno = 0;
|
||||
}
|
||||
|
||||
|
@ -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[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user