Re: [Mesa-dev] [PATCH 01/11] nir: Fix a bunch of ralloc parenting errors

2015-09-14 Thread Eric Anholt
Jason Ekstrand writes: > As of a10d4937, we would really like things associated with an instruction > to be allocated out of that instruction and not out of the shader. In > particular, you should be passing the instruction that will ultimately be > holding the source into nir_src_copy rather th

[Mesa-dev] [PATCH 01/11] nir: Fix a bunch of ralloc parenting errors

2015-09-09 Thread Jason Ekstrand
As of a10d4937, we would really like things associated with an instruction to be allocated out of that instruction and not out of the shader. In particular, you should be passing the instruction that will ultimately be holding the source into nir_src_copy rather than an arbitrary memory context.