Mesa (main): radv: remove no-op about the view index in the shader info pass

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 12 09:18:13 UTC 2021


Module: Mesa
Branch: main
Commit: 960d7bf2d3c07634765d864ae99abe5ae87d9b35
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=960d7bf2d3c07634765d864ae99abe5ae87d9b35

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Oct  6 14:11:50 2021 +0200

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 <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13243>

---

 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;



More information about the mesa-commit mailing list