zink: remove unused indices from `nir_load_push_constant` calls
authorantonino <antonino.maniscalco@collabora.com>
Mon, 31 Jul 2023 16:45:15 +0000 (18:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 12 Aug 2023 12:20:31 +0000 (12:20 +0000)
commit333b6ef40963f62f6cd8e358ce1fcd3d9da4cd9b
tree2be860c77cc2ad1978838ef0eef58b8a8ce723ba
parent57b8b82d7dfbb551427534bb37f3e57941e04b96
zink: remove unused indices from `nir_load_push_constant` calls

Zink passes `base` and `range` indices to this intrinsic despite those
being ignored by nir_to_spirv. This change removes them completely.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24401>
src/gallium/drivers/zink/zink_compiler.c