nir: Allocate register fields out of the register itself.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 03:21:59 +0000 (20:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 2 Apr 2015 21:20:01 +0000 (14:20 -0700)
commit131444e1c5e08cbac4694489110ab53c9c07816d
tree1e6c51879592375b6eb729ddcd0f8d4b4aec3dcd
parent587b3a20a1d3201467adf90e66b53b9843b2cc0a
nir: Allocate register fields out of the register itself.

The lifetime of each register's use/def/if_use sets needs to match the
register itself.  So, allocate them using the register 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