intel/genxml: Convert field format from start/end to dword/bits

And change the gen_sort_xml.py script to default to the new format.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36138>
This commit is contained in:
Caio Oliveira
2025-07-15 10:31:57 -07:00
committed by Marge Bot
parent fb8f14820a
commit c418cb85f7
17 changed files with 18056 additions and 18056 deletions
+14 -14
View File
@@ -1,29 +1,29 @@
<?xml version='1.0' encoding='utf-8'?>
<genxml name="SKL" gen="9">
<struct name="STRUCT_TWO_LEVELS" length="8">
<group count="4" start="0" size="64">
<group count="8" start="0" size="8">
<field name="byte" start="0" end="7" type="uint" />
<group count="4" dword="0" size="64">
<group count="8" dword="0" size="8">
<field name="byte" dword="0" bits="7:0" type="uint" />
</group>
</group>
</struct>
<struct name="TEST_DWORD_FIELDS" length="4">
<field name="value_dw0" start="0" end="15" type="uint" />
<field name="value_dw1" start="32" end="63" type="uint" />
<field name="value_dw2" start="72" end="87" type="uint" />
<field name="single_bit" start="101" end="101" type="bool" />
<field name="value_dw0" dword="0" bits="15:0" type="uint" />
<field name="value_dw1" dword="1" bits="31:0" type="uint" />
<field name="value_dw2" dword="2" bits="23:8" type="uint" />
<field name="single_bit" dword="3" bits="5:5" type="bool" />
</struct>
<struct name="TEST_OFFSET_BITS" length="6">
<field name="header" start="0" end="31" type="uint" />
<group count="3" start="48" size="16">
<field name="data" start="0" end="15" type="uint" />
<field name="header" dword="0" bits="31:0" type="uint" />
<group count="3" dword="1" offset_bits="16" size="16">
<field name="data" dword="0" bits="15:0" type="uint" />
</group>
</struct>
<struct name="TEST_STRUCT" length="2">
<field name="number1" start="0" end="15" type="uint" />
<field name="number2" start="16" end="31" type="uint" />
<group count="4" start="32" size="8">
<field name="byte" start="0" end="7" type="uint" />
<field name="number1" dword="0" bits="15:0" type="uint" />
<field name="number2" dword="0" bits="31:16" type="uint" />
<group count="4" dword="1" size="8">
<field name="byte" dword="0" bits="7:0" type="uint" />
</group>
</struct>
</genxml>