diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c index 1935bf2f499..1afee991718 100644 --- a/src/vulkan/wsi/wsi_common.c +++ b/src/vulkan/wsi/wsi_common.c @@ -1050,6 +1050,7 @@ wsi_common_queue_present(const struct wsi_device *wsi, goto fail_present; } } else { + MESA_TRACE_SCOPE("throttle"); result = wsi->WaitForFences(device, 1, &swapchain->fences[image_index], true, ~0ull); diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 26083b11405..65e78836f76 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -1533,8 +1533,11 @@ x11_manage_fifo_queues(void *state) * acquirable by the consumer or wait there on such an event. */ uint32_t image_index = 0; - result = wsi_queue_pull(&chain->present_queue, &image_index, INT64_MAX); - assert(result != VK_TIMEOUT); + { + MESA_TRACE_SCOPE("pull present queue"); + result = wsi_queue_pull(&chain->present_queue, &image_index, INT64_MAX); + assert(result != VK_TIMEOUT); + } if (result < 0) { goto fail; @@ -1550,6 +1553,7 @@ x11_manage_fifo_queues(void *state) */ if (x11_needs_wait_for_fences(chain->base.wsi, wsi_conn, chain->base.present_mode)) { + MESA_TRACE_SCOPE("wait fence"); result = chain->base.wsi->WaitForFences(chain->base.device, 1, &chain->base.fences[image_index], true, UINT64_MAX); @@ -1568,6 +1572,8 @@ x11_manage_fifo_queues(void *state) goto fail; if (chain->has_acquire_queue) { + MESA_TRACE_SCOPE("wait present"); + /* Assume this isn't a swapchain where we force 5 images, because those * don't end up with an acquire queue at the moment. */