diff options
author | Dave Airlie <[email protected]> | 2016-10-14 13:36:45 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-10-19 09:05:26 +1000 |
commit | 4450f405195d77f8bcc3fbd3e590405c8f540fab (patch) | |
tree | ec931282a17a12fec97a7d0f4bfe61d49ca7b8b2 /src/amd/vulkan/radv_query.c | |
parent | 1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04 (diff) |
radv: move to using shared vk_alloc inlines.
This moves to the shared vk_alloc inlines for vulkan
memory allocations.
Acked-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index f60c10a3a8c..cce38e853c2 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -57,7 +57,7 @@ VkResult radv_CreateQueryPool( { RADV_FROM_HANDLE(radv_device, device, _device); uint64_t size; - struct radv_query_pool *pool = radv_alloc2(&device->alloc, pAllocator, + struct radv_query_pool *pool = vk_alloc2(&device->alloc, pAllocator, sizeof(*pool), 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); @@ -89,7 +89,7 @@ VkResult radv_CreateQueryPool( 64, RADEON_DOMAIN_GTT, 0); if (!pool->bo) { - radv_free2(&device->alloc, pAllocator, pool); + vk_free2(&device->alloc, pAllocator, pool); return VK_ERROR_OUT_OF_DEVICE_MEMORY; } @@ -97,7 +97,7 @@ VkResult radv_CreateQueryPool( if (!pool->ptr) { device->ws->buffer_destroy(pool->bo); - radv_free2(&device->alloc, pAllocator, pool); + vk_free2(&device->alloc, pAllocator, pool); return VK_ERROR_OUT_OF_DEVICE_MEMORY; } memset(pool->ptr, 0, size); @@ -118,7 +118,7 @@ void radv_DestroyQueryPool( return; device->ws->buffer_destroy(pool->bo); - radv_free2(&device->alloc, pAllocator, pool); + vk_free2(&device->alloc, pAllocator, pool); } VkResult radv_GetQueryPoolResults( |