spirv: Call nir_builder directly for vector_extract
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 9 Apr 2020 22:03:37 +0000 (17:03 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Apr 2020 19:21:44 +0000 (19:21 +0000)
commitfeca4396974feb0e94603151eaebb6a7a6a22ce3
treefa9cf990c7a7beaa1041b2ce22a8769fe9176297
parentacaccff4d331ecc4b2794fef3f4b117abdd15abf
spirv: Call nir_builder directly for vector_extract

The nir_builder helper already handles checking if the component
selector is an immediate and returns an undef in the OOB case.

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
src/compiler/spirv/vtn_amd.c
src/compiler/spirv/vtn_glsl450.c
src/compiler/spirv/vtn_opencl.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c