wsi/wayland: Add tracepoint in wsi_wl_swapchain_wait_for_present

We can spend a lot of time in wait_for_present, making it an interesting
trace point.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28634>
This commit is contained in:
Derek Foreman
2024-04-05 10:59:01 -05:00
committed by Marge Bot
parent c4b432f83e
commit c6dc61775f

View File

@@ -1826,6 +1826,8 @@ wsi_wl_swapchain_wait_for_present(struct wsi_swapchain *wsi_chain,
VkResult ret;
int err;
MESA_TRACE_FUNC();
uint64_t atimeout;
if (timeout == 0 || timeout == UINT64_MAX)
atimeout = timeout;