nir: Don't require a function in ssa_def_init
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 20 Nov 2014 00:06:32 +0000 (16:06 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:02 +0000 (07:19 -0800)
commit6a52d2af2f7594fcd76fcf6158eca531e48af1e3
tree89d015f2fa2288f98551f858c655688ae4e8e9bb
parent829aa98320fcd529407d16991b476b71af017479
nir: Don't require a function in ssa_def_init

Instead, we give SSA definitions a temporary index of 0xFFFFFFFF if the
instruction does not have a block and a proper index when it actually gets
added to the list.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_opt_peephole_ffma.c
src/glsl/nir/nir_opt_peephole_select.c
src/glsl/nir/nir_to_ssa.c