spirv,nir: Move the SPIR-V vector insert code to NIR
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 9 Apr 2020 22:09:10 +0000 (17:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Apr 2020 19:21:44 +0000 (19:21 +0000)
commitf5deed138a0b4765438135367248f1d8f0649975
treee3199ba6167bd2a2c6eb329193feba934cb77fe0
parentfeca4396974feb0e94603151eaebb6a7a6a22ce3
spirv,nir: Move the SPIR-V vector insert code to NIR

This also makes spirv_to_nir a bit simpler because the new
nir_vector_insert helper automatically handles a constant component
selector like nir_vector_extract does.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4495>
src/compiler/nir/nir_builder.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c