From: Samuel Pitoiset Date: Tue, 14 Jul 2020 20:55:04 +0000 (+0200) Subject: radv: fix destroying the syncobj when exporting a fence FD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8aa9d0acb8ce882686eedd7d9b2bf51b035f2614;p=mesa.git 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: --- 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);