summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-05-15 16:15:13 -0700
committerKenneth Graunke <[email protected]>2017-06-01 11:49:46 -0700
commitfe9699dcb491d07f5b629828fd0d3dad5a213318 (patch)
tree9027cc2b28b4861332700857ef1fb59b90c1dc6a /src/intel/genxml
parent12303bd390b24b567505b3af5bd467a0636a2f2a (diff)
genxml: Make 3DSTATE_CONSTANT_BODY on Gen7+ use arrays.
This will let us initialize the constant buffers with loops. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/genxml')
-rw-r--r--src/intel/genxml/gen7.xml14
-rw-r--r--src/intel/genxml/gen75.xml14
-rw-r--r--src/intel/genxml/gen8.xml14
-rw-r--r--src/intel/genxml/gen9.xml14
4 files changed, 24 insertions, 32 deletions
diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml
index c98327a1915..2c297f3b95b 100644
--- a/src/intel/genxml/gen7.xml
+++ b/src/intel/genxml/gen7.xml
@@ -378,15 +378,13 @@
</struct>
<struct name="3DSTATE_CONSTANT_BODY" length="6">
- <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"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
+ <group count="4" start="0" size="16">
+ <field name="Read Length" start="0" end="15" type="uint"/>
+ </group>
<field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
+ <group count="4" start="64" size="32">
+ <field name="Buffer" start="5" end="31" type="address"/>
+ </group>
</struct>
<struct name="VERTEX_BUFFER_STATE" length="4">
diff --git a/src/intel/genxml/gen75.xml b/src/intel/genxml/gen75.xml
index 11f1462cd1f..e7c06dc5819 100644
--- a/src/intel/genxml/gen75.xml
+++ b/src/intel/genxml/gen75.xml
@@ -377,15 +377,13 @@
</struct>
<struct name="3DSTATE_CONSTANT_BODY" length="6">
- <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"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
+ <group count="4" start="0" size="16">
+ <field name="Read Length" start="0" end="15" type="uint"/>
+ </group>
<field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
+ <group count="4" start="64" size="32">
+ <field name="Buffer" start="5" end="31" type="address"/>
+ </group>
</struct>
<struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml
index 541a788c82c..2fd796a2e24 100644
--- a/src/intel/genxml/gen8.xml
+++ b/src/intel/genxml/gen8.xml
@@ -403,14 +403,12 @@
</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"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 1" start="133" end="191" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="197" end="255" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="261" end="319" type="address"/>
+ <group count="4" start="0" size="16">
+ <field name="Read Length" start="0" end="15" type="uint"/>
+ </group>
+ <group count="4" start="64" size="64">
+ <field name="Buffer" start="5" end="63" type="address"/>
+ </group>
</struct>
<struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml
index 3e9e88e219a..af40e660771 100644
--- a/src/intel/genxml/gen9.xml
+++ b/src/intel/genxml/gen9.xml
@@ -424,14 +424,12 @@
</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"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 1" start="133" end="191" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="197" end="255" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="261" end="319" type="address"/>
+ <group count="4" start="0" size="16">
+ <field name="Read Length" start="0" end="15" type="uint"/>
+ </group>
+ <group count="4" start="64" size="64">
+ <field name="Buffer" start="5" end="63" type="address"/>
+ </group>
</struct>
<struct name="BINDING_TABLE_EDIT_ENTRY" length="1">