diff options
author | Dave Airlie <[email protected]> | 2016-10-14 13:31:35 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-10-19 09:05:26 +1000 |
commit | 1ae6ece9802e77ede97722c0f7cdd0c24e6fbd04 (patch) | |
tree | a4bd20d4a57a7853616b8696b6dfa47ad200faea /src/intel/vulkan/anv_pipeline_cache.c | |
parent | 0cfd428aefe13441e93cc6f57d70f0b282ad2b21 (diff) |
anv: move to using vk_alloc helpers.
This moves all the alloc/free in anv to the generic helpers.
Acked-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline_cache.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index 6e3f0f2c1de..79df315fab3 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -65,7 +65,7 @@ anv_shader_bin_create(struct anv_device *device, bind_map->surface_count, bind_map->sampler_count); struct anv_shader_bin *shader = - anv_alloc(&device->alloc, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_DEVICE); + vk_alloc(&device->alloc, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_DEVICE); if (!shader) return NULL; @@ -108,7 +108,7 @@ anv_shader_bin_destroy(struct anv_device *device, { assert(shader->ref_cnt == 0); anv_state_pool_free(&device->instruction_state_pool, shader->kernel); - anv_free(&device->alloc, shader); + vk_free(&device->alloc, shader); } static size_t @@ -417,7 +417,7 @@ VkResult anv_CreatePipelineCache( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO); assert(pCreateInfo->flags == 0); - cache = anv_alloc2(&device->alloc, pAllocator, + cache = vk_alloc2(&device->alloc, pAllocator, sizeof(*cache), 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (cache == NULL) @@ -445,7 +445,7 @@ void anv_DestroyPipelineCache( anv_pipeline_cache_finish(cache); - anv_free2(&device->alloc, pAllocator, cache); + vk_free2(&device->alloc, pAllocator, cache); } VkResult anv_GetPipelineCacheData( |