panfrost: Free all block/instruction objects before leaving midgard_compile_shader_nir()
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 13 Aug 2019 23:56:30 +0000 (01:56 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 27 Aug 2019 14:50:52 +0000 (16:50 +0200)
commit5882e0def97a47aff050f5a3f412b97a7f440e27
tree8f251b95b063de2f8f97de7125d9f9ddd9ee75f1
parent3ac49f135a104ea0420972403cbb53d94b1ab45f
panfrost: Free all block/instruction objects before leaving midgard_compile_shader_nir()

Right now we're leaking all block and instruction objects allocated by
the compiler. Let's clean things up before leaving
midgard_compile_shader_nir().

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_compile.c