anv: provide anv_gem_busy() stub for the tests
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 6 Apr 2017 12:01:26 +0000 (13:01 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 7 Apr 2017 18:45:58 +0000 (19:45 +0100)
Otherwise linking way fail.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100600
Fixes: f195d40eca4 ("anv/device: Add a helper for querying whether a BO is busy")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/intel/vulkan/anv_gem_stubs.c

index 74794d4ffe5caae19b93660c89c5ea0d254a356a..a63e96d52beb73a32c9606b7ac236d4423fe0324 100644 (file)
@@ -80,6 +80,12 @@ anv_gem_userptr(struct anv_device *device, void *mem, size_t size)
    return -1;
 }
 
+int
+anv_gem_busy(struct anv_device *device, uint32_t gem_handle)
+{
+   return 0;
+}
+
 int
 anv_gem_wait(struct anv_device *device, uint32_t gem_handle, int64_t *timeout_ns)
 {