From d3ce493b34d6c2cacaf4dd17d8646b4db7448784 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 25 Jan 2018 12:07:34 +0100 Subject: [PATCH] anv/pipeline: remove the pipeline layout field from anv_pipeline It no longer has any users. Suggested-by: Jason Ekstrand Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_pipeline.c | 2 -- src/intel/vulkan/anv_private.h | 1 - src/intel/vulkan/genX_pipeline.c | 1 - 3 files changed, 4 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 065c6c0aa8f..48eefe828a7 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -1291,8 +1291,6 @@ anv_pipeline_init(struct anv_pipeline *pipeline, assert(pCreateInfo->subpass < render_pass->subpass_count); pipeline->subpass = &render_pass->subpasses[pCreateInfo->subpass]; - pipeline->layout = anv_pipeline_layout_from_handle(pCreateInfo->layout); - result = anv_reloc_list_init(&pipeline->batch_relocs, alloc); if (result != VK_SUCCESS) return result; diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 257124ca72d..3cf37dd6bee 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -2144,7 +2144,6 @@ struct anv_pipeline { struct anv_dynamic_state dynamic_state; struct anv_subpass * subpass; - struct anv_pipeline_layout * layout; bool needs_data_cache; diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 10efe542106..45ebe31de6b 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1756,7 +1756,6 @@ compute_pipeline_create( return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); pipeline->device = device; - pipeline->layout = anv_pipeline_layout_from_handle(pCreateInfo->layout); pipeline->blend_state.map = NULL; -- 2.30.2