pan/va: Generate header containing enums
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 24 Mar 2022 21:13:24 +0000 (17:13 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 19:00:13 +0000 (19:00 +0000)
commit619566dea18e94e0c1e00effc8200df75b892941
tree87e6470ae67beec542096e7410f671178f7d103f
parent7ad98ae96ec48c157d65c717d4a36bb9e98deec8
pan/va: Generate header containing enums

We already collect enums in the ISA description XML. Export them for use in the
compiler backend, particularly the packing code.

Usually we'd use Mako for templating. In this case, the script is so trivial a
template engine didn't seem worth it. (The obvious version with Mako was about
10 lines longer than just prints and f-strings used here.)

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Icecream95 <ixn@disroot.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15223>
src/panfrost/bifrost/meson.build
src/panfrost/bifrost/valhall/meson.build
src/panfrost/bifrost/valhall/valhall_enums.h.py [new file with mode: 0644]