mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
vk/instance: Expose anv_instance_alloc/free
This commit is contained in:
parent
c0b97577e8
commit
06d8fd5881
2 changed files with 12 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue