radv: remove radv_pipeline_layout::push_constant_stages field
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 9 Jan 2018 17:09:44 +0000 (18:09 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 10 Jan 2018 11:31:57 +0000 (12:31 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_descriptor_set.h

index 19a560a6b3449f3fd4a242f6755de8869929e7de..b1ef66308d6d9e61d69e506a760b0727695c3158 100644 (file)
@@ -228,13 +228,11 @@ VkResult radv_CreatePipelineLayout(
 
        layout->dynamic_offset_count = dynamic_offset_count;
        layout->push_constant_size = 0;
-       layout->push_constant_stages = 0;
 
        for (unsigned i = 0; i < pCreateInfo->pushConstantRangeCount; ++i) {
                const VkPushConstantRange *range = pCreateInfo->pPushConstantRanges + i;
                layout->push_constant_size = MAX2(layout->push_constant_size,
                                                  range->offset + range->size);
-               layout->push_constant_stages |= range->stageFlags;
        }
 
        layout->push_constant_size = align(layout->push_constant_size, 16);
index 083a61fd99a7618eb58b5d83445a5ec4b632df4c..7fa79186a17197da2b752e6060f3df8d8afd44dc 100644 (file)
@@ -83,7 +83,6 @@ struct radv_pipeline_layout {
 
    uint32_t num_sets;
    uint32_t push_constant_size;
-   VkShaderStageFlags push_constant_stages;
    uint32_t dynamic_offset_count;
 
    unsigned char sha1[20];