From 8aa9d0acb8ce882686eedd7d9b2bf51b035f2614 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 14 Jul 2020 22:55:04 +0200 Subject: [PATCH] radv: fix destroying the syncobj when exporting a fence FD It's invalid and the temporary syncobj was never actually destroyed. Cc: 20.1 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index e1e3c0b8a85..09a89b8be74 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -7237,7 +7237,7 @@ VkResult radv_GetFenceFdKHR(VkDevice _device, ret = device->ws->export_syncobj_to_sync_file(device->ws, syncobj_handle, pFd); if (!ret) { if (fence->temp_syncobj) { - close (fence->temp_syncobj); + device->ws->destroy_syncobj(device->ws, fence->temp_syncobj); fence->temp_syncobj = 0; } else { device->ws->reset_syncobj(device->ws, syncobj_handle); -- 2.30.2