diff options
author | Jason Ekstrand <[email protected]> | 2015-09-04 11:14:03 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-04 17:55:42 -0700 |
commit | 06d8fd58818c4574ba233edb4566509577d79dd0 (patch) | |
tree | b5cbe0d877c37fbe4f9ecd3065a42c326b57bf42 /src/vulkan | |
parent | c0b97577e8900b46349c2b831784bf63b94eeee1 (diff) |
vk/instance: Expose anv_instance_alloc/free
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_device.c | 4 | ||||
-rw-r--r-- | src/vulkan/anv_private.h | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 7ae11d6560b..0df1bbeda3c 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -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) diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 06ef4e123f3..8be2aa2bee1 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -412,6 +412,16 @@ struct anv_device { }; 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, size_t alignment, |