OSDN Git Service

nir: Allocate nir_phi_src values out of the nir_phi_instr.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 2 Apr 2015 23:15:11 +0000 (16:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Apr 2015 21:34:13 +0000 (14:34 -0700)
commit900498bd111091dfda79d5ca6d84fffd427a866d
treeaa64ceb945dbb5ae53deeb95d8fa03ef0f263cf3
parentb05d53404ccfe28b0011e93c388e5e5b8beaf6db
nir: Allocate nir_phi_src values out of the nir_phi_instr.

Phi sources are part of the phi instruction and should have the same
lifetime.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_lower_phis_to_scalar.c
src/glsl/nir/nir_lower_vars_to_ssa.c
src/glsl/nir/nir_to_ssa.c