From: Jason Ekstrand Date: Tue, 2 Feb 2016 20:22:00 +0000 (-0800) Subject: anv/fence: Default to not ready X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d2145b50f4b8b85702c9442f754c060901f38e0;p=mesa.git 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. --- 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;