nir: Add nir_op_vec helper
authorKarol Herbst <kherbst@redhat.com>
Wed, 20 Mar 2019 17:11:20 +0000 (18:11 +0100)
committerKarol Herbst <kherbst@redhat.com>
Sat, 4 May 2019 10:27:51 +0000 (12:27 +0200)
commitd11b807da52c0ca3fddb5eae8f99a4f5696b3282
tree6a8a2aa937bda2646e51a32403200697dda7b07f
parent681fb7ea05d5f77d6a754c27ae938ebcd00cab3b
nir: Add nir_op_vec helper

with that we can simplify code where nir vectors are created

v2: merge both lines in nir_vec

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.h
src/compiler/spirv/spirv_to_nir.c