vk/gem: Just return -1 from anv_gem_wait() on error
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Mon, 18 May 2015 15:50:56 +0000 (08:50 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Mon, 18 May 2015 17:27:07 +0000 (10:27 -0700)
We were returning -errno, unlike all the other gem functions.

src/vulkan/gem.c

index 5cc5e5d8e8418523f792bc0dbdefed89c952e340..99cc0be71a8d786a28664ff26f211b81996c19a1 100644 (file)
@@ -155,8 +155,6 @@ anv_gem_wait(struct anv_device *device, int gem_handle, int64_t *timeout_ns)
 
    ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_WAIT, &wait);
    *timeout_ns = wait.timeout_ns;
-   if (ret == -1)
-      return -errno;
 
    return ret;
 }