vk/instance: Expose anv_instance_alloc/free
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 4 Sep 2015 18:14:03 +0000 (11:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Sep 2015 00:55:42 +0000 (17:55 -0700)
src/vulkan/anv_device.c
src/vulkan/anv_private.h

index 7ae11d6560b32ca02f1543489b89609c14345280..0df1bbeda3c8fe854eba04f6f634a276813001d0 100644 (file)
@@ -158,7 +158,7 @@ VkResult anv_DestroyInstance(
    return VK_SUCCESS;
 }
 
-static void *
+void *
 anv_instance_alloc(struct anv_instance *instance, size_t size,
                    size_t alignment, VkSystemAllocType allocType)
 {
@@ -171,7 +171,7 @@ anv_instance_alloc(struct anv_instance *instance, size_t size,
    return mem;
 }
 
-static void
+void
 anv_instance_free(struct anv_instance *instance, void *mem)
 {
    if (mem == NULL)
index 06ef4e123f35399d2a260745bd4b8f4672b0008e..8be2aa2bee176d34ba5091c27ab7244fb2cc2326 100644 (file)
@@ -411,6 +411,16 @@ struct anv_device {
     pthread_mutex_t                             mutex;
 };
 
+void *
+anv_instance_alloc(struct anv_instance *        instance,
+                   size_t                       size,
+                   size_t                       alignment,
+                   VkSystemAllocType            allocType);
+
+void
+anv_instance_free(struct anv_instance *         instance,
+                  void *                        mem);
+
 void *
 anv_device_alloc(struct anv_device *            device,
                  size_t                         size,