nir: Allocate nir_call_instr::params out of the nir_call itself.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Apr 2015 07:32:55 +0000 (00:32 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Apr 2015 21:34:13 +0000 (14:34 -0700)
commitb05d53404ccfe28b0011e93c388e5e5b8beaf6db
tree30f60f344c9fcade096d2a95bfb5e115450f6029
parent73d106822e3d0e851ef1308afff7490007b1af8c
nir: Allocate nir_call_instr::params out of the nir_call itself.

The lifetime of the params array needs to be match the nir_call_instr
itself.  So, allocate it using the instruction itself as the context.

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