mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
anv/wsi: Set the fence to signaled in AcquireNextImageKHR
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 73701be667)
This commit is contained in:
parent
1ba7f6ce38
commit
64c818d6a6
1 changed files with 10 additions and 3 deletions
|
|
@ -323,13 +323,20 @@ VkResult anv_AcquireNextImageKHR(
|
|||
VkSwapchainKHR _swapchain,
|
||||
uint64_t timeout,
|
||||
VkSemaphore semaphore,
|
||||
VkFence fence,
|
||||
VkFence _fence,
|
||||
uint32_t* pImageIndex)
|
||||
{
|
||||
ANV_FROM_HANDLE(wsi_swapchain, swapchain, _swapchain);
|
||||
ANV_FROM_HANDLE(anv_fence, fence, _fence);
|
||||
|
||||
return swapchain->acquire_next_image(swapchain, timeout, semaphore,
|
||||
pImageIndex);
|
||||
VkResult result = swapchain->acquire_next_image(swapchain, timeout,
|
||||
semaphore, pImageIndex);
|
||||
|
||||
/* Thanks to implicit sync, the image is ready immediately. */
|
||||
if (fence)
|
||||
fence->ready = true;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
VkResult anv_QueuePresentKHR(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue