panfrost: Adopt gen_pack_header.py via v3d

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [collabora.com] - 13 August 2020 06:55 UTC

We fork gen_pack_header.py from v3d, which in turn forks GenXML from Intel. Selected changes for Mali:

- Custom prefix/vendoring
- Cull supported types
- Drop and support (no cmdstream)
- Pack 32-bit words instead of 8-bit bytes
- Inline packing helpers
- Introduce exact attribute
- Introduce general minus(..) and shr(..) modifiers
- Introduce word:bit syntax
- Introduce prettyprinters

75cc5b8c292 panfrost: Adopt gen_pack_header.py via v3d
src/panfrost/lib/gen_pack.py | 627 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 627 insertions(+)

Upstream: cgit.freedesktop.org


  • Share