freedreno/registers: Add prefix="variant"
authorRob Clark <robdclark@chromium.org>
Tue, 2 Aug 2022 16:53:25 +0000 (09:53 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 13 Mar 2023 17:31:23 +0000 (17:31 +0000)
commit684931166d5378dcf8de0e6c9ec3088a2d796c08
treeb9742d78684bad9768418a6e117e2ba2d2f8643b
parentfadf76b938317200184cf654b5f4d609bd7afa49
freedreno/registers: Add prefix="variant"

To merge a7xx and a6xx regs, using variant property to manage the
differences, we'll want regs/etc to be named according to the first
generation it is use rather than the domain name.  Add a new prefix
type to accomplish this.  By default, if no variant property, things
will still be named based on domain (ie. REG_A6XX_...), and things
that have variant="A6XX" will also end up as they currently are
(since the chip enum matches domain name), but things that have
variant="A7XX" will end up as REG_A7XX_...

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21846>
src/freedreno/registers/gen_header.py
src/freedreno/registers/rules-ng.xsd