From: Emil Velikov Date: Thu, 6 Apr 2017 12:01:26 +0000 (+0100) Subject: anv: provide anv_gem_busy() stub for the tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5318d1ff94b474103a69e16af25bf641dad20a7b;p=mesa.git anv: provide anv_gem_busy() stub for the tests 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 Reviewed-by: Jason Ekstrand Reviewed-by: Juan A. Suarez Romero Tested-by: Vinson Lee --- diff --git a/src/intel/vulkan/anv_gem_stubs.c b/src/intel/vulkan/anv_gem_stubs.c index 74794d4ffe5..a63e96d52be 100644 --- a/src/intel/vulkan/anv_gem_stubs.c +++ b/src/intel/vulkan/anv_gem_stubs.c @@ -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) {