From 4c21d20dcf6df4eb83a403e9796f5196a8512377 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 10 Nov 2016 21:46:13 -0800 Subject: anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT Cc: "13.0" Reviewed-by: Dave Airlie (cherry picked from commit 1c97432ce88ea272ff7d906cd36f70e09dafcab9) --- src/intel/vulkan/anv_device.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/intel') 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); -- cgit v1.2.3