nir/spirv: Rework access chains
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Jan 2016 01:11:55 +0000 (17:11 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jan 2016 00:18:37 +0000 (16:18 -0800)
commit1112bf633f96b4fac4dfba56ce19d43fccf53200
treea3292e1418dd9614d777337e021168a57dfe0b99
parent824f7763550bf83ade57a45fcce4c5a6ac0c4a85
nir/spirv: Rework access chains

Previously, we were creating nir_deref's immediately.  Now, instead, we
have an intermediate vtn_access_chain structure.  While a little more
awkward initially, this will allow us to more easily do structure splitting
on-the-fly.
src/glsl/nir/spirv/spirv_to_nir.c
src/glsl/nir/spirv/vtn_cfg.c
src/glsl/nir/spirv/vtn_glsl450.c
src/glsl/nir/spirv/vtn_private.h