mesa: unref syncobj after wait_sync
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 28 Apr 2022 16:05:55 +0000 (18:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Apr 2022 14:36:59 +0000 (14:36 +0000)
commita47375d4dabc2552e4866ba5b7d8c62d4cd4b904
tree1824ba56c26a4423ca354a6050a97c3d5ee1e1f5
parent1585d12decbbc2357d05f28d1520b32266cae001
mesa: unref syncobj after wait_sync

Before returning the wait_sync() function, the sync object must be
unreferenced.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6377
Fixes: 0af7c1e385b ("mesa/st: merge the syncobj code from st into mesa")
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16242>
src/mesa/main/syncobj.c