nir: Add an interface to turn a nir_src into a nir_ssa_def.
authorEric Anholt <eric@anholt.net>
Fri, 27 Mar 2015 21:19:46 +0000 (14:19 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 3 Apr 2015 18:50:22 +0000 (11:50 -0700)
commit64bdfc698d6d9f543f82141330ae32de286b8417
tree2451174dbef657980b141266aad582f4ccfd6a9f
parentec029702054ddc4e098ebb96e76c7451190d649f
nir: Add an interface to turn a nir_src into a nir_ssa_def.

We use nir_ssa_defs for nir_builder args, so this takes a nir_src and
makes one so it can be passed in.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_builder.h