pan/midgard: Stop leaking instruction objects in mir_schedule_alu()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 31 Jan 2020 09:46:04 +0000 (10:46 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Feb 2020 12:53:47 +0000 (12:53 +0000)
commit2b089e26bfe615cf616926cdddafd8439c835878
treec152b5129e5d19ae2f2a5e98506ea0edd5e820e0
parentc7e68d8625e4efcc776b5352de3b16b6951fabf7
pan/midgard: Stop leaking instruction objects in mir_schedule_alu()

Allocate those instructions with ralloc() instead of using mem_dup.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
src/panfrost/midgard/midgard_schedule.c