[Mesa-dev] [PATCH 15/18] intel/genxml: Add and use enum for tile mode
Kristian H. Kristensen
hoegsberg at gmail.com
Tue Nov 29 20:48:15 UTC 2016
Signed-off-by: Kristian H. Kristensen <hoegsberg at gmail.com>
---
src/intel/genxml/gen8.xml | 9 ++++++++-
src/intel/genxml/gen9.xml | 14 ++++++++------
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml
index 165ff25..17234f6 100644
--- a/src/intel/genxml/gen8.xml
+++ b/src/intel/genxml/gen8.xml
@@ -401,6 +401,13 @@
<value name="HALF_BORDER" value="6"/>
</enum>
+ <enum name="TILE_MODE">
+ <value name="LINEAR" value="0"/>
+ <value name="WMAJOR" value="1"/>
+ <value name="XMAJOR" value="2"/>
+ <value name="YMAJOR" value="3"/>
+ </enum>
+
<struct name="3DSTATE_CONSTANT_BODY" length="10">
<field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
<field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
@@ -670,7 +677,7 @@
<value name="HALIGN 8" value="2"/>
<value name="HALIGN 16" value="3"/>
</field>
- <field name="Tile Mode" start="12" end="13" type="uint">
+ <field name="Tile Mode" start="12" end="13" type="TILE_MODE">
<value name="LINEAR" value="0"/>
<value name="WMAJOR" value="1"/>
<value name="XMAJOR" value="2"/>
diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml
index ec85494..c9fb770 100644
--- a/src/intel/genxml/gen9.xml
+++ b/src/intel/genxml/gen9.xml
@@ -422,6 +422,13 @@
<value name="HALF_BORDER" value="6"/>
</enum>
+ <enum name="TILE_MODE">
+ <value name="LINEAR" value="0"/>
+ <value name="WMAJOR" value="1"/>
+ <value name="XMAJOR" value="2"/>
+ <value name="YMAJOR" value="3"/>
+ </enum>
+
<struct name="3DSTATE_CONSTANT_BODY" length="10">
<field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
<field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
@@ -696,12 +703,7 @@
<value name="HALIGN 8" value="2"/>
<value name="HALIGN 16" value="3"/>
</field>
- <field name="Tile Mode" start="12" end="13" type="uint">
- <value name="LINEAR" value="0"/>
- <value name="WMAJOR" value="1"/>
- <value name="XMAJOR" value="2"/>
- <value name="YMAJOR" value="3"/>
- </field>
+ <field name="Tile Mode" start="12" end="13" type="TILE_MODE"/>
<field name="Vertical Line Stride" start="11" end="11" type="uint"/>
<field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
<field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
--
2.9.3
More information about the mesa-dev
mailing list