i965: Delete linked GLSL IR when using NIR.
authorTapani Pälli <tapani.palli@intel.com>
Thu, 11 Jun 2015 07:41:53 +0000 (10:41 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Jun 2015 19:03:41 +0000 (12:03 -0700)
commit104c8fc2c2aa5621261f80aa6b4f76c3163078f1
tree1e8d9a2b08974154344909440415eed80c21af0c
parentc2ff3485b3d48749ea9dcad07bc1a691627dc3e5
i965: Delete linked GLSL IR when using NIR.

This is based on Kenneth's patch to delete 'most of the IR'. Due to
linker changes to clone variables, we can now free all of IR.

Saves 58MB of memory when replaying a Dota 2 trace on Broadwell.

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