mesa/src/util/perf
Lionel Landwerlin 6f2e24f53f util/u_trace: refcount payloads
When cloning a chunk of tracepoints, we cannot just copy the elements
of the traces[] array. We also need the payloads associated with
those.

This change introduces a new u_trace_payloaf_buf object that is
refcounted so that we can easily import traces[] elements and their
payloads from one utrace to another.

v2: use u_vector (Danylo)

v3: Delete outdate comment (Danylo)
    Fix assert (Danylo)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 0565c993f9 ("u_trace: helpers for tracing tiling GPUs and re-usable VK cmdbuffers")
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13899>
(cherry picked from commit 14e45cb21e)
2021-12-01 18:55:47 +00:00
..
u_trace.c util/u_trace: refcount payloads 2021-12-01 18:55:47 +00:00
u_trace.h util/u_trace: refcount payloads 2021-12-01 18:55:47 +00:00
u_trace.py util/u_trace: Replace Flag with IntEnum to support python3.5 2021-11-10 21:58:04 +00:00
u_trace_priv.h u_trace: pass command stream through tracing functions 2021-09-10 14:58:28 +03:00