• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<genxml name="IVB" gen="7">
2  <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
3    <value name="POINTLIST" value="1"/>
4    <value name="LINELIST" value="2"/>
5    <value name="LINESTRIP" value="3"/>
6    <value name="TRILIST" value="4"/>
7    <value name="TRISTRIP" value="5"/>
8    <value name="TRIFAN" value="6"/>
9    <value name="QUADLIST" value="7"/>
10    <value name="QUADSTRIP" value="8"/>
11    <value name="LINELIST_ADJ" value="9"/>
12    <value name="LINESTRIP_ADJ" value="10"/>
13    <value name="TRILIST_ADJ" value="11"/>
14    <value name="TRISTRIP_ADJ" value="12"/>
15    <value name="TRISTRIP_REVERSE" value="13"/>
16    <value name="POLYGON" value="14"/>
17    <value name="RECTLIST" value="15"/>
18    <value name="LINELOOP" value="16"/>
19    <value name="POINTLIST _BF" value="17"/>
20    <value name="LINESTRIP_CONT" value="18"/>
21    <value name="LINESTRIP_BF" value="19"/>
22    <value name="LINESTRIP_CONT_BF" value="20"/>
23    <value name="TRIFAN_NOSTIPPLE" value="22"/>
24    <value name="PATCHLIST_1" value="32"/>
25    <value name="PATCHLIST_2" value="33"/>
26    <value name="PATCHLIST_3" value="34"/>
27    <value name="PATCHLIST_4" value="35"/>
28    <value name="PATCHLIST_5" value="36"/>
29    <value name="PATCHLIST_6" value="37"/>
30    <value name="PATCHLIST_7" value="38"/>
31    <value name="PATCHLIST_8" value="39"/>
32    <value name="PATCHLIST_9" value="40"/>
33    <value name="PATCHLIST_10" value="41"/>
34    <value name="PATCHLIST_11" value="42"/>
35    <value name="PATCHLIST_12" value="43"/>
36    <value name="PATCHLIST_13" value="44"/>
37    <value name="PATCHLIST_14" value="45"/>
38    <value name="PATCHLIST_15" value="46"/>
39    <value name="PATCHLIST_16" value="47"/>
40    <value name="PATCHLIST_17" value="48"/>
41    <value name="PATCHLIST_18" value="49"/>
42    <value name="PATCHLIST_19" value="50"/>
43    <value name="PATCHLIST_20" value="51"/>
44    <value name="PATCHLIST_21" value="52"/>
45    <value name="PATCHLIST_22" value="53"/>
46    <value name="PATCHLIST_23" value="54"/>
47    <value name="PATCHLIST_24" value="55"/>
48    <value name="PATCHLIST_25" value="56"/>
49    <value name="PATCHLIST_26" value="57"/>
50    <value name="PATCHLIST_27" value="58"/>
51    <value name="PATCHLIST_28" value="59"/>
52    <value name="PATCHLIST_29" value="60"/>
53    <value name="PATCHLIST_30" value="61"/>
54    <value name="PATCHLIST_31" value="62"/>
55    <value name="PATCHLIST_32" value="63"/>
56  </enum>
57
58  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
59    <value name="NOSTORE" value="0"/>
60    <value name="STORE_SRC" value="1"/>
61    <value name="STORE_0" value="2"/>
62    <value name="STORE_1_FP" value="3"/>
63    <value name="STORE_1_INT" value="4"/>
64    <value name="STORE_VID" value="5"/>
65    <value name="STORE_IID" value="6"/>
66    <value name="STORE_PID" value="7"/>
67  </enum>
68
69  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
70    <value name="KEEP" value="0"/>
71    <value name="ZERO" value="1"/>
72    <value name="REPLACE" value="2"/>
73    <value name="INCRSAT" value="3"/>
74    <value name="DECRSAT" value="4"/>
75    <value name="INCR" value="5"/>
76    <value name="DECR" value="6"/>
77    <value name="INVERT" value="7"/>
78  </enum>
79
80  <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
81    <value name="ONE" value="1"/>
82    <value name="SRC_COLOR" value="2"/>
83    <value name="SRC_ALPHA" value="3"/>
84    <value name="DST_ALPHA" value="4"/>
85    <value name="DST_COLOR" value="5"/>
86    <value name="SRC_ALPHA_SATURATE" value="6"/>
87    <value name="CONST_COLOR" value="7"/>
88    <value name="CONST_ALPHA" value="8"/>
89    <value name="SRC1_COLOR" value="9"/>
90    <value name="SRC1_ALPHA" value="10"/>
91    <value name="ZERO" value="17"/>
92    <value name="INV_SRC_COLOR" value="18"/>
93    <value name="INV_SRC_ALPHA" value="19"/>
94    <value name="INV_DST_ALPHA" value="20"/>
95    <value name="INV_DST_COLOR" value="21"/>
96    <value name="INV_CONST_COLOR" value="23"/>
97    <value name="INV_CONST_ALPHA" value="24"/>
98    <value name="INV_SRC1_COLOR" value="25"/>
99    <value name="INV_SRC1_ALPHA" value="26"/>
100  </enum>
101
102  <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
103    <value name="ADD" value="0"/>
104    <value name="SUBTRACT" value="1"/>
105    <value name="REVERSE_SUBTRACT" value="2"/>
106    <value name="MIN" value="3"/>
107    <value name="MAX" value="4"/>
108  </enum>
109
110  <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
111    <value name="ALWAYS" value="0"/>
112    <value name="NEVER" value="1"/>
113    <value name="LESS" value="2"/>
114    <value name="EQUAL" value="3"/>
115    <value name="LEQUAL" value="4"/>
116    <value name="GREATER" value="5"/>
117    <value name="NOTEQUAL" value="6"/>
118    <value name="GEQUAL" value="7"/>
119  </enum>
120
121  <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
122    <value name="CLEAR" value="0"/>
123    <value name="NOR" value="1"/>
124    <value name="AND_INVERTED" value="2"/>
125    <value name="COPY_INVERTED" value="3"/>
126    <value name="AND_REVERSE" value="4"/>
127    <value name="INVERT" value="5"/>
128    <value name="XOR" value="6"/>
129    <value name="NAND" value="7"/>
130    <value name="AND" value="8"/>
131    <value name="EQUIV" value="9"/>
132    <value name="NOOP" value="10"/>
133    <value name="OR_INVERTED" value="11"/>
134    <value name="COPY" value="12"/>
135    <value name="OR_REVERSE" value="13"/>
136    <value name="OR" value="14"/>
137    <value name="SET" value="15"/>
138  </enum>
139
140  <enum name="SURFACE_FORMAT" prefix="SF">
141    <value name="R32G32B32A32_FLOAT" value="0"/>
142    <value name="R32G32B32A32_SINT" value="1"/>
143    <value name="R32G32B32A32_UINT" value="2"/>
144    <value name="R32G32B32A32_UNORM" value="3"/>
145    <value name="R32G32B32A32_SNORM" value="4"/>
146    <value name="R64G64_FLOAT" value="5"/>
147    <value name="R32G32B32X32_FLOAT" value="6"/>
148    <value name="R32G32B32A32_SSCALED" value="7"/>
149    <value name="R32G32B32A32_USCALED" value="8"/>
150    <value name="R32G32B32A32_SFIXED" value="32"/>
151    <value name="R64G64_PASSTHRU" value="33"/>
152    <value name="R32G32B32_FLOAT" value="64"/>
153    <value name="R32G32B32_SINT" value="65"/>
154    <value name="R32G32B32_UINT" value="66"/>
155    <value name="R32G32B32_UNORM" value="67"/>
156    <value name="R32G32B32_SNORM" value="68"/>
157    <value name="R32G32B32_SSCALED" value="69"/>
158    <value name="R32G32B32_USCALED" value="70"/>
159    <value name="R32G32B32_SFIXED" value="80"/>
160    <value name="R16G16B16A16_UNORM" value="128"/>
161    <value name="R16G16B16A16_SNORM" value="129"/>
162    <value name="R16G16B16A16_SINT" value="130"/>
163    <value name="R16G16B16A16_UINT" value="131"/>
164    <value name="R16G16B16A16_FLOAT" value="132"/>
165    <value name="R32G32_FLOAT" value="133"/>
166    <value name="R32G32_SINT" value="134"/>
167    <value name="R32G32_UINT" value="135"/>
168    <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
169    <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
170    <value name="L32A32_FLOAT" value="138"/>
171    <value name="R32G32_UNORM" value="139"/>
172    <value name="R32G32_SNORM" value="140"/>
173    <value name="R64_FLOAT" value="141"/>
174    <value name="R16G16B16X16_UNORM" value="142"/>
175    <value name="R16G16B16X16_FLOAT" value="143"/>
176    <value name="A32X32_FLOAT" value="144"/>
177    <value name="L32X32_FLOAT" value="145"/>
178    <value name="I32X32_FLOAT" value="146"/>
179    <value name="R16G16B16A16_SSCALED" value="147"/>
180    <value name="R16G16B16A16_USCALED" value="148"/>
181    <value name="R32G32_SSCALED" value="149"/>
182    <value name="R32G32_USCALED" value="150"/>
183    <value name="R32G32_SFIXED" value="160"/>
184    <value name="R64_PASSTHRU" value="161"/>
185    <value name="B8G8R8A8_UNORM" value="192"/>
186    <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
187    <value name="R10G10B10A2_UNORM" value="194"/>
188    <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
189    <value name="R10G10B10A2_UINT" value="196"/>
190    <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
191    <value name="R8G8B8A8_UNORM" value="199"/>
192    <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
193    <value name="R8G8B8A8_SNORM" value="201"/>
194    <value name="R8G8B8A8_SINT" value="202"/>
195    <value name="R8G8B8A8_UINT" value="203"/>
196    <value name="R16G16_UNORM" value="204"/>
197    <value name="R16G16_SNORM" value="205"/>
198    <value name="R16G16_SINT" value="206"/>
199    <value name="R16G16_UINT" value="207"/>
200    <value name="R16G16_FLOAT" value="208"/>
201    <value name="B10G10R10A2_UNORM" value="209"/>
202    <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
203    <value name="R11G11B10_FLOAT" value="211"/>
204    <value name="R32_SINT" value="214"/>
205    <value name="R32_UINT" value="215"/>
206    <value name="R32_FLOAT" value="216"/>
207    <value name="R24_UNORM_X8_TYPELESS" value="217"/>
208    <value name="X24_TYPELESS_G8_UINT" value="218"/>
209    <value name="L32_UNORM" value="221"/>
210    <value name="A32_UNORM" value="222"/>
211    <value name="L16A16_UNORM" value="223"/>
212    <value name="I24X8_UNORM" value="224"/>
213    <value name="L24X8_UNORM" value="225"/>
214    <value name="A24X8_UNORM" value="226"/>
215    <value name="I32_FLOAT" value="227"/>
216    <value name="L32_FLOAT" value="228"/>
217    <value name="A32_FLOAT" value="229"/>
218    <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
219    <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
220    <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
221    <value name="B8G8R8X8_UNORM" value="233"/>
222    <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
223    <value name="R8G8B8X8_UNORM" value="235"/>
224    <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
225    <value name="R9G9B9E5_SHAREDEXP" value="237"/>
226    <value name="B10G10R10X2_UNORM" value="238"/>
227    <value name="L16A16_FLOAT" value="240"/>
228    <value name="R32_UNORM" value="241"/>
229    <value name="R32_SNORM" value="242"/>
230    <value name="R10G10B10X2_USCALED" value="243"/>
231    <value name="R8G8B8A8_SSCALED" value="244"/>
232    <value name="R8G8B8A8_USCALED" value="245"/>
233    <value name="R16G16_SSCALED" value="246"/>
234    <value name="R16G16_USCALED" value="247"/>
235    <value name="R32_SSCALED" value="248"/>
236    <value name="R32_USCALED" value="249"/>
237    <value name="B5G6R5_UNORM" value="256"/>
238    <value name="B5G6R5_UNORM_SRGB" value="257"/>
239    <value name="B5G5R5A1_UNORM" value="258"/>
240    <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
241    <value name="B4G4R4A4_UNORM" value="260"/>
242    <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
243    <value name="R8G8_UNORM" value="262"/>
244    <value name="R8G8_SNORM" value="263"/>
245    <value name="R8G8_SINT" value="264"/>
246    <value name="R8G8_UINT" value="265"/>
247    <value name="R16_UNORM" value="266"/>
248    <value name="R16_SNORM" value="267"/>
249    <value name="R16_SINT" value="268"/>
250    <value name="R16_UINT" value="269"/>
251    <value name="R16_FLOAT" value="270"/>
252    <value name="A8P8_UNORM_PALETTE0" value="271"/>
253    <value name="A8P8_UNORM_PALETTE1" value="272"/>
254    <value name="I16_UNORM" value="273"/>
255    <value name="L16_UNORM" value="274"/>
256    <value name="A16_UNORM" value="275"/>
257    <value name="L8A8_UNORM" value="276"/>
258    <value name="I16_FLOAT" value="277"/>
259    <value name="L16_FLOAT" value="278"/>
260    <value name="A16_FLOAT" value="279"/>
261    <value name="L8A8_UNORM_SRGB" value="280"/>
262    <value name="R5G5_SNORM_B6_UNORM" value="281"/>
263    <value name="B5G5R5X1_UNORM" value="282"/>
264    <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
265    <value name="R8G8_SSCALED" value="284"/>
266    <value name="R8G8_USCALED" value="285"/>
267    <value name="R16_SSCALED" value="286"/>
268    <value name="R16_USCALED" value="287"/>
269    <value name="P8A8_UNORM_PALETTE0" value="290"/>
270    <value name="P8A8_UNORM_PALETTE1" value="291"/>
271    <value name="A1B5G5R5_UNORM" value="292"/>
272    <value name="A4B4G4R4_UNORM" value="293"/>
273    <value name="L8A8_UINT" value="294"/>
274    <value name="L8A8_SINT" value="295"/>
275    <value name="R8_UNORM" value="320"/>
276    <value name="R8_SNORM" value="321"/>
277    <value name="R8_SINT" value="322"/>
278    <value name="R8_UINT" value="323"/>
279    <value name="A8_UNORM" value="324"/>
280    <value name="I8_UNORM" value="325"/>
281    <value name="L8_UNORM" value="326"/>
282    <value name="P4A4_UNORM_PALETTE0" value="327"/>
283    <value name="A4P4_UNORM_PALETTE0" value="328"/>
284    <value name="R8_SSCALED" value="329"/>
285    <value name="R8_USCALED" value="330"/>
286    <value name="P8_UNORM_PALETTE0" value="331"/>
287    <value name="L8_UNORM_SRGB" value="332"/>
288    <value name="P8_UNORM_PALETTE1" value="333"/>
289    <value name="P4A4_UNORM_PALETTE1" value="334"/>
290    <value name="A4P4_UNORM_PALETTE1" value="335"/>
291    <value name="Y8_UNORM" value="336"/>
292    <value name="L8_UINT" value="338"/>
293    <value name="L8_SINT" value="339"/>
294    <value name="I8_UINT" value="340"/>
295    <value name="I8_SINT" value="341"/>
296    <value name="DXT1_RGB_SRGB" value="384"/>
297    <value name="R1_UNORM" value="385"/>
298    <value name="YCRCB_NORMAL" value="386"/>
299    <value name="YCRCB_SWAPUVY" value="387"/>
300    <value name="P2_UNORM_PALETTE0" value="388"/>
301    <value name="P2_UNORM_PALETTE1" value="389"/>
302    <value name="BC1_UNORM" value="390"/>
303    <value name="BC2_UNORM" value="391"/>
304    <value name="BC3_UNORM" value="392"/>
305    <value name="BC4_UNORM" value="393"/>
306    <value name="BC5_UNORM" value="394"/>
307    <value name="BC1_UNORM_SRGB" value="395"/>
308    <value name="BC2_UNORM_SRGB" value="396"/>
309    <value name="BC3_UNORM_SRGB" value="397"/>
310    <value name="MONO8" value="398"/>
311    <value name="YCRCB_SWAPUV" value="399"/>
312    <value name="YCRCB_SWAPY" value="400"/>
313    <value name="DXT1_RGB" value="401"/>
314    <value name="FXT1" value="402"/>
315    <value name="R8G8B8_UNORM" value="403"/>
316    <value name="R8G8B8_SNORM" value="404"/>
317    <value name="R8G8B8_SSCALED" value="405"/>
318    <value name="R8G8B8_USCALED" value="406"/>
319    <value name="R64G64B64A64_FLOAT" value="407"/>
320    <value name="R64G64B64_FLOAT" value="408"/>
321    <value name="BC4_SNORM" value="409"/>
322    <value name="BC5_SNORM" value="410"/>
323    <value name="R16G16B16_FLOAT" value="411"/>
324    <value name="R16G16B16_UNORM" value="412"/>
325    <value name="R16G16B16_SNORM" value="413"/>
326    <value name="R16G16B16_SSCALED" value="414"/>
327    <value name="R16G16B16_USCALED" value="415"/>
328    <value name="BC6H_SF16" value="417"/>
329    <value name="BC7_UNORM" value="418"/>
330    <value name="BC7_UNORM_SRGB" value="419"/>
331    <value name="BC6H_UF16" value="420"/>
332    <value name="PLANAR_420_8" value="421"/>
333    <value name="R8G8B8_UNORM_SRGB" value="424"/>
334    <value name="ETC1_RGB8" value="425"/>
335    <value name="ETC2_RGB8" value="426"/>
336    <value name="EAC_R11" value="427"/>
337    <value name="EAC_RG11" value="428"/>
338    <value name="EAC_SIGNED_R11" value="429"/>
339    <value name="EAC_SIGNED_RG11" value="430"/>
340    <value name="ETC2_SRGB8" value="431"/>
341    <value name="R16G16B16_UINT" value="432"/>
342    <value name="R16G16B16_SINT" value="433"/>
343    <value name="R32_SFIXED" value="434"/>
344    <value name="R10G10B10A2_SNORM" value="435"/>
345    <value name="R10G10B10A2_USCALED" value="436"/>
346    <value name="R10G10B10A2_SSCALED" value="437"/>
347    <value name="R10G10B10A2_SINT" value="438"/>
348    <value name="B10G10R10A2_SNORM" value="439"/>
349    <value name="B10G10R10A2_USCALED" value="440"/>
350    <value name="B10G10R10A2_SSCALED" value="441"/>
351    <value name="B10G10R10A2_UINT" value="442"/>
352    <value name="B10G10R10A2_SINT" value="443"/>
353    <value name="R64G64B64A64_PASSTHRU" value="444"/>
354    <value name="R64G64B64_PASSTHRU" value="445"/>
355    <value name="ETC2_RGB8_PTA" value="448"/>
356    <value name="ETC2_SRGB8_PTA" value="449"/>
357    <value name="ETC2_EAC_RGBA8" value="450"/>
358    <value name="ETC2_EAC_SRGB8_A8" value="451"/>
359    <value name="R8G8B8_UINT" value="456"/>
360    <value name="R8G8B8_SINT" value="457"/>
361    <value name="RAW" value="511"/>
362  </enum>
363
364  <enum name="Texture Coordinate Mode" prefix="TCM">
365    <value name="WRAP" value="0"/>
366    <value name="MIRROR" value="1"/>
367    <value name="CLAMP" value="2"/>
368    <value name="CUBE" value="3"/>
369    <value name="CLAMP_BORDER" value="4"/>
370    <value name="MIRROR_ONCE" value="5"/>
371  </enum>
372
373  <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
374    <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
375    <field name="LLC Cacheability Control (LLCCC)" start="1" end="1" type="uint"/>
376    <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
377  </struct>
378
379  <struct name="3DSTATE_CONSTANT_BODY" length="6">
380    <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
381    <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
382    <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
383    <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
384    <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
385    <field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
386    <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
387    <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
388    <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
389  </struct>
390
391  <struct name="VERTEX_BUFFER_STATE" length="4">
392    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
393    <field name="Buffer Access Type" start="20" end="20" type="uint">
394      <value name="VERTEXDATA" value="0"/>
395      <value name="INSTANCEDATA" value="1"/>
396    </field>
397    <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
398    <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
399    <field name="Address Modify Enable" start="14" end="14" type="bool"/>
400    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
401    <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
402    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
403    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
404    <field name="End Address" start="64" end="95" type="address"/>
405    <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
406  </struct>
407
408  <struct name="VERTEX_ELEMENT_STATE" length="2">
409    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
410    <field name="Valid" start="25" end="25" type="bool"/>
411    <field name="Source Element Format" start="16" end="24" type="SURFACE_FORMAT"/>
412    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
413    <field name="Source Element Offset" start="0" end="11" type="uint"/>
414    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
415    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
416    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
417    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
418  </struct>
419
420  <struct name="SO_DECL" length="1">
421    <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
422    <field name="Hole Flag" start="11" end="11" type="uint"/>
423    <field name="Register Index" start="4" end="9" type="uint"/>
424    <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
425  </struct>
426
427  <struct name="SO_DECL_ENTRY" length="2">
428    <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
429    <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
430    <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
431    <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
432  </struct>
433
434  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
435    <field name="Component Override W" start="15" end="15" type="bool"/>
436    <field name="Component Override Z" start="14" end="14" type="bool"/>
437    <field name="Component Override Y" start="13" end="13" type="bool"/>
438    <field name="Component Override X" start="12" end="12" type="bool"/>
439    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
440    <field name="Constant Source" start="9" end="10" type="uint">
441      <value name="CONST_0000" value="0"/>
442      <value name="CONST_0001_FLOAT" value="1"/>
443      <value name="CONST_1111_FLOAT" value="2"/>
444      <value name="PRIM_ID" value="3"/>
445    </field>
446    <field name="Swizzle Select" start="6" end="7" type="uint">
447      <value name="INPUTATTR" value="0"/>
448      <value name="INPUTATTR_FACING" value="1"/>
449      <value name="INPUTATTR_W" value="2"/>
450      <value name="INPUTATTR_FACING_W" value="3"/>
451    </field>
452    <field name="Source Attribute" start="0" end="4" type="uint"/>
453  </struct>
454
455  <struct name="SCISSOR_RECT" length="2">
456    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
457    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
458    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
459    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
460  </struct>
461
462  <struct name="SF_CLIP_VIEWPORT" length="16">
463    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
464    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
465    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
466    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
467    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
468    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
469    <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
470    <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
471    <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
472    <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
473    <group count="4" start="384" size="32">
474    </group>
475  </struct>
476
477  <struct name="BLEND_STATE_ENTRY" length="2">
478    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
479    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
480    <field name="Alpha Blend Function" start="26" end="28" type="3D_Color_Buffer_Blend_Function"/>
481    <field name="Source Alpha Blend Factor" start="20" end="24" type="3D_Color_Buffer_Blend_Factor"/>
482    <field name="Destination Alpha Blend Factor" start="15" end="19" type="3D_Color_Buffer_Blend_Factor"/>
483    <field name="Color Blend Function" start="11" end="13" type="3D_Color_Buffer_Blend_Function"/>
484    <field name="Source Blend Factor" start="5" end="9" type="3D_Color_Buffer_Blend_Factor"/>
485    <field name="Destination Blend Factor" start="0" end="4" type="3D_Color_Buffer_Blend_Factor"/>
486    <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
487    <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
488    <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
489    <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
490    <field name="Write Disable Red" start="58" end="58" type="bool"/>
491    <field name="Write Disable Green" start="57" end="57" type="bool"/>
492    <field name="Write Disable Blue" start="56" end="56" type="bool"/>
493    <field name="Logic Op Enable" start="54" end="54" type="bool"/>
494    <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
495    <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
496    <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
497    <field name="Color Dither Enable" start="44" end="44" type="bool"/>
498    <field name="X Dither Offset" start="42" end="43" type="uint"/>
499    <field name="Y Dither Offset" start="40" end="41" type="uint"/>
500    <field name="Color Clamp Range" start="34" end="35" type="uint">
501      <value name="COLORCLAMP_UNORM" value="0"/>
502      <value name="COLORCLAMP_SNORM" value="1"/>
503      <value name="COLORCLAMP_RTFORMAT" value="2"/>
504    </field>
505    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
506    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
507  </struct>
508
509  <struct name="BLEND_STATE" length="16">
510    <group count="8" start="0" size="64">
511      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
512    </group>
513  </struct>
514
515  <struct name="CC_VIEWPORT" length="2">
516    <field name="Minimum Depth" start="0" end="31" type="float"/>
517    <field name="Maximum Depth" start="32" end="63" type="float"/>
518  </struct>
519
520  <struct name="COLOR_CALC_STATE" length="6">
521    <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
522    <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
523    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
524    <field name="Alpha Test Format" start="0" end="0" type="uint">
525      <value name="ALPHATEST_UNORM8" value="0"/>
526      <value name="ALPHATEST_FLOAT32" value="1"/>
527    </field>
528    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
529    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
530    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
531    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
532    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
533    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
534  </struct>
535
536  <struct name="DEPTH_STENCIL_STATE" length="3">
537    <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
538    <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
539    <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
540    <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
541    <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
542    <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
543    <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
544    <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
545    <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
546    <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
547    <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
548    <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
549    <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
550    <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
551    <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
552    <field name="Depth Test Enable" start="95" end="95" type="bool"/>
553    <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/>
554    <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
555  </struct>
556
557  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
558    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
559    <field name="Single Program Flow" start="50" end="50" type="bool"/>
560    <field name="Thread Priority" start="49" end="49" type="uint">
561      <value name="Normal Priority" value="0"/>
562      <value name="High Priority" value="1"/>
563    </field>
564    <field name="Floating Point Mode" start="48" end="48" type="uint">
565      <value name="IEEE-754" value="0"/>
566      <value name="Alternate" value="1"/>
567    </field>
568    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
569    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
570    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
571    <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
572    <field name="Sampler Count" start="66" end="68" type="uint">
573      <value name="No samplers used" value="0"/>
574      <value name="Between 1 and 4 samplers used" value="1"/>
575      <value name="Between 5 and 8 samplers used" value="2"/>
576      <value name="Between 9 and 12 samplers used" value="3"/>
577      <value name="Between 13 and 16 samplers used" value="4"/>
578    </field>
579    <field name="Binding Table Pointer" start="101" end="111" type="offset"/>
580    <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
581    <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
582    <field name="Constant URB Entry Read Offset" start="128" end="143" type="uint"/>
583    <field name="Rounding Mode" start="182" end="183" type="uint">
584      <value name="RTNE" value="0"/>
585      <value name="RU" value="1"/>
586      <value name="RD" value="2"/>
587      <value name="RTZ" value="3"/>
588    </field>
589    <field name="Barrier Enable" start="181" end="181" type="bool"/>
590    <field name="Shared Local Memory Size" start="176" end="180" type="uint"/>
591    <field name="Number of Threads in GPGPU Thread Group" start="160" end="167" type="uint"/>
592  </struct>
593
594  <struct name="PALETTE_ENTRY" length="1">
595    <field name="Alpha" start="24" end="31" type="uint"/>
596    <field name="Red" start="16" end="23" type="uint"/>
597    <field name="Green" start="8" end="15" type="uint"/>
598    <field name="Blue" start="0" end="7" type="uint"/>
599  </struct>
600
601  <struct name="BINDING_TABLE_STATE" length="1">
602    <field name="Surface State Pointer" start="5" end="31" type="offset"/>
603  </struct>
604
605  <struct name="RENDER_SURFACE_STATE" length="8">
606    <field name="Surface Type" start="29" end="31" type="uint">
607      <value name="SURFTYPE_1D" value="0"/>
608      <value name="SURFTYPE_2D" value="1"/>
609      <value name="SURFTYPE_3D" value="2"/>
610      <value name="SURFTYPE_CUBE" value="3"/>
611      <value name="SURFTYPE_BUFFER" value="4"/>
612      <value name="SURFTYPE_STRBUF" value="5"/>
613      <value name="SURFTYPE_NULL" value="7"/>
614    </field>
615    <field name="Surface Array" start="28" end="28" type="bool"/>
616    <field name="Surface Format" start="18" end="26" type="SURFACE_FORMAT"/>
617    <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
618      <value name="VALIGN_2" value="0"/>
619      <value name="VALIGN_4" value="1"/>
620    </field>
621    <field name="Surface Horizontal Alignment" start="15" end="15" type="uint">
622      <value name="HALIGN_4" value="0"/>
623      <value name="HALIGN_8" value="1"/>
624    </field>
625    <field name="Tiled Surface" start="14" end="14" type="bool"/>
626    <field name="Tile Walk" start="13" end="13" type="uint">
627      <value name="TILEWALK_XMAJOR" value="0"/>
628      <value name="TILEWALK_YMAJOR" value="1"/>
629    </field>
630    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
631    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
632    <field name="Surface Array Spacing" start="10" end="10" type="uint">
633      <value name="ARYSPC_FULL" value="0"/>
634      <value name="ARYSPC_LOD0" value="1"/>
635    </field>
636    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint"/>
637    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
638      <value name="NORMAL_MODE" value="0"/>
639      <value name="PROGRESSIVE_FRAME" value="2"/>
640      <value name="INTERLACED_FRAME" value="3"/>
641    </field>
642    <field name="Cube Face Enables" start="0" end="5" type="uint"/>
643    <field name="Surface Base Address" start="32" end="63" type="address"/>
644    <field name="Height" start="80" end="93" type="uint"/>
645    <field name="Width" start="64" end="77" type="uint"/>
646    <field name="Depth" start="117" end="127" type="uint"/>
647    <field name="Surface Pitch" start="96" end="113" type="uint"/>
648    <field name="Render Target Rotation" start="157" end="158" type="uint">
649      <value name="RTROTATE_0DEG" value="0"/>
650      <value name="RTROTATE_90DEG" value="1"/>
651      <value name="RTROTATE_270DEG" value="3"/>
652    </field>
653    <field name="Minimum Array Element" start="146" end="156" type="uint"/>
654    <field name="Render Target View Extent" start="135" end="145" type="uint"/>
655    <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
656      <value name="MSFMT_MSS" value="0"/>
657      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
658    </field>
659    <field name="Number of Multisamples" start="131" end="133" type="uint">
660      <value name="MULTISAMPLECOUNT_1" value="0"/>
661      <value name="MULTISAMPLECOUNT_4" value="2"/>
662      <value name="MULTISAMPLECOUNT_8" value="3"/>
663    </field>
664    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
665    <field name="Strbuf Minimum Array Element" start="128" end="154" type="uint"/>
666    <field name="X Offset" start="185" end="191" type="uint"/>
667    <field name="Y Offset" start="180" end="183" type="uint"/>
668    <field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
669    <field name="MOCS" start="176" end="179" type="uint"/>
670    <field name="Surface Min LOD" start="164" end="167" type="uint"/>
671    <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
672    <field name="Append Counter Address" start="198" end="223" type="address"/>
673    <field name="Append Counter Enable" start="193" end="193" type="bool"/>
674    <field name="MCS Base Address" start="204" end="223" type="address"/>
675    <field name="MCS Surface Pitch" start="195" end="203" type="uint"/>
676    <field name="MCS Enable" start="192" end="192" type="bool"/>
677    <field name="Reserved: MBZ" start="222" end="223" type="uint"/>
678    <field name="X Offset for UV Plane" start="208" end="221" type="uint"/>
679    <field name="Y Offset for UV Plane" start="192" end="205" type="uint"/>
680    <field name="Red Clear Color" start="255" end="255" type="uint">
681      <value name="CC_ZERO" value="0"/>
682      <value name="CC_ONE" value="1"/>
683    </field>
684    <field name="Green Clear Color" start="254" end="254" type="uint">
685      <value name="CC_ZERO" value="0"/>
686      <value name="CC_ONE" value="1"/>
687    </field>
688    <field name="Blue Clear Color" start="253" end="253" type="uint">
689      <value name="CC_ZERO" value="0"/>
690      <value name="CC_ONE" value="1"/>
691    </field>
692    <field name="Alpha Clear Color" start="252" end="252" type="uint">
693      <value name="CC_ZERO" value="0"/>
694      <value name="CC_ONE" value="1"/>
695    </field>
696    <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
697  </struct>
698
699  <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
700    <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
701    <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
702    <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
703    <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>
704
705    <field name="Border Color Float Red" start="0" end="31" type="float"/>
706    <field name="Border Color Float Green" start="32" end="63" type="float"/>
707    <field name="Border Color Float Blue" start="64" end="95" type="float"/>
708    <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
709  </struct>
710
711  <struct name="SAMPLER_STATE" length="4">
712    <field name="Sampler Disable" start="31" end="31" type="bool"/>
713    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
714      <value name="DX10/OGL" value="0"/>
715      <value name="DX9" value="1"/>
716    </field>
717    <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
718      <value name="OGL" value="1"/>
719    </field>
720    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
721    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
722      <value name="NONE" value="0"/>
723      <value name="NEAREST" value="1"/>
724      <value name="LINEAR" value="3"/>
725    </field>
726    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
727      <value name="NEAREST" value="0"/>
728      <value name="LINEAR" value="1"/>
729      <value name="ANISOTROPIC" value="2"/>
730      <value name="MONO" value="6"/>
731    </field>
732    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
733      <value name="NEAREST" value="0"/>
734      <value name="LINEAR" value="1"/>
735      <value name="ANISOTROPIC" value="2"/>
736      <value name="MONO" value="6"/>
737    </field>
738    <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
739    <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
740      <value name="LEGACY" value="0"/>
741      <value name="EWA Approximation" value="1"/>
742    </field>
743    <field name="Min LOD" start="52" end="63" type="u4.8"/>
744    <field name="Max LOD" start="40" end="51" type="u4.8"/>
745    <field name="Shadow Function" start="33" end="35" type="uint">
746      <value name="PREFILTEROP ALWAYS" value="0"/>
747      <value name="PREFILTEROP NEVER" value="1"/>
748      <value name="PREFILTEROP LESS" value="2"/>
749      <value name="PREFILTEROP EQUAL" value="3"/>
750      <value name="PREFILTEROP LEQUAL" value="4"/>
751      <value name="PREFILTEROP GREATER" value="5"/>
752      <value name="PREFILTEROP NOTEQUAL" value="6"/>
753      <value name="PREFILTEROP GEQUAL" value="7"/>
754    </field>
755    <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
756      <value name="PROGRAMMED" value="0"/>
757      <value name="OVERRIDE" value="1"/>
758    </field>
759    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
760    <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
761    <field name="ChromaKey Index" start="119" end="120" type="uint"/>
762    <field name="ChromaKey Mode" start="118" end="118" type="uint">
763      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
764      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
765    </field>
766    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
767      <value name="RATIO 2:1" value="0"/>
768      <value name="RATIO 4:1" value="1"/>
769      <value name="RATIO 6:1" value="2"/>
770      <value name="RATIO 8:1" value="3"/>
771      <value name="RATIO 10:1" value="4"/>
772      <value name="RATIO 12:1" value="5"/>
773      <value name="RATIO 14:1" value="6"/>
774      <value name="RATIO 16:1" value="7"/>
775    </field>
776    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
777    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
778    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
779    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
780    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
781    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
782    <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
783      <value name="FULL" value="0"/>
784      <value name="MED" value="2"/>
785      <value name="LOW" value="3"/>
786    </field>
787    <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
788    <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
789    <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
790    <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
791  </struct>
792
793  <instruction name="3DPRIMITIVE" bias="2" length="7">
794    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
795    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
796    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
797    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
798    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
799    <field name="Predicate Enable" start="8" end="8" type="bool"/>
800    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
801    <field name="End Offset Enable" start="41" end="41" type="bool"/>
802    <field name="Vertex Access Type" start="40" end="40" type="uint">
803      <value name="SEQUENTIAL" value="0"/>
804      <value name="RANDOM" value="1"/>
805    </field>
806    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
807    <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
808    <field name="Start Vertex Location" start="96" end="127" type="uint"/>
809    <field name="Instance Count" start="128" end="159" type="uint"/>
810    <field name="Start Instance Location" start="160" end="191" type="uint"/>
811    <field name="Base Vertex Location" start="192" end="223" type="int"/>
812  </instruction>
813
814  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3">
815    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
816    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
817    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
818    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
819    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
820    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
821    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
822    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
823    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
824  </instruction>
825
826  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2">
827    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
828    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
829    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
830    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="40"/>
831    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
832    <field name="Pointer to DS Binding Table" start="37" end="47" type="offset"/>
833  </instruction>
834
835  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2">
836    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
837    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
838    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
839    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="41"/>
840    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
841    <field name="Pointer to GS Binding Table" start="37" end="47" type="offset"/>
842  </instruction>
843
844  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2">
845    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
846    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
847    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
848    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="39"/>
849    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
850    <field name="Pointer to HS Binding Table" start="37" end="47" type="offset"/>
851  </instruction>
852
853  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2">
854    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
855    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
856    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
857    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="42"/>
858    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
859    <field name="Pointer to PS Binding Table" start="37" end="47" type="offset"/>
860  </instruction>
861
862  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2">
863    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
864    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
865    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
866    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="38"/>
867    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
868    <field name="Pointer to VS Binding Table" start="37" end="47" type="offset"/>
869  </instruction>
870
871  <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2">
872    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
873    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
874    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
875    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="36"/>
876    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
877    <field name="Blend State Pointer" start="38" end="63" type="offset"/>
878    <field start="32" end="32" type="mbo"/>
879  </instruction>
880
881  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2">
882    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
883    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
884    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
885    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
886    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
887    <field name="Color Calc State Pointer" start="38" end="63" type="offset"/>
888    <field start="32" end="32" type="mbo"/>
889  </instruction>
890
891  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4">
892    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
893    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
894    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
895    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
896    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
897    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
898    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
899    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
900  </instruction>
901
902  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3">
903    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
904    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
905    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
906    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
907    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
908    <field name="Depth Clear Value" start="32" end="63" type="uint"/>
909    <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
910  </instruction>
911
912  <instruction name="3DSTATE_CLIP" bias="2" length="4">
913    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
914    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
915    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
916    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
917    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
918    <field name="Front Winding" start="52" end="52" type="uint"/>
919    <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint"/>
920    <field name="EarlyCull Enable" start="50" end="50" type="bool"/>
921    <field name="Cull Mode" start="48" end="49" type="uint" prefix="CULLMODE">
922      <value name="BOTH" value="0"/>
923      <value name="NONE" value="1"/>
924      <value name="FRONT" value="2"/>
925      <value name="BACK" value="3"/>
926    </field>
927    <field name="Clipper Statistics Enable" start="42" end="42" type="bool"/>
928    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
929    <field name="Clip Enable" start="95" end="95" type="bool"/>
930    <field name="API Mode" start="94" end="94" type="uint">
931      <value name="APIMODE_OGL" value="0"/>
932      <value name="APIMODE_D3D" value="1"/>
933    </field>
934    <field name="Viewport XY ClipTest Enable" start="92" end="92" type="bool"/>
935    <field name="Viewport Z ClipTest Enable" start="91" end="91" type="bool"/>
936    <field name="Guardband ClipTest Enable" start="90" end="90" type="bool"/>
937    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
938    <field name="Clip Mode" start="77" end="79" type="uint">
939      <value name="CLIPMODE_NORMAL" value="0"/>
940      <value name="CLIPMODE_REJECT_ALL" value="3"/>
941      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
942    </field>
943    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
944    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
945    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint">
946      <value name="Vertex 0" value="0"/>
947      <value name="Vertex 1" value="1"/>
948      <value name="Vertex 2" value="2"/>
949    </field>
950    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint">
951      <value name="Vertex 0" value="0"/>
952      <value name="Vertex 1" value="1"/>
953    </field>
954    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint">
955      <value name="Vertex 0" value="0"/>
956      <value name="Vertex 1" value="1"/>
957      <value name="Vertex 2" value="2"/>
958    </field>
959    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
960    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
961    <field name="Force Zero RTAIndex Enable" start="101" end="101" type="bool"/>
962    <field name="Maximum VPIndex" start="96" end="99" type="uint"/>
963  </instruction>
964
965  <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="7">
966    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
967    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
968    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
969    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
970    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
971    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
972  </instruction>
973
974  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="7">
975    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
976    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
977    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
978    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
979    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
980    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
981  </instruction>
982
983  <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="7">
984    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
985    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
986    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
987    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
988    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
989    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
990  </instruction>
991
992  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="7">
993    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
994    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
995    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
996    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
997    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
998    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
999  </instruction>
1000
1001  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="7">
1002    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1003    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1004    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1005    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1006    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1007    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
1008  </instruction>
1009
1010  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="7">
1011    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1012    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1013    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1014    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
1015    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1016    <field name="Surface Type" start="61" end="63" type="uint">
1017      <value name="SURFTYPE_1D" value="0"/>
1018      <value name="SURFTYPE_2D" value="1"/>
1019      <value name="SURFTYPE_3D" value="2"/>
1020      <value name="SURFTYPE_CUBE" value="3"/>
1021      <value name="SURFTYPE_NULL" value="7"/>
1022    </field>
1023    <field name="Depth Write Enable" start="60" end="60" type="bool"/>
1024    <field name="Stencil Write Enable" start="59" end="59" type="bool"/>
1025    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
1026    <field name="Surface Format" start="50" end="52" type="uint">
1027      <value name="D32_FLOAT" value="1"/>
1028      <value name="D24_UNORM_X8_UINT" value="3"/>
1029      <value name="D16_UNORM" value="5"/>
1030    </field>
1031    <field name="Surface Pitch" start="32" end="49" type="uint"/>
1032    <field name="Surface Base Address" start="64" end="95" type="address"/>
1033    <field name="Height" start="114" end="127" type="uint"/>
1034    <field name="Width" start="100" end="113" type="uint"/>
1035    <field name="LOD" start="96" end="99" type="uint"/>
1036    <field name="Depth" start="149" end="159" type="uint">
1037      <value name="SURFTYPE_CUBE (must be zero)" value="0"/>
1038    </field>
1039    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
1040    <field name="Depth Buffer Object Control State" start="128" end="131" type="MEMORY_OBJECT_CONTROL_STATE"/>
1041    <field name="Depth Buffer MOCS" start="128" end="131" type="uint"/>
1042    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
1043    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
1044    <field name="Render Target View Extent" start="213" end="223" type="uint"/>
1045  </instruction>
1046
1047  <instruction name="3DSTATE_DEPTH_STENCIL_STATE_POINTERS" bias="2" length="2">
1048    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1049    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1050    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1051    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="37"/>
1052    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1053    <field name="Pointer to DEPTH_STENCIL_STATE" start="38" end="63" type="offset"/>
1054    <field start="32" end="32" type="mbo"/>
1055  </instruction>
1056
1057  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4">
1058    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1059    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1060    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1061    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1062    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1063    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
1064    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
1065    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
1066    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
1067    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
1068    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
1069  </instruction>
1070
1071  <instruction name="3DSTATE_DS" bias="2" length="6">
1072    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1073    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1074    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1075    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
1076    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
1077    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
1078    <field name="Single Domain Point Dispatch" start="95" end="95" type="uint"/>
1079    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1080    <field name="Sampler Count" start="91" end="93" type="uint">
1081      <value name="No Samplers" value="0"/>
1082      <value name="1-4 Samplers" value="1"/>
1083      <value name="5-8 Samplers" value="2"/>
1084      <value name="9-12 Samplers" value="3"/>
1085      <value name="13-16 Samplers" value="4"/>
1086    </field>
1087    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1088    <field name="Floating Point Mode" start="80" end="80" type="uint">
1089      <value name="IEEE-754" value="0"/>
1090      <value name="Alternate" value="1"/>
1091    </field>
1092    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1093    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
1094    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1095    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
1096    <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
1097    <field name="Patch URB Entry Read Length" start="139" end="145" type="uint"/>
1098    <field name="Patch URB Entry Read Offset" start="132" end="137" type="uint"/>
1099    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1100    <field name="Statistics Enable" start="170" end="170" type="bool"/>
1101    <field name="Compute W Coordinate Enable" start="162" end="162" type="bool"/>
1102    <field name="DS Cache Disable" start="161" end="161" type="bool"/>
1103    <field name="Function Enable" start="160" end="160" type="bool"/>
1104  </instruction>
1105
1106  <instruction name="3DSTATE_GS" bias="2" length="7">
1107    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1108    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1109    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1110    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1111    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1112    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
1113    <field name="Single Program Flow" start="95" end="95" type="bool"/>
1114    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1115    <field name="Sampler Count" start="91" end="93" type="uint">
1116      <value name="No Samplers" value="0"/>
1117      <value name="1-4 Samplers" value="1"/>
1118      <value name="5-8 Samplers" value="2"/>
1119      <value name="9-12 Samplers" value="3"/>
1120      <value name="13-16 Samplers" value="4"/>
1121    </field>
1122    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1123    <field name="Thread Priority" start="81" end="81" type="uint">
1124      <value name="Normal Priority" value="0"/>
1125      <value name="High Priority" value="1"/>
1126    </field>
1127    <field name="Floating Point Mode" start="80" end="80" type="uint">
1128      <value name="IEEE-754" value="0"/>
1129      <value name="alternate" value="1"/>
1130    </field>
1131    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1132    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
1133    <field name="Software  Exception Enable" start="71" end="71" type="bool"/>
1134    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1135    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
1136    <field name="Output Vertex Size" start="151" end="156" type="uint"/>
1137    <field name="Output Topology" start="145" end="150" type="3D_Prim_Topo_Type"/>
1138    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
1139    <field name="Include Vertex Handles" start="138" end="138" type="bool"/>
1140    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
1141    <field name="Dispatch GRF Start Register For URB Data" start="128" end="131" type="uint"/>
1142    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1143    <field name="Control Data Format" start="184" end="184" type="uint">
1144      <value name="GSCTL_CUT" value="0"/>
1145      <value name="GSCTL_SID" value="1"/>
1146    </field>
1147    <field name="Control Data Header Size" start="180" end="183" type="uint"/>
1148    <field name="Instance Control" start="175" end="179" type="uint"/>
1149    <field name="Default StreamID" start="173" end="174" type="uint"/>
1150    <field name="Dispatch Mode" start="171" end="172" type="uint" prefix="DISPATCH_MODE">
1151      <value name="SINGLE" value="0"/>
1152      <value name="DUAL_INSTANCE" value="1"/>
1153      <value name="DUAL_OBJECT" value="2"/>
1154    </field>
1155    <field name="Statistics Enable" start="170" end="170" type="uint"/>
1156    <field name="GS Invocations Increment Value" start="165" end="169" type="uint"/>
1157    <field name="Include Primitive ID" start="164" end="164" type="bool"/>
1158    <field name="Hint" start="163" end="163" type="uint"/>
1159    <field name="Reorder Enable" start="162" end="162" type="bool"/>
1160    <field name="Discard Adjacency" start="161" end="161" type="bool"/>
1161    <field name="Function Enable" start="160" end="160" type="bool"/>
1162    <field name="Semaphore Handle" start="192" end="203" type="offset"/>
1163  </instruction>
1164
1165  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="3">
1166    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1167    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1168    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1169    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1170    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1171    <field name="Hierarchical Depth Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
1172    <field name="Hierarchical Depth Buffer MOCS" start="57" end="60" type="uint"/>
1173    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1174    <field name="Surface Base Address" start="64" end="95" type="address"/>
1175  </instruction>
1176
1177  <instruction name="3DSTATE_HS" bias="2" length="7">
1178    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1179    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1180    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1181    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27"/>
1182    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1183    <field name="Sampler Count" start="59" end="61" type="uint">
1184      <value name="No Samplers" value="0"/>
1185      <value name="1-4 Samplers" value="1"/>
1186      <value name="5-8 Samplers" value="2"/>
1187      <value name="9-12 Samplers" value="3"/>
1188      <value name="13-16 Samplers" value="4"/>
1189    </field>
1190    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
1191    <field name="Floating Point Mode" start="48" end="48" type="uint">
1192      <value name="IEEE-754" value="0"/>
1193      <value name="alternate" value="1"/>
1194    </field>
1195    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
1196    <field name="Software  Exception Enable" start="39" end="39" type="bool"/>
1197    <field name="Maximum Number of Threads" start="32" end="38" type="uint"/>
1198    <field name="Function Enable" start="95" end="95" type="bool"/>
1199    <field name="Statistics Enable" start="93" end="93" type="bool"/>
1200    <field name="Instance Count" start="64" end="67" type="uint"/>
1201    <field name="Kernel Start Pointer" start="102" end="127" type="offset"/>
1202    <field name="Scratch Space Base Pointer" start="138" end="159" type="address"/>
1203    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
1204    <field name="Single Program Flow" start="187" end="187" type="bool"/>
1205    <field name="Vector Mask Enable" start="186" end="186" type="bool"/>
1206    <field name="Include Vertex Handles" start="184" end="184" type="bool"/>
1207    <field name="Dispatch GRF Start Register For URB Data" start="179" end="183" type="uint"/>
1208    <field name="Vertex URB Entry Read Length" start="171" end="176" type="uint"/>
1209    <field name="Vertex URB Entry Read Offset" start="164" end="169" type="uint"/>
1210    <field name="Semaphore Handle" start="192" end="203" type="offset"/>
1211  </instruction>
1212
1213  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3">
1214    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1215    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1216    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1217    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1218    <field name="Memory Object Control State" start="12" end="15" type="MEMORY_OBJECT_CONTROL_STATE"/>
1219    <field name="Cut Index Enable" start="10" end="10" type="bool"/>
1220    <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
1221      <value name="BYTE" value="0"/>
1222      <value name="WORD" value="1"/>
1223      <value name="DWORD" value="2"/>
1224    </field>
1225    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1226    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
1227    <field name="Buffer Ending Address" start="64" end="95" type="address"/>
1228  </instruction>
1229
1230  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3">
1231    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1232    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1233    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1234    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1235    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1236    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
1237    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
1238    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
1239    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
1240    <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
1241    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
1242  </instruction>
1243
1244  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2">
1245    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1246    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1247    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1248    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1249    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1250    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
1251    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
1252  </instruction>
1253
1254  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="4">
1255    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1256    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1257    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1258    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
1259    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1260    <field name="Pixel Location" start="36" end="36" type="uint">
1261      <value name="PIXLOC_CENTER" value="0"/>
1262      <value name="PIXLOC_UL_CORNER" value="1"/>
1263    </field>
1264    <field name="Number of Multisamples" start="33" end="35" type="uint">
1265      <value name="NUMSAMPLES_1" value="0"/>
1266      <value name="NUMSAMPLES_4" value="2"/>
1267      <value name="NUMSAMPLES_8" value="3"/>
1268    </field>
1269    <field name="Sample3 X Offset" start="92" end="95" type="u0.4"/>
1270    <field name="Sample3 Y Offset" start="88" end="91" type="u0.4"/>
1271    <field name="Sample2 X Offset" start="84" end="87" type="u0.4"/>
1272    <field name="Sample2 Y Offset" start="80" end="83" type="u0.4"/>
1273    <field name="Sample1 X Offset" start="76" end="79" type="u0.4"/>
1274    <field name="Sample1 Y Offset" start="72" end="75" type="u0.4"/>
1275    <field name="Sample0 X Offset" start="68" end="71" type="u0.4"/>
1276    <field name="Sample0 Y Offset" start="64" end="67" type="u0.4"/>
1277    <field name="Sample7 X Offset" start="124" end="127" type="u0.4"/>
1278    <field name="Sample7 Y Offset" start="120" end="123" type="u0.4"/>
1279    <field name="Sample6 X Offset" start="116" end="119" type="u0.4"/>
1280    <field name="Sample6 Y Offset" start="112" end="115" type="u0.4"/>
1281    <field name="Sample5 X Offset" start="108" end="111" type="u0.4"/>
1282    <field name="Sample5 Y Offset" start="104" end="107" type="u0.4"/>
1283    <field name="Sample4 X Offset" start="100" end="103" type="u0.4"/>
1284    <field name="Sample4 Y Offset" start="96" end="99" type="u0.4"/>
1285  </instruction>
1286
1287  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2">
1288    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1289    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1290    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1291    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
1292    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1293    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
1294    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
1295  </instruction>
1296
1297  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33">
1298    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1299    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1300    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1301    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1302    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
1303    <group count="32" start="32" size="32">
1304      <field name="Pattern Row" start="0" end="31" type="uint"/>
1305    </group>
1306  </instruction>
1307
1308  <instruction name="3DSTATE_PS" bias="2" length="8">
1309    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1310    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1311    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1312    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
1313    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1314    <field name="Kernel Start Pointer[0]" start="38" end="63" type="offset"/>
1315    <field name="Single Program Flow" start="95" end="95" type="bool"/>
1316    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1317    <field name="Sampler Count" start="91" end="93" type="uint"/>
1318    <field name="Denormal Mode" start="90" end="90" type="uint">
1319      <value name="FTZ" value="0"/>
1320      <value name="RET" value="1"/>
1321    </field>
1322    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1323    <field name="Floating Point Mode" start="80" end="80" type="uint">
1324      <value name="IEEE-745" value="0"/>
1325      <value name="Alt" value="1"/>
1326    </field>
1327    <field name="Rounding Mode" start="78" end="79" type="uint">
1328      <value name="RTNE" value="0"/>
1329      <value name="RU" value="1"/>
1330      <value name="RD" value="2"/>
1331      <value name="RTZ" value="3"/>
1332    </field>
1333    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1334    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
1335    <field name="Software  Exception Enable" start="71" end="71" type="bool"/>
1336    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1337    <field name="Per Thread Scratch Space" start="96" end="99" type="uint"/>
1338    <field name="Maximum Number of Threads" start="152" end="159" type="uint"/>
1339    <field name="Push Constant Enable" start="139" end="139" type="bool"/>
1340    <field name="Attribute Enable" start="138" end="138" type="bool"/>
1341    <field name="oMask Present to RenderTarget" start="137" end="137" type="bool"/>
1342    <field name="Render Target Fast Clear Enable" start="136" end="136" type="bool"/>
1343    <field name="Dual Source Blend Enable" start="135" end="135" type="bool"/>
1344    <field name="Render Target Resolve Enable" start="134" end="134" type="bool"/>
1345    <field name="Position XY Offset Select" start="131" end="132" type="uint">
1346      <value name="POSOFFSET_NONE" value="0"/>
1347      <value name="POSOFFSET_CENTROID" value="2"/>
1348      <value name="POSOFFSET_SAMPLE" value="3"/>
1349    </field>
1350    <field name="32 Pixel Dispatch Enable" start="130" end="130" type="bool"/>
1351    <field name="16 Pixel Dispatch Enable" start="129" end="129" type="bool"/>
1352    <field name="8 Pixel Dispatch Enable" start="128" end="128" type="bool"/>
1353    <field name="Dispatch GRF Start Register For Constant/Setup Data [0]" start="176" end="182" type="uint"/>
1354    <field name="Dispatch GRF Start Register For Constant/Setup Data [1]" start="168" end="174" type="uint"/>
1355    <field name="Dispatch GRF Start Register For Constant/Setup Data [2]" start="160" end="166" type="uint"/>
1356    <field name="Kernel Start Pointer[1]" start="198" end="223" type="offset"/>
1357    <field name="Kernel Start Pointer[2]" start="230" end="255" type="offset"/>
1358  </instruction>
1359
1360  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2">
1361    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1362    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1363    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1364    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
1365    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1366    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
1367      <value name="0KB" value="0"/>
1368    </field>
1369    <field name="Constant Buffer Size" start="32" end="36" type="uint">
1370      <value name="0KB" value="0"/>
1371    </field>
1372  </instruction>
1373
1374  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2">
1375    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1376    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1377    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1378    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1379    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1380    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
1381      <value name="0KB" value="0"/>
1382    </field>
1383    <field name="Constant Buffer Size" start="32" end="36" type="uint">
1384      <value name="0KB" value="0"/>
1385    </field>
1386  </instruction>
1387
1388  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2">
1389    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1390    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1391    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1392    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
1393    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1394    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
1395      <value name="0KB" value="0"/>
1396    </field>
1397    <field name="Constant Buffer Size" start="32" end="36" type="uint">
1398      <value name="0KB" value="0"/>
1399    </field>
1400  </instruction>
1401
1402  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2">
1403    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1404    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1405    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1406    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
1407    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1408    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
1409      <value name="0KB" value="0"/>
1410    </field>
1411    <field name="Constant Buffer Size" start="32" end="36" type="uint">
1412      <value name="0KB" value="0"/>
1413    </field>
1414  </instruction>
1415
1416  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2">
1417    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1418    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1419    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1420    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
1421    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1422    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
1423      <value name="0KB" value="0"/>
1424    </field>
1425    <field name="Constant Buffer Size" start="32" end="36" type="uint">
1426      <value name="0KB" value="0"/>
1427    </field>
1428  </instruction>
1429
1430  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2">
1431    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1432    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1433    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1434    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1435    <field name="DWord Length" start="0" end="7" type="uint"/>
1436    <group count="0" start="32" size="32">
1437      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
1438    </group>
1439  </instruction>
1440
1441  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2">
1442    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1443    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1444    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1445    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
1446    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1447    <group count="0" start="32" size="32">
1448      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
1449      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
1450      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
1451      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
1452    </group>
1453  </instruction>
1454
1455  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_DS" bias="2" length="2">
1456    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1457    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1458    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1459    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="45"/>
1460    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1461    <field name="Pointer to DS Sampler State" start="37" end="63" type="offset"/>
1462  </instruction>
1463
1464  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_GS" bias="2" length="2">
1465    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1466    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1467    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1468    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="46"/>
1469    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1470    <field name="Pointer to GS Sampler State" start="37" end="63" type="offset"/>
1471  </instruction>
1472
1473  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_HS" bias="2" length="2">
1474    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1475    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1476    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1477    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="44"/>
1478    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1479    <field name="Pointer to HS Sampler State" start="37" end="63" type="offset"/>
1480  </instruction>
1481
1482  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_PS" bias="2" length="2">
1483    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1484    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1485    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1486    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="47"/>
1487    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1488    <field name="Pointer to PS Sampler State" start="37" end="63" type="offset"/>
1489  </instruction>
1490
1491  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_VS" bias="2" length="2">
1492    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1493    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1494    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1495    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="43"/>
1496    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1497    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
1498  </instruction>
1499
1500  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2">
1501    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1502    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1503    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1504    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
1505    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1506    <field name="Sample Mask" start="32" end="39" type="uint"/>
1507  </instruction>
1508
1509  <instruction name="3DSTATE_SBE" bias="2" length="14">
1510    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1511    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1512    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1513    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="31"/>
1514    <field name="DWord Length" start="0" end="7" type="uint" default="12"/>
1515    <field name="Attribute Swizzle Control Mode" start="60" end="60" type="uint">
1516      <value name="SWIZ_0_15" value="0"/>
1517      <value name="SWIZ_16_31" value="1"/>
1518    </field>
1519    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
1520    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
1521    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
1522      <value name="UPPERLEFT" value="0"/>
1523      <value name="LOWERLEFT" value="1"/>
1524    </field>
1525    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
1526    <field name="Vertex URB Entry Read Offset" start="36" end="41" type="uint"/>
1527    <group count="16" start="64" size="16">
1528      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
1529    </group>
1530    <field name="Point Sprite Texture Coordinate Enable" start="320" end="351" type="uint"/>
1531    <field name="Constant Interpolation Enable" start="352" end="383" type="uint"/>
1532    <field name="Attribute 7 WrapShortest Enables" start="412" end="415" type="uint"/>
1533    <field name="Attribute 6 WrapShortest Enables" start="408" end="411" type="uint"/>
1534    <field name="Attribute 5 WrapShortest Enables" start="404" end="407" type="uint"/>
1535    <field name="Attribute 4 WrapShortest Enables" start="400" end="403" type="uint"/>
1536    <field name="Attribute 3 WrapShortest Enables" start="396" end="399" type="uint"/>
1537    <field name="Attribute 2 WrapShortest Enables" start="392" end="395" type="uint"/>
1538    <field name="Attribute 1 WrapShortest Enables" start="388" end="391" type="uint"/>
1539    <field name="Attribute 0 WrapShortest Enables" start="384" end="387" type="uint"/>
1540    <field name="Attribute 15 WrapShortest Enables" start="444" end="447" type="uint"/>
1541    <field name="Attribute 14 WrapShortest Enables" start="440" end="443" type="uint"/>
1542    <field name="Attribute 13 WrapShortest Enables" start="436" end="439" type="uint"/>
1543    <field name="Attribute 12 WrapShortest Enables" start="432" end="435" type="uint"/>
1544    <field name="Attribute 11 WrapShortest Enables" start="428" end="431" type="uint"/>
1545    <field name="Attribute 10 WrapShortest Enables" start="424" end="427" type="uint"/>
1546    <field name="Attribute 9 WrapShortest Enables" start="420" end="423" type="uint"/>
1547    <field name="Attribute 8 WrapShortest Enables" start="416" end="419" type="uint"/>
1548  </instruction>
1549
1550  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2">
1551    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1552    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1553    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1554    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
1555    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1556    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
1557  </instruction>
1558
1559  <instruction name="3DSTATE_SF" bias="2" length="7">
1560    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1561    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1562    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1563    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
1564    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1565    <field name="Depth Buffer Surface Format" start="44" end="46" type="uint">
1566      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
1567      <value name="D32_FLOAT" value="1"/>
1568      <value name="D24_UNORM_S8_UINT" value="2"/>
1569      <value name="D24_UNORM_X8_UINT" value="3"/>
1570      <value name="D16_UNORM" value="5"/>
1571    </field>
1572    <field name="Legacy Global Depth Bias Enable" start="43" end="43" type="bool"/>
1573    <field name="Statistics Enable" start="42" end="42" type="bool"/>
1574    <field name="Global Depth Offset Enable Solid" start="41" end="41" type="bool"/>
1575    <field name="Global Depth Offset Enable Wireframe" start="40" end="40" type="bool"/>
1576    <field name="Global Depth Offset Enable Point" start="39" end="39" type="bool"/>
1577    <field name="FrontFace Fill Mode" start="37" end="38" type="uint" prefix="FILL_MODE">
1578      <value name="SOLID" value="0"/>
1579      <value name="WIREFRAME" value="1"/>
1580      <value name="POINT" value="2"/>
1581    </field>
1582    <field name="BackFace Fill Mode" start="35" end="36" type="uint" prefix="FILL_MODE">
1583      <value name="SOLID" value="0"/>
1584      <value name="WIREFRAME" value="1"/>
1585      <value name="POINT" value="2"/>
1586    </field>
1587    <field name="Viewport Transform Enable" start="33" end="33" type="bool"/>
1588    <field name="Front Winding" start="32" end="32" type="uint"/>
1589    <field name="Anti-Aliasing Enable" start="95" end="95" type="bool"/>
1590    <field name="Cull Mode" start="93" end="94" type="uint" prefix="CULLMODE">
1591      <value name="BOTH" value="0"/>
1592      <value name="NONE" value="1"/>
1593      <value name="FRONT" value="2"/>
1594      <value name="BACK" value="3"/>
1595    </field>
1596    <field name="Line Width" start="82" end="91" type="u3.7"/>
1597    <field name="Line End Cap Antialiasing Region Width" start="80" end="81" type="uint">
1598      <value name="0.5 pixels" value="0"/>
1599      <value name="1.0 pixels" value="1"/>
1600      <value name="2.0 pixels" value="2"/>
1601      <value name="4.0 pixels" value="3"/>
1602    </field>
1603    <field name="Scissor Rectangle Enable" start="75" end="75" type="bool"/>
1604    <field name="Multisample Rasterization  Mode" start="72" end="73" type="uint"/>
1605    <field name="Last Pixel Enable" start="127" end="127" type="bool"/>
1606    <field name="Triangle Strip/List Provoking Vertex Select" start="125" end="126" type="uint">
1607      <value name="Vertex 0" value="0"/>
1608      <value name="Vertex 1" value="1"/>
1609      <value name="Vertex 2" value="2"/>
1610    </field>
1611    <field name="Line Strip/List Provoking Vertex Select" start="123" end="124" type="uint"/>
1612    <field name="Triangle Fan Provoking Vertex Select" start="121" end="122" type="uint">
1613      <value name="Vertex 0" value="0"/>
1614      <value name="Vertex 1" value="1"/>
1615      <value name="Vertex 2" value="2"/>
1616    </field>
1617    <field name="AA Line Distance Mode" start="110" end="110" type="uint">
1618      <value name="AALINEDISTANCE_TRUE" value="1"/>
1619    </field>
1620    <field name="Vertex Sub Pixel Precision Select" start="108" end="108" type="uint"/>
1621    <field name="Point Width Source" start="107" end="107" type="uint">
1622      <value name="Vertex" value="0"/>
1623      <value name="State" value="1"/>
1624    </field>
1625    <field name="Point Width" start="96" end="106" type="u8.3"/>
1626    <field name="Global Depth Offset Constant" start="128" end="159" type="float"/>
1627    <field name="Global Depth Offset Scale" start="160" end="191" type="float"/>
1628    <field name="Global Depth Offset Clamp" start="192" end="223" type="float"/>
1629  </instruction>
1630
1631  <instruction name="3DSTATE_SO_BUFFER" bias="2" length="4">
1632    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1633    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1634    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1635    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
1636    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1637    <field name="SO Buffer Index" start="61" end="62" type="uint"/>
1638    <field name="SO Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
1639    <field name="Surface Pitch" start="32" end="43" type="uint"/>
1640    <field name="Surface Base Address" start="66" end="95" type="address"/>
1641    <field name="Surface End Address" start="98" end="127" type="address"/>
1642  </instruction>
1643
1644  <instruction name="3DSTATE_SO_DECL_LIST" bias="2">
1645    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1646    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1647    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1648    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
1649    <field name="DWord Length" start="0" end="8" type="uint"/>
1650    <field name="Stream to Buffer Selects [3]" start="44" end="47" type="uint"/>
1651    <field name="Stream to Buffer Selects [2]" start="40" end="43" type="uint"/>
1652    <field name="Stream to Buffer Selects [1]" start="36" end="39" type="uint"/>
1653    <field name="Stream to Buffer Selects [0]" start="32" end="35" type="uint"/>
1654    <field name="Num Entries [3]" start="88" end="95" type="uint"/>
1655    <field name="Num Entries [2]" start="80" end="87" type="uint"/>
1656    <field name="Num Entries [1]" start="72" end="79" type="uint"/>
1657    <field name="Num Entries [0]" start="64" end="71" type="uint"/>
1658    <group count="0" start="96" size="64">
1659      <field name="Entry" start="0" end="63" type="SO_DECL_ENTRY"/>
1660    </group>
1661  </instruction>
1662
1663  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="3">
1664    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1665    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1666    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1667    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
1668    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1669    <field name="Stencil Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
1670    <field name="Stencil Buffer MOCS" start="57" end="60" type="uint"/>
1671    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1672    <field name="Surface Base Address" start="64" end="95" type="address"/>
1673  </instruction>
1674
1675  <instruction name="3DSTATE_STREAMOUT" bias="2" length="3">
1676    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1677    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1678    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1679    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="30"/>
1680    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1681    <field name="SO Function Enable" start="63" end="63" type="bool"/>
1682    <field name="Rendering Disable" start="62" end="62" type="bool"/>
1683    <field name="Render Stream Select" start="59" end="60" type="uint"/>
1684    <field name="Reorder Mode" start="58" end="58" type="uint">
1685      <value name="LEADING" value="0"/>
1686      <value name="TRAILING" value="1"/>
1687    </field>
1688    <field name="SO Statistics Enable" start="57" end="57" type="bool"/>
1689    <field name="SO Buffer Enable [3]" start="43" end="43" type="bool"/>
1690    <field name="SO Buffer Enable [2]" start="42" end="42" type="bool"/>
1691    <field name="SO Buffer Enable [1]" start="41" end="41" type="bool"/>
1692    <field name="SO Buffer Enable [0]" start="40" end="40" type="bool"/>
1693    <field name="Stream 3 Vertex Read Offset" start="93" end="93" type="uint"/>
1694    <field name="Stream 3 Vertex Read Length" start="88" end="92" type="uint"/>
1695    <field name="Stream 2 Vertex Read Offset" start="85" end="85" type="uint"/>
1696    <field name="Stream 2 Vertex Read Length" start="80" end="84" type="uint"/>
1697    <field name="Stream 1 Vertex Read Offset" start="77" end="77" type="uint"/>
1698    <field name="Stream 1 Vertex Read Length" start="72" end="76" type="uint"/>
1699    <field name="Stream 0 Vertex Read Offset" start="69" end="69" type="uint"/>
1700    <field name="Stream 0 Vertex Read Length" start="64" end="68" type="uint"/>
1701  </instruction>
1702
1703  <instruction name="3DSTATE_TE" bias="2" length="4">
1704    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1705    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1706    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1707    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
1708    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1709    <field name="Partitioning" start="44" end="45" type="uint">
1710      <value name="INTEGER" value="0"/>
1711      <value name="ODD_FRACTIONAL" value="1"/>
1712      <value name="EVEN_FRACTIONAL" value="2"/>
1713    </field>
1714    <field name="Output Topology" start="40" end="41" type="uint" prefix="OUTPUT">
1715      <value name="POINT" value="0"/>
1716      <value name="LINE" value="1"/>
1717      <value name="TRI_CW" value="2"/>
1718      <value name="TRI_CCW" value="3"/>
1719    </field>
1720    <field name="TE Domain" start="36" end="37" type="uint">
1721      <value name="QUAD" value="0"/>
1722      <value name="TRI" value="1"/>
1723      <value name="ISOLINE" value="2"/>
1724    </field>
1725    <field name="TE Mode" start="33" end="34" type="uint">
1726      <value name="HW_TESS" value="0"/>
1727      <value name="SW_TESS" value="1"/>
1728    </field>
1729    <field name="TE Enable" start="32" end="32" type="bool"/>
1730    <field name="Maximum Tessellation Factor Odd" start="64" end="95" type="float"/>
1731    <field name="Maximum Tessellation Factor Not Odd" start="96" end="127" type="float"/>
1732  </instruction>
1733
1734  <instruction name="3DSTATE_URB_DS" bias="2" length="2">
1735    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1736    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1737    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1738    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="50"/>
1739    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1740    <field name="DS URB Starting Address" start="57" end="61" type="uint"/>
1741    <field name="DS URB Entry Allocation Size" start="48" end="56" type="uint"/>
1742    <field name="DS Number of URB Entries" start="32" end="47" type="uint"/>
1743  </instruction>
1744
1745  <instruction name="3DSTATE_URB_GS" bias="2" length="2">
1746    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1747    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1748    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1749    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="51"/>
1750    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1751    <field name="GS URB Starting Address" start="57" end="61" type="uint"/>
1752    <field name="GS URB Entry Allocation Size" start="48" end="56" type="uint"/>
1753    <field name="GS Number of URB Entries" start="32" end="47" type="uint"/>
1754  </instruction>
1755
1756  <instruction name="3DSTATE_URB_HS" bias="2" length="2">
1757    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1758    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1759    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1760    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="49"/>
1761    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1762    <field name="HS URB Starting Address" start="57" end="61" type="uint"/>
1763    <field name="HS URB Entry Allocation Size" start="48" end="56" type="uint"/>
1764    <field name="HS Number of URB Entries" start="32" end="47" type="uint"/>
1765  </instruction>
1766
1767  <instruction name="3DSTATE_URB_VS" bias="2" length="2">
1768    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1769    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1770    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1771    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="48"/>
1772    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1773    <field name="VS URB Starting Address" start="57" end="61" type="uint"/>
1774    <field name="VS URB Entry Allocation Size" start="48" end="56" type="uint"/>
1775    <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
1776  </instruction>
1777
1778  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2">
1779    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1780    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1781    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1782    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1783    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1784    <group count="0" start="32" size="128">
1785      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
1786    </group>
1787  </instruction>
1788
1789  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2">
1790    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1791    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1792    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1793    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
1794    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1795    <group count="0" start="32" size="64">
1796      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
1797    </group>
1798  </instruction>
1799
1800  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1">
1801    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1802    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
1803    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1804    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
1805    <field name="Statistics Enable" start="0" end="0" type="bool"/>
1806  </instruction>
1807
1808  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2">
1809    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1810    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1811    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1812    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="35"/>
1813    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1814    <field name="CC Viewport Pointer" start="37" end="63" type="offset"/>
1815  </instruction>
1816
1817  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP" bias="2" length="2">
1818    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1819    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1820    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1821    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="33"/>
1822    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1823    <field name="SF Clip Viewport Pointer" start="38" end="63" type="offset"/>
1824  </instruction>
1825
1826  <instruction name="3DSTATE_VS" bias="2" length="6">
1827    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1828    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1829    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1830    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
1831    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
1832    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
1833    <field name="Single Vertex Dispatch" start="95" end="95" type="bool"/>
1834    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1835    <field name="Sampler Count" start="91" end="93" type="uint">
1836      <value name="No Samplers" value="0"/>
1837      <value name="1-4 Samplers" value="1"/>
1838      <value name="5-8 Samplers" value="2"/>
1839      <value name="9-12 Samplers" value="3"/>
1840      <value name="13-16 Samplers" value="4"/>
1841    </field>
1842    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1843    <field name="Floating Point Mode" start="80" end="80" type="uint">
1844      <value name="IEEE-754" value="0"/>
1845      <value name="Alternate" value="1"/>
1846    </field>
1847    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1848    <field name="Software  Exception Enable" start="71" end="71" type="bool"/>
1849    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1850    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
1851    <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
1852    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
1853    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
1854    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1855    <field name="Statistics Enable" start="170" end="170" type="bool"/>
1856    <field name="Vertex Cache Disable" start="161" end="161" type="bool"/>
1857    <field name="Function Enable" start="160" end="160" type="bool"/>
1858  </instruction>
1859
1860  <instruction name="3DSTATE_WM" bias="2" length="3">
1861    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1862    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1863    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1864    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
1865    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1866    <field name="Statistics Enable" start="63" end="63" type="bool"/>
1867    <field name="Depth Buffer Clear" start="62" end="62" type="bool"/>
1868    <field name="Thread Dispatch Enable" start="61" end="61" type="bool"/>
1869    <field name="Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
1870    <field name="Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
1871    <field name="Legacy Diamond Line Rasterization" start="58" end="58" type="bool"/>
1872    <field name="Pixel Shader Kills Pixel" start="57" end="57" type="bool"/>
1873    <field name="Pixel Shader Computed Depth Mode" start="55" end="56" type="uint">
1874      <value name="PSCDEPTH_OFF" value="0"/>
1875      <value name="PSCDEPTH_ON" value="1"/>
1876      <value name="PSCDEPTH_ON_GE" value="2"/>
1877      <value name="PSCDEPTH_ON_LE" value="3"/>
1878    </field>
1879    <field name="Early Depth/Stencil Control" start="53" end="54" type="uint">
1880      <value name="EDSC_NORMAL" value="0"/>
1881      <value name="EDSC_PSEXEC" value="1"/>
1882      <value name="EDSC_PREPS" value="2"/>
1883    </field>
1884    <field name="Pixel Shader Uses Source Depth" start="52" end="52" type="bool"/>
1885    <field name="Pixel Shader Uses Source W" start="51" end="51" type="bool"/>
1886    <field name="Position ZW Interpolation Mode" start="49" end="50" type="uint">
1887      <value name="INTERP_PIXEL" value="0"/>
1888      <value name="INTERP_CENTROID" value="2"/>
1889      <value name="INTERP_SAMPLE" value="3"/>
1890    </field>
1891    <field name="Barycentric Interpolation Mode" start="43" end="48" type="uint">
1892      <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
1893      <value name="BIM_PERSPECTIVE_CENTROID" value ="2"/>
1894      <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
1895      <value name="BIM_LINEAR_PIXEL" value="8"/>
1896      <value name="BIM_LINEAR_CENTROID" value="16"/>
1897      <value name="BIM_LINEAR_SAMPLE" value="32"/>
1898    </field>
1899    <field name="Pixel Shader Uses Input Coverage Mask" start="42" end="42" type="bool"/>
1900    <field name="Line End Cap Antialiasing Region Width" start="40" end="41" type="uint"/>
1901    <field name="Line Antialiasing Region Width" start="38" end="39" type="uint">
1902      <value name="0.5 pixels" value="0"/>
1903      <value name="1.0 pixels" value="1"/>
1904      <value name="2.0 pixels" value="2"/>
1905      <value name="4.0 pixels" value="3"/>
1906    </field>
1907    <field name="Polygon Stipple Enable" start="36" end="36" type="bool"/>
1908    <field name="Line Stipple Enable" start="35" end="35" type="bool"/>
1909    <field name="Point Rasterization Rule" start="34" end="34" type="uint">
1910      <value name="RASTRULE_UPPER_LEFT" value="0"/>
1911      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
1912    </field>
1913    <field name="Multisample Rasterization Mode" start="32" end="33" type="uint">
1914      <value name="MSRASTMODE_OFF_PIXEL" value="0"/>
1915      <value name="MSRASTMODE_OFF_PATTERN" value="1"/>
1916      <value name="MSRASTMODE_ON_PIXEL" value="2"/>
1917      <value name="MSRASTMODE_ON_PATTERN" value="3"/>
1918    </field>
1919    <field name="Multisample Dispatch Mode" start="95" end="95" type="uint">
1920      <value name="MSDISPMODE_PERSAMPLE" value="0"/>
1921      <value name="MSDISPMODE_PERPIXEL" value="1"/>
1922    </field>
1923  </instruction>
1924
1925  <instruction name="GPGPU_OBJECT" bias="2" length="8">
1926    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1927    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1928    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1929    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
1930    <field name="Predicate Enable" start="8" end="8" type="bool"/>
1931    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1932    <field name="Shared Local Memory Fixed Offset" start="39" end="39" type="uint"/>
1933    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1934    <field name="Shared Local Memory Offset" start="92" end="95" type="uint"/>
1935    <field name="End of Thread Group" start="88" end="88" type="uint"/>
1936    <field name="Half-Slice Destination Select" start="81" end="82" type="uint">
1937      <value name="Half-Slice 1" value="2"/>
1938      <value name="Half-Slice 0" value="1"/>
1939      <value name="Either Half-Slice" value="0"/>
1940    </field>
1941    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
1942    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
1943    <field name="Thread Group ID X" start="128" end="159" type="uint"/>
1944    <field name="Thread Group ID Y" start="160" end="191" type="uint"/>
1945    <field name="Thread Group ID Z" start="192" end="223" type="uint"/>
1946    <field name="Execution Mask" start="224" end="255" type="uint"/>
1947  </instruction>
1948
1949  <instruction name="GPGPU_WALKER" bias="2" length="11">
1950    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1951    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1952    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1953    <field name="SubOpcode A" start="16" end="23" type="uint" default="5"/>
1954    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
1955    <field name="Predicate Enable" start="8" end="8" type="bool"/>
1956    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1957    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1958    <field name="SIMD Size" start="94" end="95" type="uint">
1959      <value name="SIMD8" value="0"/>
1960      <value name="SIMD16" value="1"/>
1961      <value name="SIMD32" value="2"/>
1962    </field>
1963    <field name="Thread Depth Counter Maximum" start="80" end="85" type="uint"/>
1964    <field name="Thread Height Counter Maximum" start="72" end="77" type="uint"/>
1965    <field name="Thread Width Counter Maximum" start="64" end="69" type="uint"/>
1966    <field name="Thread Group ID Starting X" start="96" end="127" type="uint"/>
1967    <field name="Thread Group ID X Dimension" start="128" end="159" type="uint"/>
1968    <field name="Thread Group ID Starting Y" start="160" end="191" type="uint"/>
1969    <field name="Thread Group ID Y Dimension" start="192" end="223" type="uint"/>
1970    <field name="Thread Group ID Starting Z" start="224" end="255" type="uint"/>
1971    <field name="Thread Group ID Z Dimension" start="256" end="287" type="uint"/>
1972    <field name="Right Execution Mask" start="288" end="319" type="uint"/>
1973    <field name="Bottom Execution Mask" start="320" end="351" type="uint"/>
1974  </instruction>
1975
1976  <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4">
1977    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1978    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1979    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1980    <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
1981    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
1982    <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
1983    <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
1984  </instruction>
1985
1986  <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4">
1987    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1988    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1989    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1990    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
1991    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
1992    <field name="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
1993    <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
1994  </instruction>
1995
1996  <instruction name="MEDIA_OBJECT" bias="2">
1997    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1998    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
1999    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2000    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
2001    <field name="DWord Length" start="0" end="15" type="uint" default="4"/>
2002    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
2003    <field name="Children Present" start="95" end="95" type="bool"/>
2004    <field name="Thread Synchronization" start="88" end="88" type="uint">
2005      <value name="No thread synchronization" value="0"/>
2006      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
2007    </field>
2008    <field name="Use Scoreboard" start="85" end="85" type="uint">
2009      <value name="Not using scoreboard" value="0"/>
2010      <value name="Using scoreboard" value="1"/>
2011    </field>
2012    <field name="Half-Slice Destination Select" start="81" end="82" type="uint">
2013      <value name="Half-Slice 1" value="2"/>
2014      <value name="Half-Slice 0" value="1"/>
2015      <value name="Either half-slice" value="0"/>
2016    </field>
2017    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2018    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
2019    <field name="Scoredboard Y" start="144" end="152" type="uint"/>
2020    <field name="Scoreboard X" start="128" end="136" type="uint"/>
2021    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
2022    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
2023    <group count="0" start="192" size="32">
2024      <field name="Inline Data" start="0" end="31" type="uint"/>
2025    </group>
2026  </instruction>
2027
2028  <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16">
2029    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2030    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2031    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2032    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
2033    <field name="DWord Length" start="0" end="15" type="uint" default="14"/>
2034    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
2035    <field name="Children Present" start="95" end="95" type="bool"/>
2036    <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
2037    <field name="PRT_FenceType" start="86" end="86" type="uint">
2038      <value name="Root thread queue" value="0"/>
2039      <value name="VFE state flush" value="1"/>
2040    </field>
2041    <group count="12" start="128" size="32">
2042      <field name="Inline Data" start="0" end="31" type="uint"/>
2043    </group>
2044  </instruction>
2045
2046  <instruction name="MEDIA_OBJECT_WALKER" bias="2">
2047    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2048    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2049    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2050    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
2051    <field name="DWord Length" start="0" end="15" type="uint" default="15"/>
2052    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
2053    <field name="Children Present" start="95" end="95" type="uint"/>
2054    <field name="Thread Synchronization" start="88" end="88" type="uint">
2055      <value name="No thread synchronization" value="0"/>
2056      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
2057    </field>
2058    <field name="Use Scoreboard" start="85" end="85" type="uint">
2059      <value name="Not using scoreboard" value="0"/>
2060      <value name="Using scoreboard" value="1"/>
2061    </field>
2062    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2063    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
2064    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
2065    <field name="Dual Mode" start="223" end="223" type="uint"/>
2066    <field name="Repel" start="222" end="222" type="uint"/>
2067    <field name="Color Count Minus One" start="216" end="219" type="uint"/>
2068    <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
2069    <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
2070    <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
2071    <field name="Global Loop Exec Count" start="240" end="249" type="uint"/>
2072    <field name="Local Loop Exec Count" start="224" end="233" type="uint"/>
2073    <field name="Block Resolution Y" start="272" end="280" type="uint"/>
2074    <field name="Block Resolution X" start="256" end="264" type="uint"/>
2075    <field name="Local Start Y" start="304" end="312" type="uint"/>
2076    <field name="Local Start X" start="288" end="296" type="uint"/>
2077    <field name="Local End Y" start="336" end="344" type="uint"/>
2078    <field name="Local End X" start="320" end="328" type="uint"/>
2079    <field name="Local Outer Loop Stride Y" start="368" end="377" type="int"/>
2080    <field name="Local Outer Loop Stride X" start="352" end="361" type="int"/>
2081    <field name="Local Inner Loop Unit Y" start="400" end="409" type="int"/>
2082    <field name="Local Inner Loop Unit X" start="384" end="393" type="int"/>
2083    <field name="Global Resolution Y" start="432" end="440" type="uint"/>
2084    <field name="Global Resolution X" start="416" end="424" type="uint"/>
2085    <field name="Global Start Y" start="464" end="473" type="int"/>
2086    <field name="Global Start X" start="448" end="457" type="int"/>
2087    <field name="Global Outer Loop Stride Y" start="496" end="505" type="int"/>
2088    <field name="Global Outer Loop Stride X" start="480" end="489" type="int"/>
2089    <field name="Global Inner Loop Unit Y" start="528" end="537" type="int"/>
2090    <field name="Global Inner Loop Unit X" start="512" end="521" type="int"/>
2091    <group count="0" start="544" size="32">
2092      <field name="Inline Data" start="0" end="31" type="uint"/>
2093    </group>
2094  </instruction>
2095
2096  <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2">
2097    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2098    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2099    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2100    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
2101    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
2102    <field name="Watermark Required" start="38" end="38" type="uint"/>
2103    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2104  </instruction>
2105
2106  <instruction name="MEDIA_VFE_STATE" bias="2" length="8">
2107    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2108    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2109    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2110    <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
2111    <field name="DWord Length" start="0" end="15" type="uint" default="6"/>
2112    <field name="Scratch Space Base Pointer" start="42" end="63" type="address"/>
2113    <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
2114    <field name="Maximum Number of Threads" start="80" end="95" type="uint"/>
2115    <field name="Number of URB Entries" start="72" end="79" type="uint"/>
2116    <field name="Reset Gateway Timer" start="71" end="71" type="uint">
2117      <value name="Maintaining the existing timestamp state" value="0"/>
2118      <value name="Resetting relative timer and latching the global timestamp" value="1"/>
2119    </field>
2120    <field name="Bypass Gateway Control" start="70" end="70" type="uint">
2121      <value name="Maintaining OpenGateway/ForwardMsg/CloseGateway protocol (legacy mode)" value="0"/>
2122      <value name="Bypassing OpenGateway/CloseGateway protocol" value="1"/>
2123    </field>
2124    <field name="Gateway MMIO Access Control" start="67" end="68" type="uint">
2125      <value name="No MMIO read/write allowed" value="0"/>
2126      <value name="MMIO read/write to any address" value="2"/>
2127    </field>
2128    <field name="GPGPU Mode" start="66" end="66" type="uint"/>
2129    <field name="URB Entry Allocation Size" start="144" end="159" type="uint"/>
2130    <field name="CURBE Allocation Size" start="128" end="143" type="uint"/>
2131    <field name="Scoreboard Enable" start="191" end="191" type="uint">
2132      <value name="Scoreboard disabled" value="0"/>
2133      <value name="Scoreboard enabled" value="1"/>
2134    </field>
2135    <field name="Scoreboard Type" start="190" end="190" type="uint">
2136      <value name="Stalling Scoreboard" value="0"/>
2137      <value name="Non-Stalling Scoreboard" value="1"/>
2138    </field>
2139    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
2140    <field name="Scoreboard 3 Delta Y" start="220" end="223" type="int"/>
2141    <field name="Scoreboard 3 Delta X" start="216" end="219" type="int"/>
2142    <field name="Scoreboard 2 Delta Y" start="212" end="215" type="int"/>
2143    <field name="Scoreboard 2 Delta X" start="208" end="211" type="int"/>
2144    <field name="Scoreboard 1 Delta Y" start="204" end="207" type="int"/>
2145    <field name="Scoreboard 1 Delta X" start="200" end="203" type="int"/>
2146    <field name="Scoreboard 0 Delta Y" start="196" end="199" type="int"/>
2147    <field name="Scoreboard 0 Delta X" start="192" end="195" type="int"/>
2148    <field name="Scoreboard 7 Delta Y" start="252" end="255" type="int"/>
2149    <field name="Scoreboard 7 Delta X" start="248" end="251" type="int"/>
2150    <field name="Scoreboard 6 Delta Y" start="244" end="247" type="int"/>
2151    <field name="Scoreboard 6 Delta X" start="240" end="243" type="int"/>
2152    <field name="Scoreboard 5 Delta Y" start="236" end="239" type="int"/>
2153    <field name="Scoreboard 5 Delta X" start="232" end="235" type="int"/>
2154    <field name="Scoreboard 4 Delta Y" start="228" end="231" type="int"/>
2155    <field name="Scoreboard 4 Delta X" start="224" end="227" type="int"/>
2156  </instruction>
2157
2158  <instruction name="MI_ARB_CHECK" bias="1" length="1">
2159    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2160    <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
2161  </instruction>
2162
2163  <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
2164    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2165    <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
2166    <field name="Arbitration Enable" start="0" end="0" type="bool"/>
2167  </instruction>
2168
2169  <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
2170    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2171    <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
2172  </instruction>
2173
2174  <instruction name="MI_BATCH_BUFFER_START" bias="2" length="2">
2175    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2176    <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
2177    <field name="Clear Command Buffer Enable" start="11" end="11" type="bool"/>
2178    <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
2179      <value name="GGTT" value="0"/>
2180      <value name="PPGTT" value="1"/>
2181    </field>
2182    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2183    <field name="Batch Buffer Start Address" start="34" end="63" type="address"/>
2184  </instruction>
2185
2186  <instruction name="MI_CLFLUSH" bias="2">
2187    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2188    <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
2189    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2190    <field name="DWord Length" start="0" end="9" type="uint" default="1"/>
2191    <field name="Page Base Address" start="44" end="63" type="address"/>
2192    <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
2193    <field name="Page Base Address High" start="64" end="79" type="address"/>
2194    <group count="0" start="96" size="32">
2195      <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
2196    </group>
2197  </instruction>
2198
2199  <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="2">
2200    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2201    <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
2202    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2203    <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
2204    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2205    <field name="Compare Data Dword" start="32" end="63" type="uint"/>
2206    <field name="Compare Address" start="67" end="95" type="address"/>
2207  </instruction>
2208
2209  <instruction name="MI_FLUSH" bias="1" length="1">
2210    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2211    <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
2212    <field name="Indirect State Pointers Disable" start="5" end="5" type="bool"/>
2213    <field name="Generic Media State Clear" start="4" end="4" type="bool"/>
2214    <field name="Global Snapshot Count Reset" start="3" end="3" type="uint">
2215      <value name="Don't Reset" value="0"/>
2216      <value name="Reset" value="1"/>
2217    </field>
2218    <field name="Render Cache Flush Inhibit" start="2" end="2" type="uint">
2219      <value name="Flush" value="0"/>
2220      <value name="Don't Flush" value="1"/>
2221    </field>
2222    <field name="State/Instruction Cache Invalidate" start="1" end="1" type="uint">
2223      <value name="Don't Invalidate" value="0"/>
2224      <value name="Invalidate" value="1"/>
2225    </field>
2226  </instruction>
2227
2228  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
2229    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2230    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
2231    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
2232    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2233    <field name="Register Offset" start="34" end="54" type="offset"/>
2234    <field name="Data DWord" start="64" end="95" type="uint"/>
2235  </instruction>
2236
2237  <instruction name="MI_LOAD_REGISTER_MEM" bias="2" length="3">
2238    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2239    <field name="MI Command Opcode" start="23" end="28" type="uint" default="41"/>
2240    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2241    <field name="Async Mode Enable" start="21" end="21" type="bool"/>
2242    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2243    <field name="Register Address" start="34" end="54" type="offset"/>
2244    <field name="Memory Address" start="66" end="95" type="address"/>
2245  </instruction>
2246
2247  <instruction name="MI_NOOP" bias="1" length="1">
2248    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2249    <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
2250    <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
2251    <field name="Identification Number" start="0" end="21" type="uint"/>
2252  </instruction>
2253
2254  <instruction name="MI_PREDICATE" bias="1" length="1">
2255    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2256    <field name="MI Command Opcode" start="23" end="28" type="uint" default="12"/>
2257    <field name="Load Operation" start="6" end="7" type="uint" prefix="LOAD">
2258      <value name="KEEP" value="0"/>
2259      <value name="LOAD" value="2"/>
2260      <value name="LOADINV" value="3"/>
2261    </field>
2262    <field name="Combine Operation" start="3" end="4" type="uint" prefix="COMBINE">
2263      <value name="SET" value="0"/>
2264      <value name="AND" value="1"/>
2265      <value name="OR" value="2"/>
2266      <value name="XOR" value="3"/>
2267    </field>
2268    <field name="Compare Operation" start="0" end="1" type="uint" prefix="COMPARE">
2269      <value name="SRCS_EQUAL" value="2"/>
2270      <value name="DELTAS_EQUAL" value="3"/>
2271    </field>
2272  </instruction>
2273
2274  <instruction name="MI_REPORT_HEAD" bias="1" length="1">
2275    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2276    <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
2277  </instruction>
2278
2279  <instruction name="MI_REPORT_PERF_COUNT" bias="2" length="3">
2280    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2281    <field name="MI Command Opcode" start="23" end="28" type="uint" default="40"/>
2282    <field name="DWord Length" start="0" end="5" type="uint" default="1"/>
2283    <field name="Memory Address" start="38" end="63" type="address"/>
2284    <field name="Use Global GTT" start="32" end="32" type="bool"/>
2285    <field name="Report ID" start="64" end="95" type="uint"/>
2286  </instruction>
2287
2288  <instruction name="MI_SEMAPHORE_MBOX" bias="2" length="3">
2289    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2290    <field name="MI Command Opcode" start="23" end="28" type="uint" default="22"/>
2291    <field name="Register Select" start="16" end="17" type="uint">
2292      <value name="RVSYNC" value="0"/>
2293      <value name="RBSYNC" value="2"/>
2294      <value name="Use General Register Select" value="3"/>
2295    </field>
2296    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2297    <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
2298  </instruction>
2299
2300  <instruction name="MI_SET_CONTEXT" bias="2" length="2">
2301    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2302    <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
2303    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2304    <field name="Logical Context Address" start="44" end="63" type="address"/>
2305    <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
2306    <field name="Extended State Save Enable" start="35" end="35" type="bool"/>
2307    <field name="Extended State Restore Enable" start="34" end="34" type="bool"/>
2308    <field name="Force Restore" start="33" end="33" type="uint"/>
2309    <field name="Restore Inhibit" start="32" end="32" type="uint"/>
2310  </instruction>
2311
2312  <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
2313    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2314    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
2315    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2316    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
2317    <field name="Address" start="66" end="95" type="address"/>
2318    <field name="Core Mode Enable" start="64" end="64" type="uint"/>
2319    <field name="Data DWord 0" start="96" end="127" type="uint"/>
2320    <field name="Data DWord 1" start="128" end="159" type="uint"/>
2321  </instruction>
2322
2323  <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
2324    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2325    <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
2326    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2327    <field name="Offset" start="34" end="43" type="uint"/>
2328    <field name="Data DWord 0" start="64" end="95" type="uint"/>
2329    <field name="Data DWord 1" start="96" end="127" type="uint"/>
2330  </instruction>
2331
2332  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="3">
2333    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2334    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
2335    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2336    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2337    <field name="Register Address" start="34" end="54" type="offset"/>
2338    <field name="Memory Address" start="66" end="95" type="address"/>
2339  </instruction>
2340
2341  <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
2342    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2343    <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
2344    <field name="Suspend Flush" start="0" end="0" type="bool"/>
2345  </instruction>
2346
2347  <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1">
2348    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2349    <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
2350    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
2351  </instruction>
2352
2353  <instruction name="MI_URB_CLEAR" bias="2" length="2">
2354    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2355    <field name="MI Command Opcode" start="23" end="28" type="uint" default="25"/>
2356    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2357    <field name="URB Clear Length" start="48" end="60" type="uint"/>
2358    <field name="URB Address" start="32" end="45" type="offset"/>
2359  </instruction>
2360
2361  <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
2362    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2363    <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
2364  </instruction>
2365
2366  <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1">
2367    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2368    <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
2369    <field name="Display Pipe C Horizontal Blank Wait Enable" start="22" end="22" type="bool"/>
2370    <field name="Display Pipe C Vertical Blank Wait Enable" start="21" end="21" type="bool"/>
2371    <field name="Display Sprite C Flip Pending Wait Enable" start="20" end="20" type="bool"/>
2372    <field name="Condition Code Wait Select" start="16" end="19" type="uint">
2373      <value name="Not enabled" value="0"/>
2374    </field>
2375    <field name="Display Plane C Flip Pending Wait Enable" start="15" end="15" type="bool"/>
2376    <field name="Display Pipe C Scan Line Wait Enable" start="14" end="14" type="bool"/>
2377    <field name="Display Pipe B Horizontal Blank Wait Enable" start="13" end="13" type="bool"/>
2378    <field name="Display Pipe B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
2379    <field name="Display Sprite B Flip Pending Wait Enable" start="10" end="10" type="bool"/>
2380    <field name="Display Plane B Flip Pending Wait Enable" start="9" end="9" type="bool"/>
2381    <field name="Display Pipe B Scan Line Wait Enable" start="8" end="8" type="bool"/>
2382    <field name="Display Pipe A Horizontal Blank Wait Enable" start="5" end="5" type="bool"/>
2383    <field name="Display Pipe A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
2384    <field name="Display Sprite A Flip Pending Wait Enable" start="2" end="2" type="bool"/>
2385    <field name="Display Plane A Flip Pending Wait Enable" start="1" end="1" type="bool"/>
2386    <field name="Display Pipe A Scan Line Wait Enable" start="0" end="0" type="bool"/>
2387  </instruction>
2388
2389  <instruction name="PIPELINE_SELECT" bias="1" length="1">
2390    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2391    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
2392    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2393    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
2394    <field name="Pipeline Selection" start="0" end="1" type="uint">
2395      <value name="3D" value="0"/>
2396      <value name="Media" value="1"/>
2397      <value name="GPGPU" value="2"/>
2398    </field>
2399  </instruction>
2400
2401  <instruction name="PIPE_CONTROL" bias="2" length="5">
2402    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2403    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2404    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
2405    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
2406    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2407    <field name="Destination Address Type" start="56" end="56" type="uint" prefix="DAT">
2408      <value name="PPGTT" value="0"/>
2409      <value name="GGTT" value="1"/>
2410    </field>
2411    <field name="LRI Post Sync Operation" start="55" end="55" type="uint">
2412      <value name="No LRI Operation" value="0"/>
2413      <value name="MMIO Write Immediate Data" value="1"/>
2414    </field>
2415    <field name="Store Data Index" start="53" end="53" type="uint"/>
2416    <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
2417    <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
2418    <field name="TLB Invalidate" start="50" end="50" type="bool"/>
2419    <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
2420    <field name="Post Sync Operation" start="46" end="47" type="uint">
2421      <value name="No Write" value="0"/>
2422      <value name="Write Immediate Data" value="1"/>
2423      <value name="Write PS Depth Count" value="2"/>
2424      <value name="Write Timestamp" value="3"/>
2425    </field>
2426    <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
2427    <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
2428    <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
2429    <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
2430    <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
2431    <field name="Notify Enable" start="40" end="40" type="bool"/>
2432    <field name="Pipe Control Flush Enable" start="39" end="39" type="bool"/>
2433    <field name="DC  Flush Enable" start="37" end="37" type="bool"/>
2434    <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
2435    <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
2436    <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
2437    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
2438    <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
2439    <field name="Address" start="66" end="95" type="address"/>
2440    <field name="Immediate Data" start="96" end="159" type="uint"/>
2441  </instruction>
2442
2443  <instruction name="STATE_BASE_ADDRESS" bias="2" length="10">
2444    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2445    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2446    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2447    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
2448    <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
2449    <field name="General State Base Address" start="44" end="63" type="address"/>
2450    <field name="General State Memory Object Control State" start="40" end="43" type="MEMORY_OBJECT_CONTROL_STATE"/>
2451    <field name="Stateless Data Port Access Memory Object Control State" start="36" end="39" type="MEMORY_OBJECT_CONTROL_STATE"/>
2452    <field name="Stateless Data Port Access Force Write Thru" start="35" end="35" type="uint"/>
2453    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
2454    <field name="Surface State Base Address" start="76" end="95" type="address"/>
2455    <field name="Surface State Memory Object Control State" start="72" end="75" type="MEMORY_OBJECT_CONTROL_STATE"/>
2456    <field name="Surface State Base Address Modify Enable" start="64" end="64" type="bool"/>
2457    <field name="Dynamic State Base Address" start="108" end="127" type="address"/>
2458    <field name="Dynamic State Memory Object Control State" start="104" end="107" type="MEMORY_OBJECT_CONTROL_STATE"/>
2459    <field name="Dynamic State Base Address Modify Enable" start="96" end="96" type="bool"/>
2460    <field name="Indirect Object Base Address" start="140" end="159" type="address"/>
2461    <field name="Indirect Object Memory Object Control State" start="136" end="139" type="MEMORY_OBJECT_CONTROL_STATE"/>
2462    <field name="Indirect Object Base Address Modify Enable" start="128" end="128" type="bool"/>
2463    <field name="Instruction Base Address" start="172" end="191" type="address"/>
2464    <field name="Instruction Memory Object Control State" start="168" end="171" type="MEMORY_OBJECT_CONTROL_STATE"/>
2465    <field name="Instruction Base Address Modify Enable" start="160" end="160" type="bool"/>
2466    <field name="General State Access Upper Bound" start="204" end="223" type="address"/>
2467    <field name="General State Access Upper Bound Modify Enable" start="192" end="192" type="bool"/>
2468    <field name="Dynamic State Access Upper Bound" start="236" end="255" type="address"/>
2469    <field name="Dynamic State Access Upper Bound Modify Enable" start="224" end="224" type="bool"/>
2470    <field name="Indirect Object Access Upper Bound" start="268" end="287" type="address"/>
2471    <field name="Indirect Object Access Upper Bound Modify Enable" start="256" end="256" type="bool"/>
2472    <field name="Instruction Access Upper Bound" start="300" end="319" type="address"/>
2473    <field name="Instruction Access Upper Bound Modify Enable" start="288" end="288" type="bool"/>
2474  </instruction>
2475
2476  <instruction name="STATE_PREFETCH" bias="2" length="2">
2477    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2478    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2479    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2480    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
2481    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2482    <field name="Prefetch Pointer" start="38" end="63" type="address"/>
2483    <field name="Prefetch Count" start="32" end="34" type="uint"/>
2484  </instruction>
2485
2486  <instruction name="STATE_SIP" bias="2" length="2">
2487    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2488    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2489    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2490    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
2491    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2492    <field name="System Instruction Pointer" start="36" end="63" type="offset"/>
2493  </instruction>
2494
2495  <instruction name="SWTESS_BASE_ADDRESS" bias="2" length="2">
2496    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2497    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2498    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2499    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
2500    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2501    <field name="SW Tessellation Base Address" start="44" end="63" type="address"/>
2502    <field name="SW Tessellation Memory Object Control State" start="40" end="43" type="MEMORY_OBJECT_CONTROL_STATE"/>
2503  </instruction>
2504
2505  <register name="L3SQCREG1" length="1" num="0xb010">
2506    <field name="Convert DC_UC" start="24" end="24" type="uint"/>
2507    <field name="Convert IS_UC" start="25" end="25" type="uint"/>
2508    <field name="Convert C_UC" start="26" end="26" type="uint"/>
2509    <field name="Convert T_UC" start="27" end="27" type="uint"/>
2510  </register>
2511
2512  <register name="L3CNTLREG2" length="1" num="0xb020">
2513    <field name="SLM Enable" start="0" end="0" type="uint"/>
2514    <field name="URB Allocation" start="1" end="6" type="uint"/>
2515    <field name="URB Low Bandwidth" start="7" end="7" type="uint"/>
2516    <field name="ALL Allocation" start="8" end="13" type="uint"/>
2517    <field name="RO Allocation" start="14" end="19" type="uint"/>
2518    <field name="RO Low Bandwidth" start="20" end="20" type="uint"/>
2519    <field name="DC Allocation" start="21" end="26" type="uint"/>
2520    <field name="DC Low Bandwidth" start="27" end="27" type="uint"/>
2521  </register>
2522
2523  <register name="L3CNTLREG3" length="1" num="0xb024">
2524    <field name="IS Allocation" start="1" end="6" type="uint"/>
2525    <field name="IS Low Bandwidth" start="7" end="7" type="uint"/>
2526    <field name="C Allocation" start="8" end="13" type="uint"/>
2527    <field name="C Low Bandwidth" start="14" end="14" type="uint"/>
2528    <field name="T Allocation" start="15" end="20" type="uint"/>
2529    <field name="T Low Bandwidth" start="21" end="21" type="uint"/>
2530  </register>
2531
2532  <register name="SO_WRITE_OFFSET0" length="1" num="0x5280">
2533    <field name="Write Offset" start="2" end="31" type="offset"/>
2534  </register>
2535
2536  <register name="SO_WRITE_OFFSET1" length="1" num="0x5284">
2537    <field name="Write Offset" start="2" end="31" type="offset"/>
2538  </register>
2539
2540  <register name="SO_WRITE_OFFSET2" length="1" num="0x5288">
2541    <field name="Write Offset" start="2" end="31" type="offset"/>
2542  </register>
2543
2544  <register name="SO_WRITE_OFFSET3" length="1" num="0x528c">
2545    <field name="Write Offset" start="2" end="31" type="offset"/>
2546  </register>
2547
2548</genxml>
2549