anv/fence: Handle ANV_FENCE_CREATE_SIGNALED_BIT

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Jason Ekstrand 2016-11-10 21:46:13 -08:00
parent 49f08ad77f
commit 1c97432ce8
1 changed files with 5 additions and 1 deletions

View File

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