Module: Mesa
Branch: main
Commit: f67a0a774591aa86202edb39c3af7d7291e462d9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f67a0a774591aa86202edb39c3af7d7291e462d9

Author: Emma Anholt <[email protected]>
Date:   Tue Jan 10 11:01:16 2023 -0800

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20658>

---

 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) {

Reply via email to