Skip to content

util/perf: cheaper gpu tracepoints when not tracing

Chia-I Wu requested to merge olv/mesa:u-trace-fast into main

With this MR, we check _u_trace_instrument rather than ut->enabled || ut_trace_instrument || ut_perfetto_enabled in gpu tracepoints.

Note that this is not enough to enable -Dperfetto=true for a release build. At least ctx_list in u_trace.c needs to be protected by a mutex..

Merge request reports