vk/instance: Expose anv_instance_alloc/free

This commit is contained in:
Jason Ekstrand 2015-09-04 11:14:03 -07:00
parent c0b97577e8
commit 06d8fd5881
2 changed files with 12 additions and 2 deletions

View 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)

View 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,