summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-11-10 21:46:13 -0800
committerEmil Velikov <emil.l.velikov@gmail.com>2016-11-24 16:34:40 +0000
commit4c21d20dcf6df4eb83a403e9796f5196a8512377 (patch)
tree69401c161f2c16f3bdb447ea6d4ffd0e5fbce8a6
parent8dbdbc21910a6d37c381535186f9e728fff8690d (diff)
downloadexternal_mesa3d-4c21d20dcf6df4eb83a403e9796f5196a8512377.zip
external_mesa3d-4c21d20dcf6df4eb83a403e9796f5196a8512377.tar.gz
external_mesa3d-4c21d20dcf6df4eb83a403e9796f5196a8512377.tar.bz2
anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT
Cc: "13.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit 1c97432ce88ea272ff7d906cd36f70e09dafcab9)
-rw-r--r--src/intel/vulkan/anv_device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 424fc52..3f0e32a 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);