mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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 1c97432ce8)
This commit is contained in:
parent
8dbdbc2191
commit
4c21d20dcf
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue