Mesa (main): radv: remove redundant check when importing vertex input info
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 13 17:09:28 UTC 2022
Module: Mesa
Branch: main
Commit: 839b1f4e9145a615995ec732a733d71fa79c038f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=839b1f4e9145a615995ec732a733d71fa79c038f
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Wed Jun 1 10:30:08 2022 +0200
radv: remove redundant check when importing vertex input info
It's already checked by the caller.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16958>
---
src/amd/vulkan/radv_pipeline.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index adea75c6b2f..4065e7d4da6 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -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 =
More information about the mesa-commit
mailing list