nir/spirv: Handle matrix decorations on arrays of matrices
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Jan 2016 09:04:41 +0000 (01:04 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Jan 2016 09:04:44 +0000 (01:04 -0800)
commit4141d13de5a6c5de6398bf716724359da975912c
tree7880bc2150be0ebdd57547845af73f262ec2fe19
parentb208620fd240a9d74025cdf1ca1d2a54972ebc55
nir/spirv: Handle matrix decorations on arrays of matrices

Connor's original shallow-copy plan works great except that a couple of the
decorations apply to a matrix which may be some levels down in an array.
We weren't properly unpacking that.  This fixes most of the remaining SSBO
and UBO layout tests.
src/glsl/nir/spirv/spirv_to_nir.c