util/trace: Fix u_trace_*_iterator with no tracepoints
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 8 Jul 2022 10:36:59 +0000 (12:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Jul 2022 19:40:44 +0000 (19:40 +0000)
commit0a4c86fc44a64eba9f35820e9b7e5b0a651a081f
tree4ddc8bbc86639d3a6916874214a6253b8fed17f3
parent3aa20a4409eedce70acc282cec12f5af12498b33
util/trace: Fix u_trace_*_iterator with no tracepoints

If u_trace is empty then there are no chunks, and we didn't account for
that case.

This fixes tracing some dynamic rendering tests.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17378>
src/util/perf/u_trace.c