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

Emil Velikov emil.l.velikov at gmail.com
Wed Apr 5 14:10:17 UTC 2017


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

Introduce a stub to anv_gem_stub.c that matches the anv_gem.c one.
Otherwise we may get link-time errors, when building the tests.

Cc: Jason Ekstrand <jason at jlekstrand.net>
Cc: Vinson Lee <vlee at freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100574
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 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 30b40ce323a..c3e7afd589c 100644
--- a/src/intel/vulkan/anv_gem_stubs.c
+++ b/src/intel/vulkan/anv_gem_stubs.c
@@ -144,6 +144,12 @@ anv_gem_get_aperture(int fd, uint64_t *size)
    unreachable("Unused");
 }
 
+bool
+anv_gem_supports_48b_addresses(int fd)
+{
+   unreachable("Unused");
+}
+
 int
 anv_gem_handle_to_fd(struct anv_device *device, uint32_t gem_handle)
 {
-- 
2.12.1



More information about the mesa-dev mailing list