util/perf: cheaper gpu tracepoints when not tracing
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..