panfrost: Fix fence leak
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 26 May 2020 20:57:44 +0000 (16:57 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 14:42:33 +0000 (14:42 +0000)
commit20dd37024b045881d98a55b1927b0dab29d1edd3
treeccb68a70db958c433041a9149f04d3e95d37ab6e
parent15a17fddad6123efc4da1012f8bc9fe3acf87ac4
panfrost: Fix fence leak

When overwriting the writer, we need to release the old reference.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Fixes: 2dad9fde505 ("panfrost: Start tracking inter-batch dependencies")
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5859>
src/gallium/drivers/panfrost/pan_job.c