Mesa (master): amd/registers: scripts for processing register descriptions in JSON

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 4 00:05:42 UTC 2019


Module: Mesa
Branch: master
Commit: e6184b089240b76942650e847b8a4879821caaa6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6184b089240b76942650e847b8a4879821caaa6

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Mon May  6 10:31:19 2019 +0200

amd/registers: scripts for processing register descriptions in JSON

We will derive both the debugging tables and (the majority of) the
register headers from descriptions in JSON, instead of deriving the
debugging tables from an awkward parsing of the register headers.

Some of the scripts are useful for maintaining the register database
itself. The scripts are designed to output reasonably readable JSON
by default.

---

 src/amd/registers/canonicalize.py  |  92 ++++
 src/amd/registers/makeregheader.py | 384 ++++++++++++++++
 src/amd/registers/mergedbs.py      |  55 +++
 src/amd/registers/parseheader.py   | 199 ++++++++
 src/amd/registers/regdb.py         | 901 +++++++++++++++++++++++++++++++++++++
 5 files changed, 1631 insertions(+)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=e6184b089240b76942650e847b8a4879821caaa6



More information about the mesa-commit mailing list