mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 22:50:28 +01:00
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:
parent
f8831ccb2d
commit
1a172efa20
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue