Module: Mesa
Branch: master
Commit: 1c97432ce88ea272ff7d906cd36f70e09dafcab9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c97432ce88ea272ff7d906cd36f70e09dafcab9

Author: Jason Ekstrand <[email protected]>
Date:   Thu Nov 10 21:46:13 2016 -0800

anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT

Cc: "13.0" <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>

---

 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);
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to