[Mesa-stable] [PATCH 3/4] anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT

Jason Ekstrand jason at jlekstrand.net
Fri Nov 11 06:33:55 UTC 2016


Cc: "13.0" <mesa-stable at lists.freedesktop.org>
---
 src/intel/vulkan/anv_device.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 6bd87ef..3f67919 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1554,7 +1554,11 @@ VkResult anv_CreateFence(
    fence->execbuf.rsvd1 = device->context_id;
    fence->execbuf.rsvd2 = 0;
 
-   fence->state = ANV_FENCE_STATE_RESET;
+   if (pCreateInfo->flags & VK_FENCE_CREATE_SIGNALED_BIT) {
+      fence->state = ANV_FENCE_STATE_SIGNALED;
+   } else {
+      fence->state = ANV_FENCE_STATE_RESET;
+   }
 
    *pFence = anv_fence_to_handle(fence);
 
-- 
2.5.0.400.gff86faf



More information about the mesa-stable mailing list