From 0d2145b50f4b8b85702c9442f754c060901f38e0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 2 Feb 2016 12:22:00 -0800 Subject: [PATCH] anv/fence: Default to not ready This is kind-of silly. We *really* need to do a better job of making sure all objects have all their default values set. We probably also want to, eventually, put everything into the BO (to save memory) and, more specifically, make the GPU write the "ready" flag. That way GetFenceStatus won't ever have to call into the kernel. --- src/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 09aca1ab1e9..82514677977 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -1369,6 +1369,8 @@ VkResult anv_CreateFence( fence->execbuf.rsvd1 = device->context_id; fence->execbuf.rsvd2 = 0; + fence->ready = false; + *pFence = anv_fence_to_handle(fence); return VK_SUCCESS; -- 2.30.2