If the packet encoding is defined in the same format as register definitions, the python script can process them automatically and the parser support becomes trivial.
16e5d8a radeonsi: add IB parser support for CP DMA packets
src/gallium/drivers/radeonsi/si_cp_dma.c | 17 ++--
src/gallium/drivers/radeonsi/si_debug.c | 24 +++++
src/gallium/drivers/radeonsi/si_state_draw.c | 6 +-
src/gallium/drivers/radeonsi/sid.h | 136 ++++++++++++++++----------
4 files changed, 122 insertions(+), 61 deletions(-)
Upstream: cgit.freedesktop.org