glsl: clone inputs and outputs during linking
authorTapani Pälli <tapani.palli@intel.com>
Thu, 11 Jun 2015 07:41:52 +0000 (10:41 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Jun 2015 19:01:21 +0000 (12:01 -0700)
commitc2ff3485b3d48749ea9dcad07bc1a691627dc3e5
treecbfaef450e33045e647c3e6b51ee406891fca447
parent4b35ab9bdb4e663f41ff5c9ae5bbcc650b6093f9
glsl: clone inputs and outputs during linking

This increases memory pressure during linking but makes it easier
for backend to free IR after it is not needed anymore.

v2: use resource list as ralloc context in case of relink (Kenneth)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/glsl/linker.cpp