panfrost: Implement pantrace (command stream dump)

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [rosenzweig.io] - 21 February 2019 07:03 EST

Historically, Panfrost debugging entailed the use of the LD_PRELOADable `panwrap` tool. This setup is a tad fragile; Panfrost can be traced directly without the intermediate layer. pantrace implements the quivalent functionality of panwrap into Panfrost proper, allowing dumps to work regardless of the kernel layer in use.

396eb1440a8 panfrost: Implement pantrace (command stream dump)
src/gallium/drivers/panfrost/meson.build | 1 +
src/gallium/drivers/panfrost/pan_screen.c | 7 ++
src/gallium/drivers/panfrost/pan_screen.h | 1 +
src/gallium/drivers/panfrost/pan_trace.c | 146 ++++++++++++++++++++++++++++++
src/gallium/drivers/panfrost/pan_trace.h | 33 +++++++
5 files changed, 188 insertions(+)

Upstream: cgit.freedesktop.org


  • Share