From f67a0a774591aa86202edb39c3af7d7291e462d9 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 10 Jan 2023 11:01:16 -0800 Subject: [PATCH] anv: Add a tracepoint for the fallback implicit sync wait path. If you're here, you'd really like to know. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_bo_sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_bo_sync.c b/src/intel/vulkan/anv_bo_sync.c index 149ae2c2ba2..c48d52d285d 100644 --- a/src/intel/vulkan/anv_bo_sync.c +++ b/src/intel/vulkan/anv_bo_sync.c @@ -24,6 +24,7 @@ #include "anv_private.h" #include "util/os_time.h" +#include "util/perf/cpu_trace.h" static struct anv_bo_sync * to_anv_bo_sync(struct vk_sync *sync) @@ -105,6 +106,7 @@ anv_bo_sync_wait(struct vk_device *vk_device, { struct anv_device *device = container_of(vk_device, struct anv_device, vk); VkResult result; + MESA_TRACE_FUNC(); uint32_t pending = wait_count; while (pending) {