panfrost: Add some debug utility methods for resources
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Fri, 1 Sep 2023 17:34:28 +0000 (13:34 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 25 Oct 2023 14:25:31 +0000 (14:25 +0000)
commit888d7c8ee6ad59aed2b86ba6f32542976b671dd0
treee1db1338e56f4a07ba59246d9652a20cd5ce301a
parent33b48a55857b15f7e7b892a89cad2f0ad2399ba6
panfrost: Add some debug utility methods for resources

Add a method to dump a specific superblock given its index (header
and few first bytes from the body) and a method to dump a resource
to a ppm file.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25012>
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h