nir/spirv: Rework decoration iteration
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Nov 2015 23:15:38 +0000 (15:15 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Nov 2015 23:15:40 +0000 (15:15 -0800)
commit1157b0360d9978028685dd78fa77871d5172c628
tree30d9c16ef644b9cd2fc5fd4e89d3c88babf7f088
parentcff74d6fb876c0ca4a6c5c5041c02770241beeb2
nir/spirv: Rework decoration iteration

The old code didn't work correctly if you had member decorations after
non-member decorations.  Since glslang never gave us any of those, it
wasn't properly tested.
src/glsl/nir/spirv_to_nir.c