nir/spirv: Move OpPhi handling to vtn_cfg.c
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 02:58:31 +0000 (18:58 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 03:00:00 +0000 (19:00 -0800)
commitc7203aa621ee5cbc4a10fd5ae9a3d10dd38b8a98
treedac2e5412ab7ccfe1cf048c86761d019d8443879
parent891564adb90f090e0c635a30fb947baa0291703c
nir/spirv: Move OpPhi handling to vtn_cfg.c

Phi handling is somewhat intrinsically tied to the CFG.  Moving it here
makes it a bit easier to handle that.  In particular, we can now do SSA
repair after we've done the phi node second-pass.  This fixes 6 CTS tests.
src/glsl/nir/spirv/spirv_to_nir.c
src/glsl/nir/spirv/vtn_cfg.c
src/glsl/nir/spirv/vtn_private.h