• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<genxml name="SNB" gen="6">
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  </enum>
25
26  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
27    <value name="NOSTORE" value="0"/>
28    <value name="STORE_SRC" value="1"/>
29    <value name="STORE_0" value="2"/>
30    <value name="STORE_1_FP" value="3"/>
31    <value name="STORE_1_INT" value="4"/>
32    <value name="STORE_VID" value="5"/>
33    <value name="STORE_IID" value="6"/>
34    <value name="STORE_PID" value="7"/>
35  </enum>
36
37  <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
38    <value name="ADD" value="0"/>
39    <value name="SUBTRACT" value="1"/>
40    <value name="REVERSE_SUBTRACT" value="2"/>
41    <value name="MIN" value="3"/>
42    <value name="MAX" value="4"/>
43  </enum>
44
45  <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
46    <value name="ONE" value="1"/>
47    <value name="SRC_COLOR" value="2"/>
48    <value name="SRC_ALPHA" value="3"/>
49    <value name="DST_ALPHA" value="4"/>
50    <value name="DST_COLOR" value="5"/>
51    <value name="SRC_ALPHA_SATURATE" value="6"/>
52    <value name="CONST_COLOR" value="7"/>
53    <value name="CONST_ALPHA" value="8"/>
54    <value name="SRC1_COLOR" value="9"/>
55    <value name="SRC1_ALPHA" value="10"/>
56    <value name="ZERO" value="17"/>
57    <value name="INV_SRC_COLOR" value="18"/>
58    <value name="INV_SRC_ALPHA" value="19"/>
59    <value name="INV_DST_ALPHA" value="20"/>
60    <value name="INV_DST_COLOR" value="21"/>
61    <value name="INV_CONST_COLOR" value="23"/>
62    <value name="INV_CONST_ALPHA" value="24"/>
63    <value name="INV_SRC1_COLOR" value="25"/>
64    <value name="INV_SRC1_ALPHA" value="26"/>
65  </enum>
66
67  <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
68    <value name="ALWAYS" value="0"/>
69    <value name="NEVER" value="1"/>
70    <value name="LESS" value="2"/>
71    <value name="EQUAL" value="3"/>
72    <value name="LEQUAL" value="4"/>
73    <value name="GREATER" value="5"/>
74    <value name="NOTEQUAL" value="6"/>
75    <value name="GEQUAL" value="7"/>
76  </enum>
77
78  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
79    <value name="KEEP" value="0"/>
80    <value name="ZERO" value="1"/>
81    <value name="REPLACE" value="2"/>
82    <value name="INCRSAT" value="3"/>
83    <value name="DECRSAT" value="4"/>
84    <value name="INCR" value="5"/>
85    <value name="DECR" value="6"/>
86    <value name="INVERT" value="7"/>
87  </enum>
88
89  <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
90    <value name="CLEAR" value="0"/>
91    <value name="NOR" value="1"/>
92    <value name="AND_INVERTED" value="2"/>
93    <value name="COPY_INVERTED" value="3"/>
94    <value name="AND_REVERSE" value="4"/>
95    <value name="INVERT" value="5"/>
96    <value name="XOR" value="6"/>
97    <value name="NAND" value="7"/>
98    <value name="AND" value="8"/>
99    <value name="EQUIV" value="9"/>
100    <value name="NOOP" value="10"/>
101    <value name="OR_INVERTED" value="11"/>
102    <value name="COPY" value="12"/>
103    <value name="OR_REVERSE" value="13"/>
104    <value name="OR" value="14"/>
105    <value name="SET" value="15"/>
106  </enum>
107
108  <enum name="SURFACE_FORMAT" prefix="SF">
109    <value name="R32G32B32A32_FLOAT" value="0"/>
110    <value name="R32G32B32A32_SINT" value="1"/>
111    <value name="R32G32B32A32_UINT" value="2"/>
112    <value name="R32G32B32A32_UNORM" value="3"/>
113    <value name="R32G32B32A32_SNORM" value="4"/>
114    <value name="R64G64_FLOAT" value="5"/>
115    <value name="R32G32B32X32_FLOAT" value="6"/>
116    <value name="R32G32B32A32_SSCALED" value="7"/>
117    <value name="R32G32B32A32_USCALED" value="8"/>
118    <value name="R32G32B32A32_SFIXED" value="32"/>
119    <value name="R64G64_PASSTHRU" value="33"/>
120    <value name="R32G32B32_FLOAT" value="64"/>
121    <value name="R32G32B32_SINT" value="65"/>
122    <value name="R32G32B32_UINT" value="66"/>
123    <value name="R32G32B32_UNORM" value="67"/>
124    <value name="R32G32B32_SNORM" value="68"/>
125    <value name="R32G32B32_SSCALED" value="69"/>
126    <value name="R32G32B32_USCALED" value="70"/>
127    <value name="R32G32B32_SFIXED" value="80"/>
128    <value name="R16G16B16A16_UNORM" value="128"/>
129    <value name="R16G16B16A16_SNORM" value="129"/>
130    <value name="R16G16B16A16_SINT" value="130"/>
131    <value name="R16G16B16A16_UINT" value="131"/>
132    <value name="R16G16B16A16_FLOAT" value="132"/>
133    <value name="R32G32_FLOAT" value="133"/>
134    <value name="R32G32_SINT" value="134"/>
135    <value name="R32G32_UINT" value="135"/>
136    <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
137    <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
138    <value name="L32A32_FLOAT" value="138"/>
139    <value name="R32G32_UNORM" value="139"/>
140    <value name="R32G32_SNORM" value="140"/>
141    <value name="R64_FLOAT" value="141"/>
142    <value name="R16G16B16X16_UNORM" value="142"/>
143    <value name="R16G16B16X16_FLOAT" value="143"/>
144    <value name="A32X32_FLOAT" value="144"/>
145    <value name="L32X32_FLOAT" value="145"/>
146    <value name="I32X32_FLOAT" value="146"/>
147    <value name="R16G16B16A16_SSCALED" value="147"/>
148    <value name="R16G16B16A16_USCALED" value="148"/>
149    <value name="R32G32_SSCALED" value="149"/>
150    <value name="R32G32_USCALED" value="150"/>
151    <value name="R32G32_SFIXED" value="160"/>
152    <value name="R64_PASSTHRU" value="161"/>
153    <value name="B8G8R8A8_UNORM" value="192"/>
154    <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
155    <value name="R10G10B10A2_UNORM" value="194"/>
156    <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
157    <value name="R10G10B10A2_UINT" value="196"/>
158    <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
159    <value name="R8G8B8A8_UNORM" value="199"/>
160    <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
161    <value name="R8G8B8A8_SNORM" value="201"/>
162    <value name="R8G8B8A8_SINT" value="202"/>
163    <value name="R8G8B8A8_UINT" value="203"/>
164    <value name="R16G16_UNORM" value="204"/>
165    <value name="R16G16_SNORM" value="205"/>
166    <value name="R16G16_SINT" value="206"/>
167    <value name="R16G16_UINT" value="207"/>
168    <value name="R16G16_FLOAT" value="208"/>
169    <value name="B10G10R10A2_UNORM" value="209"/>
170    <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
171    <value name="R11G11B10_FLOAT" value="211"/>
172    <value name="R32_SINT" value="214"/>
173    <value name="R32_UINT" value="215"/>
174    <value name="R32_FLOAT" value="216"/>
175    <value name="R24_UNORM_X8_TYPELESS" value="217"/>
176    <value name="X24_TYPELESS_G8_UINT" value="218"/>
177    <value name="L32_UNORM" value="221"/>
178    <value name="A32_UNORM" value="222"/>
179    <value name="L16A16_UNORM" value="223"/>
180    <value name="I24X8_UNORM" value="224"/>
181    <value name="L24X8_UNORM" value="225"/>
182    <value name="A24X8_UNORM" value="226"/>
183    <value name="I32_FLOAT" value="227"/>
184    <value name="L32_FLOAT" value="228"/>
185    <value name="A32_FLOAT" value="229"/>
186    <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
187    <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
188    <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
189    <value name="B8G8R8X8_UNORM" value="233"/>
190    <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
191    <value name="R8G8B8X8_UNORM" value="235"/>
192    <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
193    <value name="R9G9B9E5_SHAREDEXP" value="237"/>
194    <value name="B10G10R10X2_UNORM" value="238"/>
195    <value name="L16A16_FLOAT" value="240"/>
196    <value name="R32_UNORM" value="241"/>
197    <value name="R32_SNORM" value="242"/>
198    <value name="R10G10B10X2_USCALED" value="243"/>
199    <value name="R8G8B8A8_SSCALED" value="244"/>
200    <value name="R8G8B8A8_USCALED" value="245"/>
201    <value name="R16G16_SSCALED" value="246"/>
202    <value name="R16G16_USCALED" value="247"/>
203    <value name="R32_SSCALED" value="248"/>
204    <value name="R32_USCALED" value="249"/>
205    <value name="B5G6R5_UNORM" value="256"/>
206    <value name="B5G6R5_UNORM_SRGB" value="257"/>
207    <value name="B5G5R5A1_UNORM" value="258"/>
208    <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
209    <value name="B4G4R4A4_UNORM" value="260"/>
210    <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
211    <value name="R8G8_UNORM" value="262"/>
212    <value name="R8G8_SNORM" value="263"/>
213    <value name="R8G8_SINT" value="264"/>
214    <value name="R8G8_UINT" value="265"/>
215    <value name="R16_UNORM" value="266"/>
216    <value name="R16_SNORM" value="267"/>
217    <value name="R16_SINT" value="268"/>
218    <value name="R16_UINT" value="269"/>
219    <value name="R16_FLOAT" value="270"/>
220    <value name="A8P8_UNORM_PALETTE0" value="271"/>
221    <value name="A8P8_UNORM_PALETTE1" value="272"/>
222    <value name="I16_UNORM" value="273"/>
223    <value name="L16_UNORM" value="274"/>
224    <value name="A16_UNORM" value="275"/>
225    <value name="L8A8_UNORM" value="276"/>
226    <value name="I16_FLOAT" value="277"/>
227    <value name="L16_FLOAT" value="278"/>
228    <value name="A16_FLOAT" value="279"/>
229    <value name="L8A8_UNORM_SRGB" value="280"/>
230    <value name="R5G5_SNORM_B6_UNORM" value="281"/>
231    <value name="B5G5R5X1_UNORM" value="282"/>
232    <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
233    <value name="R8G8_SSCALED" value="284"/>
234    <value name="R8G8_USCALED" value="285"/>
235    <value name="R16_SSCALED" value="286"/>
236    <value name="R16_USCALED" value="287"/>
237    <value name="P8A8_UNORM_PALETTE0" value="290"/>
238    <value name="P8A8_UNORM_PALETTE1" value="291"/>
239    <value name="A1B5G5R5_UNORM" value="292"/>
240    <value name="A4B4G4R4_UNORM" value="293"/>
241    <value name="L8A8_UINT" value="294"/>
242    <value name="L8A8_SINT" value="295"/>
243    <value name="R8_UNORM" value="320"/>
244    <value name="R8_SNORM" value="321"/>
245    <value name="R8_SINT" value="322"/>
246    <value name="R8_UINT" value="323"/>
247    <value name="A8_UNORM" value="324"/>
248    <value name="I8_UNORM" value="325"/>
249    <value name="L8_UNORM" value="326"/>
250    <value name="P4A4_UNORM_PALETTE0" value="327"/>
251    <value name="A4P4_UNORM_PALETTE0" value="328"/>
252    <value name="R8_SSCALED" value="329"/>
253    <value name="R8_USCALED" value="330"/>
254    <value name="P8_UNORM_PALETTE0" value="331"/>
255    <value name="L8_UNORM_SRGB" value="332"/>
256    <value name="P8_UNORM_PALETTE1" value="333"/>
257    <value name="P4A4_UNORM_PALETTE1" value="334"/>
258    <value name="A4P4_UNORM_PALETTE1" value="335"/>
259    <value name="Y8_UNORM" value="336"/>
260    <value name="L8_UINT" value="338"/>
261    <value name="L8_SINT" value="339"/>
262    <value name="I8_UINT" value="340"/>
263    <value name="I8_SINT" value="341"/>
264    <value name="DXT1_RGB_SRGB" value="384"/>
265    <value name="R1_UNORM" value="385"/>
266    <value name="YCRCB_NORMAL" value="386"/>
267    <value name="YCRCB_SWAPUVY" value="387"/>
268    <value name="P2_UNORM_PALETTE0" value="388"/>
269    <value name="P2_UNORM_PALETTE1" value="389"/>
270    <value name="BC1_UNORM" value="390"/>
271    <value name="BC2_UNORM" value="391"/>
272    <value name="BC3_UNORM" value="392"/>
273    <value name="BC4_UNORM" value="393"/>
274    <value name="BC5_UNORM" value="394"/>
275    <value name="BC1_UNORM_SRGB" value="395"/>
276    <value name="BC2_UNORM_SRGB" value="396"/>
277    <value name="BC3_UNORM_SRGB" value="397"/>
278    <value name="MONO8" value="398"/>
279    <value name="YCRCB_SWAPUV" value="399"/>
280    <value name="YCRCB_SWAPY" value="400"/>
281    <value name="DXT1_RGB" value="401"/>
282    <value name="FXT1" value="402"/>
283    <value name="R8G8B8_UNORM" value="403"/>
284    <value name="R8G8B8_SNORM" value="404"/>
285    <value name="R8G8B8_SSCALED" value="405"/>
286    <value name="R8G8B8_USCALED" value="406"/>
287    <value name="R64G64B64A64_FLOAT" value="407"/>
288    <value name="R64G64B64_FLOAT" value="408"/>
289    <value name="BC4_SNORM" value="409"/>
290    <value name="BC5_SNORM" value="410"/>
291    <value name="R16G16B16_FLOAT" value="411"/>
292    <value name="R16G16B16_UNORM" value="412"/>
293    <value name="R16G16B16_SNORM" value="413"/>
294    <value name="R16G16B16_SSCALED" value="414"/>
295    <value name="R16G16B16_USCALED" value="415"/>
296    <value name="BC6H_SF16" value="417"/>
297    <value name="BC7_UNORM" value="418"/>
298    <value name="BC7_UNORM_SRGB" value="419"/>
299    <value name="BC6H_UF16" value="420"/>
300    <value name="PLANAR_420_8" value="421"/>
301    <value name="R8G8B8_UNORM_SRGB" value="424"/>
302    <value name="ETC1_RGB8" value="425"/>
303    <value name="ETC2_RGB8" value="426"/>
304    <value name="EAC_R11" value="427"/>
305    <value name="EAC_RG11" value="428"/>
306    <value name="EAC_SIGNED_R11" value="429"/>
307    <value name="EAC_SIGNED_RG11" value="430"/>
308    <value name="ETC2_SRGB8" value="431"/>
309    <value name="R16G16B16_UINT" value="432"/>
310    <value name="R16G16B16_SINT" value="433"/>
311    <value name="R32_SFIXED" value="434"/>
312    <value name="R10G10B10A2_SNORM" value="435"/>
313    <value name="R10G10B10A2_USCALED" value="436"/>
314    <value name="R10G10B10A2_SSCALED" value="437"/>
315    <value name="R10G10B10A2_SINT" value="438"/>
316    <value name="B10G10R10A2_SNORM" value="439"/>
317    <value name="B10G10R10A2_USCALED" value="440"/>
318    <value name="B10G10R10A2_SSCALED" value="441"/>
319    <value name="B10G10R10A2_UINT" value="442"/>
320    <value name="B10G10R10A2_SINT" value="443"/>
321    <value name="R64G64B64A64_PASSTHRU" value="444"/>
322    <value name="R64G64B64_PASSTHRU" value="445"/>
323    <value name="ETC2_RGB8_PTA" value="448"/>
324    <value name="ETC2_SRGB8_PTA" value="449"/>
325    <value name="ETC2_EAC_RGBA8" value="450"/>
326    <value name="ETC2_EAC_SRGB8_A8" value="451"/>
327    <value name="R8G8B8_UINT" value="456"/>
328    <value name="R8G8B8_SINT" value="457"/>
329    <value name="RAW" value="511"/>
330  </enum>
331
332  <enum name="Texture Coordinate Mode" prefix="TCM">
333    <value name="WRAP" value="0"/>
334    <value name="MIRROR" value="1"/>
335    <value name="CLAMP" value="2"/>
336    <value name="CUBE" value="3"/>
337    <value name="CLAMP_BORDER" value="4"/>
338    <value name="MIRROR_ONCE" value="5"/>
339  </enum>
340
341  <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
342    <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
343    <field name="Cacheability Control" start="0" end="1" type="uint"/>
344  </struct>
345
346  <struct name="VERTEX_BUFFER_STATE" length="4">
347    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
348    <field name="Buffer Access Type" start="20" end="20" type="uint">
349      <value name="VERTEXDATA" value="0"/>
350      <value name="INSTANCEDATA" value="1"/>
351    </field>
352    <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
353    <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
354    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
355    <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
356    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
357    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
358    <field name="End Address" start="64" end="95" type="address"/>
359    <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
360  </struct>
361
362  <struct name="VERTEX_ELEMENT_STATE" length="2">
363    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
364    <field name="Valid" start="25" end="25" type="bool"/>
365    <field name="Source Element Format" start="16" end="24" type="SURFACE_FORMAT"/>
366    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
367    <field name="Source Element Offset" start="0" end="11" type="uint"/>
368    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
369    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
370    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
371    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
372  </struct>
373
374  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
375    <field name="Component Override W" start="15" end="15" type="bool"/>
376    <field name="Component Override Z" start="14" end="14" type="bool"/>
377    <field name="Component Override Y" start="13" end="13" type="bool"/>
378    <field name="Component Override X" start="12" end="12" type="bool"/>
379    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
380    <field name="Constant Source" start="9" end="10" type="uint">
381      <value name="CONST_0000" value="0"/>
382      <value name="CONST_0001_FLOAT" value="1"/>
383      <value name="CONST_1111_FLOAT" value="2"/>
384      <value name="PRIM_ID" value="3"/>
385    </field>
386    <field name="Swizzle Select" start="6" end="7" type="uint">
387      <value name="INPUTATTR" value="0"/>
388      <value name="INPUTATTR_FACING" value="1"/>
389      <value name="INPUTATTR_W" value="2"/>
390      <value name="INPUTATTR_FACING_W" value="3"/>
391    </field>
392    <field name="Source Attribute" start="0" end="4" type="uint"/>
393  </struct>
394
395  <struct name="CLIP_VIEWPORT" length="4">
396    <field name="XMin Clip Guardband" start="0" end="31" type="uint"/>
397    <field name="XMax Clip Guardband" start="32" end="63" type="uint"/>
398    <field name="YMin Clip Guardband" start="64" end="95" type="uint"/>
399    <field name="YMax Clip Guardband" start="96" end="127" type="uint"/>
400  </struct>
401
402  <struct name="SCISSOR_RECT" length="2">
403    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
404    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
405    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
406    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
407  </struct>
408
409  <struct name="SF_VIEWPORT" length="8">
410    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
411    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
412    <field name="Viewport Matrix Element m22" start="64" end="95" type="float">
413      <value name="Excludes DWord (0,1)" value="0"/>
414    </field>
415    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
416    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
417    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
418    <group count="2" start="192" size="32">
419    </group>
420  </struct>
421
422  <struct name="BLEND_STATE_ENTRY" length="2">
423    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
424    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
425    <field name="Alpha Blend Function" start="26" end="28" type="3D_Color_Buffer_Blend_Function"/>
426    <field name="Source Alpha Blend Factor" start="20" end="24" type="3D_Color_Buffer_Blend_Factor"/>
427    <field name="Destination Alpha Blend Factor" start="15" end="19" type="3D_Color_Buffer_Blend_Factor"/>
428    <field name="Color Blend Function" start="11" end="13" type="3D_Color_Buffer_Blend_Function"/>
429    <field name="Source Blend Factor" start="5" end="9" type="3D_Color_Buffer_Blend_Factor"/>
430    <field name="Destination Blend Factor" start="0" end="4" type="3D_Color_Buffer_Blend_Factor"/>
431    <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
432    <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
433    <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
434    <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
435    <field name="Write Disable Red" start="58" end="58" type="bool"/>
436    <field name="Write Disable Green" start="57" end="57" type="bool"/>
437    <field name="Write Disable Blue" start="56" end="56" type="bool"/>
438    <field name="Logic Op Enable" start="54" end="54" type="bool"/>
439    <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
440    <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
441    <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
442    <field name="Color Dither Enable" start="44" end="44" type="bool"/>
443    <field name="X Dither Offset" start="42" end="43" type="uint"/>
444    <field name="Y Dither Offset" start="40" end="41" type="uint"/>
445    <field name="Color Clamp Range" start="34" end="35" type="uint">
446      <value name="COLORCLAMP_UNORM" value="0"/>
447      <value name="COLORCLAMP_SNORM" value="1"/>
448      <value name="COLORCLAMP_RTFORMAT" value="2"/>
449    </field>
450    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
451    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
452  </struct>
453
454  <struct name="BLEND_STATE" length="16">
455    <group count="8" start="0" size="64">
456      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
457    </group>
458  </struct>
459
460  <struct name="CC_VIEWPORT" length="2">
461    <field name="Minimum Depth" start="0" end="31" type="float"/>
462    <field name="Maximum Depth" start="32" end="63" type="float"/>
463  </struct>
464
465  <struct name="COLOR_CALC_STATE" length="6">
466    <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
467    <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
468    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
469    <field name="Alpha Test Format" start="0" end="0" type="uint">
470      <value name="ALPHATEST_UNORM8" value="0"/>
471      <value name="ALPHATEST_FLOAT32" value="1"/>
472    </field>
473    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
474    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
475    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
476    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
477    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
478    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
479  </struct>
480
481  <struct name="DEPTH_STENCIL_STATE" length="3">
482    <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
483    <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
484    <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
485    <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
486    <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
487    <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
488    <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
489    <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
490    <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
491    <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
492    <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
493    <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
494    <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
495    <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
496    <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
497    <field name="Depth Test Enable" start="95" end="95" type="bool"/>
498    <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/>
499    <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
500  </struct>
501
502  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
503    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
504    <field name="Single Program Flow" start="50" end="50" type="bool"/>
505    <field name="Thread Priority" start="49" end="49" type="uint">
506      <value name="Normal Priority" value="0"/>
507      <value name="High Priority" value="1"/>
508    </field>
509    <field name="Floating Point Mode" start="48" end="48" type="uint">
510      <value name="IEEE-754" value="0"/>
511      <value name="Alternate" value="1"/>
512    </field>
513    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
514    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
515    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
516    <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
517    <field name="Sampler Count" start="66" end="68" type="uint">
518      <value name="No samplers used" value="0"/>
519      <value name="Between 1 and 4 samplers used" value="1"/>
520      <value name="Between 5 and 8 samplers used" value="2"/>
521      <value name="Between 9 and 12 samplers used" value="3"/>
522      <value name="Between 13 and 16 samplers used" value="4"/>
523    </field>
524    <field name="Binding Table Pointer" start="101" end="127" type="offset"/>
525    <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
526    <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
527    <field name="Constant URB Entry Read Offset" start="128" end="143" type="uint"/>
528    <field name="Barrier Return GRF Offset" start="184" end="191" type="uint"/>
529    <field name="Barrier Return Byte" start="168" end="175" type="uint"/>
530    <field name="Barrier ID" start="160" end="163" type="uint"/>
531  </struct>
532
533  <struct name="PALETTE_ENTRY" length="1">
534    <field name="Alpha" start="24" end="31" type="uint"/>
535    <field name="Red" start="16" end="23" type="uint"/>
536    <field name="Green" start="8" end="15" type="uint"/>
537    <field name="Blue" start="0" end="7" type="uint"/>
538  </struct>
539
540  <struct name="BINDING_TABLE_STATE" length="1">
541    <field name="Surface State Pointer" start="5" end="31" type="offset"/>
542  </struct>
543
544  <struct name="RENDER_SURFACE_STATE" length="6">
545    <field name="Surface Type" start="29" end="31" type="uint">
546      <value name="SURFTYPE_1D" value="0"/>
547      <value name="SURFTYPE_2D" value="1"/>
548      <value name="SURFTYPE_3D" value="2"/>
549      <value name="SURFTYPE_CUBE" value="3"/>
550      <value name="SURFTYPE_BUFFER" value="4"/>
551      <value name="SURFTYPE_NULL" value="7"/>
552    </field>
553    <field name="Data Return Format" start="27" end="27" type="uint">
554      <value name="DATA_RETURN_FLOAT32" value="0"/>
555    </field>
556    <field name="Surface Format" start="18" end="26" type="SURFACE_FORMAT"/>
557    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
558    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
559    <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
560      <value name="MIPLAYOUT_BELOW" value="0"/>
561      <value name="MIPLAYOUT_RIGHT" value="1"/>
562    </field>
563    <field name="Cube Map Corner Mode" start="9" end="9" type="uint">
564      <value name="CUBE_REPLICATE" value="0"/>
565      <value name="CUBE_AVERAGE" value="1"/>
566    </field>
567    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
568      <value name="WRITE_ONLY" value="0"/>
569      <value name="READ_WRITE" value="1"/>
570    </field>
571    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
572      <value name="NORMAL_MODE" value="0"/>
573      <value name="PROGRESSIVE_FRAME" value="2"/>
574      <value name="INTERLACED_FRAME" value="3"/>
575    </field>
576    <field name="Cube Face Enables" start="0" end="5" type="uint"/>
577    <field name="Surface Base Address" start="32" end="63" type="address"/>
578    <field name="Height" start="83" end="95" type="uint"/>
579    <field name="Width" start="70" end="82" type="uint"/>
580    <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
581    <field name="Render Target Rotation" start="64" end="65" type="uint">
582      <value name="RTROTATE_0DEG" value="0"/>
583      <value name="RTROTATE_90DEG" value="1"/>
584      <value name="RTROTATE_270DEG" value="3"/>
585    </field>
586    <field name="Depth" start="117" end="127" type="uint"/>
587    <field name="Surface Pitch" start="99" end="115" type="uint"/>
588    <field name="Tiled Surface" start="97" end="97" type="bool"/>
589    <field name="Tile Walk" start="96" end="96" type="uint">
590      <value name="TILEWALK_XMAJOR" value="0"/>
591      <value name="TILEWALK_YMAJOR" value="1"/>
592    </field>
593    <field name="Surface Min LOD" start="156" end="159" type="uint"/>
594    <field name="Minimum Array Element" start="145" end="155" type="uint"/>
595    <field name="Render Target View Extent" start="136" end="144" type="uint"/>
596    <field name="Number of Multisamples" start="132" end="134" type="uint">
597      <value name="MULTISAMPLECOUNT_1" value="0"/>
598      <value name="MULTISAMPLECOUNT_4" value="2"/>
599    </field>
600    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
601    <field name="X Offset" start="185" end="191" type="uint"/>
602    <field name="Surface Vertical Alignment" start="184" end="184" type="uint">
603      <value name="VALIGN_2" value="0"/>
604      <value name="VALIGN_4" value="1"/>
605    </field>
606    <field name="Y Offset" start="180" end="183" type="uint"/>
607    <field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
608    <field name="MOCS" start="176" end="179" type="uint"/>
609  </struct>
610
611  <struct name="SAMPLER_BORDER_COLOR_STATE" length="12">
612    <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
613    <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
614    <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
615    <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>
616
617    <field name="Border Color Float Red" start="32" end="63" type="float"/>
618    <field name="Border Color Float Green" start="64" end="95" type="float"/>
619    <field name="Border Color Float Blue" start="96" end="127" type="float"/>
620    <field name="Border Color Float Alpha" start="128" end="159" type="float"/>
621
622    <field name="Border Color Float16 Red" start="160" end="175" type="uint"/>
623    <field name="Border Color Float16 Green" start="176" end="191" type="uint"/>
624    <field name="Border Color Float16 Blue" start="192" end="207" type="uint"/>
625    <field name="Border Color Float16 Alpha" start="208" end="223" type="uint"/>
626
627    <field name="Border Color Unorm16 Red" start="224" end="239" type="uint"/>
628    <field name="Border Color Unorm16 Green" start="240" end="255" type="uint"/>
629    <field name="Border Color Unorm16 Blue" start="256" end="271" type="uint"/>
630    <field name="Border Color Unorm16 Alpha" start="272" end="287" type="uint"/>
631
632    <field name="Border Color Snorm16 Red" start="288" end="303" type="int"/>
633    <field name="Border Color Snorm16 Green" start="304" end="319" type="int"/>
634    <field name="Border Color Snorm16 Blue" start="320" end="335" type="int"/>
635    <field name="Border Color Snorm16 Alpha" start="336" end="351" type="int"/>
636
637    <field name="Border Color Snorm8 Red" start="352" end="359" type="int"/>
638    <field name="Border Color Snorm8 Green" start="360" end="367" type="int"/>
639    <field name="Border Color Snorm8 Blue" start="368" end="375" type="int"/>
640    <field name="Border Color Snorm8 Alpha" start="376" end="383" type="int"/>
641  </struct>
642
643  <struct name="SAMPLER_STATE" length="4">
644    <field name="Sampler Disable" start="31" end="31" type="bool"/>
645    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
646      <value name="DX10/OGL" value="0"/>
647      <value name="DX9" value="1"/>
648    </field>
649    <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
650      <value name="OGL" value="1"/>
651    </field>
652    <field name="Min and Mag State Not Equal" start="27" end="27" type="uint">
653      <value name="MIN_MAG_EQ" value="0"/>
654      <value name="MIN_MAG_NEQ" value="1"/>
655    </field>
656    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
657    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
658      <value name="NONE" value="0"/>
659      <value name="NEAREST" value="1"/>
660      <value name="LINEAR" value="3"/>
661    </field>
662    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
663      <value name="NEAREST" value="0"/>
664      <value name="LINEAR" value="1"/>
665      <value name="ANISOTROPIC" value="2"/>
666      <value name="MONO" value="6"/>
667    </field>
668    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER"/>
669    <field name="Texture LOD Bias" start="3" end="13" type="s4.6"/>
670    <field name="Shadow Function" start="0" end="2" type="uint">
671      <value name="PREFILTEROP_ALWAYS" value="0"/>
672      <value name="PREFILTEROP_NEVER" value="1"/>
673      <value name="PREFILTEROP_LESS" value="2"/>
674      <value name="PREFILTEROP_EQUAL" value="3"/>
675      <value name="PREFILTEROP_LEQUAL" value="4"/>
676      <value name="PREFILTEROP_GREATER" value="5"/>
677      <value name="PREFILTEROP_NOTEQUAL" value="6"/>
678      <value name="PREFILTEROP_GEQUAL" value="7"/>
679    </field>
680    <field name="Min LOD" start="54" end="63" type="u4.6"/>
681    <field name="Max LOD" start="44" end="53" type="u4.6"/>
682    <field name="Cube Surface Control Mode" start="41" end="41" type="uint">
683      <value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
684      <value name="CUBECTRLMODE_OVERRIDE" value="1"/>
685    </field>
686    <field name="TCX Address Control Mode" start="38" end="40" type="uint"/>
687    <field name="TCY Address Control Mode" start="35" end="37" type="uint"/>
688    <field name="TCZ Address Control Mode" start="32" end="34" type="uint"/>
689    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
690    <field name="Monochrome Filter Height: Reserved" start="125" end="127" type="uint"/>
691    <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
692    <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
693    <field name="ChromaKey Index" start="119" end="120" type="uint"/>
694    <field name="ChromaKey Mode" start="118" end="118" type="uint">
695      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
696      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
697    </field>
698    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
699      <value name="RATIO 2:1" value="0"/>
700      <value name="RATIO 4:1" value="1"/>
701      <value name="RATIO 6:1" value="2"/>
702      <value name="RATIO 8:1" value="3"/>
703      <value name="RATIO 10:1" value="4"/>
704      <value name="RATIO 12:1" value="5"/>
705      <value name="RATIO 14:1" value="6"/>
706      <value name="RATIO 16:1" value="7"/>
707    </field>
708    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
709    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
710    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
711    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
712    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
713    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
714    <field name="Non-normalized Coordinate Enable" start="96" end="96" type="bool"/>
715  </struct>
716
717  <instruction name="3DPRIMITIVE" bias="2" length="6">
718    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
719    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
720    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
721    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
722    <field name="Vertex Access Type" start="15" end="15" type="uint">
723      <value name="SEQUENTIAL" value="0"/>
724      <value name="RANDOM" value="1"/>
725    </field>
726    <field name="Primitive Topology Type" start="10" end="14" type="3D_Prim_Topo_Type"/>
727    <field name="Internal Vertex Count" start="9" end="9" type="uint"/>
728    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
729    <field name="Vertex Count Per Instance" start="32" end="63" type="uint"/>
730    <field name="Start Vertex Location" start="64" end="95" type="uint"/>
731    <field name="Instance Count" start="96" end="127" type="uint">
732      <value name="UNDEFINED" value="0"/>
733      <value name="'non-instanced' operation" value="1"/>
734    </field>
735    <field name="Start Instance Location" start="128" end="159" type="uint"/>
736    <field name="Base Vertex Location" start="160" end="191" type="int"/>
737  </instruction>
738
739  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3">
740    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
741    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
742    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
743    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
744    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
745    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
746    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
747    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
748    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
749  </instruction>
750
751  <instruction name="3DSTATE_BINDING_TABLE_POINTERS" bias="2" length="4">
752    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
753    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
754    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
755    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
756    <field name="PS Binding Table Change" start="12" end="12" type="bool"/>
757    <field name="GS Binding Table Change" start="9" end="9" type="bool"/>
758    <field name="VS Binding Table Change" start="8" end="8" type="bool"/>
759    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
760    <field name="Pointer to VS Binding Table" start="37" end="63" type="offset"/>
761    <field name="Pointer to GS Binding Table" start="69" end="95" type="offset"/>
762    <field name="Pointer to PS Binding Table" start="101" end="127" type="offset"/>
763  </instruction>
764
765  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="4">
766    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
767    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
768    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
769    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
770    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
771    <field name="Pointer to BLEND_STATE" start="38" end="63" type="offset"/>
772    <field name="BLEND_STATE Change" start="32" end="32" type="bool"/>
773    <field name="Pointer to DEPTH_STENCIL_STATE" start="70" end="95" type="offset"/>
774    <field name="DEPTH_STENCIL_STATE Change" start="64" end="64" type="bool"/>
775    <field name="Pointer to COLOR_CALC_STATE" start="102" end="127" type="offset"/>
776    <field name="COLOR_CALC_STATE Change" start="96" end="96" type="bool"/>
777  </instruction>
778
779  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4">
780    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
781    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
782    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
783    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
784    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
785    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
786    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
787    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
788  </instruction>
789
790  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="2">
791    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
792    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
793    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
794    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
795    <field name="Depth Clear Value Valid" start="15" end="15" type="bool"/>
796    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
797    <field name="Depth Clear Value" start="32" end="63" type="uint"/>
798  </instruction>
799
800  <instruction name="3DSTATE_CLIP" bias="2" length="4">
801    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
802    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
803    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
804    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
805    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
806    <field name="Clipper Statistics Enable" start="42" end="42" type="bool"/>
807    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
808    <field name="CLIP Enable" start="95" end="95" type="bool"/>
809    <field name="API Mode" start="94" end="94" type="uint">
810      <value name="APIMODE_OGL" value="0"/>
811      <value name="APIMODE_D3D" value="1"/>
812    </field>
813    <field name="Viewport XY ClipTest Enable" start="92" end="92" type="bool"/>
814    <field name="Viewport Z ClipTest Enable" start="91" end="91" type="bool"/>
815    <field name="Guardband ClipTest Enable" start="90" end="90" type="bool"/>
816    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
817    <field name="Clip Mode" start="77" end="79" type="uint">
818      <value name="CLIPMODE_NORMAL" value="0"/>
819      <value name="reserved" value="2"/>
820      <value name="CLIPMODE_REJECT_ALL" value="3"/>
821      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
822    </field>
823    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
824    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
825    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint">
826      <value name="Vertex 0" value="0"/>
827      <value name="Vertex 1" value="1"/>
828      <value name="Vertex 2" value="2"/>
829    </field>
830    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint">
831      <value name="Vertex 0" value="0"/>
832      <value name="Vertex 1" value="1"/>
833    </field>
834    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint">
835      <value name="Vertex 0" value="0"/>
836      <value name="Vertex 1" value="1"/>
837      <value name="Vertex 2" value="2"/>
838    </field>
839    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
840    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
841    <field name="Force Zero RTAIndex Enable" start="101" end="101" type="bool"/>
842    <field name="Maximum VPIndex" start="96" end="99" type="uint"/>
843  </instruction>
844
845  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="5">
846    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
847    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
848    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
849    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
850    <field name="Buffer 3 Valid" start="15" end="15" type="bool"/>
851    <field name="Buffer 2 Valid" start="14" end="14" type="bool"/>
852    <field name="Buffer 1 Valid" start="13" end="13" type="bool"/>
853    <field name="Buffer 0 Valid" start="12" end="12" type="bool"/>
854    <field name="Constant Buffer Object Control State" start="8" end="11" type="MEMORY_OBJECT_CONTROL_STATE"/>
855    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
856    <field name="Pointer to GS Constant Buffer 0" start="37" end="63" type="offset"/>
857    <field name="GS Constant Buffer 0 Read Length" start="32" end="36" type="uint"/>
858    <field name="Pointer to GS Constant Buffer 1" start="69" end="95" type="address"/>
859    <field name="GS Constant Buffer 1 Read Length" start="64" end="68" type="uint"/>
860    <field name="Pointer to GS Constant Buffer 2" start="101" end="127" type="address"/>
861    <field name="GS Constant Buffer 2 Read Length" start="96" end="100" type="uint"/>
862    <field name="Pointer to GS Constant Buffer 3" start="133" end="159" type="address"/>
863    <field name="GS Constant Buffer 3 Read Length" start="128" end="132" type="uint"/>
864  </instruction>
865
866  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="5">
867    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
868    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
869    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
870    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
871    <field name="Buffer 3 Valid" start="15" end="15" type="bool"/>
872    <field name="Buffer 2 Valid" start="14" end="14" type="bool"/>
873    <field name="Buffer 1 Valid" start="13" end="13" type="bool"/>
874    <field name="Buffer 0 Valid" start="12" end="12" type="bool"/>
875    <field name="Constant Buffer Object Control State" start="8" end="11" type="MEMORY_OBJECT_CONTROL_STATE"/>
876    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
877    <field name="Pointer to PS Constant Buffer 0" start="37" end="63" type="offset"/>
878    <field name="PS Constant Buffer 0 Read Length" start="32" end="36" type="uint"/>
879    <field name="Pointer to PS Constant Buffer 1" start="69" end="95" type="address"/>
880    <field name="PS Constant Buffer 1 Read Length" start="64" end="68" type="uint"/>
881    <field name="Pointer to PS Constant Buffer 2" start="101" end="127" type="address"/>
882    <field name="PS Constant Buffer 2 Read Length" start="96" end="100" type="uint"/>
883    <field name="Pointer to PS Constant Buffer 3" start="133" end="159" type="address"/>
884    <field name="PS Constant Buffer 3 Read Length" start="128" end="132" type="uint"/>
885  </instruction>
886
887  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="5">
888    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
889    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
890    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
891    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
892    <field name="Buffer 3 Valid" start="15" end="15" type="bool"/>
893    <field name="Buffer 2 Valid" start="14" end="14" type="bool"/>
894    <field name="Buffer 1 Valid" start="13" end="13" type="bool"/>
895    <field name="Buffer 0 Valid" start="12" end="12" type="bool"/>
896    <field name="Constant Buffer Object Control State" start="8" end="11" type="MEMORY_OBJECT_CONTROL_STATE"/>
897    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
898    <field name="Pointer to VS Constant Buffer 0" start="37" end="63" type="offset"/>
899    <field name="VS Constant Buffer 0 Read Length" start="32" end="36" type="uint"/>
900    <field name="Pointer to VS Constant Buffer 1" start="69" end="95" type="address"/>
901    <field name="VS Constant Buffer 1 Read Length" start="64" end="68" type="uint"/>
902    <field name="Pointer to VS Constant Buffer 2" start="101" end="127" type="address"/>
903    <field name="VS Constant Buffer 2 Read Length" start="96" end="100" type="uint"/>
904    <field name="Pointer to VS Constant Buffer 3" start="133" end="159" type="address"/>
905    <field name="VS Constant Buffer 3 Read Length" start="128" end="132" type="uint"/>
906  </instruction>
907
908  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="7">
909    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
910    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
911    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
912    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
913    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
914    <field name="Surface Type" start="61" end="63" type="uint">
915      <value name="SURFTYPE_1D" value="0"/>
916      <value name="SURFTYPE_2D" value="1"/>
917      <value name="SURFTYPE_3D" value="2"/>
918      <value name="SURFTYPE_CUBE" value="3"/>
919      <value name="SURFTYPE_NULL" value="7"/>
920    </field>
921    <field name="Tiled Surface" start="59" end="59" type="bool"/>
922    <field name="Tile Walk" start="58" end="58" type="uint">
923      <value name="TILEWALK_YMAJOR" value="1"/>
924    </field>
925    <field name="Software Tiled Rendering Mode" start="55" end="56" type="uint">
926      <value name="NORMAL" value="0"/>
927      <value name="STR1" value="1"/>
928      <value name="STR2" value="3"/>
929    </field>
930    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
931    <field name="Separate Stencil Buffer Enable" start="53" end="53" type="bool"/>
932    <field name="Surface Format" start="50" end="52" type="uint">
933      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
934      <value name="D32_FLOAT" value="1"/>
935      <value name="D24_UNORM_S8_UINT" value="2"/>
936      <value name="D24_UNORM_X8_UINT" value="3"/>
937      <value name="D16_UNORM" value="5"/>
938    </field>
939    <field name="Surface Pitch" start="32" end="48" type="uint"/>
940    <field name="Surface Base Address" start="64" end="95" type="address"/>
941    <field name="Height" start="115" end="127" type="uint">
942      <value name="SURFTYPE_1D:  must be zero" value="0"/>
943    </field>
944    <field name="Width" start="102" end="114" type="uint"/>
945    <field name="LOD" start="98" end="101" type="uint"/>
946    <field name="MIP Map Layout Mode" start="97" end="97" type="uint">
947      <value name="MIPLAYOUT_BELOW" value="0"/>
948      <value name="MIPLAYOUT_RIGHT" value="1"/>
949    </field>
950    <field name="Depth" start="149" end="159" type="uint">
951      <value name="SURFTYPE_CUBE:  must be zero" value="0"/>
952    </field>
953    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
954    <field name="Render Target View Extent" start="129" end="137" type="uint"/>
955    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
956    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
957    <field name="Depth Buffer Object Control State" start="219" end="223" type="MEMORY_OBJECT_CONTROL_STATE"/>
958    <field name="Depth Buffer MOCS" start="219" end="223" type="uint"/>
959  </instruction>
960
961  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4">
962    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
963    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
964    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
965    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
966    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
967    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
968    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
969    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
970    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
971    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
972    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
973  </instruction>
974
975  <instruction name="3DSTATE_GS" bias="2" length="7">
976    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
977    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
978    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
979    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
980    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
981    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
982    <field name="Single Program Flow" start="95" end="95" type="bool"/>
983    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
984    <field name="Sampler Count" start="91" end="93" type="uint">
985      <value name="No Samplers" value="0"/>
986      <value name="1-4 Samplers" value="1"/>
987      <value name="5-8 Samplers" value="2"/>
988      <value name="9-12 Samplers" value="3"/>
989      <value name="13-16 Samplers" value="4"/>
990    </field>
991    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
992    <field name="Thread Priority" start="81" end="81" type="uint">
993      <value name="Normal Priority" value="0"/>
994      <value name="High Priority" value="1"/>
995    </field>
996    <field name="Floating Point Mode" start="80" end="80" type="uint">
997      <value name="IEEE-754" value="0"/>
998      <value name="Alternate" value="1"/>
999    </field>
1000    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1001    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
1002    <field name="Software  Exception Enable" start="71" end="71" type="bool"/>
1003    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1004    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
1005    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
1006    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
1007    <field name="Dispatch GRF Start Register For URB Data" start="128" end="131" type="uint"/>
1008    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1009    <field name="Statistics Enable" start="170" end="170" type="bool"/>
1010    <field name="SO Statistics Enable" start="169" end="169" type="bool"/>
1011    <field name="Rendering Enabled" start="168" end="168" type="uint"/>
1012    <field name="Reorder Enable" start="222" end="222" type="bool"/>
1013    <field name="Discard Adjacency" start="221" end="221" type="bool"/>
1014    <field name="SVBI Payload Enable" start="220" end="220" type="bool"/>
1015    <field name="SVBI Post-Increment Enable" start="219" end="219" type="bool"/>
1016    <field name="SVBI Post-Increment Value" start="208" end="217" type="uint"/>
1017    <field name="Function Enable" start="207" end="207" type="bool"/>
1018  </instruction>
1019
1020  <instruction name="3DSTATE_GS_SVB_INDEX" bias="2" length="7">
1021    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1022    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1023    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1024    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
1025    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1026    <field name="Index Number" start="61" end="62" type="uint"/>
1027    <field name="Load Internal Vertex Count" start="32" end="32" type="uint"/>
1028    <field name="Streamed Vertex Buffer Index" start="64" end="95" type="uint"/>
1029    <field name="Maximum Index" start="96" end="127" type="uint"/>
1030  </instruction>
1031
1032  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="3">
1033    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1034    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1035    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1036    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
1037    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1038    <field name="Hierarchical Depth Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
1039    <field name="Hierarchical Depth Buffer MOCS" start="57" end="60" type="uint"/>
1040    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1041    <field name="Surface Base Address" start="64" end="95" type="address"/>
1042  </instruction>
1043
1044  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3">
1045    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1046    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1047    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1048    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1049    <field name="Memory Object Control State" start="12" end="15" type="MEMORY_OBJECT_CONTROL_STATE"/>
1050    <field name="Cut Index Enable" start="10" end="10" type="bool"/>
1051    <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
1052      <value name="BYTE" value="0"/>
1053      <value name="WORD" value="1"/>
1054      <value name="DWORD" value="2"/>
1055    </field>
1056    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1057    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
1058    <field name="Buffer Ending Address" start="64" end="95" type="address"/>
1059  </instruction>
1060
1061  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3">
1062    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1063    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1064    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1065    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1066    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1067    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
1068    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
1069    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
1070    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
1071    <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
1072    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
1073  </instruction>
1074
1075  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2">
1076    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1077    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1078    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1079    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1080    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1081    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
1082    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
1083  </instruction>
1084
1085  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="3">
1086    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1087    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1088    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1089    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
1090    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1091    <field name="Pixel Location" start="36" end="36" type="uint">
1092      <value name="PIXLOC_CENTER" value="0"/>
1093      <value name="PIXLOC_UL_CORNER" value="1"/>
1094    </field>
1095    <field name="Number of Multisamples" start="33" end="35" type="uint">
1096      <value name="NUMSAMPLES_1" value="0"/>
1097      <value name="NUMSAMPLES_4" value="2"/>
1098    </field>
1099    <field name="Sample3 X Offset" start="92" end="95" type="u0.4"/>
1100    <field name="Sample3 Y Offset" start="88" end="91" type="u0.4"/>
1101    <field name="Sample2 X Offset" start="84" end="87" type="u0.4"/>
1102    <field name="Sample2 Y Offset" start="80" end="83" type="u0.4"/>
1103    <field name="Sample1 X Offset" start="76" end="79" type="u0.4"/>
1104    <field name="Sample1 Y Offset" start="72" end="75" type="u0.4"/>
1105    <field name="Sample0 X Offset" start="68" end="71" type="u0.4"/>
1106    <field name="Sample0 Y Offset" start="64" end="67" type="u0.4"/>
1107  </instruction>
1108
1109  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2">
1110    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1111    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1112    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1113    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
1114    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1115    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
1116    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
1117  </instruction>
1118
1119  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33">
1120    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1121    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1122    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1123    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1124    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
1125    <group count="32" start="32" size="32">
1126      <field name="Pattern Row" start="0" end="31" type="uint"/>
1127    </group>
1128  </instruction>
1129
1130  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2">
1131    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1132    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1133    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1134    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1135    <field name="DWord Length" start="0" end="7" type="uint"/>
1136    <group count="0" start="32" size="32">
1137      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
1138    </group>
1139  </instruction>
1140
1141  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2">
1142    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1143    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1144    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1145    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
1146    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1147    <group count="0" start="32" size="32">
1148      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
1149      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
1150      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
1151      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
1152    </group>
1153  </instruction>
1154
1155  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS" bias="2" length="4">
1156    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1157    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1158    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1159    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1160    <field name="PS Sampler State Change" start="12" end="12" type="uint"/>
1161    <field name="GS Sampler State Change" start="9" end="9" type="uint"/>
1162    <field name="VS Sampler State Change" start="8" end="8" type="uint"/>
1163    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1164    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
1165    <field name="Pointer to GS Sampler State" start="69" end="95" type="offset"/>
1166    <field name="Pointer to PS Sampler State" start="101" end="127" type="offset"/>
1167  </instruction>
1168
1169  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2">
1170    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1171    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1172    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1173    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
1174    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1175    <field name="Sample Mask" start="32" end="35" type="uint"/>
1176  </instruction>
1177
1178  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2">
1179    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1180    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1181    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1182    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
1183    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1184    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
1185  </instruction>
1186
1187  <instruction name="3DSTATE_SF" bias="2" length="20">
1188    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1189    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1190    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1191    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
1192    <field name="DWord Length" start="0" end="7" type="uint" default="18"/>
1193    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
1194    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
1195    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
1196      <value name="UPPERLEFT" value="0"/>
1197      <value name="LOWERLEFT" value="1"/>
1198    </field>
1199    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
1200    <field name="Vertex URB Entry Read Offset" start="36" end="41" type="uint"/>
1201    <field name="Legacy Global Depth Bias Enable" start="75" end="75" type="bool"/>
1202    <field name="Statistics Enable" start="74" end="74" type="bool"/>
1203    <field name="Global Depth Offset Enable Solid" start="73" end="73" type="bool"/>
1204    <field name="Global Depth Offset Enable Wireframe" start="72" end="72" type="bool"/>
1205    <field name="Global Depth Offset Enable Point" start="71" end="71" type="bool"/>
1206    <field name="FrontFace Fill Mode" start="69" end="70" type="uint" prefix="FILL_MODE">
1207      <value name="SOLID" value="0"/>
1208      <value name="WIREFRAME" value="1"/>
1209      <value name="POINT" value="2"/>
1210    </field>
1211    <field name="BackFace Fill Mode" start="67" end="68" type="uint" prefix="FILL_MODE">
1212      <value name="SOLID" value="0"/>
1213      <value name="WIREFRAME" value="1"/>
1214      <value name="POINT" value="2"/>
1215    </field>
1216    <field name="Viewport Transform Enable" start="65" end="65" type="bool"/>
1217    <field name="Front Winding" start="64" end="64" type="uint">
1218      <value name="FRONTWINDING_CW" value="0"/>
1219      <value name="FRONTWINDING_CCW" value="1"/>
1220    </field>
1221    <field name="Anti-aliasing Enable" start="127" end="127" type="bool"/>
1222    <field name="Cull Mode" start="125" end="126" type="uint" prefix="CULLMODE">
1223      <value name="BOTH" value="0"/>
1224      <value name="NONE" value="1"/>
1225      <value name="FRONT" value="2"/>
1226      <value name="BACK" value="3"/>
1227    </field>
1228    <field name="Line Width" start="114" end="123" type="u3.7"/>
1229    <field name="Line End Cap Antialiasing Region Width" start="112" end="113" type="uint">
1230      <value name="0.5 pixels" value="0"/>
1231      <value name="1.0 pixels" value="1"/>
1232      <value name="2.0 pixels" value="2"/>
1233      <value name="4.0 pixels" value="3"/>
1234    </field>
1235    <field name="Scissor Rectangle Enable" start="107" end="107" type="bool"/>
1236    <field name="Multisample Rasterization  Mode" start="104" end="105" type="uint"/>
1237    <field name="Last Pixel Enable" start="159" end="159" type="bool"/>
1238    <field name="Triangle Strip/List Provoking Vertex Select" start="157" end="158" type="uint">
1239      <value name="Vertex 0" value="0"/>
1240      <value name="Vertex 1" value="1"/>
1241      <value name="Vertex 2" value="2"/>
1242    </field>
1243    <field name="Line Strip/List Provoking Vertex Select" start="155" end="156" type="uint">
1244      <value name="Vertex 0" value="0"/>
1245      <value name="Vertex 1" value="1"/>
1246    </field>
1247    <field name="Triangle Fan Provoking Vertex Select" start="153" end="154" type="uint">
1248      <value name="Vertex 0" value="0"/>
1249      <value name="Vertex 1" value="1"/>
1250      <value name="Vertex 2" value="2"/>
1251    </field>
1252    <field name="AA Line Distance Mode" start="142" end="142" type="uint">
1253      <value name="AALINEDISTANCE_TRUE" value="1"/>
1254    </field>
1255    <field name="Vertex Sub Pixel Precision Select" start="140" end="140" type="uint">
1256      <value name="8 Sub-Pixel Precision Bits" value="0"/>
1257      <value name="4 Sub-Pixel Precision Bits" value="1"/>
1258    </field>
1259    <field name="Use Point Width State" start="139" end="139" type="uint">
1260      <value name="Use Point Width on Vertex" value="0"/>
1261      <value name="Use Point Width from State" value="1"/>
1262    </field>
1263    <field name="Point Width" start="128" end="138" type="u8.3"/>
1264    <field name="Global Depth Offset Constant" start="160" end="191" type="float"/>
1265    <field name="Global Depth Offset Scale" start="192" end="223" type="float"/>
1266    <field name="Global Depth Offset Clamp" start="224" end="255" type="float"/>
1267    <group count="16" start="256" size="16">
1268      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
1269    </group>
1270    <field name="Point Sprite Texture Coordinate Enable" start="512" end="543" type="uint"/>
1271    <field name="Constant Interpolation Enable" start="544" end="575" type="uint"/>
1272    <field name="Attribute 7 WrapShortest Enables" start="604" end="607" type="uint"/>
1273    <field name="Attribute 6 WrapShortest Enables" start="600" end="603" type="uint"/>
1274    <field name="Attribute 5 WrapShortest Enables" start="596" end="599" type="uint"/>
1275    <field name="Attribute 4 WrapShortest Enables" start="592" end="595" type="uint"/>
1276    <field name="Attribute 3 WrapShortest Enables" start="588" end="591" type="uint"/>
1277    <field name="Attribute 2 WrapShortest Enables" start="584" end="587" type="uint"/>
1278    <field name="Attribute 1 WrapShortest Enables" start="580" end="583" type="uint"/>
1279    <field name="Attribute 0 WrapShortest Enables" start="576" end="579" type="uint"/>
1280    <field name="Attribute 15 WrapShortest Enables" start="636" end="639" type="uint"/>
1281    <field name="Attribute 14 WrapShortest Enables" start="632" end="635" type="uint"/>
1282    <field name="Attribute 13 WrapShortest Enables" start="628" end="631" type="uint"/>
1283    <field name="Attribute 12 WrapShortest Enables" start="624" end="627" type="uint"/>
1284    <field name="Attribute 11 WrapShortest Enables" start="620" end="623" type="uint"/>
1285    <field name="Attribute 10 WrapShortest Enables" start="616" end="619" type="uint"/>
1286    <field name="Attribute 9 WrapShortest Enables" start="612" end="615" type="uint"/>
1287    <field name="Attribute 8 WrapShortest Enables" start="608" end="611" type="uint"/>
1288  </instruction>
1289
1290  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="3">
1291    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1292    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1293    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1294    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
1295    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1296    <field name="Stencil Buffer Object Control State" start="57" end="60" type="MEMORY_OBJECT_CONTROL_STATE"/>
1297    <field name="Stencil Buffer MOCS" start="57" end="60" type="uint"/>
1298    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1299    <field name="Surface Base Address" start="64" end="95" type="address"/>
1300  </instruction>
1301
1302  <instruction name="3DSTATE_URB" bias="2" length="3">
1303    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1304    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1305    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1306    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
1307    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1308    <field name="VS URB Entry Allocation Size" start="48" end="55" type="uint"/>
1309    <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
1310    <field name="GS Number of URB Entries" start="72" end="81" type="uint"/>
1311    <field name="GS URB Entry Allocation Size" start="64" end="66" type="uint"/>
1312  </instruction>
1313
1314  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2">
1315    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1316    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1317    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1318    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1319    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1320    <group count="0" start="32" size="128">
1321      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
1322    </group>
1323  </instruction>
1324
1325  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2">
1326    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1327    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1328    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1329    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
1330    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1331    <group count="0" start="32" size="64">
1332      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
1333    </group>
1334  </instruction>
1335
1336  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1">
1337    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1338    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
1339    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1340    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
1341    <field name="Statistics Enable" start="0" end="0" type="bool"/>
1342  </instruction>
1343
1344  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS" bias="2" length="4">
1345    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1346    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1347    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1348    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
1349    <field name="CC Viewport State Change" start="12" end="12" type="uint"/>
1350    <field name="SF Viewport State Change" start="11" end="11" type="uint"/>
1351    <field name="CLIP Viewport State Change" start="10" end="10" type="uint"/>
1352    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1353    <field name="Pointer to CLIP_VIEWPORT" start="37" end="63" type="offset"/>
1354    <field name="Pointer to SF_VIEWPORT" start="69" end="95" type="offset"/>
1355    <field name="Pointer to CC_VIEWPORT" start="101" end="127" type="offset"/>
1356  </instruction>
1357
1358  <instruction name="3DSTATE_VS" bias="2" length="6">
1359    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1360    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1361    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1362    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
1363    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
1364    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
1365    <field name="Single Vertex Dispatch" start="95" end="95" type="bool"/>
1366    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1367    <field name="Sampler Count" start="91" end="93" type="uint">
1368      <value name="No Samplers" value="0"/>
1369      <value name="1-4 Samplers" value="1"/>
1370      <value name="5-8 Samplers" value="2"/>
1371      <value name="9-12 Samplers" value="3"/>
1372      <value name="13-16 Samplers" value="4"/>
1373    </field>
1374    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1375    <field name="Floating Point Mode" start="80" end="80" type="uint">
1376      <value name="IEEE-754" value="0"/>
1377      <value name="Alternate" value="1"/>
1378    </field>
1379    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1380    <field name="Software  Exception Enable" start="71" end="71" type="bool"/>
1381    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1382    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
1383    <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
1384    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
1385    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
1386    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1387    <field name="Statistics Enable" start="170" end="170" type="bool"/>
1388    <field name="Vertex Cache Disable" start="161" end="161" type="bool"/>
1389    <field name="Function Enable" start="160" end="160" type="bool"/>
1390  </instruction>
1391
1392  <instruction name="3DSTATE_WM" bias="2" length="9">
1393    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1394    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1395    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1396    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
1397    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1398    <field name="Kernel Start Pointer[0]" start="38" end="63" type="offset"/>
1399    <field name="Single Program Flow" start="95" end="95" type="bool"/>
1400    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1401    <field name="Sampler Count" start="91" end="93" type="uint"/>
1402    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1403    <field name="Thread Priority" start="81" end="81" type="uint">
1404      <value name="High" value="1"/>
1405    </field>
1406    <field name="Floating Point Mode" start="80" end="80" type="uint">
1407      <value name="IEEE-745" value="0"/>
1408      <value name="Alt" value="1"/>
1409    </field>
1410    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1411    <field name="MaskStack Exception Enable" start="75" end="75" type="bool"/>
1412    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
1413    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1414    <field name="Per Thread Scratch Space" start="96" end="99" type="uint"/>
1415    <field name="Statistics Enable" start="159" end="159" type="bool"/>
1416    <field name="Depth Buffer Clear" start="158" end="158" type="bool"/>
1417    <field name="Depth Buffer Resolve Enable" start="156" end="156" type="bool"/>
1418    <field name="Hierarchical Depth Buffer Resolve Enable" start="155" end="155" type="bool"/>
1419    <field name="Dispatch GRF Start Register For Constant/Setup Data [0]" start="144" end="150" type="uint"/>
1420    <field name="Dispatch GRF Start Register For Constant/Setup Data [1]" start="136" end="142" type="uint"/>
1421    <field name="Dispatch GRF Start Register For Constant/Setup Data [2]" start="128" end="134" type="uint"/>
1422    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1423    <field name="Legacy Diamond Line Rasterization" start="183" end="183" type="bool"/>
1424    <field name="Pixel Shader Kills Pixel" start="182" end="182" type="bool"/>
1425    <field name="Pixel Shader Computed Depth" start="181" end="181" type="bool"/>
1426    <field name="Pixel Shader Uses Source Depth" start="180" end="180" type="bool"/>
1427    <field name="Thread Dispatch Enable" start="179" end="179" type="bool"/>
1428    <field name="Line End Cap Antialiasing Region Width" start="176" end="177" type="uint">
1429      <value name="0.5 pixels" value="0"/>
1430      <value name="1.0 pixels" value="1"/>
1431      <value name="2.0 pixels" value="2"/>
1432      <value name="4.0 pixels" value="3"/>
1433    </field>
1434    <field name="Line Antialiasing Region Width" start="174" end="175" type="uint">
1435      <value name="0.5 pixels" value="0"/>
1436      <value name="1.0 pixels" value="1"/>
1437      <value name="2.0 pixels" value="2"/>
1438      <value name="4.0 pixels" value="3"/>
1439    </field>
1440    <field name="Polygon Stipple Enable" start="173" end="173" type="bool"/>
1441    <field name="Line Stipple Enable" start="171" end="171" type="bool"/>
1442    <field name="oMask Present to RenderTarget" start="169" end="169" type="bool"/>
1443    <field name="Pixel Shader Uses Source W" start="168" end="168" type="bool"/>
1444    <field name="Dual Source Blend Enable" start="167" end="167" type="bool"/>
1445    <field name="32 Pixel Dispatch Enable" start="162" end="162" type="bool"/>
1446    <field name="16 Pixel Dispatch Enable" start="161" end="161" type="bool"/>
1447    <field name="8 Pixel Dispatch Enable" start="160" end="160" type="bool"/>
1448    <field name="Number of SF Output Attributes" start="212" end="217" type="uint"/>
1449    <field name="Position XY Offset Select" start="210" end="211" type="uint">
1450      <value name="POSOFFSET_NONE" value="0"/>
1451      <value name="POSOFFSET_CENTROID" value="2"/>
1452      <value name="POSOFFSET_SAMPLE" value="3"/>
1453    </field>
1454    <field name="Position ZW Interpolation Mode" start="208" end="209" type="uint">
1455      <value name="INTERP_PIXEL" value="0"/>
1456      <value name="INTERP_CENTROID" value="2"/>
1457      <value name="INTERP_SAMPLE" value="3"/>
1458    </field>
1459    <field name="Barycentric Interpolation Mode" start="202" end="207" type="uint">
1460      <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
1461      <value name="BIM_PERSPECTIVE_CENTROID" value ="2"/>
1462      <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
1463      <value name="BIM_LINEAR_PIXEL" value="8"/>
1464      <value name="BIM_LINEAR_CENTROID" value="16"/>
1465      <value name="BIM_LINEAR_SAMPLE" value="32"/>
1466    </field>
1467    <field name="Point Rasterization Rule" start="201" end="201" type="uint">
1468      <value name="RASTRULE_UPPER_LEFT" value="0"/>
1469      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
1470    </field>
1471    <field name="Multisample Rasterization Mode" start="193" end="194" type="uint">
1472      <value name="MSRASTMODE_OFF_PIXEL" value="0"/>
1473      <value name="MSRASTMODE_OFF_PATTERN" value="1"/>
1474      <value name="MSRASTMODE_ON_PIXEL" value="2"/>
1475      <value name="MSRASTMODE_ON_PATTERN" value="3"/>
1476    </field>
1477    <field name="Multisample Dispatch Mode" start="192" end="192" type="uint">
1478      <value name="MSDISPMODE_PERSAMPLE" value="0"/>
1479      <value name="MSDISPMODE_PERPIXEL" value="1"/>
1480    </field>
1481    <field name="Kernel Start Pointer[1]" start="230" end="255" type="offset"/>
1482    <field name="Kernel Start Pointer[2]" start="262" end="287" type="offset"/>
1483  </instruction>
1484
1485  <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4">
1486    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1487    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1488    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1489    <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
1490    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
1491    <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
1492    <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
1493  </instruction>
1494
1495  <instruction name="MEDIA_GATEWAY_STATE" bias="2" length="2">
1496    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1497    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1498    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1499    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
1500    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
1501    <field name="BarrierID" start="48" end="55" type="uint"/>
1502    <field name="Barrier.Byte" start="40" end="47" type="uint"/>
1503    <field name="Barrier.ThreadCount" start="32" end="39" type="uint"/>
1504  </instruction>
1505
1506  <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4">
1507    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1508    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1509    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1510    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
1511    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
1512    <field name="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
1513    <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
1514  </instruction>
1515
1516  <instruction name="MEDIA_OBJECT" bias="2">
1517    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1518    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
1519    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1520    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
1521    <field name="DWord Length" start="0" end="15" type="uint" default="4"/>
1522    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1523    <field name="Children Present" start="95" end="95" type="bool"/>
1524    <field name="Thread Synchronization" start="88" end="88" type="uint">
1525      <value name="No thread synchronization" value="0"/>
1526      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
1527    </field>
1528    <field name="Use Scoreboard" start="85" end="85" type="uint">
1529      <value name="Not using scoreboard" value="0"/>
1530      <value name="Using scoreboard" value="1"/>
1531    </field>
1532    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
1533    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
1534    <field name="Scoredboard Y" start="144" end="152" type="uint"/>
1535    <field name="Scoreboard X" start="128" end="136" type="uint"/>
1536    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
1537    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
1538    <group count="0" start="192" size="32">
1539      <field name="Inline Data" start="0" end="31" type="uint"/>
1540    </group>
1541  </instruction>
1542
1543  <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16">
1544    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1545    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1546    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1547    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
1548    <field name="DWord Length" start="0" end="15" type="uint" default="14"/>
1549    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1550    <field name="Children Present" start="95" end="95" type="bool"/>
1551    <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
1552    <field name="PRT_FenceType" start="86" end="86" type="uint">
1553      <value name="Root thread queue" value="0"/>
1554      <value name="VFE state flush" value="1"/>
1555    </field>
1556    <group count="12" start="128" size="32">
1557      <field name="Inline Data" start="0" end="31" type="uint"/>
1558    </group>
1559  </instruction>
1560
1561  <instruction name="MEDIA_OBJECT_WALKER" bias="2">
1562    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1563    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1564    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1565    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
1566    <field name="DWord Length" start="0" end="15" type="uint" default="15"/>
1567    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1568    <field name="Children Present" start="95" end="95" type="uint"/>
1569    <field name="Thread Synchronization" start="88" end="88" type="uint">
1570      <value name="No thread synchronization" value="0"/>
1571      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
1572    </field>
1573    <field name="Use Scoreboard" start="85" end="85" type="uint">
1574      <value name="Not using scoreboard" value="0"/>
1575      <value name="Using scoreboard" value="1"/>
1576    </field>
1577    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
1578    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
1579    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
1580    <field name="Dual Mode" start="223" end="223" type="uint"/>
1581    <field name="Repel" start="222" end="222" type="uint"/>
1582    <field name="Color Count Minus One" start="216" end="219" type="uint"/>
1583    <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
1584    <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
1585    <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
1586    <field name="Global Loop Exec Count" start="240" end="249" type="uint"/>
1587    <field name="Local Loop Exec Count" start="224" end="233" type="uint"/>
1588    <field name="Block Resolution Y" start="272" end="280" type="uint"/>
1589    <field name="Block Resolution X" start="256" end="264" type="uint"/>
1590    <field name="Local Start Y" start="304" end="312" type="uint"/>
1591    <field name="Local Start X" start="288" end="296" type="uint"/>
1592    <field name="Local End Y" start="336" end="344" type="uint"/>
1593    <field name="Local End X" start="320" end="328" type="uint"/>
1594    <field name="Local Outer Loop Stride Y" start="368" end="377" type="int"/>
1595    <field name="Local Outer Loop Stride X" start="352" end="361" type="int"/>
1596    <field name="Local Inner Loop Unit Y" start="400" end="409" type="int"/>
1597    <field name="Local Inner Loop Unit X" start="384" end="393" type="int"/>
1598    <field name="Global Resolution Y" start="432" end="440" type="uint"/>
1599    <field name="Global Resolution X" start="416" end="424" type="uint"/>
1600    <field name="Global Start Y" start="464" end="473" type="int"/>
1601    <field name="Global Start X" start="448" end="457" type="int"/>
1602    <field name="Global Outer Loop Stride Y" start="496" end="505" type="int"/>
1603    <field name="Global Outer Loop Stride X" start="480" end="489" type="int"/>
1604    <field name="Global Inner Loop Unit Y" start="528" end="537" type="int"/>
1605    <field name="Global Inner Loop Unit X" start="512" end="521" type="int"/>
1606    <group count="0" start="544" size="32">
1607      <field name="Inline Data" start="0" end="31" type="uint"/>
1608    </group>
1609  </instruction>
1610
1611  <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2">
1612    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1613    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1614    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1615    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
1616    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
1617    <field name="Thread Count WaterMark" start="48" end="55" type="uint"/>
1618    <field name="Barrier Mask" start="32" end="47" type="uint">
1619      <value name="Not Waiting" value="0"/>
1620      <value name="Waiting" value="1"/>
1621    </field>
1622  </instruction>
1623
1624  <instruction name="MEDIA_VFE_STATE" bias="2" length="8">
1625    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1626    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1627    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1628    <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
1629    <field name="DWord Length" start="0" end="15" type="uint" default="6"/>
1630    <field name="Scratch Space Base Pointer" start="42" end="63" type="address"/>
1631    <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
1632    <field name="Maximum Number of Threads" start="80" end="95" type="uint"/>
1633    <field name="Number of URB Entries" start="72" end="79" type="uint"/>
1634    <field name="Reset Gateway Timer" start="71" end="71" type="uint">
1635      <value name="Maintaining the existing timestamp state" value="0"/>
1636      <value name="Resetting relative timer and latching the global timestamp" value="1"/>
1637    </field>
1638    <field name="Bypass Gateway Control" start="70" end="70" type="uint">
1639      <value name="Maintaining OpenGateway/ForwardMsg/CloseGateway protocol (legacy mode)" value="0"/>
1640      <value name="Bypassing OpenGateway/CloseGateway protocol" value="1"/>
1641    </field>
1642    <field name="Fast Preempt" start="69" end="69" type="uint">
1643      <value name="Preempt only _PRT" value="0"/>
1644    </field>
1645    <field name="URB Entry Allocation Size" start="144" end="159" type="uint"/>
1646    <field name="CURBE Allocation Size" start="128" end="143" type="uint"/>
1647    <field name="Scoreboard Enable" start="191" end="191" type="uint">
1648      <value name="Scoreboard disabled" value="0"/>
1649      <value name="Scoreboard enabled" value="1"/>
1650    </field>
1651    <field name="Scoreboard Type" start="190" end="190" type="uint">
1652      <value name="Stalling Scoreboard" value="0"/>
1653    </field>
1654    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
1655    <field name="Scoreboard 3 Delta Y" start="220" end="223" type="int"/>
1656    <field name="Scoreboard 3 Delta X" start="216" end="219" type="int"/>
1657    <field name="Scoreboard 2 Delta Y" start="212" end="215" type="int"/>
1658    <field name="Scoreboard 2 Delta X" start="208" end="211" type="int"/>
1659    <field name="Scoreboard 1 Delta Y" start="204" end="207" type="int"/>
1660    <field name="Scoreboard 1 Delta X" start="200" end="203" type="int"/>
1661    <field name="Scoreboard 0 Delta Y" start="196" end="199" type="int"/>
1662    <field name="Scoreboard 0 Delta X" start="192" end="195" type="int"/>
1663    <field name="Scoreboard 7 Delta Y" start="252" end="255" type="int"/>
1664    <field name="Scoreboard 7 Delta X" start="248" end="251" type="int"/>
1665    <field name="Scoreboard 6 Delta Y" start="244" end="247" type="int"/>
1666    <field name="Scoreboard 6 Delta X" start="240" end="243" type="int"/>
1667    <field name="Scoreboard 5 Delta Y" start="236" end="239" type="int"/>
1668    <field name="Scoreboard 5 Delta X" start="232" end="235" type="int"/>
1669    <field name="Scoreboard 4 Delta Y" start="228" end="231" type="int"/>
1670    <field name="Scoreboard 4 Delta X" start="224" end="227" type="int"/>
1671  </instruction>
1672
1673  <instruction name="MI_ARB_CHECK" bias="1" length="1">
1674    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1675    <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
1676  </instruction>
1677
1678  <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
1679    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1680    <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
1681    <field name="Arbitration Enable" start="0" end="0" type="bool"/>
1682  </instruction>
1683
1684  <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
1685    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1686    <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
1687  </instruction>
1688
1689  <instruction name="MI_BATCH_BUFFER_START" bias="2" length="2">
1690    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1691    <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
1692    <field name="Clear Command Buffer Enable" start="11" end="11" type="bool"/>
1693    <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
1694      <value name="GGTT" value="0"/>
1695      <value name="PPGTT" value="1"/>
1696    </field>
1697    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1698    <field name="Batch Buffer Start Address" start="34" end="63" type="address"/>
1699  </instruction>
1700
1701  <instruction name="MI_CLFLUSH" bias="2">
1702    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1703    <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
1704    <field name="Use Global GTT" start="22" end="22" type="bool"/>
1705    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
1706    <field name="Page Base Address" start="44" end="63" type="address"/>
1707    <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
1708    <group count="0" start="64" size="32">
1709      <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
1710    </group>
1711  </instruction>
1712
1713  <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="2">
1714    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1715    <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
1716    <field name="Use Global GTT" start="22" end="22" type="bool"/>
1717    <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
1718    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1719    <field name="Compare Data Dword" start="32" end="63" type="uint"/>
1720    <field name="Compare Address" start="67" end="95" type="address"/>
1721  </instruction>
1722
1723  <instruction name="MI_FLUSH" bias="1" length="1">
1724    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1725    <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
1726    <field name="Indirect State Pointers Disable" start="5" end="5" type="bool"/>
1727    <field name="Generic Media State Clear" start="4" end="4" type="bool"/>
1728    <field name="Global Snapshot Count Reset" start="3" end="3" type="uint">
1729      <value name="Don't Reset" value="0"/>
1730      <value name="Reset" value="1"/>
1731    </field>
1732    <field name="Render Cache Flush Inhibit" start="2" end="2" type="uint">
1733      <value name="Flush" value="0"/>
1734      <value name="Don't Flush" value="1"/>
1735    </field>
1736    <field name="State/Instruction Cache Invalidate" start="1" end="1" type="uint">
1737      <value name="Don't Invalidate" value="0"/>
1738      <value name="Invalidate" value="1"/>
1739    </field>
1740  </instruction>
1741
1742  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
1743    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1744    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
1745    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
1746    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1747    <field name="Register Offset" start="34" end="54" type="offset"/>
1748    <field name="Data DWord" start="64" end="95" type="uint"/>
1749  </instruction>
1750
1751  <instruction name="MI_LOAD_SCAN_LINES_EXCL" bias="2" length="2">
1752    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1753    <field name="MI Command Opcode" start="23" end="28" type="uint" default="19"/>
1754    <field name="Display (Plane) Select" start="19" end="21" type="uint">
1755      <value name="Display Plane A" value="0"/>
1756      <value name="Display Plane B" value="1"/>
1757      <value name="Display Plane C" value="4"/>
1758    </field>
1759    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
1760    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
1761    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
1762  </instruction>
1763
1764  <instruction name="MI_NOOP" bias="1" length="1">
1765    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1766    <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
1767    <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
1768    <field name="Identification Number" start="0" end="21" type="uint"/>
1769  </instruction>
1770
1771  <instruction name="MI_REPORT_HEAD" bias="1" length="1">
1772    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1773    <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
1774  </instruction>
1775
1776  <instruction name="MI_SEMAPHORE_MBOX" bias="2" length="3">
1777    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1778    <field name="MI Command Opcode" start="23" end="28" type="uint" default="22"/>
1779    <field name="Register Select" start="16" end="17" type="uint">
1780      <value name="RVSYNC" value="0"/>
1781      <value name="RBSYNC" value="2"/>
1782      <value name="Use General Register Select" value="3"/>
1783    </field>
1784    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1785    <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
1786  </instruction>
1787
1788  <instruction name="MI_SET_CONTEXT" bias="2" length="2">
1789    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1790    <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
1791    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1792    <field name="Logical Context Address" start="44" end="63" type="address"/>
1793    <field name="HD DVD Context" start="41" end="41" type="bool"/>
1794    <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
1795    <field name="Extended State Save Enable" start="35" end="35" type="bool"/>
1796    <field name="Extended State Restore Enable" start="34" end="34" type="bool"/>
1797    <field name="Force Restore" start="33" end="33" type="uint"/>
1798    <field name="Restore Inhibit" start="32" end="32" type="uint"/>
1799  </instruction>
1800
1801  <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
1802    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1803    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
1804    <field name="Use Global GTT" start="22" end="22" type="bool"/>
1805    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
1806    <field name="Address" start="66" end="95" type="address"/>
1807    <field name="Core Mode Enable" start="64" end="64" type="uint"/>
1808    <field name="Data DWord 0" start="96" end="127" type="uint"/>
1809    <field name="Data DWord 1" start="128" end="159" type="uint"/>
1810  </instruction>
1811
1812  <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
1813    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1814    <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
1815    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1816    <field name="Offset" start="34" end="43" type="uint"/>
1817    <field name="Data DWord 0" start="64" end="95" type="uint"/>
1818    <field name="Data DWord 1" start="96" end="127" type="uint"/>
1819  </instruction>
1820
1821  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="3">
1822    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1823    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
1824    <field name="Use Global GTT" start="22" end="22" type="bool"/>
1825    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1826    <field name="Register Address" start="34" end="54" type="offset"/>
1827    <field name="Memory Address" start="66" end="95" type="address"/>
1828  </instruction>
1829
1830  <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
1831    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1832    <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
1833    <field name="Suspend Flush" start="0" end="0" type="bool"/>
1834  </instruction>
1835
1836  <instruction name="MI_URB_CLEAR" bias="2" length="2">
1837    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1838    <field name="MI Command Opcode" start="23" end="28" type="uint" default="25"/>
1839    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1840    <field name="URB Clear Length" start="48" end="60" type="uint"/>
1841    <field name="URB Address" start="32" end="45" type="offset"/>
1842  </instruction>
1843
1844  <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
1845    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1846    <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
1847  </instruction>
1848
1849  <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1">
1850    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1851    <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
1852    <field name="Condition Code Wait Select" start="16" end="19" type="uint">
1853      <value name="Not enabled" value="0"/>
1854    </field>
1855    <field name="Display Pipe B Horizontal Blank Wait Enable" start="13" end="13" type="bool"/>
1856    <field name="Display Pipe B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
1857    <field name="Display Sprite B Flip Pending Wait Enable" start="10" end="10" type="bool"/>
1858    <field name="Display Plane B Flip Pending Wait Enable" start="9" end="9" type="bool"/>
1859    <field name="Display Pipe B Scan Line Wait Enable" start="8" end="8" type="bool"/>
1860    <field name="Display Pipe A Horizontal Blank Wait Enable" start="5" end="5" type="bool"/>
1861    <field name="Display Pipe A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
1862    <field name="Display Sprite A Flip Pending Wait Enable" start="2" end="2" type="bool"/>
1863    <field name="Display Plane A Flip Pending Wait Enable" start="1" end="1" type="bool"/>
1864    <field name="Display Pipe A Scan Line Wait Enable" start="0" end="0" type="bool"/>
1865  </instruction>
1866
1867  <instruction name="PIPELINE_SELECT" bias="1" length="1">
1868    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1869    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
1870    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1871    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1872    <field name="Pipeline Selection" start="0" end="1" type="uint">
1873      <value name="3D" value="0"/>
1874      <value name="Media" value="1"/>
1875    </field>
1876  </instruction>
1877
1878  <instruction name="PIPE_CONTROL" bias="2" length="5">
1879    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1880    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1881    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
1882    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1883    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1884    <field name="Store Data Index" start="53" end="53" type="uint"/>
1885    <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
1886    <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
1887    <field name="TLB Invalidate" start="50" end="50" type="bool"/>
1888    <field name="Synchronize GFDT Surface" start="49" end="49" type="bool"/>
1889    <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
1890    <field name="Post Sync Operation" start="46" end="47" type="uint">
1891      <value name="No Write" value="0"/>
1892      <value name="Write Immediate Data" value="1"/>
1893      <value name="Write PS Depth Count" value="2"/>
1894      <value name="Write Timestamp" value="3"/>
1895    </field>
1896    <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
1897    <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
1898    <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
1899    <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
1900    <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
1901    <field name="Notify Enable" start="40" end="40" type="bool"/>
1902    <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
1903    <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
1904    <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
1905    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
1906    <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
1907    <field name="Address" start="67" end="95" type="address"/>
1908    <field name="Destination Address Type" start="66" end="66" type="uint" prefix="DAT">
1909      <value name="GGTT" value="1"/>
1910    </field>
1911    <field name="Immediate Data" start="96" end="159" type="uint"/>
1912  </instruction>
1913
1914  <instruction name="STATE_BASE_ADDRESS" bias="2" length="10">
1915    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1916    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1917    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1918    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
1919    <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
1920    <field name="General State Base Address" start="44" end="63" type="address"/>
1921    <field name="General State Memory Object Control State" start="40" end="43" type="MEMORY_OBJECT_CONTROL_STATE"/>
1922    <field name="General State MOCS" start="40" end="43" type="uint"/>
1923    <field name="Stateless Data Port Access Memory Object Control State" start="36" end="39" type="MEMORY_OBJECT_CONTROL_STATE"/>
1924    <field name="Stateless Data Port Access MOCS" start="36" end="39" type="uint"/>
1925    <field name="Stateless Data Port Access Force Write Thru" start="35" end="35" type="uint"/>
1926    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
1927    <field name="Surface State Base Address" start="76" end="95" type="address"/>
1928    <field name="Surface State Memory Object Control State" start="72" end="75" type="MEMORY_OBJECT_CONTROL_STATE"/>
1929    <field name="Surface State MOCS" start="72" end="75" type="uint"/>
1930    <field name="Surface State Base Address Modify Enable" start="64" end="64" type="bool"/>
1931    <field name="Dynamic State Base Address" start="108" end="127" type="address"/>
1932    <field name="Dynamic State Memory Object Control State" start="104" end="107" type="MEMORY_OBJECT_CONTROL_STATE"/>
1933    <field name="Dynamic State MOCS" start="104" end="107" type="uint"/>
1934    <field name="Dynamic State Base Address Modify Enable" start="96" end="96" type="bool"/>
1935    <field name="Indirect Object Base Address" start="140" end="159" type="address"/>
1936    <field name="Indirect Object Memory Object Control State" start="136" end="139" type="MEMORY_OBJECT_CONTROL_STATE"/>
1937    <field name="Indirect Object MOCS" start="136" end="139" type="uint"/>
1938    <field name="Indirect Object Base Address Modify Enable" start="128" end="128" type="bool"/>
1939    <field name="Instruction Base Address" start="172" end="191" type="address"/>
1940    <field name="Instruction Memory Object Control State" start="168" end="171" type="MEMORY_OBJECT_CONTROL_STATE"/>
1941    <field name="Instruction MOCS" start="168" end="171" type="uint"/>
1942    <field name="Instruction Base Address Modify Enable" start="160" end="160" type="bool"/>
1943    <field name="General State Access Upper Bound" start="204" end="223" type="address"/>
1944    <field name="General State Access Upper Bound Modify Enable" start="192" end="192" type="bool"/>
1945    <field name="Dynamic State Access Upper Bound" start="236" end="255" type="address"/>
1946    <field name="Dynamic State Access Upper Bound Modify Enable" start="224" end="224" type="bool"/>
1947    <field name="Indirect Object Access Upper Bound" start="268" end="287" type="address"/>
1948    <field name="Indirect Object Access Upper Bound Modify Enable" start="256" end="256" type="bool"/>
1949    <field name="Instruction Access Upper Bound" start="300" end="319" type="address"/>
1950    <field name="Instruction Access Upper Bound Modify Enable" start="288" end="288" type="bool"/>
1951  </instruction>
1952
1953  <instruction name="STATE_PREFETCH" bias="2" length="2">
1954    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1955    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1956    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1957    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
1958    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1959    <field name="Prefetch Pointer" start="38" end="63" type="address"/>
1960    <field name="Prefetch Count" start="32" end="34" type="uint"/>
1961  </instruction>
1962
1963  <instruction name="STATE_SIP" bias="2" length="2">
1964    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1965    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1966    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1967    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1968    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1969    <field name="System Instruction Pointer" start="36" end="63" type="offset"/>
1970  </instruction>
1971
1972</genxml>
1973