nir: cleanup oversized arrays in nir_swizzle calls
authorKarol Herbst <kherbst@redhat.com>
Fri, 13 Jul 2018 01:33:22 +0000 (03:33 +0200)
committerKarol Herbst <kherbst@redhat.com>
Fri, 13 Jul 2018 13:46:57 +0000 (15:46 +0200)
commitcb65246ed2ac826285b6d6cc6e1994ff1299e531
tree41b6f0180b5f5f41f7c96aed00e05f8917a3bdc3
parent0288fe8d0417730bdd5b3477130dd1dc32bdbcd3
nir: cleanup oversized arrays in nir_swizzle calls

There are no fixed sized array arguments in C, those are simply pointers
to unsized arrays and as the size is passed in anyway, just rely on that.

where possible calls are replaced by nir_channel and nir_channels.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/amd/vulkan/radv_meta_blit2d.c
src/amd/vulkan/radv_meta_buffer.c
src/amd/vulkan/radv_query.c
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_lower_drawpixels.c
src/compiler/nir/nir_lower_tex.c
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_glsl450.c