nir/spirv: Improve handling of variable loads and copies
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Jan 2016 18:58:53 +0000 (10:58 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jan 2016 00:20:39 +0000 (16:20 -0800)
commit514507825cd683ca2ebe9d25446dfc48b07bb9f6
tree09cc84cb4117d36a09333578c1ecbf78ef2b910d
parent7e5e64c8a9612de307ae6d17c94853f6106626d6
nir/spirv: Improve handling of variable loads and copies

Before we were asuming that a deref would either be something in a block or
something that we could pass off to NIR directly.  However, it is possible
that someone would choose to load/store/copy a split structure all in one
go.  We need to be able to handle that.
src/glsl/nir/spirv/vtn_variables.c