st/nir: Free the GLSL IR after linking.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Mar 2019 06:09:11 +0000 (23:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Mar 2019 16:31:12 +0000 (09:31 -0700)
commit1d72de3bcc9a5aa05ae612ee67ca00858f0d33fa
tree17c4488d16961f253205ca3d911bcf97701d08e3
parent227b19120692a0d2d1d41694cb5131a78f333a3b
st/nir: Free the GLSL IR after linking.

i965 does this, and st's tgsi path does this.  st/nir did not.

Cuts 138MB of memory from a DiRT Rally trace, which is about 44%
of the total GLSL IR memory.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp