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