nir/spirv: Handle derefs in vtn_ssa_value
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Dec 2015 19:10:58 +0000 (11:10 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Dec 2015 21:49:56 +0000 (13:49 -0800)
commit6219a69589a78efd8a40832d5f71ffe42eda9f67
tree039978c212325d227eb29455e0176f9257ee2504
parent3ab1b7afa8fd59ada577573954830a409a667bc4
nir/spirv: Handle derefs in vtn_ssa_value

This is kind of a hack, but it makes vtn_ssa_value insert a load if the
value requested is actually a deref.  This shouldn't happen normally but,
thanks to the impedence mismatch of the NIR function parameter model vs.
the SPIR-V model, this can happen for function arguments.
src/glsl/nir/spirv_to_nir.c