igt/gem_exec_nop: Enlighten the failure error message

References: https://bugs.freedesktop.org/show_bug.cgi?id=89633
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-03-18 08:46:14 +00:00
parent 484c1a6f1c
commit 1d0aa69f55

View File

@ -78,9 +78,8 @@ static int exec(int fd, uint32_t handle, int loops, unsigned ring_id)
execbuf.rsvd2 = 0;
while (loops-- && ret == 0) {
ret = drmIoctl(fd,
DRM_IOCTL_I915_GEM_EXECBUFFER2,
&execbuf);
if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf))
ret = -errno;
}
gem_sync(fd, handle);