Merge 'Fix that WSI layer display could end up with empty fd_set' into 'main'

See merge request mesa/vulkan-wsi-layer!234
This commit is contained in:
Iason Paraskevopoulos 2026-04-27 16:53:23 +00:00
commit e9512c175d

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024-2025 Arm Limited.
* Copyright (c) 2024-2026 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@ -359,11 +359,12 @@ void swapchain::present_image(const pending_present_request &pending_present)
}
fd_set fds;
FD_ZERO(&fds);
FD_SET(display->get_drm_fd(), &fds);
do
{
FD_ZERO(&fds);
FD_SET(display->get_drm_fd(), &fds);
struct timeval t;
t.tv_sec = 1;
t.tv_usec = 0;