mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 01:30:25 +01:00
vulkan/wsi/x11: Set OUT_OF_DATE if wait_for_special_event fails
This most likely means we lost our connection to the X server so
OUT_OF_DATE is reasonable. This was also the one case where we pushed a
UINT32_MAX into the queue without setting an error condition.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Daniel Stone <daniels@collabora.com>
(cherry picked from commit 6937c61324)
This commit is contained in:
parent
343afbaed9
commit
fc8282ad47
1 changed files with 3 additions and 1 deletions
|
|
@ -935,8 +935,10 @@ x11_manage_fifo_queues(void *state)
|
|||
while (chain->last_present_msc < target_msc) {
|
||||
xcb_generic_event_t *event =
|
||||
xcb_wait_for_special_event(chain->conn, chain->special_event);
|
||||
if (!event)
|
||||
if (!event) {
|
||||
result = VK_ERROR_OUT_OF_DATE_KHR;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
result = x11_handle_dri3_present_event(chain, (void *)event);
|
||||
free(event);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue