diff options
author | Dave Airlie <airlied@redhat.com> | 2016-10-14 13:31:35 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-10-19 09:05:26 +1000 |
commit | 1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04 (patch) | |
tree | a4bd20d4a57a7853616b8696b6dfa47ad200faea /src/intel/vulkan/genX_pipeline.c | |
parent | 0cfd428aefe13441e93cc6f57d70f0b282ad2b21 (diff) | |
download | external_mesa3d-1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04.zip external_mesa3d-1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04.tar.gz external_mesa3d-1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04.tar.bz2 |
anv: move to using vk_alloc helpers.
This moves all the alloc/free in anv to the generic helpers.
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 2a4dd8e..2d5c62e 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -43,7 +43,7 @@ compute_pipeline_create( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO); - pipeline = anv_alloc2(&device->alloc, pAllocator, sizeof(*pipeline), 8, + pipeline = vk_alloc2(&device->alloc, pAllocator, sizeof(*pipeline), 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (pipeline == NULL) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); @@ -56,7 +56,7 @@ compute_pipeline_create( result = anv_reloc_list_init(&pipeline->batch_relocs, pAllocator ? pAllocator : &device->alloc); if (result != VK_SUCCESS) { - anv_free2(&device->alloc, pAllocator, pipeline); + vk_free2(&device->alloc, pAllocator, pipeline); return result; } pipeline->batch.next = pipeline->batch.start = pipeline->batch_data; @@ -82,7 +82,7 @@ compute_pipeline_create( pCreateInfo->stage.pName, pCreateInfo->stage.pSpecializationInfo); if (result != VK_SUCCESS) { - anv_free2(&device->alloc, pAllocator, pipeline); + vk_free2(&device->alloc, pAllocator, pipeline); return result; } |