vulkan/wsi/display: Add some super useful debug messaging.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38502>
This commit is contained in:
Emma Anholt 2025-11-17 16:10:24 -08:00 committed by Marge Bot
parent f8831ccb2d
commit 1a172efa20

View file

@ -2847,6 +2847,7 @@ _wsi_display_queue_next(struct wsi_swapchain *drv_chain)
if (ret != -EACCES) {
connector->active = false;
image->state = WSI_IMAGE_IDLE;
wsi_display_debug("drm_atomic_commit error: %s\n", strerror(-ret));
wsi_display_surface_error(chain, VK_ERROR_SURFACE_LOST_KHR);
return VK_ERROR_SURFACE_LOST_KHR;
}
@ -2854,6 +2855,7 @@ _wsi_display_queue_next(struct wsi_swapchain *drv_chain)
/* Some other VT is currently active. Sit here waiting for
* our VT to become active again by polling once a second
*/
wsi_display_debug("waiting for VT\n");
usleep(1000 * 1000);
connector->active = false;
}