mesa/st: Free the ARB_vp/fp nir-to-tgsi temporary tokens.
authorEric Anholt <eric@anholt.net>
Mon, 11 Jan 2021 19:09:12 +0000 (11:09 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 Jan 2021 19:46:22 +0000 (19:46 +0000)
commita4a5045d59adc8f7bac56b3828551c94b23f3617
treef0d47c6d0bd78a183662be70bc02ec2779402fab
parent4ddcd9cf165deba2605f5729a0af2f7ded0baad9
mesa/st: Free the ARB_vp/fp nir-to-tgsi temporary tokens.

The driver interface doesn't take ownership of the TGSI tokens, so free
our temporary.

Fixes: cf3fc79cd0ab ("st/mesa: Replace mesa_to_tgsi() with prog_to_nir() and nir_to_tgsi().")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8422>
src/mesa/state_tracker/st_program.c