anv/pipeline: remove the pipeline layout field from anv_pipeline
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 25 Jan 2018 11:07:34 +0000 (12:07 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 26 Jan 2018 13:06:47 +0000 (14:06 +0100)
It no longer has any users.

Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_pipeline.c

index 065c6c0aa8fe0c4f32c9cca5d46916a7e0de6339..48eefe828a7559c4418745e83f8235304aa48fe4 100644 (file)
@@ -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;
index 257124ca72d27795adc37579f1bcfcb3edf4dfa3..3cf37dd6bee26c6761e35ce17f59dfa96e36566d 100644 (file)
@@ -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;
 
index 10efe5421061f5bd0dcc77ec93d7e4a72f15d1ac..45ebe31de6bb83972edf10b760546b8ec620e25e 100644 (file)
@@ -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;