panfrost: Implement pantrace (command stream dump)
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 20 Feb 2019 01:33:21 +0000 (01:33 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 21 Feb 2019 07:03:21 +0000 (07:03 +0000)
commit396eb1440a84d6ee69a74e9e6bf189718b91481d
treea814a63b6ec7f8dd53b9207c57147a9b22d4bd25
parentf611782045b471ab5004850530d6efb1a0b98c2d
panfrost: Implement pantrace (command stream dump)

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.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/meson.build
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_screen.h
src/gallium/drivers/panfrost/pan_trace.c [new file with mode: 0644]
src/gallium/drivers/panfrost/pan_trace.h [new file with mode: 0644]