nir/lower_samplers: Use the right memory context for realloc'ing tex sources
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Apr 2015 22:23:20 +0000 (15:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Apr 2015 00:02:20 +0000 (17:02 -0700)
commit9c53e80b9b6a637a771328bac98d2292a00869ce
treec3483710eab039c5a3c731895eb99a5eef062b94
parent1bd1fc248ce5ecc6882309ab64ec61835fea1eda
nir/lower_samplers: Use the right memory context for realloc'ing tex sources

As of da5ec2a, we allocate instruction sources out of the instruction
itself.  When we realloc the texture sources we need to use the right
memory context or ralloc will get angry and assert-fail

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_lower_samplers.cpp