mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
wsi/win32: Use app-provided timeout instead of arbitrary hardcoded value
Prevents returning spurious timeouts when the app wanted to wait infinitely. Fixes 3DMark Wild Lands which would otherwise attempt to render/present a buffer it didn't successfully acquire. Reviewed-by: Giancarlo Devich <gdevich@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20963>
This commit is contained in:
parent
202480a9ca
commit
0b9972953c
1 changed files with 1 additions and 1 deletions
|
|
@ -579,7 +579,7 @@ wsi_win32_acquire_next_image(struct wsi_swapchain *drv_chain,
|
|||
uint32_t index = chain->dxgi->GetCurrentBackBufferIndex();
|
||||
if (chain->wsi->wsi->WaitForFences(chain->base.device, 1,
|
||||
&chain->base.fences[index],
|
||||
false, 2000) != VK_SUCCESS)
|
||||
false, info->timeout) != VK_SUCCESS)
|
||||
return VK_TIMEOUT;
|
||||
|
||||
*image_index = index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue