aux/tc: Use MESA_TRACE_SCOPE instead of _BEGIN/_END
authorCorentin Noël <corentin.noel@collabora.com>
Wed, 20 Sep 2023 14:50:30 +0000 (16:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 23 Oct 2023 17:20:03 +0000 (17:20 +0000)
The MESA_TRACE_SCOPE macro is an exact replacement for this.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25308>

src/gallium/auxiliary/util/u_threaded_context.c

index dba12e0..8a56df8 100644 (file)
@@ -642,7 +642,7 @@ _tc_sync(struct threaded_context *tc, UNUSED const char *info, UNUSED const char
    struct tc_batch *next = &tc->batch_slots[tc->next];
    bool synced = false;
 
-   MESA_TRACE_BEGIN(func);
+   MESA_TRACE_SCOPE(func);
 
    tc_debug_check(tc);
 
@@ -708,8 +708,6 @@ _tc_sync(struct threaded_context *tc, UNUSED const char *info, UNUSED const char
       tc->seen_fb_state = false;
       tc->query_ended = false;
    }
-
-   MESA_TRACE_END();
 }
 
 #define tc_sync(tc) _tc_sync(tc, "", __func__)