radv: remove redundant check when importing vertex input info

It's already checked by the caller.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16958>
This commit is contained in:
Samuel Pitoiset 2022-06-01 10:30:08 +02:00 committed by Marge Bot
parent 11e55bce49
commit 839b1f4e91
1 changed files with 0 additions and 4 deletions

View File

@ -1506,10 +1506,6 @@ radv_pipeline_init_vertex_input_info(struct radv_graphics_pipeline *pipeline,
const VkPipelineVertexInputStateCreateInfo *vi = pCreateInfo->pVertexInputState;
struct radv_vertex_input_info info = {0};
/* Vertex input interface structs have to be ignored if the pipeline includes a mesh shader. */
if (pipeline->active_stages & VK_SHADER_STAGE_MESH_BIT_NV)
return info;
if (!(pipeline->dynamic_states & RADV_DYNAMIC_VERTEX_INPUT)) {
/* Vertex input */
const VkPipelineVertexInputDivisorStateCreateInfoEXT *divisor_state =