From: Samuel Pitoiset Date: Wed, 8 Jul 2020 13:02:00 +0000 (+0200) Subject: radv: remove set but unused radv_pipeline::vertex_elements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62af9df36c1a6ab0fac9120e58afbcf6047ed103;p=mesa.git radv: remove set but unused radv_pipeline::vertex_elements Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index f6df654a54b..8fec4a5c177 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -4787,18 +4787,6 @@ radv_compute_vertex_input_state(struct radv_pipeline *pipeline, { const VkPipelineVertexInputStateCreateInfo *vi_info = pCreateInfo->pVertexInputState; - struct radv_vertex_elements_info *velems = &pipeline->vertex_elements; - - for (uint32_t i = 0; i < vi_info->vertexAttributeDescriptionCount; i++) { - const VkVertexInputAttributeDescription *desc = - &vi_info->pVertexAttributeDescriptions[i]; - unsigned loc = desc->location; - const struct vk_format_description *format_desc; - - format_desc = vk_format_description(desc->format); - - velems->format_size[loc] = format_desc->block.bits / 8; - } for (uint32_t i = 0; i < vi_info->vertexBindingDescriptionCount; i++) { const VkVertexInputBindingDescription *desc = diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index c19d12a5e2b..91808b63665 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1634,10 +1634,6 @@ struct radv_prim_vertex_count { uint8_t incr; }; -struct radv_vertex_elements_info { - uint32_t format_size[MAX_VERTEX_ATTRIBS]; -}; - struct radv_ia_multi_vgt_param_helpers { uint32_t base; bool partial_es_wave; @@ -1669,8 +1665,6 @@ struct radv_pipeline { uint32_t ctx_cs_hash; struct radeon_cmdbuf ctx_cs; - struct radv_vertex_elements_info vertex_elements; - uint32_t binding_stride[MAX_VBS]; uint8_t num_vertex_bindings;