Mesa (master): radv: fix destroying the syncobj when exporting a fence FD
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 16 21:17:48 UTC 2020
Module: Mesa
Branch: master
Commit: 8aa9d0acb8ce882686eedd7d9b2bf51b035f2614
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8aa9d0acb8ce882686eedd7d9b2bf51b035f2614
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Jul 14 22:55:04 2020 +0200
radv: fix destroying the syncobj when exporting a fence FD
It's invalid and the temporary syncobj was never actually destroyed.
Cc: 20.1 <mesa-stable at lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921>
---
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);
More information about the mesa-commit
mailing list