nir/spirv: Rework access chains a bit to allow for literals
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Jan 2016 18:20:50 +0000 (10:20 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jan 2016 00:20:39 +0000 (16:20 -0800)
commita8af0f536cc043edc20ad13e93e820c88f9cff59
tree42c3765a31d58e6492fa04d643b7ed676eee3643
parent5d9a6fd52608df7e3fcdaeb441f5edd1c75eb811
nir/spirv: Rework access chains a bit to allow for literals

This makes them much easier to construct because you can also just specify
a literal number and it doesn't have to be a valid SPIR-V id.
src/glsl/nir/spirv/vtn_private.h
src/glsl/nir/spirv/vtn_variables.c