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