intel/genxml: Use enum 3D_Prim_Topo_Type where applicable
authorKristian H. Kristensen <hoegsberg@gmail.com>
Tue, 29 Nov 2016 00:44:22 +0000 (16:44 -0800)
committerKristian H. Kristensen <hoegsberg@gmail.com>
Wed, 30 Nov 2016 06:02:49 +0000 (22:02 -0800)
Signed-off-by: Kristian H. Kristensen <hoegsberg@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/genxml/gen6.xml
src/intel/genxml/gen7.xml
src/intel/genxml/gen75.xml
src/intel/genxml/gen8.xml
src/intel/genxml/gen9.xml

index 7734ef662864a00db03004843c7b7a9651bfdcc4..a6a273731e7e6529bf30ba01cb786c460e4c7954 100644 (file)
       <value name="SEQUENTIAL" value="0"/>
       <value name="RANDOM" value="1"/>
     </field>
-    <field name="Primitive Topology Type" start="10" end="14" type="uint"/>
+    <field name="Primitive Topology Type" start="10" end="14" type="3D_Prim_Topo_Type"/>
     <field name="Internal Vertex Count" start="9" end="9" type="uint"/>
     <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
     <field name="Vertex Count Per Instance" start="32" end="63" type="uint"/>
index 78c5ede3ff9898a510d2eb42094431aee5d94f85..3b41de903b119c9163db8fb3b9c0c6acf059ef97 100644 (file)
       <value name="SEQUENTIAL" value="0"/>
       <value name="RANDOM" value="1"/>
     </field>
-    <field name="Primitive Topology Type" start="32" end="37" type="uint"/>
+    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
     <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
     <field name="Start Vertex Location" start="96" end="127" type="uint"/>
     <field name="Instance Count" start="128" end="159" type="uint"/>
     <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
     <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
     <field name="Output Vertex Size" start="151" end="156" type="uint"/>
-    <field name="Output Topology" start="145" end="150" type="uint" prefix="OUTPUT"/>
+    <field name="Output Topology" start="145" end="150" type="3D_Prim_Topo_Type"/>
     <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
     <field name="Include Vertex Handles" start="138" end="138" type="bool"/>
     <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
   <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1">
     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
     <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
-    <field name="Topology Filter Value" start="0" end="5" type="uint"/>
+    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
   </instruction>
 
   <instruction name="MI_URB_CLEAR" bias="2" length="2">
index 2be1cfda338710911d4a20e04d1358082a256ea4..ec1621bbf3766662c2def769012f08049c0387d1 100644 (file)
       <value name="SEQUENTIAL" value="0"/>
       <value name="RANDOM" value="1"/>
     </field>
-    <field name="Primitive Topology Type" start="32" end="37" type="uint"/>
+    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
     <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
     <field name="Start Vertex Location" start="96" end="127" type="uint"/>
     <field name="Instance Count" start="128" end="159" type="uint"/>
     <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
     <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
     <field name="Output Vertex Size" start="151" end="156" type="uint"/>
-    <field name="Output Topology" start="145" end="150" type="uint" prefix="OUTPUT"/>
+    <field name="Output Topology" start="145" end="150" type="3D_Prim_Topo_Type"/>
     <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
     <field name="Include Vertex Handles" start="138" end="138" type="bool"/>
     <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
   <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1">
     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
     <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
-    <field name="Topology Filter Value" start="0" end="5" type="uint"/>
+    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
   </instruction>
 
   <instruction name="MI_URB_ATOMIC_ALLOC" bias="1" length="1">
index e8220442450abfc599fcfcceae97b592f0764077..d90de08ab1aa8949e5b2b27a0d538918cdecefd7 100644 (file)
       <value name="SEQUENTIAL" value="0"/>
       <value name="RANDOM" value="1"/>
     </field>
-    <field name="Primitive Topology Type" start="32" end="37" type="uint"/>
+    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
     <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
     <field name="Start Vertex Location" start="96" end="127" type="uint"/>
     <field name="Instance Count" start="128" end="159" type="uint"/>
     <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
     <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
     <field name="Output Vertex Size" start="215" end="220" type="uint"/>
-    <field name="Output Topology" start="209" end="214" type="uint" prefix="OUTPUT"/>
+    <field name="Output Topology" start="209" end="214" type="3D_Prim_Topo_Type"/>
     <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
     <field name="Include Vertex Handles" start="202" end="202" type="bool"/>
     <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="75"/>
     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
-    <field name="Primitive Topology Type" start="32" end="37" type="uint"/>
+    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
   </instruction>
 
   <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2">
   <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1">
     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
     <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
-    <field name="Topology Filter Value" start="0" end="5" type="uint"/>
+    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
   </instruction>
 
   <instruction name="MI_URB_ATOMIC_ALLOC" bias="1" length="1">
index 3232cf917d09e8027f652d8c4cbed47ced523ba9..ec16d73b6117d635af99952f1feb51a8ebc8c7aa 100644 (file)
       <value name="SEQUENTIAL" value="0"/>
       <value name="RANDOM" value="1"/>
     </field>
-    <field name="Primitive Topology Type" start="32" end="37" type="uint"/>
+    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
     <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
     <field name="Start Vertex Location" start="96" end="127" type="uint"/>
     <field name="Instance Count" start="128" end="159" type="uint"/>
     <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
     <field name="Dispatch GRF Start Register For URB Data [5:4]" start="221" end="222" type="uint"/>
     <field name="Output Vertex Size" start="215" end="220" type="uint"/>
-    <field name="Output Topology" start="209" end="214" type="uint" prefix="OUTPUT"/>
+    <field name="Output Topology" start="209" end="214" type="3D_Prim_Topo_Type"/>
     <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
     <field name="Include Vertex Handles" start="202" end="202" type="bool"/>
     <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
     <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
     <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="75"/>
     <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
-    <field name="Primitive Topology Type" start="32" end="37" type="uint"/>
+    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
   </instruction>
 
   <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2">
   <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1">
     <field name="Command Type" start="29" end="31" type="uint" default="0"/>
     <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
-    <field name="Topology Filter Value" start="0" end="5" type="uint"/>
+    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
   </instruction>
 
   <instruction name="MI_URB_ATOMIC_ALLOC" bias="1" length="1">