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_pass.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_pass.c')
-rw-r--r-- | src/amd/vulkan/radv_pass.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c index fa217977caa..17eff3937ac 100644 --- a/src/amd/vulkan/radv_pass.c +++ b/src/amd/vulkan/radv_pass.c @@ -44,7 +44,7 @@ VkResult radv_CreateRenderPass( attachments_offset = size; size += pCreateInfo->attachmentCount * sizeof(pass->attachments[0]); - pass = radv_alloc2(&device->alloc, pAllocator, size, 8, + pass = vk_alloc2(&device->alloc, pAllocator, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (pass == NULL) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); @@ -80,11 +80,11 @@ VkResult radv_CreateRenderPass( if (subpass_attachment_count) { pass->subpass_attachments = - radv_alloc2(&device->alloc, pAllocator, + vk_alloc2(&device->alloc, pAllocator, subpass_attachment_count * sizeof(VkAttachmentReference), 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (pass->subpass_attachments == NULL) { - radv_free2(&device->alloc, pAllocator, pass); + vk_free2(&device->alloc, pAllocator, pass); return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); } } else @@ -168,8 +168,8 @@ void radv_DestroyRenderPass( if (!_pass) return; - radv_free2(&device->alloc, pAllocator, pass->subpass_attachments); - radv_free2(&device->alloc, pAllocator, pass); + vk_free2(&device->alloc, pAllocator, pass->subpass_attachments); + vk_free2(&device->alloc, pAllocator, pass); } void radv_GetRenderAreaGranularity( |