From: Dave Airlie Date: Fri, 8 Feb 2019 04:27:09 +0000 (+1000) Subject: radv: remove alloc parameter from pipeline init X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90c6880df77c49dfadd97d8a4c4cde86fdd82670;p=mesa.git radv: remove alloc parameter from pipeline init clang points out this isn't used. Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index ab56a273a2c..fb6c61cf3f0 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3543,8 +3543,7 @@ radv_pipeline_init(struct radv_pipeline *pipeline, struct radv_device *device, struct radv_pipeline_cache *cache, const VkGraphicsPipelineCreateInfo *pCreateInfo, - const struct radv_graphics_pipeline_create_info *extra, - const VkAllocationCallbacks *alloc) + const struct radv_graphics_pipeline_create_info *extra) { VkResult result; bool has_view_index = false; @@ -3553,8 +3552,6 @@ radv_pipeline_init(struct radv_pipeline *pipeline, struct radv_subpass *subpass = pass->subpasses + pCreateInfo->subpass; if (subpass->view_mask) has_view_index = true; - if (alloc == NULL) - alloc = &device->alloc; pipeline->device = device; pipeline->layout = radv_pipeline_layout_from_handle(pCreateInfo->layout); @@ -3682,7 +3679,7 @@ radv_graphics_pipeline_create( return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY); result = radv_pipeline_init(pipeline, device, cache, - pCreateInfo, extra, pAllocator); + pCreateInfo, extra); if (result != VK_SUCCESS) { radv_pipeline_destroy(device, pipeline, pAllocator); return result;