From fb50245ac1e1eb60b2451d9d6dd05388cb89634a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 9 Nov 2016 01:21:30 +0000 Subject: [PATCH] radv: fix GetFenceStatus for signaled fences if a fence is created pre-signaled we should return that in GetFenceStatus even if it hasn't been submitted. Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Gustaw Smolarczyk Cc: "13.0" Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 376a8c2..9f05ae4 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1186,6 +1186,8 @@ VkResult radv_GetFenceStatus(VkDevice _device, VkFence _fence) RADV_FROM_HANDLE(radv_device, device, _device); RADV_FROM_HANDLE(radv_fence, fence, _fence); + if (fence->signalled) + return VK_SUCCESS; if (!fence->submitted) return VK_NOT_READY; -- 2.7.4