summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-02 12:22:00 -0800
committerJason Ekstrand <[email protected]>2016-02-02 12:22:03 -0800
commit0d2145b50f4b8b85702c9442f754c060901f38e0 (patch)
treeac198fae6e61e24fd03bf4f1d5b762a813fe7a4a /src/vulkan
parentac0589b213f21f22dc330d2e8fb8dceda3960ddc (diff)
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.
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/anv_device.c2
1 files changed, 2 insertions, 0 deletions
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;