mesa/st: Fix leaks of TGSI tokens in VP variants.
authorEric Anholt <eric@anholt.net>
Tue, 12 Mar 2019 22:18:43 +0000 (15:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 14 Mar 2019 23:18:59 +0000 (16:18 -0700)
commit0803bef00675ddd90ca9365b733b222dbb58c373
tree9e5ab2fc5a3829e280f892eed6b38a8dc3d6c6db
parente0806c1ea079b1d78735290b0e24b02eb042b2c3
mesa/st: Fix leaks of TGSI tokens in VP variants.

Starting a glxgears and closing it, I was seeing a lot of leaked TGSI for
the fixed function VPs.

v2: drop unused delete_ir() arg.

Fixes: 3b4929ec6e64 ("st/mesa: Copy VP TGSI tokens if they exist, even for NIR shaders.")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_program.c