aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-02-08 14:27:09 +1000
committerDave Airlie <[email protected]>2019-02-11 10:04:40 +1000
commit90c6880df77c49dfadd97d8a4c4cde86fdd82670 (patch)
tree8cfc82a951d2ce9ab26c5ac7e6dfb5891252d8b3 /src
parenta523ae0cace337d6c465ab2091eb1305cf47f898 (diff)
radv: remove alloc parameter from pipeline init
clang points out this isn't used. Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_pipeline.c7
1 files changed, 2 insertions, 5 deletions
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;