pan/va: Add disassembler generator
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 16 Jul 2021 14:59:27 +0000 (10:59 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 27 Jul 2021 20:20:32 +0000 (20:20 +0000)
commit688827f3c5280961ab096c342ea5834ccef8463e
tree825f8943ae36f750b6c02af51e5fb558020eafdd
parent227547db483864557c40191092872b9908e484d4
pan/va: Add disassembler generator

When we bring up the Valhall compiler in Mesa, we will like to have a
disassembler in native code, so we shouldn't write our disassembler in
Python. Instead, we write a disassembler generator in Python with mako
templates, which will produce a va_disasm_instr entrypoint from the
architecture defined in ISA.xml and valhall.py.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12025>
src/panfrost/bifrost/valhall/disasm.py [new file with mode: 0644]
src/panfrost/bifrost/valhall/disassemble.h [new file with mode: 0644]