spirv,nir: Add a better vector_insert
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 8 Apr 2020 16:14:40 +0000 (11:14 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Apr 2020 19:21:44 +0000 (19:21 +0000)
commitc478f8ad6cf57425ffdae56a7c18b62b27985ea4
treec93829127dd68ddad46f1645dd943595f4908e7b
parent380bf556bfe34357f802dc49e1e104dc8fdf951a
spirv,nir: Add a better vector_insert

The old one in spirv_to_nir was besel'ing the whole vector for every
component.  If we think about this as a vector operation, we can do it
way more efficiently.

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