diff options
author | Jason Ekstrand <[email protected]> | 2016-11-10 21:46:13 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-11-24 16:34:40 +0000 |
commit | 4c21d20dcf6df4eb83a403e9796f5196a8512377 (patch) | |
tree | 69401c161f2c16f3bdb447ea6d4ffd0e5fbce8a6 /src | |
parent | 8dbdbc21910a6d37c381535186f9e728fff8690d (diff) |
anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT
Cc: "13.0" <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
(cherry picked from commit 1c97432ce88ea272ff7d906cd36f70e09dafcab9)
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 424fc5210b7..3f0e32aa886 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1529,7 +1529,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); |