u_trace: add support for indirect data

Allows a driver to declare indirect arguments for its tracepoints and
pass an address. u_trace will request a copy of the data which should
be implemented on the command processor.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Co-Authored-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29944>
This commit is contained in:
Lionel Landwerlin
2024-06-26 20:37:28 +03:00
committed by Lionel Landwerlin
parent cb27b9541b
commit 0a17035b5c
18 changed files with 333 additions and 80 deletions

View File

@@ -44,6 +44,9 @@ u_trace is controlled by environment variables:
- For Turnip, ``cffdump`` can be used to view the markers in
the trace.
``indirects``
enables indirect data capture for some of the tracepoints (like
indirect draw count or indirect dispatch size)
.. envvar:: MESA_GPU_TRACEFILE