freedreno/replay: Add "gpu_print" function for command streams
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 7 Jun 2023 14:53:28 +0000 (16:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Sep 2023 22:20:13 +0000 (22:20 +0000)
commit73d0286eb56931b014c127375e3da14be916eea1
tree080a0a372c106c8e795b782ae4f0a553318ceb6c
parentcad065cd006f081832ccba9773c4d6d99e8494f4
freedreno/replay: Add "gpu_print" function for command streams

Allows to dump GPU memory, e.g.
 gpu_print(&ctx, cs, 0x4000086080, 4);

would print 4 dowrds from 0x4000086080:
 CP Log [0]:
         20002000 47340000 20012001 47340001

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>
src/freedreno/decode/rdcompiler-utils.h
src/freedreno/decode/redump.h
src/freedreno/decode/replay.c