nir/spirv: Rework the way values are added
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Apr 2015 21:34:06 +0000 (14:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 16 May 2015 18:16:32 +0000 (11:16 -0700)
commit2b570a49a92458f4771252c7faf1bac5a3c9dca5
treecf5c5c6ec473a666015feda1181c5c20ca124ebf
parentf9a31ba044d3abf07359e66a833eaf1292668c3d
nir/spirv: Rework the way values are added

Instead of having functions to add values and set various things, we just
have a function that does a few asserts and then returns the value.  The
caller is then responsible for setting the various fields.
src/glsl/nir/spirv_to_nir.c