summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2016-11-28 17:46:05 -0800
committerKristian H. Kristensen <[email protected]>2016-11-29 22:02:49 -0800
commit99e573b4e0aab912f0c6b663f72b17617a4d4529 (patch)
tree504fa872589e0abe98ac8b6f0861a6b6fb76e457 /src/intel
parent374d19ac005b1aa1e6d4fdb33a652ceb44ed63d0 (diff)
intel/genxml: Use enum 3D_Logic_Op_Function where applicable
Signed-off-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/genxml/gen6.xml38
-rw-r--r--src/intel/genxml/gen7.xml38
-rw-r--r--src/intel/genxml/gen75.xml38
-rw-r--r--src/intel/genxml/gen8.xml2
-rw-r--r--src/intel/genxml/gen9.xml2
5 files changed, 62 insertions, 56 deletions
diff --git a/src/intel/genxml/gen6.xml b/src/intel/genxml/gen6.xml
index de626a72b73..575ba86c9b1 100644
--- a/src/intel/genxml/gen6.xml
+++ b/src/intel/genxml/gen6.xml
@@ -86,6 +86,25 @@
<value name="INVERT" value="7"/>
</enum>
+ <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
+ <value name="CLEAR" value="0"/>
+ <value name="NOR" value="1"/>
+ <value name="AND_INVERTED" value="2"/>
+ <value name="COPY_INVERTED" value="3"/>
+ <value name="AND_REVERSE" value="4"/>
+ <value name="INVERT" value="5"/>
+ <value name="XOR" value="6"/>
+ <value name="NAND" value="7"/>
+ <value name="AND" value="8"/>
+ <value name="EQUIV" value="9"/>
+ <value name="NOOP" value="10"/>
+ <value name="OR_INVERTED" value="11"/>
+ <value name="COPY" value="12"/>
+ <value name="OR_REVERSE" value="13"/>
+ <value name="OR" value="14"/>
+ <value name="SET" value="15"/>
+ </enum>
+
<enum name="SURFACE_FORMAT" prefix="SF">
<value name="R32G32B32A32_FLOAT" value="0"/>
<value name="R32G32B32A32_SINT" value="1"/>
@@ -417,24 +436,7 @@
<field name="Write Disable Green" start="57" end="57" type="bool"/>
<field name="Write Disable Blue" start="56" end="56" type="bool"/>
<field name="Logic Op Enable" start="54" end="54" type="bool"/>
- <field name="Logic Op Function" start="50" end="53" type="uint">
- <value name="LOGICOP_CLEAR" value="0"/>
- <value name="LOGICOP_NOR" value="1"/>
- <value name="LOGICOP_AND_INVERTED" value="2"/>
- <value name="LOGICOP_COPY_INVERTED" value="3"/>
- <value name="LOGICOP_AND_REVERSE" value="4"/>
- <value name="LOGICOP_INVERT" value="5"/>
- <value name="LOGICOP_XOR" value="6"/>
- <value name="LOGICOP_NAND" value="7"/>
- <value name="LOGICOP_AND" value="8"/>
- <value name="LOGICOP_EQUIV" value="9"/>
- <value name="LOGICOP_NOOP" value="10"/>
- <value name="LOGICOP_OR_INVERTED" value="11"/>
- <value name="LOGICOP_COPY" value="12"/>
- <value name="LOGICOP_OR_REVERSE" value="13"/>
- <value name="LOGICOP_OR" value="14"/>
- <value name="LOGICOP_SET" value="15"/>
- </field>
+ <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
<field name="Alpha Test Enable" start="48" end="48" type="bool"/>
<field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
<field name="Color Dither Enable" start="44" end="44" type="bool"/>
diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml
index 2c269d47aa7..6bde403014b 100644
--- a/src/intel/genxml/gen7.xml
+++ b/src/intel/genxml/gen7.xml
@@ -118,6 +118,25 @@
<value name="GEQUAL" value="7"/>
</enum>
+ <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
+ <value name="CLEAR" value="0"/>
+ <value name="NOR" value="1"/>
+ <value name="AND_INVERTED" value="2"/>
+ <value name="COPY_INVERTED" value="3"/>
+ <value name="AND_REVERSE" value="4"/>
+ <value name="INVERT" value="5"/>
+ <value name="XOR" value="6"/>
+ <value name="NAND" value="7"/>
+ <value name="AND" value="8"/>
+ <value name="EQUIV" value="9"/>
+ <value name="NOOP" value="10"/>
+ <value name="OR_INVERTED" value="11"/>
+ <value name="COPY" value="12"/>
+ <value name="OR_REVERSE" value="13"/>
+ <value name="OR" value="14"/>
+ <value name="SET" value="15"/>
+ </enum>
+
<enum name="SURFACE_FORMAT" prefix="SF">
<value name="R32G32B32A32_FLOAT" value="0"/>
<value name="R32G32B32A32_SINT" value="1"/>
@@ -472,24 +491,7 @@
<field name="Write Disable Green" start="57" end="57" type="bool"/>
<field name="Write Disable Blue" start="56" end="56" type="bool"/>
<field name="Logic Op Enable" start="54" end="54" type="bool"/>
- <field name="Logic Op Function" start="50" end="53" type="uint">
- <value name="LOGICOP_CLEAR" value="0"/>
- <value name="LOGICOP_NOR" value="1"/>
- <value name="LOGICOP_AND_INVERTED" value="2"/>
- <value name="LOGICOP_COPY_INVERTED" value="3"/>
- <value name="LOGICOP_AND_REVERSE" value="4"/>
- <value name="LOGICOP_INVERT" value="5"/>
- <value name="LOGICOP_XOR" value="6"/>
- <value name="LOGICOP_NAND" value="7"/>
- <value name="LOGICOP_AND" value="8"/>
- <value name="LOGICOP_EQUIV" value="9"/>
- <value name="LOGICOP_NOOP" value="10"/>
- <value name="LOGICOP_OR_INVERTED" value="11"/>
- <value name="LOGICOP_COPY" value="12"/>
- <value name="LOGICOP_OR_REVERSE" value="13"/>
- <value name="LOGICOP_OR" value="14"/>
- <value name="LOGICOP_SET" value="15"/>
- </field>
+ <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
<field name="Alpha Test Enable" start="48" end="48" type="bool"/>
<field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
<field name="Color Dither Enable" start="44" end="44" type="bool"/>
diff --git a/src/intel/genxml/gen75.xml b/src/intel/genxml/gen75.xml
index 0104236198d..2ff75bd0df1 100644
--- a/src/intel/genxml/gen75.xml
+++ b/src/intel/genxml/gen75.xml
@@ -118,6 +118,25 @@
<value name="GEQUAL" value="7"/>
</enum>
+ <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
+ <value name="CLEAR" value="0"/>
+ <value name="NOR" value="1"/>
+ <value name="AND_INVERTED" value="2"/>
+ <value name="COPY_INVERTED" value="3"/>
+ <value name="AND_REVERSE" value="4"/>
+ <value name="INVERT" value="5"/>
+ <value name="XOR" value="6"/>
+ <value name="NAND" value="7"/>
+ <value name="AND" value="8"/>
+ <value name="EQUIV" value="9"/>
+ <value name="NOOP" value="10"/>
+ <value name="OR_INVERTED" value="11"/>
+ <value name="COPY" value="12"/>
+ <value name="OR_REVERSE" value="13"/>
+ <value name="OR" value="14"/>
+ <value name="SET" value="15"/>
+ </enum>
+
<enum name="SURFACE_FORMAT" prefix="SF">
<value name="R32G32B32A32_FLOAT" value="0"/>
<value name="R32G32B32A32_SINT" value="1"/>
@@ -482,24 +501,7 @@
<field name="Write Disable Green" start="57" end="57" type="bool"/>
<field name="Write Disable Blue" start="56" end="56" type="bool"/>
<field name="Logic Op Enable" start="54" end="54" type="bool"/>
- <field name="Logic Op Function" start="50" end="53" type="uint">
- <value name="LOGICOP_CLEAR" value="0"/>
- <value name="LOGICOP_NOR" value="1"/>
- <value name="LOGICOP_AND_INVERTED" value="2"/>
- <value name="LOGICOP_COPY_INVERTED" value="3"/>
- <value name="LOGICOP_AND_REVERSE" value="4"/>
- <value name="LOGICOP_INVERT" value="5"/>
- <value name="LOGICOP_XOR" value="6"/>
- <value name="LOGICOP_NAND" value="7"/>
- <value name="LOGICOP_AND" value="8"/>
- <value name="LOGICOP_EQUIV" value="9"/>
- <value name="LOGICOP_NOOP" value="10"/>
- <value name="LOGICOP_OR_INVERTED" value="11"/>
- <value name="LOGICOP_COPY" value="12"/>
- <value name="LOGICOP_OR_REVERSE" value="13"/>
- <value name="LOGICOP_OR" value="14"/>
- <value name="LOGICOP_SET" value="15"/>
- </field>
+ <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
<field name="Alpha Test Enable" start="48" end="48" type="bool"/>
<field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
<field name="Color Dither Enable" start="44" end="44" type="bool"/>
diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml
index f9c1ab3fed9..7df479c02ec 100644
--- a/src/intel/genxml/gen8.xml
+++ b/src/intel/genxml/gen8.xml
@@ -523,7 +523,7 @@
<struct name="BLEND_STATE_ENTRY" length="2">
<field name="Logic Op Enable" start="63" end="63" type="bool"/>
- <field name="Logic Op Function" start="59" end="62" type="uint"/>
+ <field name="Logic Op Function" start="59" end="62" type="3D_Logic_Op_Function"/>
<field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
<field name="Color Clamp Range" start="34" end="35" type="uint">
<value name="COLORCLAMP_UNORM" value="0"/>
diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml
index 5ba6ba15582..ec854946b9c 100644
--- a/src/intel/genxml/gen9.xml
+++ b/src/intel/genxml/gen9.xml
@@ -532,7 +532,7 @@
<struct name="BLEND_STATE_ENTRY" length="2">
<field name="Logic Op Enable" start="63" end="63" type="bool"/>
- <field name="Logic Op Function" start="59" end="62" type="uint"/>
+ <field name="Logic Op Function" start="59" end="62" type="3D_Logic_Op_Function"/>
<field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
<field name="Color Clamp Range" start="34" end="35" type="uint">
<value name="COLORCLAMP_UNORM" value="0"/>