From a457256e2d697d9bae56031a07ae0309d8f59512 Mon Sep 17 00:00:00 2001 From: Eduardo Lima Mitev Date: Wed, 19 Aug 2020 09:57:33 +0200 Subject: [PATCH] freedreno: Destroy syncobj too when destroying fence This is a missing part of freedreno EXT_semaphore support, recently merged as part of series adding EXT_external_objects. This hunk was actually lost due to a mistake on my side while doing a rebase. Reviewed-by: Hyunjun Ko Part-of: --- src/gallium/drivers/freedreno/freedreno_fence.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_fence.c b/src/gallium/drivers/freedreno/freedreno_fence.c index 9f0f6ee531d..29ee6627e2d 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.c +++ b/src/gallium/drivers/freedreno/freedreno_fence.c @@ -70,6 +70,8 @@ static void fd_fence_destroy(struct pipe_fence_handle *fence) { if (fence->fence_fd != -1) close(fence->fence_fd); + if (fence->syncobj) + drmSyncobjDestroy(fd_device_fd(fence->screen->dev), fence->syncobj); fd_pipe_del(fence->pipe); FREE(fence); } -- 2.30.2