• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" ?>
2<genxml name="CTG" gen="4.5">
3
4  <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
5    <value name="ONE" value="1"/>
6    <value name="SRC_COLOR" value="2"/>
7    <value name="SRC_ALPHA" value="3"/>
8    <value name="DST_ALPHA" value="4"/>
9    <value name="DST_COLOR" value="5"/>
10    <value name="SRC_ALPHA_SATURATE" value="6"/>
11    <value name="CONST_COLOR" value="7"/>
12    <value name="CONST_ALPHA" value="8"/>
13    <value name="SRC1_COLOR" value="9"/>
14    <value name="SRC1_ALPHA" value="10"/>
15    <value name="ZERO" value="17"/>
16    <value name="INV_SRC_COLOR" value="18"/>
17    <value name="INV_SRC_ALPHA" value="19"/>
18    <value name="INV_DST_ALPHA" value="20"/>
19    <value name="INV_DST_COLOR" value="21"/>
20    <value name="INV_CONST_COLOR" value="23"/>
21    <value name="INV_CONST_ALPHA" value="24"/>
22    <value name="INV_SRC1_COLOR" value="25"/>
23    <value name="INV_SRC1_ALPHA" value="26"/>
24  </enum>
25
26  <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
27    <value name="ADD" value="0"/>
28    <value name="SUBTRACT" value="1"/>
29    <value name="REVERSE_SUBTRACT" value="2"/>
30    <value name="MIN" value="3"/>
31    <value name="MAX" value="4"/>
32  </enum>
33
34  <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
35    <value name="ALWAYS" value="0"/>
36    <value name="NEVER" value="1"/>
37    <value name="LESS" value="2"/>
38    <value name="EQUAL" value="3"/>
39    <value name="LEQUAL" value="4"/>
40    <value name="GREATER" value="5"/>
41    <value name="NOTEQUAL" value="6"/>
42    <value name="GEQUAL" value="7"/>
43  </enum>
44
45  <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
46    <value name="CLEAR" value="0"/>
47    <value name="NOR" value="1"/>
48    <value name="AND_INVERTED" value="2"/>
49    <value name="COPY_INVERTED" value="3"/>
50    <value name="AND_REVERSE" value="4"/>
51    <value name="INVERT" value="5"/>
52    <value name="XOR" value="6"/>
53    <value name="NAND" value="7"/>
54    <value name="AND" value="8"/>
55    <value name="EQUIV" value="9"/>
56    <value name="NOOP" value="10"/>
57    <value name="OR_INVERTED" value="11"/>
58    <value name="COPY" value="12"/>
59    <value name="OR_REVERSE" value="13"/>
60    <value name="OR" value="14"/>
61    <value name="SET" value="15"/>
62  </enum>
63
64  <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
65    <value name="POINTLIST" value="1"/>
66    <value name="LINELIST" value="2"/>
67    <value name="LINESTRIP" value="3"/>
68    <value name="TRILIST" value="4"/>
69    <value name="TRISTRIP" value="5"/>
70    <value name="TRIFAN" value="6"/>
71    <value name="QUADLIST" value="7"/>
72    <value name="QUADSTRIP" value="8"/>
73    <value name="LINELIST_ADJ" value="9"/>
74    <value name="LINESTRIP_ADJ" value="10"/>
75    <value name="TRILIST_ADJ" value="11"/>
76    <value name="TRISTRIP_ADJ" value="12"/>
77    <value name="TRISTRIP_REVERSE" value="13"/>
78    <value name="POLYGON" value="14"/>
79    <value name="RECTLIST" value="15"/>
80    <value name="LINELOOP" value="16"/>
81    <value name="POINTLIST _BF" value="17"/>
82    <value name="LINESTRIP_CONT" value="18"/>
83    <value name="LINESTRIP_BF" value="19"/>
84    <value name="LINESTRIP_CONT_BF" value="20"/>
85    <value name="TRIFAN_NOSTIPPLE" value="22"/>
86  </enum>
87
88  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
89    <value name="KEEP" value="0"/>
90    <value name="ZERO" value="1"/>
91    <value name="REPLACE" value="2"/>
92    <value name="INCRSAT" value="3"/>
93    <value name="DECRSAT" value="4"/>
94    <value name="INCR" value="5"/>
95    <value name="DECR" value="6"/>
96    <value name="INVERT" value="7"/>
97  </enum>
98
99  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
100    <value name="NOSTORE" value="0"/>
101    <value name="STORE_SRC" value="1"/>
102    <value name="STORE_0" value="2"/>
103    <value name="STORE_1_FP" value="3"/>
104    <value name="STORE_1_INT" value="4"/>
105    <value name="STORE_VID" value="5"/>
106    <value name="STORE_IID" value="6"/>
107    <value name="STORE_PID" value="7"/>
108  </enum>
109
110  <enum name="Texture_Coordinate_Mode" prefix="TCM">
111    <value name="WRAP" value="0"/>
112    <value name="MIRROR" value="1"/>
113    <value name="CLAMP" value="2"/>
114    <value name="CUBE" value="3"/>
115    <value name="CLAMP_BORDER" value="4"/>
116    <value name="MIRROR_ONCE" value="5"/>
117  </enum>
118
119  <struct name="CC_VIEWPORT" length="2">
120    <field name="Minimum Depth" start="0" end="31" type="float"/>
121    <field name="Maximum Depth" start="32" end="63" type="float"/>
122  </struct>
123
124  <struct name="CLIP_STATE" length="11">
125    <field name="GRF Register Count" start="1" end="3" type="uint"/>
126    <field name="Kernel Start Pointer" start="6" end="31" type="address"/>
127    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
128    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
129    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
130    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
131      <value name="IEEE-754" value="0"/>
132      <value name="Alternate" value="1"/>
133    </field>
134    <field name="Thread Priority" start="49" end="49" type="uint">
135      <value name="Normal Priority" value="0"/>
136      <value name="High Priority" value="1"/>
137    </field>
138    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
139    <field name="Single Program Flow" start="63" end="63" type="bool"/>
140    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
141    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
142    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
143    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
144    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
145    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
146    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
147    <field name="Clipper Statistics Enable" start="138" end="138" type="bool"/>
148    <field name="GS Output Object Statistics Enable" start="138" end="138" type="bool"/>
149    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
150    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
151    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
152    <field name="Clip Mode" start="173" end="175" type="uint" prefix="CLIPMODE">
153      <value name="NORMAL" value="0"/>
154      <value name="ALL" value="1"/>
155      <value name="CLIP_NON_REJECTED" value="2"/>
156      <value name="REJECT_ALL" value="3"/>
157      <value name="ACCEPT_ALL" value="4"/>
158    </field>
159    <field name="UserClipDistance ClipTest Enable Bitmask" start="176" end="183" type="uint"/>
160    <field name="UserClipFlags MustClip Enable" start="184" end="184" type="bool"/>
161    <field name="Negative W ClipTest Enable" start="185" end="185" type="bool"/>
162    <field name="Guardband ClipTest Enable" start="186" end="186" type="bool"/>
163    <field name="Viewport Z ClipTest Enable" start="187" end="187" type="bool"/>
164    <field name="Viewport XY ClipTest Enable" start="188" end="188" type="bool"/>
165    <field name="Vertex Position Space" start="189" end="189" type="uint" prefix="VPOS">
166      <value name="NDCSPACE" value="0"/>
167      <value name="SCREENSPACE" value="1"/>
168    </field>
169    <field name="API Mode" start="190" end="190" type="uint" prefix="APIMODE">
170      <value name="OGL" value="0"/>
171      <value name="D3D" value="1"/>
172    </field>
173    <field name="Clipper Viewport State Pointer" start="197" end="223" type="address"/>
174    <field name="Screen Space Viewport X Min" start="224" end="255" type="float"/>
175    <field name="Screen Space Viewport X Max" start="256" end="287" type="float"/>
176    <field name="Screen Space Viewport Y Min" start="288" end="319" type="float"/>
177    <field name="Screen Space Viewport Y Max" start="320" end="351" type="float"/>
178  </struct>
179
180  <struct name="CLIP_VIEWPORT" length="4">
181    <field name="XMin Clip Guardband" start="0" end="31" type="float"/>
182    <field name="XMax Clip Guardband" start="32" end="63" type="float"/>
183    <field name="YMin Clip Guardband" start="64" end="95" type="float"/>
184    <field name="YMax Clip Guardband" start="96" end="127" type="float"/>
185  </struct>
186
187  <struct name="COLOR_CALC_STATE" length="8">
188    <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
189    <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
190    <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
191    <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
192    <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
193    <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
194    <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
195    <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
196    <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
197    <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
198    <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
199    <field name="Backface Stencil Reference Value" start="32" end="39" type="uint"/>
200    <field name="Stencil Write Mask" start="40" end="47" type="uint"/>
201    <field name="Stencil Test Mask" start="48" end="55" type="uint"/>
202    <field name="Stencil Reference Value" start="56" end="63" type="uint"/>
203    <field name="Logic Op Enable" start="64" end="64" type="bool"/>
204    <field name="Depth Buffer Write Enable" start="75" end="75" type="bool"/>
205    <field name="Depth Test Function" start="76" end="78" type="3D_Compare_Function"/>
206    <field name="Depth Test Enable" start="79" end="79" type="bool"/>
207    <field name="Backface Stencil Write Mask" start="80" end="87" type="uint"/>
208    <field name="Backface Stencil Test Mask" start="88" end="95" type="uint"/>
209    <field name="Alpha Test Function" start="104" end="106" type="3D_Compare_Function"/>
210    <field name="Alpha Test Enable" start="107" end="107" type="bool"/>
211    <field name="Color Buffer Blend Enable" start="108" end="108" type="bool"/>
212    <field name="Independent Alpha Blend Enable" start="109" end="109" type="bool"/>
213    <field name="Alpha Test Format" start="111" end="111" type="uint">
214      <value name="ALPHATEST_UNORM8" value="0"/>
215      <value name="ALPHATEST_FLOAT32" value="1"/>
216    </field>
217    <field name="CC Viewport State Pointer" start="133" end="159" type="address"/>
218    <field name="Destination Alpha Blend Factor" start="162" end="166" type="3D_Color_Buffer_Blend_Factor"/>
219    <field name="Source Alpha Blend Factor" start="167" end="171" type="3D_Color_Buffer_Blend_Factor"/>
220    <field name="Alpha Blend Function" start="172" end="174" type="3D_Color_Buffer_Blend_Function"/>
221    <field name="Statistics Enable" start="175" end="175" type="bool"/>
222    <field name="Logic Op Function" start="176" end="179" type="3D_Logic_Op_Function"/>
223    <field name="Round Disable Function Disable" start="190" end="190" type="bool"/>
224    <field name="Color Dither Enable" start="191" end="191" type="bool"/>
225    <field name="Post-Blend Color Clamp Enable" start="192" end="192" type="bool"/>
226    <field name="Pre-Blend Color Clamp Enable" start="193" end="193" type="bool"/>
227    <field name="Color Clamp Range" start="194" end="195" type="uint">
228      <value name="COLORCLAMP_UNORM" value="0"/>
229      <value name="COLORCLAMP_SNORM" value="1"/>
230      <value name="COLORCLAMP_RTFORMAT" value="2"/>
231    </field>
232    <field name="Y Dither Offset" start="207" end="208" type="uint"/>
233    <field name="X Dither Offset" start="209" end="210" type="uint"/>
234    <field name="Destination Blend Factor" start="211" end="215" type="3D_Color_Buffer_Blend_Factor"/>
235    <field name="Source Blend Factor" start="216" end="220" type="3D_Color_Buffer_Blend_Factor"/>
236    <field name="Color Blend Function" start="221" end="223" type="3D_Color_Buffer_Blend_Function"/>
237    <field name="Alpha Reference Value As UNORM8" start="224" end="255" type="uint"/>
238    <field name="Alpha Reference Value As FLOAT32" start="224" end="255" type="float"/>
239  </struct>
240
241  <struct name="GS_STATE" length="7">
242    <field name="GRF Register Count" start="1" end="3" type="uint"/>
243    <field name="Kernel Start Pointer" start="6" end="31" type="address"/>
244    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
245    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
246    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
247    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
248      <value name="IEEE-754" value="0"/>
249      <value name="Alternate" value="1"/>
250    </field>
251    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
252    <field name="Single Program Flow" start="63" end="63" type="bool"/>
253    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
254    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
255    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
256    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
257    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
258    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
259    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
260    <field name="Rendering Enable" start="136" end="136" type="bool"/>
261    <field name="GS Statistics Enable" start="138" end="138" type="bool"/>
262    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
263    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
264    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
265    <field name="Sampler Count" start="160" end="162" type="uint"/>
266    <field name="Sampler State Pointer" start="165" end="191" type="address"/>
267    <field name="Maximum VPIndex" start="192" end="195" type="uint"/>
268    <field name="Discard Adjacency" start="221" end="221" type="bool"/>
269    <field name="Reorder Enable" start="222" end="222" type="bool"/>
270  </struct>
271
272  <struct name="RENDER_SURFACE_STATE" length="6">
273    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
274    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
275    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
276    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
277    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
278    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
279    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
280      <value name="NORMAL_MODE" value="0"/>
281      <value name="PROGRESSIVE_FRAME" value="2"/>
282      <value name="INTERLACED_FRAME" value="3"/>
283    </field>
284    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
285      <value name="WRITE_ONLY" value="0"/>
286      <value name="READ_WRITE" value="1"/>
287    </field>
288    <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
289      <value name="MIPLAYOUT_BELOW" value="0"/>
290      <value name="MIPLAYOUT_RIGHT" value="1"/>
291    </field>
292    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
293    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
294    <field name="Color Blend Enable" start="13" end="13" type="bool"/>
295    <field name="Color Buffer Component Write Disables" start="14" end="17" type="uint">
296      <value name="WRITEDISABLE_ALPHA" value="8"/>
297      <value name="WRITEDISABLE_RED" value="4"/>
298      <value name="WRITEDISABLE_GREEN" value="2"/>
299      <value name="WRITEDISABLE_BLUE" value="1"/>
300    </field>
301    <field name="Surface Format" start="18" end="26" type="uint"/>
302    <field name="Data Return Format" start="27" end="27" type="uint">
303      <value name="DATA_RETURN_FLOAT32" value="0"/>
304      <value name="DATA_RETURN_S1.14" value="1"/>
305    </field>
306    <field name="Surface Type" start="29" end="31" type="uint">
307      <value name="SURFTYPE_1D" value="0"/>
308      <value name="SURFTYPE_2D" value="1"/>
309      <value name="SURFTYPE_3D" value="2"/>
310      <value name="SURFTYPE_CUBE" value="3"/>
311      <value name="SURFTYPE_BUFFER" value="4"/>
312      <value name="SURFTYPE_NULL" value="7"/>
313    </field>
314    <field name="Surface Base Address" start="32" end="63" type="address"/>
315    <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
316    <field name="Width" start="70" end="82" type="uint"/>
317    <field name="Height" start="83" end="95" type="uint"/>
318    <field name="Tile Walk" start="96" end="96" type="uint">
319      <value name="TILEWALK_XMAJOR" value="0"/>
320      <value name="TILEWALK_YMAJOR" value="1"/>
321    </field>
322    <field name="Tiled Surface" start="97" end="97" type="uint"/>
323    <field name="Surface Pitch" start="99" end="115" type="uint"/>
324    <field name="Depth" start="117" end="127" type="uint"/>
325    <field name="Render Target View Extent" start="136" end="144" type="uint"/>
326    <field name="Minimum Array Element" start="145" end="155" type="uint"/>
327    <field name="Surface Min LOD" start="156" end="159" type="uint"/>
328    <field name="Y Offset" start="180" end="183" type="uint"/>
329    <field name="X Offset" start="185" end="191" type="uint"/>
330  </struct>
331
332  <struct name="SAMPLER_BORDER_COLOR_STATE" length="12">
333    <field name="Border Color Red" start="0" end="31" type="float"/>
334    <field name="Border Color Green" start="32" end="63" type="float"/>
335    <field name="Border Color Blue" start="64" end="95" type="float"/>
336    <field name="Border Color Alpha" start="96" end="127" type="float"/>
337  </struct>
338
339  <struct name="SAMPLER_STATE" length="4">
340    <field name="Shadow Function" start="0" end="2" type="uint">
341      <value name="PREFILTEROP_ALWAYS" value="0"/>
342      <value name="PREFILTEROP_NEVER" value="1"/>
343      <value name="PREFILTEROP_LESS" value="2"/>
344      <value name="PREFILTEROP_EQUAL" value="3"/>
345      <value name="PREFILTEROP_LEQUAL" value="4"/>
346      <value name="PREFILTEROP_GREATER" value="5"/>
347      <value name="PREFILTEROP_NOTEQUAL" value="6"/>
348      <value name="PREFILTEROP_GEQUAL" value="7"/>
349    </field>
350    <field name="Texture LOD Bias" start="3" end="13" type="s4.6"/>
351    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER"/>
352    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
353      <value name="NEAREST" value="0"/>
354      <value name="LINEAR" value="1"/>
355      <value name="ANISOTROPIC" value="2"/>
356      <value name="MONO" value="6"/>
357    </field>
358    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
359      <value name="NONE" value="0"/>
360      <value name="NEAREST" value="1"/>
361      <value name="LINEAR" value="3"/>
362    </field>
363    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
364    <field name="LOD PreClamp Enable" start="28" end="28" type="bool"/>
365    <field name="Sampler Disable" start="31" end="31" type="bool"/>
366    <field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"/>
367    <field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"/>
368    <field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"/>
369    <field name="Cube Surface Control Mode" start="41" end="41" type="uint">
370      <value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
371      <value name="CUBECTRLMODE_OVERRIDE" value="1"/>
372    </field>
373    <field name="Max LOD" start="44" end="53" type="u4.6"/>
374    <field name="Min LOD" start="54" end="63" type="u4.6"/>
375    <field name="Border Color Pointer" start="69" end="95" type="address"/>
376    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
377    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
378    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
379    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
380    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
381    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
382    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
383      <value name="RATIO 2:1" value="0"/>
384      <value name="RATIO 4:1" value="1"/>
385      <value name="RATIO 6:1" value="2"/>
386      <value name="RATIO 8:1" value="3"/>
387      <value name="RATIO 10:1" value="4"/>
388      <value name="RATIO 12:1" value="5"/>
389      <value name="RATIO 14:1" value="6"/>
390      <value name="RATIO 16:1" value="7"/>
391    </field>
392    <field name="ChromaKey Mode" start="118" end="118" type="uint" prefix="KEYFILTER">
393      <value name="KILL_ON_ANY_MATCH" value="0"/>
394      <value name="REPLACE_BLACK" value="1"/>
395    </field>
396    <field name="ChromaKey Index" start="119" end="120" type="uint"/>
397    <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
398    <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
399    <field name="Monochrome Filter Height" start="125" end="127" type="uint"/>
400  </struct>
401
402  <struct name="SCISSOR_RECT" length="2">
403    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
404    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
405    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
406    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
407  </struct>
408
409  <struct name="SF_STATE" length="8">
410    <field name="GRF Register Count" start="1" end="3" type="uint"/>
411    <field name="Kernel Start Pointer" start="6" end="31" type="address"/>
412    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
413    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
414    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
415    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
416      <value name="IEEE-754" value="0"/>
417      <value name="Alternate" value="1"/>
418    </field>
419    <field name="Thread Priority" start="49" end="49" type="uint">
420      <value name="Normal Priority" value="0"/>
421      <value name="High Priority" value="1"/>
422    </field>
423    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
424    <field name="Single Program Flow" start="63" end="63" type="bool"/>
425    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
426    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
427    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
428    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
429    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
430    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
431    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
432    <field name="Statistics Enable" start="138" end="138" type="bool"/>
433    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
434    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
435    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
436    <field name="Front Winding" start="160" end="160" type="uint">
437      <value name="FRONTWINDING_CW" value="0"/>
438      <value name="FRONTWINDING_CCW" value="1"/>
439    </field>
440    <field name="Viewport Transform Enable" start="161" end="161" type="bool"/>
441    <field name="Setup Viewport State Offset" start="165" end="191" type="address"/>
442    <field name="Destination Origin Vertical Bias" start="201" end="204" type="u0.4"/>
443    <field name="Destination Origin Horizontal Bias" start="205" end="208" type="u0.4"/>
444    <field name="Scissor Rectangle Enable" start="209" end="209" type="bool"/>
445    <field name="2x2 Pixel Triangle Filter Disable" start="210" end="210" type="bool"/>
446    <field name="Zero Pixel Triangle Filter Disable" start="211" end="211" type="bool"/>
447    <field name="Point Rasterization Rule" start="212" end="213" type="uint">
448      <value name="RASTRULE_UPPER_LEFT" value="0"/>
449      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
450    </field>
451    <field name="Line End Cap Antialiasing Region Width" start="214" end="215" type="uint">
452      <value name="0.5 pixels" value="0"/>
453      <value name="1.0 pixels" value="1"/>
454      <value name="2.0 pixels" value="2"/>
455      <value name="4.0 pixels" value="3"/>
456    </field>
457    <field name="Line Width" start="216" end="219" type="u3.1"/>
458    <field name="Fast Scissor Clip Disable" start="220" end="220" type="bool"/>
459    <field name="Cull Mode" start="221" end="222" type="uint" prefix="CULLMODE">
460      <value name="BOTH" value="0"/>
461      <value name="NONE" value="1"/>
462      <value name="FRONT" value="2"/>
463      <value name="BACK" value="3"/>
464    </field>
465    <field name="Antialiasing Enable" start="223" end="223" type="bool"/>
466    <field name="Point Width" start="224" end="234" type="u8.3"/>
467    <field name="Point Width Source" start="235" end="235" type="uint">
468      <value name="Vertex" value="0"/>
469      <value name="State" value="1"/>
470    </field>
471    <field name="Vertex Sub Pixel Precision Select" start="236" end="236" type="uint">
472      <value name="8 Sub-Pixel Precision Bits" value="0"/>
473      <value name="4 Sub-Pixel Precision Bits" value="1"/>
474    </field>
475    <field name="Sprite Point Enable" start="237" end="237" type="bool"/>
476    <field name="AA Line Distance Mode" start="238" end="238" type="uint" prefix="AALINEDISTANCE">
477      <value name="MANHATTAN" value="0"/>
478      <value name="TRUE" value="1"/>
479    </field>
480    <field name="Triangle Fan Provoking Vertex Select" start="249" end="250" type="uint">
481      <value name="Vertex 0" value="0"/>
482      <value name="Vertex 1" value="1"/>
483      <value name="Vertex 2" value="2"/>
484    </field>
485    <field name="Line Strip/List Provoking Vertex Select" start="251" end="252" type="uint">
486      <value name="Vertex 0" value="0"/>
487      <value name="Vertex 1" value="1"/>
488    </field>
489    <field name="Triangle Strip/List Provoking Vertex Select" start="253" end="254" type="uint">
490      <value name="Vertex 0" value="0"/>
491      <value name="Vertex 1" value="1"/>
492      <value name="Vertex 2" value="2"/>
493    </field>
494    <field name="Last Pixel Enable" start="255" end="255" type="bool"/>
495  </struct>
496
497  <struct name="SF_VIEWPORT" length="8">
498    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
499    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
500    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
501    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
502    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
503    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
504    <field name="Scissor Rectangle" start="192" end="255" type="SCISSOR_RECT"/>
505  </struct>
506
507  <struct name="VERTEX_BUFFER_STATE" length="4">
508    <field name="Buffer Pitch" start="0" end="10" type="uint"/>
509    <field name="Buffer Access Type" start="26" end="26" type="uint">
510      <value name="VERTEXDATA" value="0"/>
511      <value name="INSTANCEDATA" value="1"/>
512    </field>
513    <field name="Vertex Buffer Index" start="27" end="31" type="uint"/>
514    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
515    <field name="Max Index" start="64" end="95" type="uint"/>
516    <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
517  </struct>
518
519  <struct name="VERTEX_ELEMENT_STATE" length="2">
520    <field name="Source Element Offset" start="0" end="10" type="uint"/>
521    <field name="Source Element Format" start="16" end="24" type="uint"/>
522    <field name="Valid" start="26" end="26" type="bool"/>
523    <field name="Vertex Buffer Index" start="27" end="31" type="uint"/>
524    <field name="Destination Element Offset" start="32" end="39" type="uint"/>
525    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
526    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
527    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
528    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
529  </struct>
530
531  <struct name="VS_STATE" length="7">
532    <field name="GRF Register Count" start="1" end="3" type="uint"/>
533    <field name="Kernel Start Pointer" start="6" end="31" type="address"/>
534    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
535    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
536    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
537    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
538      <value name="IEEE-754" value="0"/>
539      <value name="Alternate" value="1"/>
540    </field>
541    <field name="Thread Priority" start="49" end="49" type="uint">
542      <value name="Normal Priority" value="0"/>
543      <value name="High Priority" value="1"/>
544    </field>
545    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
546    <field name="Single Program Flow" start="63" end="63" type="bool"/>
547    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
548    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
549    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
550    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
551    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
552    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
553    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
554    <field name="Statistics Enable" start="138" end="138" type="bool"/>
555    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
556    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
557    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
558    <field name="Sampler Count" start="160" end="162" type="uint"/>
559    <field name="Sampler State Pointer" start="165" end="191" type="address"/>
560    <field name="Enable" start="192" end="192" type="bool"/>
561    <field name="Vertex Cache Disable" start="193" end="193" type="bool"/>
562  </struct>
563
564  <struct name="WM_STATE" length="8">
565    <field name="GRF Register Count 0" start="1" end="3" type="uint"/>
566    <field name="Kernel Start Pointer 0" start="6" end="31" type="address"/>
567    <field name="Software Exception Enable" start="33" end="33" type="bool"/>
568    <field name="Mask Stack Exception Enable" start="34" end="34" type="bool"/>
569    <field name="Illegal Opcode Exception Enable" start="36" end="36" type="bool"/>
570    <field name="Depth Coefficient URB Read Offset" start="40" end="45" type="uint"/>
571    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
572      <value name="IEEE-754" value="0"/>
573      <value name="Alternate" value="1"/>
574    </field>
575    <field name="Thread Priority" start="49" end="49" type="uint">
576      <value name="Normal" value="0"/>
577      <value name="High" value="1"/>
578    </field>
579    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
580    <field name="Single Program Flow" start="63" end="63" type="bool"/>
581    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
582    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
583    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="96" end="99" type="uint"/>
584    <field name="Setup URB Entry Read Offset" start="100" end="105" type="uint"/>
585    <field name="Setup URB Entry Read Length" start="107" end="112" type="uint"/>
586    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
587    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
588    <field name="Statistics Enable" start="128" end="128" type="bool"/>
589    <field name="Sampler Count" start="130" end="132" type="uint"/>
590    <field name="Sampler State Pointer" start="133" end="159" type="address"/>
591    <field name="8 Pixel Dispatch Enable" start="160" end="160" type="bool"/>
592    <field name="16 Pixel Dispatch Enable" start="161" end="161" type="bool"/>
593    <field name="32 Pixel Dispatch Enable" start="162" end="162" type="bool"/>
594    <field name="Contiguous 32 Pixel Dispatch Enable" start="163" end="163" type="bool"/>
595    <field name="Contiguous 64 Pixel Dispatch Enable" start="164" end="164" type="bool"/>
596    <field name="Legacy Global Depth Bias Enable" start="170" end="170" type="bool"/>
597    <field name="Line Stipple Enable" start="171" end="171" type="bool"/>
598    <field name="Global Depth Offset Enable" start="172" end="172" type="bool"/>
599    <field name="Polygon Stipple Enable" start="173" end="173" type="bool"/>
600    <field name="Line Antialiasing Region Width" start="174" end="175" type="uint">
601      <value name="0.5 pixels" value="0"/>
602      <value name="1.0 pixels" value="1"/>
603      <value name="2.0 pixels" value="2"/>
604      <value name="4.0 pixels" value="3"/>
605    </field>
606    <field name="Line End Cap Antialiasing Region Width" start="176" end="177" type="uint">
607      <value name="0.5 pixels" value="0"/>
608      <value name="1.0 pixels" value="1"/>
609      <value name="2.0 pixels" value="2"/>
610      <value name="4.0 pixels" value="3"/>
611    </field>
612    <field name="Early Depth Test Enable" start="178" end="178" type="bool"/>
613    <field name="Thread Dispatch Enable" start="179" end="179" type="bool"/>
614    <field name="Pixel Shader Uses Source Depth" start="180" end="180" type="bool"/>
615    <field name="Pixel Shader Computed Depth" start="181" end="181" type="bool"/>
616    <field name="Pixel Shader Kills Pixel" start="182" end="182" type="bool"/>
617    <field name="Legacy Diamond Line Rasterization" start="183" end="183" type="bool"/>
618    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
619    <field name="Global Depth Offset Constant" start="192" end="223" type="float"/>
620    <field name="Global Depth Offset Scale" start="224" end="255" type="float"/>
621  </struct>
622
623  <instruction name="3DPRIMITIVE" bias="2" length="6" engine="render">
624    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
625    <field name="Indirect Vertex Count" start="9" end="9" type="uint"/>
626    <field name="Primitive Topology Type" start="10" end="14" type="3D_Prim_Topo_Type"/>
627    <field name="Vertex Access Type" start="15" end="15" type="uint">
628      <value name="SEQUENTIAL" value="0"/>
629      <value name="RANDOM" value="1"/>
630    </field>
631    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
632    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
633    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
634    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
635    <field name="Vertex Count Per Instance" start="32" end="63" type="uint"/>
636    <field name="Start Vertex Location" start="64" end="95" type="uint"/>
637    <field name="Instance Count" start="96" end="127" type="uint"/>
638    <field name="Start Instance Location" start="128" end="159" type="uint"/>
639    <field name="Base Vertex Location" start="160" end="191" type="int"/>
640  </instruction>
641
642  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
643    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
644    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
645    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
646    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
647    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
648    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
649    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
650    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
651    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
652  </instruction>
653
654  <instruction name="3DSTATE_BINDING_TABLE_POINTERS" bias="2" length="6" engine="render">
655    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
656    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
657    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
658    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
659    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
660    <field name="Pointer to VS Binding Table" start="37" end="63" type="offset"/>
661    <field name="Pointer to GS Binding Table" start="69" end="95" type="offset"/>
662    <field name="Pointer to CLIP Binding Table" start="101" end="127" type="offset"/>
663    <field name="Pointer to SF Binding Table" start="133" end="159" type="offset"/>
664    <field name="Pointer to PS Binding Table" start="165" end="191" type="offset"/>
665  </instruction>
666
667  <instruction name="3DSTATE_CONSTANT_COLOR" bias="2" length="5" engine="render">
668    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
669    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
670    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
671    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
672    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
673    <field name="Blend Constant Color Red" start="32" end="63" type="float"/>
674    <field name="Blend Constant Color Green" start="64" end="95" type="float"/>
675    <field name="Blend Constant Color Blue" start="96" end="127" type="float"/>
676    <field name="Blend Constant Color Alpha" start="128" end="159" type="float"/>
677  </instruction>
678
679  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="6" engine="render">
680    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
681    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
682    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
683    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
684    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
685    <field name="Surface Pitch" start="32" end="48" type="uint"/>
686    <field name="Surface Format" start="50" end="52" type="uint">
687      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
688      <value name="D32_FLOAT" value="1"/>
689      <value name="D24_UNORM_S8_UINT" value="2"/>
690      <value name="D24_UNORM_X8_UINT" value="3"/>
691      <value name="D16_UNORM" value="5"/>
692    </field>
693    <field name="Software Tiled Rendering Mode" start="55" end="56" type="uint">
694      <value name="NORMAL" value="0"/>
695      <value name="STR1" value="1"/>
696      <value name="STR2" value="3"/>
697    </field>
698    <field name="Depth Buffer Coordinate Offset Disable" start="57" end="57" type="bool"/>
699    <field name="Tile Walk" start="58" end="58" type="uint">
700      <value name="TILEWALK_YMAJOR" value="1"/>
701    </field>
702    <field name="Tiled Surface" start="59" end="59" type="bool"/>
703    <field name="Surface Type" start="61" end="63" type="uint">
704      <value name="SURFTYPE_1D" value="0"/>
705      <value name="SURFTYPE_2D" value="1"/>
706      <value name="SURFTYPE_3D" value="2"/>
707      <value name="SURFTYPE_CUBE" value="3"/>
708      <value name="SURFTYPE_NULL" value="7"/>
709    </field>
710    <field name="Surface Base Address" start="64" end="95" type="address"/>
711    <field name="MIP Map Layout Mode" start="97" end="97" type="uint">
712      <value name="MIPLAYOUT_BELOW" value="0"/>
713      <value name="MIPLAYOUT_RIGHT" value="1"/>
714    </field>
715    <field name="LOD" start="98" end="101" type="uint"/>
716    <field name="Width" start="102" end="114" type="uint"/>
717    <field name="Height" start="115" end="127" type="uint">
718      <value name="SURFTYPE_1D:  must be zero" value="0"/>
719    </field>
720    <field name="Render Target View Extent" start="129" end="137" type="uint"/>
721    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
722    <field name="Depth" start="149" end="159" type="uint">
723      <value name="SURFTYPE_CUBE:  must be zero" value="0"/>
724    </field>
725    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
726    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
727  </instruction>
728
729  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
730    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
731    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
732    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
733    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
734    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
735    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
736    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
737    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
738    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
739    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
740    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
741  </instruction>
742
743  <instruction name="3DSTATE_GLOBAL_DEPTH_OFFSET_CLAMP" bias="2" length="2" engine="render">
744    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
745    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
746    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
747    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
748    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
749    <field name="Global Depth Offset Clamp" start="32" end="63" type="float"/>
750  </instruction>
751
752  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3" engine="render">
753    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
754    <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
755      <value name="BYTE" value="0"/>
756      <value name="WORD" value="1"/>
757      <value name="DWORD" value="2"/>
758    </field>
759    <field name="Cut Index Enable" start="10" end="10" type="bool"/>
760    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
761    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
762    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
763    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
764    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
765    <field name="Buffer Ending Address" start="64" end="95" type="address"/>
766  </instruction>
767
768  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
769    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
770    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
771    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
772    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
773    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
774    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
775    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
776    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
777    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
778    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
779    <field name="Line Stipple Inverse Repeat Count" start="80" end="95" type="u1.13"/>
780  </instruction>
781
782  <instruction name="3DSTATE_PIPELINED_POINTERS" bias="2" length="7" engine="render">
783    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
784    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
785    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
786    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
787    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
788    <field name="Pointer to VS State" start="37" end="63" type="address"/>
789    <field name="GS Enable" start="64" end="64" type="bool"/>
790    <field name="Pointer to GS State" start="69" end="95" type="address"/>
791    <field name="Clip Enable" start="96" end="96" type="bool"/>
792    <field name="Pointer to CLIP State" start="101" end="127" type="address"/>
793    <field name="Pointer to SF State" start="133" end="159" type="address"/>
794    <field name="Pointer to WM State" start="165" end="191" type="address"/>
795    <field name="Pointer to Color Calc State" start="197" end="223" type="address"/>
796  </instruction>
797
798  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2" engine="render">
799    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
800    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
801    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
802    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
803    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
804    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
805    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
806  </instruction>
807
808  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
809    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
810    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
811    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
812    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
813    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
814    <group count="32" start="32" size="32">
815      <field name="Pattern Row" start="0" end="31" type="uint"/>
816    </group>
817  </instruction>
818
819  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2" engine="render">
820    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
821    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
822    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
823    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
824    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
825    <group count="0" start="32" size="128">
826      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
827    </group>
828  </instruction>
829
830  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2" engine="render">
831    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
832    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
833    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
834    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
835    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
836    <group count="0" start="32" size="64">
837      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
838    </group>
839  </instruction>
840
841  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1" engine="render">
842    <field name="Statistics Enable" start="0" end="0" type="bool"/>
843    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
844    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
845    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
846    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
847  </instruction>
848
849  <instruction name="CONSTANT_BUFFER" bias="2" length="2" engine="render">
850    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
851    <field name="Valid" start="8" end="8" type="bool" default="0"/>
852    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
853    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
854    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
855    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
856    <field name="Buffer Length" start="32" end="37" type="uint"/>
857    <field name="Buffer Starting Address" start="38" end="63" type="address"/>
858  </instruction>
859
860  <instruction name="CS_URB_STATE" bias="2" length="2" engine="render">
861    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
862    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
863    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
864    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
865    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
866    <field name="Number of URB Entries" start="32" end="34" type="uint"/>
867    <field name="URB Entry Allocation Size" start="36" end="40" type="uint"/>
868  </instruction>
869
870  <instruction name="MI_FLUSH" bias="1" length="1" engine="render">
871    <field name="State/Instruction Cache Invalidate" start="1" end="1" type="uint">
872      <value name="Don't Invalidate" value="0"/>
873      <value name="Invalidate" value="1"/>
874    </field>
875    <field name="Render Cache Flush Inhibit" start="2" end="2" type="uint">
876      <value name="Flush" value="0"/>
877      <value name="Don't Flush" value="1"/>
878    </field>
879    <field name="Global Snapshot Count Reset" start="3" end="3" type="uint">
880      <value name="Don't Reset" value="0"/>
881      <value name="Reset" value="1"/>
882    </field>
883    <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
884    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
885  </instruction>
886
887  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
888    <field name="DWord Length" start="0" end="5" type="uint" default="1"/>
889    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
890    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
891    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
892    <field name="Register Offset" start="34" end="63" type="offset"/>
893    <field name="Data DWord" start="64" end="95" type="uint"/>
894    <group count="0" start="96" size="64">
895      <field name="Register Offset" start="2" end="31" type="offset"/>
896      <field name="Data DWord" start="32" end="63" type="uint"/>
897    </group>
898  </instruction>
899
900  <instruction name="MI_STORE_DATA_IMM" bias="2" length="5">
901    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
902    <field name="BitFieldName" start="21" end="21" type="uint"/>
903    <field name="Memory Address Type" start="22" end="22" type="bool"/>
904    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
905    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
906    <field name="Physical Start Address Extension" start="32" end="35" type="address"/>
907    <field name="Address" start="66" end="95" type="address"/>
908    <field name="Data DWord 0" start="96" end="127" type="uint"/>
909    <field name="Data DWord 1" start="128" end="159" type="uint"/>
910  </instruction>
911
912  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="3">
913    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
914    <field name="Use Global GTT" start="22" end="22" type="bool"/>
915    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
916    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
917    <field name="Register Address" start="34" end="54" type="offset"/>
918    <field name="Physical Start Address Extension" start="60" end="63" type="address"/>
919    <field name="Memory Address" start="66" end="95" type="address"/>
920  </instruction>
921
922  <instruction name="PIPELINE_SELECT" bias="1" length="1" engine="render">
923    <field name="Pipeline Selection" start="0" end="1" type="uint">
924      <value name="3D" value="0"/>
925      <value name="Media" value="1"/>
926    </field>
927    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
928    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
929    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
930    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
931  </instruction>
932
933  <instruction name="PIPE_CONTROL" bias="2" length="4" engine="render">
934    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
935    <field name="Notify Enable" start="8" end="8" type="bool"/>
936    <field name="Indirect State Pointers Disable" start="9" end="9" type="bool"/>
937    <field name="Texture Cache Flush Enable" start="10" end="10" type="bool"/>
938    <field name="Instruction Cache Invalidate Enable" start="11" end="11" type="bool"/>
939    <field name="Write Cache Flush" start="12" end="12" type="bool"/>
940    <field name="Depth Stall Enable" start="13" end="13" type="bool"/>
941    <field name="Post Sync Operation" start="14" end="15" type="uint">
942      <value name="No Write" value="0"/>
943      <value name="Write Immediate Data" value="1"/>
944      <value name="Write PS Depth Count" value="2"/>
945      <value name="Write Timestamp" value="3"/>
946    </field>
947    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
948    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
949    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
950    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
951    <field name="Destination Address Type" start="34" end="34" type="uint" prefix="DAT">
952      <value name="PGTT" value="0"/>
953      <value name="GGTT" value="1"/>
954    </field>
955    <field name="Address" start="35" end="63" type="address"/>
956    <field name="Immediate Data" start="64" end="127" type="uint"/>
957  </instruction>
958
959  <instruction name="STATE_BASE_ADDRESS" bias="2" length="6" engine="render">
960    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
961    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
962    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
963    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
964    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
965    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
966    <field name="General State Base Address" start="44" end="63" type="address"/>
967    <field name="Surface State Base Address Modify Enable" start="64" end="64" type="bool"/>
968    <field name="Surface State Base Address" start="76" end="95" type="address"/>
969    <field name="Indirect Object Base Address Modify Enable" start="96" end="96" type="bool"/>
970    <field name="Indirect Object Base Address" start="108" end="127" type="address"/>
971    <field name="General State Access Upper Bound Modify Enable" start="128" end="128" type="bool"/>
972    <field name="General State Access Upper Bound" start="140" end="159" type="address"/>
973    <field name="Indirect Object Access Upper Bound Modify Enable" start="160" end="160" type="bool"/>
974    <field name="Indirect Object Access Upper Bound" start="172" end="191" type="address"/>
975  </instruction>
976
977  <instruction name="STATE_SIP" bias="2" length="2" engine="render">
978    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
979    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
980    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
981    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
982    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
983    <field name="System Instruction Pointer" start="36" end="63" type="offset"/>
984  </instruction>
985
986  <instruction name="URB_FENCE" bias="2" length="3" engine="render">
987    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
988    <field name="VS Unit URB Reallocation Request" start="8" end="8" type="bool"/>
989    <field name="GS Unit URB Reallocation Request" start="9" end="9" type="bool"/>
990    <field name="CLIP Unit URB Reallocation Request" start="10" end="10" type="bool"/>
991    <field name="SF Unit URB Reallocation Request" start="11" end="11" type="bool"/>
992    <field name="VFE Unit URB Reallocation Request" start="12" end="12" type="bool"/>
993    <field name="CS Unit URB Reallocation Request" start="13" end="13" type="bool"/>
994    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
995    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
996    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
997    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
998    <field name="VS Fence" start="32" end="41" type="uint"/>
999    <field name="GS Fence" start="42" end="51" type="uint"/>
1000    <field name="CLIP Fence" start="52" end="61" type="uint"/>
1001    <field name="SF Fence" start="64" end="73" type="uint"/>
1002    <field name="VFE Fence" start="74" end="83" type="uint"/>
1003    <field name="CS Fence" start="84" end="94" type="uint"/>
1004  </instruction>
1005
1006  <instruction name="XY_COLOR_BLT" bias="2" length="6" engine="blitter">
1007    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
1008    <field name="Tiling Enable" start="11" end="11" type="bool"/>
1009    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1010    <field name="2D Command Opcode" start="22" end="28" type="uint" default="80"/>
1011    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1012    <field name="Destination Pitch" start="32" end="47" type="int"/>
1013    <field name="Raster Operation" start="48" end="55" type="int"/>
1014    <field name="Color Depth" start="56" end="57" type="uint" prefix="COLOR_DEPTH">
1015      <value name="8 bit" value="0"/>
1016      <value name="565" value="1"/>
1017      <value name="1555" value="2"/>
1018      <value name="32 bit" value="3"/>
1019    </field>
1020    <field name="Clipping Enabled" start="62" end="62" type="bool"/>
1021    <field name="Destination X1 Coordinate" start="64" end="79" type="int"/>
1022    <field name="Destination Y1 Coordinate" start="80" end="95" type="int"/>
1023    <field name="Destination X2 Coordinate" start="96" end="111" type="int"/>
1024    <field name="Destination Y2 Coordinate" start="112" end="127" type="int"/>
1025    <field name="Destination Base Address" start="128" end="159" type="address"/>
1026    <field name="Solid Pattern Color" start="160" end="191" type="int"/>
1027  </instruction>
1028
1029  <instruction name="XY_SETUP_BLT" bias="2" length="8" engine="blitter">
1030    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1031    <field name="Tiling Enable" start="11" end="11" type="bool"/>
1032    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1033    <field name="2D Command Opcode" start="22" end="28" type="uint" default="1"/>
1034    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1035    <field name="Destination Pitch" start="32" end="47" type="int"/>
1036    <field name="Raster Operation" start="48" end="55" type="int"/>
1037    <field name="Color Depth" start="56" end="57" type="uint" prefix="COLOR_DEPTH">
1038      <value name="8 bit" value="0"/>
1039      <value name="565" value="1"/>
1040      <value name="1555" value="2"/>
1041      <value name="32 bit" value="3"/>
1042    </field>
1043    <field name="Mono Source Transparency Mode" start="61" end="61" type="bool"/>
1044    <field name="Clipping Enabled" start="62" end="62" type="bool"/>
1045    <field name="ClipRect X1 Coordinate" start="64" end="79" type="int"/>
1046    <field name="ClipRect Y1 Coordinate" start="80" end="95" type="int"/>
1047    <field name="ClipRect X2 Coordinate" start="96" end="111" type="int"/>
1048    <field name="ClipRect Y2 Coordinate" start="112" end="127" type="int"/>
1049    <field name="Destination Base Address" start="128" end="159" type="address"/>
1050    <field name="Background Color" start="160" end="191" type="uint"/>
1051    <field name="Foreground Color" start="192" end="223" type="uint"/>
1052    <field name="Pattern Base Address" start="224" end="255" type="uint"/>
1053  </instruction>
1054
1055  <instruction name="XY_SRC_COPY_BLT" bias="2" length="8" engine="blitter">
1056    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1057    <field name="Destination Tiling Enable" start="11" end="11" type="bool"/>
1058    <field name="Source Tiling Enable" start="15" end="15" type="bool"/>
1059    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1060    <field name="2D Command Opcode" start="22" end="28" type="uint" default="83"/>
1061    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1062    <field name="Destination Pitch" start="32" end="47" type="int"/>
1063    <field name="Raster Operation" start="48" end="55" type="int"/>
1064    <field name="Color Depth" start="56" end="57" type="uint" prefix="COLOR_DEPTH">
1065      <value name="8 bit" value="0"/>
1066      <value name="565" value="1"/>
1067      <value name="1555" value="2"/>
1068      <value name="32 bit" value="3"/>
1069    </field>
1070    <field name="Clipping Enabled" start="62" end="62" type="bool"/>
1071    <field name="Destination X1 Coordinate" start="64" end="79" type="int"/>
1072    <field name="Destination Y1 Coordinate" start="80" end="95" type="int"/>
1073    <field name="Destination X2 Coordinate" start="96" end="111" type="int"/>
1074    <field name="Destination Y2 Coordinate" start="112" end="127" type="int"/>
1075    <field name="Destination Base Address" start="128" end="159" type="address"/>
1076    <field name="Source X1 Coordinate" start="160" end="175" type="int"/>
1077    <field name="Source Y1 Coordinate" start="176" end="191" type="int"/>
1078    <field name="Source Pitch" start="192" end="207" type="int"/>
1079    <field name="Source Base Address" start="224" end="255" type="address"/>
1080  </instruction>
1081
1082  <instruction name="XY_TEXT_IMMEDIATE_BLT" bias="2" length="3" engine="blitter">
1083    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1084    <field name="Tiling Enable" start="11" end="11" type="bool"/>
1085    <field name="Packing" start="16" end="16" type="uint">
1086      <value name="Bit Packed" value="0"/>
1087      <value name="Byte Packed" value="1"/>
1088    </field>
1089    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1090    <field name="2D Command Opcode" start="22" end="28" type="uint" default="49"/>
1091    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1092    <field name="Destination Pitch" start="32" end="47" type="int"/>
1093    <field name="Destination X1 Coordinate" start="32" end="47" type="int"/>
1094    <field name="Destination Y1 Coordinate" start="48" end="63" type="int"/>
1095    <field name="Destination X2 Coordinate" start="64" end="79" type="int"/>
1096    <field name="Destination Y2 Coordinate" start="80" end="95" type="int"/>
1097  </instruction>
1098</genxml>
1099