[Mesa-dev] [PATCH] anv: provide anv_gem_busy() stub for the tests

Emil Velikov emil.l.velikov at gmail.com
Thu Apr 6 12:07:08 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Otherwise linking way fail.

Cc: Jason Ekstrand <jason at jlekstrand.net>
Cc: Vinson Lee <vlee at freedesktop.org>
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 at collabora.com>
---
Using unreachable would also do it - just staying consistent with
surrounding code.
---
 src/intel/vulkan/anv_gem_stubs.c | 6 ++++++
 1 file changed, 6 insertions(+)

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
@@ -81,6 +81,12 @@ anv_gem_userptr(struct anv_device *device, void *mem, size_t size)
 }
 
 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)
 {
    return 0;
-- 
2.11.1



More information about the mesa-dev mailing list