[Mesa-dev] [PATCH v4 04/34] genxml: Make X/Y Offset field of SURFACE_STATE a uint
Jason Ekstrand
jason at jlekstrand.net
Thu Jul 14 00:16:24 UTC 2016
THe offset type has special implications that it's intended to be some form
of aligned memory address. These assumptions allow it to handle the case
where there is some alignment requirement on the offset and the bottom bits
are used for other things. However, the offsets in the surface state field
are really just unsigned integers.
Reviewed-by: Chad Versace <chad.versace at intel.com>
---
src/intel/genxml/gen45.xml | 4 ++--
src/intel/genxml/gen5.xml | 4 ++--
src/intel/genxml/gen6.xml | 4 ++--
src/intel/genxml/gen7.xml | 4 ++--
src/intel/genxml/gen75.xml | 4 ++--
src/intel/genxml/gen8.xml | 4 ++--
src/intel/genxml/gen9.xml | 4 ++--
7 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/intel/genxml/gen45.xml b/src/intel/genxml/gen45.xml
index 973b3bb..ae483b7 100644
--- a/src/intel/genxml/gen45.xml
+++ b/src/intel/genxml/gen45.xml
@@ -50,7 +50,7 @@
<field name="Surface Min LOD" start="156" end="159" type="uint"/>
<field name="Minimum Array Element" start="145" end="155" type="uint"/>
<field name="Render Target View Extent" start="136" end="144" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
- <field name="Y Offset" start="180" end="183" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="180" end="183" type="uint"/>
</struct>
</genxml>
diff --git a/src/intel/genxml/gen5.xml b/src/intel/genxml/gen5.xml
index 37e1ac4..cb6a7b6 100644
--- a/src/intel/genxml/gen5.xml
+++ b/src/intel/genxml/gen5.xml
@@ -50,7 +50,7 @@
<field name="Surface Min LOD" start="156" end="159" type="uint"/>
<field name="Minimum Array Element" start="145" end="155" type="uint"/>
<field name="Render Target View Extent" start="136" end="144" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
- <field name="Y Offset" start="180" end="183" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="180" end="183" type="uint"/>
</struct>
</genxml>
diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml
index 44e2804..595492f 100644
--- a/src/intel/genxml/gen6.xml
+++ b/src/intel/genxml/gen6.xml
@@ -355,12 +355,12 @@
<value name="MULTISAMPLECOUNT_4" value="2"/>
</field>
<field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
<field name="Surface Vertical Alignment" start="184" end="184" type="uint">
<value name="VALIGN_2" value="0"/>
<value name="VALIGN_4" value="1"/>
</field>
- <field name="Y Offset" start="180" end="183" type="offset"/>
+ <field name="Y Offset" start="180" end="183" type="uint"/>
<field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
<field name="MOCS" start="176" end="179" type="uint"/>
</struct>
diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml
index 2bbfcb7..66f4f94 100644
--- a/src/intel/genxml/gen7.xml
+++ b/src/intel/genxml/gen7.xml
@@ -388,8 +388,8 @@
</field>
<field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
<field name="Strbuf Minimum Array Element" start="128" end="154" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
- <field name="Y Offset" start="180" end="183" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="180" end="183" type="uint"/>
<field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
<field name="MOCS" start="176" end="179" type="uint"/>
<field name="Surface Min LOD" start="164" end="167" type="uint"/>
diff --git a/src/intel/genxml/gen75.xml b/src/intel/genxml/gen75.xml
index 9ab432c..841573a 100644
--- a/src/intel/genxml/gen75.xml
+++ b/src/intel/genxml/gen75.xml
@@ -399,8 +399,8 @@
</field>
<field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
<field name="Strbuf Minimum Array Element" start="128" end="154" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
- <field name="Y Offset" start="180" end="183" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="180" end="183" type="uint"/>
<field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
<field name="MOCS" start="176" end="179" type="uint"/>
<field name="Surface Min LOD" start="164" end="167" type="uint"/>
diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml
index 80d40fb..97af191 100644
--- a/src/intel/genxml/gen8.xml
+++ b/src/intel/genxml/gen8.xml
@@ -317,8 +317,8 @@
<value name="MULTISAMPLECOUNT_8" value="3"/>
</field>
<field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
- <field name="Y Offset" start="181" end="183" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="181" end="183" type="uint"/>
<field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
<field name="Coherency Type" start="174" end="174" type="uint">
<value name="GPU coherent" value="0"/>
diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml
index 94b7d28..5e3e2e1 100644
--- a/src/intel/genxml/gen9.xml
+++ b/src/intel/genxml/gen9.xml
@@ -324,8 +324,8 @@
<value name="MULTISAMPLECOUNT_16" value="4"/>
</field>
<field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
- <field name="X Offset" start="185" end="191" type="offset"/>
- <field name="Y Offset" start="181" end="183" type="offset"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="181" end="183" type="uint"/>
<field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
<field name="Tiled Resource Mode" start="178" end="179" type="uint">
<value name="NONE" value="0"/>
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list