From 960d7bf2d3c07634765d864ae99abe5ae87d9b35 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 6 Oct 2021 14:11:50 +0200 Subject: [PATCH] radv: remove no-op about the view index in the shader info pass The view index is always lowered to map the layer ID for fragment shaders. This was never reached. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_shader_info.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index f72ea1dad64..9db8dccf57e 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -219,8 +219,6 @@ gather_intrinsic_info(const nir_shader *nir, const nir_intrinsic_instr *instr, break; case nir_intrinsic_load_view_index: info->needs_multiview_view_index = true; - if (nir->info.stage == MESA_SHADER_FRAGMENT) - info->ps.layer_input = true; break; case nir_intrinsic_load_invocation_id: info->uses_invocation_id = true;