gallium/ntt: Fix leak of the per-instr liveness information.

Fixes: 34cc6a804e ("gallium: Add a nir-to-TGSI pass.")
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>
This commit is contained in:
Eric Anholt
2021-01-11 10:40:21 -08:00
committed by Marge Bot
parent afa187fc36
commit 0367bdbdc4
+3
View File
@@ -2193,6 +2193,9 @@ ntt_emit_impl(struct ntt_compile *c, nir_function_impl *impl)
ntt_setup_registers(c, &impl->registers);
ntt_emit_cf_list(c, &impl->body);
ralloc_free(c->liveness);
c->liveness = NULL;
}
static int