wsi/win32: Handle acquiring an image while one is already acquired
authorJesse Natalie <jenatali@microsoft.com>
Wed, 24 May 2023 21:33:48 +0000 (14:33 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 25 May 2023 20:43:32 +0000 (20:43 +0000)
commite965b5d2912d4bcdbe1d8305b524231dc6088c28
tree34fbcc8acbe359094055275743252db2da6a7ed8
parent3867e91da4a74c007641b0d7d0da43e4f985095e
wsi/win32: Handle acquiring an image while one is already acquired

In the case where the app is attempting to acquire both (since the
min/max num images is 2) swapchain images, we need to wait on the
fence for the next image in the chain.

Reviewed-by: Giancarlo Devich <gdevich@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23222>
src/vulkan/wsi/wsi_common_win32.cpp