isaspec: Add support for templates

If you have a repeating <display> substring you can replace this
substring with a template and reference the template name instead.

Saves from doing lot of copy&paste and makes general changes to the
substring much easier.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25451>
This commit is contained in:
Christian Gmeiner
2023-08-16 11:56:03 +02:00
committed by Marge Bot
parent 62a4a05658
commit 2c9a59dcfc
2 changed files with 34 additions and 0 deletions

View File

@@ -208,6 +208,9 @@ some other bitfield (or combination of bitfields). In this example it is
used to cover the cases where ``SRCn_R`` has a different meaning and a
different disassembly syntax depending on whether ``REPEAT`` equals zero.
The ``<template>`` element can be used to represent a placeholder for a more
complex ``<display>`` substring.
Overrides
---------