nir/builder: Add a build_deref_array_imm helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Mar 2019 17:45:13 +0000 (11:45 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 7 Mar 2019 21:20:30 +0000 (21:20 +0000)
commit1664de5924aa6d761be21afdee411654121515d1
treeea9484e48251e569e7c06e3541c8c9664158020f
parentfcf2a0122e9ccf3be8d1fa3bd18b8dedbebd6acf
nir/builder: Add a build_deref_array_imm helper

Unlike most of the cases in which we do this by hand, the new helper
properly handles non-32-bit pointers.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_lower_constant_initializers.c
src/compiler/nir/nir_lower_indirect_derefs.c
src/compiler/nir/nir_lower_var_copies.c
src/compiler/nir/nir_split_vars.c
src/compiler/nir/tests/vars_tests.cpp
src/compiler/spirv/vtn_variables.c
src/intel/vulkan/anv_nir_lower_multiview.c