mesa/src/intel/common/tests/gentest.xml
Rafael Antognolli 1f4cbc9a06 intel/genxml: Add new test for subgroups.
Make sure that a <group> tag within another <group> tag work just fine.

v2: rename 'halfbyte' to 'byte' to match the size (Lionel).

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2019-07-23 17:45:19 +00:00

20 lines
584 B
XML

<?xml version="1.0" ?>
<genxml name="SKL" gen="9">
<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"/>
</group>
</struct>
<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>
</group>
</struct>
</genxml>