From: Jason Ekstrand Date: Fri, 11 Nov 2016 05:46:13 +0000 (-0800) Subject: anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c97432ce88ea272ff7d906cd36f70e09dafcab9;p=mesa.git anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT Cc: "13.0" Reviewed-by: Dave Airlie --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 6bd87eff35c..3f679195a10 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);