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>
Mon, 31 Aug 2015 23:58:20 +0000 (16:58 -0700)
commitb79916dacc3d373d3d957a2e723a6e1d27932081
tree8745efcf2801a33efac11aa40badbf5c5429aa33
parentac60aba351c7c1076803b07c6f546ab5b70ac083
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