nir/spirv: Refactor variable deocration handling
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Sep 2016 01:44:52 +0000 (18:44 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Sep 2016 17:45:23 +0000 (10:45 -0700)
commita00bd7bc274c9d014883c08a5144f2a1db10ab80
tree477faddfe880e703ce12548360473feb74e33560
parentf5505730d3a574f151205366643e2dabec6514b3
nir/spirv: Refactor variable deocration handling

Previously, we dind't apply variable decorations to the members of a split
structure variable.  This doesn't quite work, unfortunately, because things
such as the "flat" qualifier may get applied to an entire structure instead
of propagated to the members.  This fixes 9 of the new CTS tests in the
dEQP-VK.glsl.linkage.varying.struct.* group.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/compiler/spirv/vtn_variables.c