1<?xml version="1.0" ?>
2<genxml name="SNB" gen="6">
3
4  <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
5    <value name="ONE" value="1"/>
6    <value name="SRC_COLOR" value="2"/>
7    <value name="SRC_ALPHA" value="3"/>
8    <value name="DST_ALPHA" value="4"/>
9    <value name="DST_COLOR" value="5"/>
10    <value name="SRC_ALPHA_SATURATE" value="6"/>
11    <value name="CONST_COLOR" value="7"/>
12    <value name="CONST_ALPHA" value="8"/>
13    <value name="SRC1_COLOR" value="9"/>
14    <value name="SRC1_ALPHA" value="10"/>
15    <value name="ZERO" value="17"/>
16    <value name="INV_SRC_COLOR" value="18"/>
17    <value name="INV_SRC_ALPHA" value="19"/>
18    <value name="INV_DST_ALPHA" value="20"/>
19    <value name="INV_DST_COLOR" value="21"/>
20    <value name="INV_CONST_COLOR" value="23"/>
21    <value name="INV_CONST_ALPHA" value="24"/>
22    <value name="INV_SRC1_COLOR" value="25"/>
23    <value name="INV_SRC1_ALPHA" value="26"/>
24  </enum>
25
26  <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
27    <value name="ADD" value="0"/>
28    <value name="SUBTRACT" value="1"/>
29    <value name="REVERSE_SUBTRACT" value="2"/>
30    <value name="MIN" value="3"/>
31    <value name="MAX" value="4"/>
32  </enum>
33
34  <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
35    <value name="ALWAYS" value="0"/>
36    <value name="NEVER" value="1"/>
37    <value name="LESS" value="2"/>
38    <value name="EQUAL" value="3"/>
39    <value name="LEQUAL" value="4"/>
40    <value name="GREATER" value="5"/>
41    <value name="NOTEQUAL" value="6"/>
42    <value name="GEQUAL" value="7"/>
43  </enum>
44
45  <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
46    <value name="CLEAR" value="0"/>
47    <value name="NOR" value="1"/>
48    <value name="AND_INVERTED" value="2"/>
49    <value name="COPY_INVERTED" value="3"/>
50    <value name="AND_REVERSE" value="4"/>
51    <value name="INVERT" value="5"/>
52    <value name="XOR" value="6"/>
53    <value name="NAND" value="7"/>
54    <value name="AND" value="8"/>
55    <value name="EQUIV" value="9"/>
56    <value name="NOOP" value="10"/>
57    <value name="OR_INVERTED" value="11"/>
58    <value name="COPY" value="12"/>
59    <value name="OR_REVERSE" value="13"/>
60    <value name="OR" value="14"/>
61    <value name="SET" value="15"/>
62  </enum>
63
64  <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
65    <value name="POINTLIST" value="1"/>
66    <value name="LINELIST" value="2"/>
67    <value name="LINESTRIP" value="3"/>
68    <value name="TRILIST" value="4"/>
69    <value name="TRISTRIP" value="5"/>
70    <value name="TRIFAN" value="6"/>
71    <value name="QUADLIST" value="7"/>
72    <value name="QUADSTRIP" value="8"/>
73    <value name="LINELIST_ADJ" value="9"/>
74    <value name="LINESTRIP_ADJ" value="10"/>
75    <value name="TRILIST_ADJ" value="11"/>
76    <value name="TRISTRIP_ADJ" value="12"/>
77    <value name="TRISTRIP_REVERSE" value="13"/>
78    <value name="POLYGON" value="14"/>
79    <value name="RECTLIST" value="15"/>
80    <value name="LINELOOP" value="16"/>
81    <value name="POINTLIST _BF" value="17"/>
82    <value name="LINESTRIP_CONT" value="18"/>
83    <value name="LINESTRIP_BF" value="19"/>
84    <value name="LINESTRIP_CONT_BF" value="20"/>
85    <value name="TRIFAN_NOSTIPPLE" value="22"/>
86  </enum>
87
88  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
89    <value name="KEEP" value="0"/>
90    <value name="ZERO" value="1"/>
91    <value name="REPLACE" value="2"/>
92    <value name="INCRSAT" value="3"/>
93    <value name="DECRSAT" value="4"/>
94    <value name="INCR" value="5"/>
95    <value name="DECR" value="6"/>
96    <value name="INVERT" value="7"/>
97  </enum>
98
99  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
100    <value name="NOSTORE" value="0"/>
101    <value name="STORE_SRC" value="1"/>
102    <value name="STORE_0" value="2"/>
103    <value name="STORE_1_FP" value="3"/>
104    <value name="STORE_1_INT" value="4"/>
105    <value name="STORE_VID" value="5"/>
106    <value name="STORE_IID" value="6"/>
107    <value name="STORE_PID" value="7"/>
108  </enum>
109
110  <enum name="Texture Coordinate Mode" prefix="TCM">
111    <value name="WRAP" value="0"/>
112    <value name="MIRROR" value="1"/>
113    <value name="CLAMP" value="2"/>
114    <value name="CUBE" value="3"/>
115    <value name="CLAMP_BORDER" value="4"/>
116    <value name="MIRROR_ONCE" value="5"/>
117  </enum>
118
119  <struct name="3DSTATE_CONSTANT_BODY" length="4">
120    <field name="Constant Buffer 0 Read Length" start="0" end="4" type="uint"/>
121    <field name="Pointer to Constant Buffer 0" start="5" end="31" type="offset"/>
122    <field name="Constant Buffer 1 Read Length" start="32" end="36" type="uint"/>
123    <field name="Pointer to Constant Buffer 1" start="37" end="63" type="address"/>
124    <field name="Constant Buffer 2 Read Length" start="64" end="68" type="uint"/>
125    <field name="Pointer to Constant Buffer 2" start="69" end="95" type="address"/>
126    <field name="Constant Buffer 3 Read Length" start="96" end="100" type="uint"/>
127    <field name="Pointer to Constant Buffer 3" start="101" end="127" type="address"/>
128  </struct>
129
130  <struct name="BINDING_TABLE_STATE" length="1">
131    <field name="Surface State Pointer" start="5" end="31" type="offset"/>
132  </struct>
133
134  <struct name="BLEND_STATE_ENTRY" length="2">
135    <field name="Destination Blend Factor" start="0" end="4" type="3D_Color_Buffer_Blend_Factor"/>
136    <field name="Source Blend Factor" start="5" end="9" type="3D_Color_Buffer_Blend_Factor"/>
137    <field name="Color Blend Function" start="11" end="13" type="3D_Color_Buffer_Blend_Function"/>
138    <field name="Destination Alpha Blend Factor" start="15" end="19" type="3D_Color_Buffer_Blend_Factor"/>
139    <field name="Source Alpha Blend Factor" start="20" end="24" type="3D_Color_Buffer_Blend_Factor"/>
140    <field name="Alpha Blend Function" start="26" end="28" type="3D_Color_Buffer_Blend_Function"/>
141    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
142    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
143    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
144    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
145    <field name="Color Clamp Range" start="34" end="35" type="uint">
146      <value name="COLORCLAMP_UNORM" value="0"/>
147      <value name="COLORCLAMP_SNORM" value="1"/>
148      <value name="COLORCLAMP_RTFORMAT" value="2"/>
149    </field>
150    <field name="Y Dither Offset" start="40" end="41" type="uint"/>
151    <field name="X Dither Offset" start="42" end="43" type="uint"/>
152    <field name="Color Dither Enable" start="44" end="44" type="bool"/>
153    <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
154    <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
155    <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
156    <field name="Logic Op Enable" start="54" end="54" type="bool"/>
157    <field name="Write Disable Blue" start="56" end="56" type="bool"/>
158    <field name="Write Disable Green" start="57" end="57" type="bool"/>
159    <field name="Write Disable Red" start="58" end="58" type="bool"/>
160    <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
161    <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
162    <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
163    <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
164  </struct>
165
166  <struct name="BLEND_STATE" length="0">
167    <group count="0" start="0" size="64">
168      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
169    </group>
170  </struct>
171
172  <struct name="CC_VIEWPORT" length="2">
173    <field name="Minimum Depth" start="0" end="31" type="float"/>
174    <field name="Maximum Depth" start="32" end="63" type="float"/>
175  </struct>
176
177  <struct name="CLIP_VIEWPORT" length="4">
178    <field name="XMin Clip Guardband" start="0" end="31" type="float"/>
179    <field name="XMax Clip Guardband" start="32" end="63" type="float"/>
180    <field name="YMin Clip Guardband" start="64" end="95" type="float"/>
181    <field name="YMax Clip Guardband" start="96" end="127" type="float"/>
182  </struct>
183
184  <struct name="COLOR_CALC_STATE" length="6">
185    <field name="Alpha Test Format" start="0" end="0" type="uint">
186      <value name="ALPHATEST_UNORM8" value="0"/>
187      <value name="ALPHATEST_FLOAT32" value="1"/>
188    </field>
189    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
190    <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
191    <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
192    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
193    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
194    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
195    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
196    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
197    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
198  </struct>
199
200  <struct name="DEPTH_STENCIL_STATE" length="3">
201    <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
202    <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
203    <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
204    <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
205    <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
206    <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
207    <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
208    <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
209    <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
210    <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
211    <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
212    <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
213    <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
214    <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
215    <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
216    <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
217    <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/>
218    <field name="Depth Test Enable" start="95" end="95" type="bool"/>
219  </struct>
220
221  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
222    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
223    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
224    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
225    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
226    <field name="Floating Point Mode" start="48" end="48" type="uint">
227      <value name="IEEE-754" value="0"/>
228      <value name="Alternate" value="1"/>
229    </field>
230    <field name="Thread Priority" start="49" end="49" type="uint">
231      <value name="Normal Priority" value="0"/>
232      <value name="High Priority" value="1"/>
233    </field>
234    <field name="Single Program Flow" start="50" end="50" type="bool"/>
235    <field name="Sampler Count" start="66" end="68" type="uint">
236      <value name="No samplers used" value="0"/>
237      <value name="Between 1 and 4 samplers used" value="1"/>
238      <value name="Between 5 and 8 samplers used" value="2"/>
239      <value name="Between 9 and 12 samplers used" value="3"/>
240      <value name="Between 13 and 16 samplers used" value="4"/>
241    </field>
242    <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
243    <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
244    <field name="Binding Table Pointer" start="101" end="127" type="offset"/>
245    <field name="Constant URB Entry Read Offset" start="128" end="143" type="uint"/>
246    <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
247    <field name="Barrier ID" start="160" end="163" type="uint"/>
248    <field name="Barrier Return Byte" start="168" end="175" type="uint"/>
249    <field name="Barrier Return GRF Offset" start="184" end="191" type="uint"/>
250  </struct>
251
252  <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
253    <field name="Cacheability Control" start="0" end="1" type="uint"/>
254    <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
255  </struct>
256
257  <struct name="PALETTE_ENTRY" length="1">
258    <field name="Blue" start="0" end="7" type="uint"/>
259    <field name="Green" start="8" end="15" type="uint"/>
260    <field name="Red" start="16" end="23" type="uint"/>
261    <field name="Alpha" start="24" end="31" type="uint"/>
262  </struct>
263
264  <struct name="RENDER_SURFACE_STATE" length="6">
265    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
266    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
267    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
268    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
269    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
270    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
271    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
272      <value name="NORMAL_MODE" value="0"/>
273      <value name="PROGRESSIVE_FRAME" value="2"/>
274      <value name="INTERLACED_FRAME" value="3"/>
275    </field>
276    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
277      <value name="WRITE_ONLY" value="0"/>
278      <value name="READ_WRITE" value="1"/>
279    </field>
280    <field name="Cube Map Corner Mode" start="9" end="9" type="uint">
281      <value name="CUBE_REPLICATE" value="0"/>
282      <value name="CUBE_AVERAGE" value="1"/>
283    </field>
284    <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
285      <value name="MIPLAYOUT_BELOW" value="0"/>
286      <value name="MIPLAYOUT_RIGHT" value="1"/>
287    </field>
288    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
289    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
290    <field name="Surface Format" start="18" end="26" type="uint"/>
291    <field name="Data Return Format" start="27" end="27" type="uint">
292      <value name="DATA_RETURN_FLOAT32" value="0"/>
293    </field>
294    <field name="Surface Type" start="29" end="31" type="uint">
295      <value name="SURFTYPE_1D" value="0"/>
296      <value name="SURFTYPE_2D" value="1"/>
297      <value name="SURFTYPE_3D" value="2"/>
298      <value name="SURFTYPE_CUBE" value="3"/>
299      <value name="SURFTYPE_BUFFER" value="4"/>
300      <value name="SURFTYPE_NULL" value="7"/>
301    </field>
302    <field name="Surface Base Address" start="32" end="63" type="address"/>
303    <field name="Render Target Rotation" start="64" end="65" type="uint">
304      <value name="RTROTATE_0DEG" value="0"/>
305      <value name="RTROTATE_90DEG" value="1"/>
306      <value name="RTROTATE_270DEG" value="3"/>
307    </field>
308    <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
309    <field name="Width" start="70" end="82" type="uint"/>
310    <field name="Height" start="83" end="95" type="uint"/>
311    <field name="Tile Walk" start="96" end="96" type="uint">
312      <value name="TILEWALK_XMAJOR" value="0"/>
313      <value name="TILEWALK_YMAJOR" value="1"/>
314    </field>
315    <field name="Tiled Surface" start="97" end="97" type="bool"/>
316    <field name="Surface Pitch" start="99" end="115" type="uint"/>
317    <field name="Depth" start="117" end="127" type="uint"/>
318    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
319    <field name="Number of Multisamples" start="132" end="134" type="uint">
320      <value name="MULTISAMPLECOUNT_1" value="0"/>
321      <value name="MULTISAMPLECOUNT_4" value="2"/>
322    </field>
323    <field name="Render Target View Extent" start="136" end="144" type="uint"/>
324    <field name="Minimum Array Element" start="145" end="155" type="uint"/>
325    <field name="Surface Min LOD" start="156" end="159" type="uint"/>
326    <field name="MOCS" start="176" end="179" type="uint"/>
327    <field name="Y Offset" start="180" end="183" type="uint"/>
328    <field name="Surface Vertical Alignment" start="184" end="184" type="uint">
329      <value name="VALIGN_2" value="0"/>
330      <value name="VALIGN_4" value="1"/>
331    </field>
332    <field name="X Offset" start="185" end="191" type="uint"/>
333  </struct>
334
335  <struct name="SAMPLER_BORDER_COLOR_STATE" length="12">
336    <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
337    <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
338    <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
339    <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>
340    <field name="Border Color Float Red" start="32" end="63" type="float"/>
341    <field name="Border Color Float Green" start="64" end="95" type="float"/>
342    <field name="Border Color Float Blue" start="96" end="127" type="float"/>
343    <field name="Border Color Float Alpha" start="128" end="159" type="float"/>
344    <field name="Border Color Float16 Red" start="160" end="175" type="uint"/>
345    <field name="Border Color Float16 Green" start="176" end="191" type="uint"/>
346    <field name="Border Color Float16 Blue" start="192" end="207" type="uint"/>
347    <field name="Border Color Float16 Alpha" start="208" end="223" type="uint"/>
348    <field name="Border Color Unorm16 Red" start="224" end="239" type="uint"/>
349    <field name="Border Color Unorm16 Green" start="240" end="255" type="uint"/>
350    <field name="Border Color Unorm16 Blue" start="256" end="271" type="uint"/>
351    <field name="Border Color Unorm16 Alpha" start="272" end="287" type="uint"/>
352    <field name="Border Color Snorm16 Red" start="288" end="303" type="int"/>
353    <field name="Border Color Snorm16 Green" start="304" end="319" type="int"/>
354    <field name="Border Color Snorm16 Blue" start="320" end="335" type="int"/>
355    <field name="Border Color Snorm16 Alpha" start="336" end="351" type="int"/>
356    <field name="Border Color Snorm8 Red" start="352" end="359" type="int"/>
357    <field name="Border Color Snorm8 Green" start="360" end="367" type="int"/>
358    <field name="Border Color Snorm8 Blue" start="368" end="375" type="int"/>
359    <field name="Border Color Snorm8 Alpha" start="376" end="383" type="int"/>
360  </struct>
361
362  <struct name="SAMPLER_STATE" length="4">
363    <field name="Shadow Function" start="0" end="2" type="uint">
364      <value name="PREFILTEROP_ALWAYS" value="0"/>
365      <value name="PREFILTEROP_NEVER" value="1"/>
366      <value name="PREFILTEROP_LESS" value="2"/>
367      <value name="PREFILTEROP_EQUAL" value="3"/>
368      <value name="PREFILTEROP_LEQUAL" value="4"/>
369      <value name="PREFILTEROP_GREATER" value="5"/>
370      <value name="PREFILTEROP_NOTEQUAL" value="6"/>
371      <value name="PREFILTEROP_GEQUAL" value="7"/>
372    </field>
373    <field name="Texture LOD Bias" start="3" end="13" type="s4.6"/>
374    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER"/>
375    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
376      <value name="NEAREST" value="0"/>
377      <value name="LINEAR" value="1"/>
378      <value name="ANISOTROPIC" value="2"/>
379      <value name="MONO" value="6"/>
380    </field>
381    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
382      <value name="NONE" value="0"/>
383      <value name="NEAREST" value="1"/>
384      <value name="LINEAR" value="3"/>
385    </field>
386    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
387    <field name="Min and Mag State Not Equal" start="27" end="27" type="uint">
388      <value name="MIN_MAG_EQ" value="0"/>
389      <value name="MIN_MAG_NEQ" value="1"/>
390    </field>
391    <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
392      <value name="OGL" value="1"/>
393    </field>
394    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
395      <value name="DX10/OGL" value="0"/>
396      <value name="DX9" value="1"/>
397    </field>
398    <field name="Sampler Disable" start="31" end="31" type="bool"/>
399    <field name="TCZ Address Control Mode" start="32" end="34" type="Texture Coordinate Mode"/>
400    <field name="TCY Address Control Mode" start="35" end="37" type="Texture Coordinate Mode"/>
401    <field name="TCX Address Control Mode" start="38" end="40" type="Texture Coordinate Mode"/>
402    <field name="Cube Surface Control Mode" start="41" end="41" type="uint">
403      <value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
404      <value name="CUBECTRLMODE_OVERRIDE" value="1"/>
405    </field>
406    <field name="Max LOD" start="44" end="53" type="u4.6"/>
407    <field name="Min LOD" start="54" end="63" type="u4.6"/>
408    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
409    <field name="Non-normalized Coordinate Enable" start="96" end="96" type="bool"/>
410    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
411    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
412    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
413    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
414    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
415    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
416    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
417      <value name="RATIO 2:1" value="0"/>
418      <value name="RATIO 4:1" value="1"/>
419      <value name="RATIO 6:1" value="2"/>
420      <value name="RATIO 8:1" value="3"/>
421      <value name="RATIO 10:1" value="4"/>
422      <value name="RATIO 12:1" value="5"/>
423      <value name="RATIO 14:1" value="6"/>
424      <value name="RATIO 16:1" value="7"/>
425    </field>
426    <field name="ChromaKey Mode" start="118" end="118" type="uint">
427      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
428      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
429    </field>
430    <field name="ChromaKey Index" start="119" end="120" type="uint"/>
431    <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
432    <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
433    <field name="Monochrome Filter Height: Reserved" start="125" end="127" type="uint"/>
434  </struct>
435
436  <struct name="SCISSOR_RECT" length="2">
437    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
438    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
439    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
440    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
441  </struct>
442
443  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
444    <field name="Source Attribute" start="0" end="4" type="uint"/>
445    <field name="Swizzle Select" start="6" end="7" type="uint">
446      <value name="INPUTATTR" value="0"/>
447      <value name="INPUTATTR_FACING" value="1"/>
448      <value name="INPUTATTR_W" value="2"/>
449      <value name="INPUTATTR_FACING_W" value="3"/>
450    </field>
451    <field name="Constant Source" start="9" end="10" type="uint">
452      <value name="CONST_0000" value="0"/>
453      <value name="CONST_0001_FLOAT" value="1"/>
454      <value name="CONST_1111_FLOAT" value="2"/>
455      <value name="PRIM_ID" value="3"/>
456    </field>
457    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
458    <field name="Component Override X" start="12" end="12" type="bool"/>
459    <field name="Component Override Y" start="13" end="13" type="bool"/>
460    <field name="Component Override Z" start="14" end="14" type="bool"/>
461    <field name="Component Override W" start="15" end="15" type="bool"/>
462  </struct>
463
464  <struct name="SF_VIEWPORT" length="8">
465    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
466    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
467    <field name="Viewport Matrix Element m22" start="64" end="95" type="float">
468      <value name="Excludes DWord (0,1)" value="0"/>
469    </field>
470    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
471    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
472    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
473  </struct>
474
475  <struct name="VERTEX_BUFFER_STATE" length="4">
476    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
477    <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
478    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
479    <field name="MOCS" start="16" end="19" type="uint"/>
480    <field name="Buffer Access Type" start="20" end="20" type="uint">
481      <value name="VERTEXDATA" value="0"/>
482      <value name="INSTANCEDATA" value="1"/>
483    </field>
484    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
485    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
486    <field name="End Address" start="64" end="95" type="address"/>
487    <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
488  </struct>
489
490  <struct name="VERTEX_ELEMENT_STATE" length="2">
491    <field name="Source Element Offset" start="0" end="11" type="uint"/>
492    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
493    <field name="Source Element Format" start="16" end="24" type="uint"/>
494    <field name="Valid" start="25" end="25" type="bool"/>
495    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
496    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
497    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
498    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
499    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
500  </struct>
501
502  <instruction name="3DPRIMITIVE" bias="2" length="6" engine="render">
503    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
504    <field name="Internal Vertex Count" start="9" end="9" type="uint"/>
505    <field name="Primitive Topology Type" start="10" end="14" type="3D_Prim_Topo_Type"/>
506    <field name="Vertex Access Type" start="15" end="15" type="uint">
507      <value name="SEQUENTIAL" value="0"/>
508      <value name="RANDOM" value="1"/>
509    </field>
510    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
511    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
512    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
513    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
514    <field name="Vertex Count Per Instance" start="32" end="63" type="uint"/>
515    <field name="Start Vertex Location" start="64" end="95" type="uint"/>
516    <field name="Instance Count" start="96" end="127" type="uint">
517      <value name="UNDEFINED" value="0"/>
518      <value name="'non-instanced' operation" value="1"/>
519    </field>
520    <field name="Start Instance Location" start="128" end="159" type="uint"/>
521    <field name="Base Vertex Location" start="160" end="191" type="int"/>
522  </instruction>
523
524  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
525    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
526    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
527    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
528    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
529    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
530    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
531    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
532    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
533    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
534  </instruction>
535
536  <instruction name="3DSTATE_BINDING_TABLE_POINTERS" bias="2" length="4" engine="render">
537    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
538    <field name="VS Binding Table Change" start="8" end="8" type="bool"/>
539    <field name="GS Binding Table Change" start="9" end="9" type="bool"/>
540    <field name="PS Binding Table Change" start="12" end="12" type="bool"/>
541    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
542    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
543    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
544    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
545    <field name="Pointer to VS Binding Table" start="37" end="63" type="offset"/>
546    <field name="Pointer to GS Binding Table" start="69" end="95" type="offset"/>
547    <field name="Pointer to PS Binding Table" start="101" end="127" type="offset"/>
548  </instruction>
549
550  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="4" engine="render">
551    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
552    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
553    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
554    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
555    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
556    <field name="BLEND_STATE Change" start="32" end="32" type="bool"/>
557    <field name="Pointer to BLEND_STATE" start="38" end="63" type="offset"/>
558    <field name="DEPTH_STENCIL_STATE Change" start="64" end="64" type="bool"/>
559    <field name="Pointer to DEPTH_STENCIL_STATE" start="70" end="95" type="offset"/>
560    <field name="Color Calc State Pointer Valid" start="96" end="96" type="bool"/>
561    <field name="Color Calc State Pointer" start="102" end="127" type="offset"/>
562  </instruction>
563
564  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4" engine="render">
565    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
566    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
567    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
568    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
569    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
570    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
571    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
572    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
573  </instruction>
574
575  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="2" engine="render">
576    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
577    <field name="Depth Clear Value Valid" start="15" end="15" type="bool"/>
578    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
579    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
580    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
581    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
582    <field name="Depth Clear Value" start="32" end="63" type="uint"/>
583  </instruction>
584
585  <instruction name="3DSTATE_CLIP" bias="2" length="4" engine="render">
586    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
587    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
588    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
589    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
590    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
591    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
592    <field name="Statistics Enable" start="42" end="42" type="bool"/>
593    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint">
594      <value name="Vertex 0" value="0"/>
595      <value name="Vertex 1" value="1"/>
596      <value name="Vertex 2" value="2"/>
597    </field>
598    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint">
599      <value name="Vertex 0" value="0"/>
600      <value name="Vertex 1" value="1"/>
601    </field>
602    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint">
603      <value name="Vertex 0" value="0"/>
604      <value name="Vertex 1" value="1"/>
605      <value name="Vertex 2" value="2"/>
606    </field>
607    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
608    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
609    <field name="Clip Mode" start="77" end="79" type="uint">
610      <value name="CLIPMODE_NORMAL" value="0"/>
611      <value name="CLIPMODE_REJECT_ALL" value="3"/>
612      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
613    </field>
614    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
615    <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
616    <field name="Viewport Z Clip Test Enable" start="91" end="91" type="bool"/>
617    <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
618    <field name="API Mode" start="94" end="94" type="uint">
619      <value name="APIMODE_OGL" value="0"/>
620      <value name="APIMODE_D3D" value="1"/>
621    </field>
622    <field name="Clip Enable" start="95" end="95" type="bool"/>
623    <field name="Maximum VP Index" start="96" end="99" type="uint"/>
624    <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
625    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
626    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
627  </instruction>
628
629  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="5" engine="render">
630    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
631    <field name="MOCS" start="8" end="11" type="uint"/>
632    <field name="Buffer 0 Valid" start="12" end="12" type="bool"/>
633    <field name="Buffer 1 Valid" start="13" end="13" type="bool"/>
634    <field name="Buffer 2 Valid" start="14" end="14" type="bool"/>
635    <field name="Buffer 3 Valid" start="15" end="15" type="bool"/>
636    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
637    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
638    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
639    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
640    <field name="Constant Body" start="32" end="159" type="3DSTATE_CONSTANT_BODY"/>
641  </instruction>
642
643  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="5" engine="render">
644    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
645    <field name="MOCS" start="8" end="11" type="uint"/>
646    <field name="Buffer 0 Valid" start="12" end="12" type="bool"/>
647    <field name="Buffer 1 Valid" start="13" end="13" type="bool"/>
648    <field name="Buffer 2 Valid" start="14" end="14" type="bool"/>
649    <field name="Buffer 3 Valid" start="15" end="15" type="bool"/>
650    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
651    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
652    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
653    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
654    <field name="Constant Body" start="32" end="159" type="3DSTATE_CONSTANT_BODY"/>
655  </instruction>
656
657  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="5" engine="render">
658    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
659    <field name="MOCS" start="8" end="11" type="uint"/>
660    <field name="Buffer 0 Valid" start="12" end="12" type="bool"/>
661    <field name="Buffer 1 Valid" start="13" end="13" type="bool"/>
662    <field name="Buffer 2 Valid" start="14" end="14" type="bool"/>
663    <field name="Buffer 3 Valid" start="15" end="15" type="bool"/>
664    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
665    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
666    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
667    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
668    <field name="Constant Body" start="32" end="159" type="3DSTATE_CONSTANT_BODY"/>
669  </instruction>
670
671  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="7" engine="render">
672    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
673    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
674    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
675    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
676    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
677    <field name="Surface Pitch" start="32" end="48" type="uint"/>
678    <field name="Surface Format" start="50" end="52" type="uint">
679      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
680      <value name="D32_FLOAT" value="1"/>
681      <value name="D24_UNORM_S8_UINT" value="2"/>
682      <value name="D24_UNORM_X8_UINT" value="3"/>
683      <value name="D16_UNORM" value="5"/>
684    </field>
685    <field name="Separate Stencil Buffer Enable" start="53" end="53" type="bool"/>
686    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
687    <field name="Software Tiled Rendering Mode" start="55" end="56" type="uint">
688      <value name="NORMAL" value="0"/>
689      <value name="STR1" value="1"/>
690      <value name="STR2" value="3"/>
691    </field>
692    <field name="Tile Walk" start="58" end="58" type="uint">
693      <value name="TILEWALK_YMAJOR" value="1"/>
694    </field>
695    <field name="Tiled Surface" start="59" end="59" type="bool"/>
696    <field name="Surface Type" start="61" end="63" type="uint">
697      <value name="SURFTYPE_1D" value="0"/>
698      <value name="SURFTYPE_2D" value="1"/>
699      <value name="SURFTYPE_3D" value="2"/>
700      <value name="SURFTYPE_CUBE" value="3"/>
701      <value name="SURFTYPE_NULL" value="7"/>
702    </field>
703    <field name="Surface Base Address" start="64" end="95" type="address"/>
704    <field name="MIP Map Layout Mode" start="97" end="97" type="uint">
705      <value name="MIPLAYOUT_BELOW" value="0"/>
706      <value name="MIPLAYOUT_RIGHT" value="1"/>
707    </field>
708    <field name="LOD" start="98" end="101" type="uint"/>
709    <field name="Width" start="102" end="114" type="uint"/>
710    <field name="Height" start="115" end="127" type="uint"/>
711    <field name="Render Target View Extent" start="129" end="137" type="uint"/>
712    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
713    <field name="Depth" start="149" end="159" type="uint"/>
714    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
715    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
716    <field name="MOCS" start="219" end="223" type="uint"/>
717  </instruction>
718
719  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
720    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
721    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
722    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
723    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
724    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
725    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
726    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
727    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
728    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
729    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
730    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
731  </instruction>
732
733  <instruction name="3DSTATE_GS" bias="2" length="7" engine="render">
734    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
735    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
736    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
737    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
738    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
739    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
740    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
741    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
742    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
743    <field name="Floating Point Mode" start="80" end="80" type="uint">
744      <value name="IEEE-754" value="0"/>
745      <value name="Alternate" value="1"/>
746    </field>
747    <field name="Thread Priority" start="81" end="81" type="uint">
748      <value name="Normal Priority" value="0"/>
749      <value name="High Priority" value="1"/>
750    </field>
751    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
752    <field name="Sampler Count" start="91" end="93" type="uint">
753      <value name="No Samplers" value="0"/>
754      <value name="1-4 Samplers" value="1"/>
755      <value name="5-8 Samplers" value="2"/>
756      <value name="9-12 Samplers" value="3"/>
757      <value name="13-16 Samplers" value="4"/>
758    </field>
759    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
760    <field name="Single Program Flow" start="95" end="95" type="bool"/>
761    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
762    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
763    <field name="Dispatch GRF Start Register For URB Data" start="128" end="131" type="uint"/>
764    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
765    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
766    <field name="Rendering Enabled" start="168" end="168" type="uint"/>
767    <field name="SO Statistics Enable" start="169" end="169" type="bool"/>
768    <field name="Statistics Enable" start="170" end="170" type="bool"/>
769    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
770    <field name="Enable" start="207" end="207" type="bool"/>
771    <field name="SVBI Post-Increment Value" start="208" end="217" type="uint"/>
772    <field name="SVBI Post-Increment Enable" start="219" end="219" type="bool"/>
773    <field name="SVBI Payload Enable" start="220" end="220" type="bool"/>
774    <field name="Discard Adjacency" start="221" end="221" type="bool"/>
775    <field name="Reorder Mode" start="222" end="222" type="uint">
776      <value name="LEADING" value="0"/>
777      <value name="TRAILING" value="1"/>
778    </field>
779  </instruction>
780
781  <instruction name="3DSTATE_GS_SVB_INDEX" bias="2" length="7" engine="render">
782    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
783    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
784    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
785    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
786    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
787    <field name="Load Internal Vertex Count" start="32" end="32" type="uint"/>
788    <field name="Index Number" start="61" end="62" type="uint"/>
789    <field name="Streamed Vertex Buffer Index" start="64" end="95" type="uint"/>
790    <field name="Maximum Index" start="96" end="127" type="uint"/>
791  </instruction>
792
793  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="3" engine="render">
794    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
795    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
796    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
797    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
798    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
799    <field name="Surface Pitch" start="32" end="48" type="uint"/>
800    <field name="MOCS" start="57" end="60" type="uint"/>
801    <field name="Surface Base Address" start="64" end="95" type="address"/>
802  </instruction>
803
804  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3" engine="render">
805    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
806    <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
807      <value name="BYTE" value="0"/>
808      <value name="WORD" value="1"/>
809      <value name="DWORD" value="2"/>
810    </field>
811    <field name="Cut Index Enable" start="10" end="10" type="bool"/>
812    <field name="MOCS" start="12" end="15" type="uint"/>
813    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
814    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
815    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
816    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
817    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
818    <field name="Buffer Ending Address" start="64" end="95" type="address"/>
819  </instruction>
820
821  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
822    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
823    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
824    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
825    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
826    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
827    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
828    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
829    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
830    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
831    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
832    <field name="Line Stipple Inverse Repeat Count" start="80" end="95" type="u1.13"/>
833  </instruction>
834
835  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2" engine="render">
836    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
837    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
838    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
839    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
840    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
841    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
842    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
843  </instruction>
844
845  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="3" engine="render">
846    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
847    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
848    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
849    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
850    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
851    <field name="Number of Multisamples" start="33" end="35" type="uint">
852      <value name="NUMSAMPLES_1" value="0"/>
853      <value name="NUMSAMPLES_4" value="2"/>
854    </field>
855    <field name="Pixel Location" start="36" end="36" type="uint">
856      <value name="CENTER" value="0"/>
857      <value name="UL_CORNER" value="1"/>
858    </field>
859    <field name="Sample0 Y Offset" start="64" end="67" type="u0.4"/>
860    <field name="Sample0 X Offset" start="68" end="71" type="u0.4"/>
861    <field name="Sample1 Y Offset" start="72" end="75" type="u0.4"/>
862    <field name="Sample1 X Offset" start="76" end="79" type="u0.4"/>
863    <field name="Sample2 Y Offset" start="80" end="83" type="u0.4"/>
864    <field name="Sample2 X Offset" start="84" end="87" type="u0.4"/>
865    <field name="Sample3 Y Offset" start="88" end="91" type="u0.4"/>
866    <field name="Sample3 X Offset" start="92" end="95" type="u0.4"/>
867  </instruction>
868
869  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2" engine="render">
870    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
871    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
872    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
873    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
874    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
875    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
876    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
877  </instruction>
878
879  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
880    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
881    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
882    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
883    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
884    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
885    <group count="32" start="32" size="32">
886      <field name="Pattern Row" start="0" end="31" type="uint"/>
887    </group>
888  </instruction>
889
890  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2" engine="render">
891    <field name="DWord Length" start="0" end="7" type="uint"/>
892    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
893    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
894    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
895    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
896    <group count="0" start="32" size="32">
897      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
898    </group>
899  </instruction>
900
901  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2" engine="render">
902    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
903    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
904    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
905    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
906    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
907    <group count="0" start="32" size="32">
908      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
909      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
910      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
911      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
912    </group>
913  </instruction>
914
915  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS" bias="2" length="4" engine="render">
916    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
917    <field name="VS Sampler State Change" start="8" end="8" type="uint"/>
918    <field name="GS Sampler State Change" start="9" end="9" type="uint"/>
919    <field name="PS Sampler State Change" start="12" end="12" type="uint"/>
920    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
921    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
922    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
923    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
924    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
925    <field name="Pointer to GS Sampler State" start="69" end="95" type="offset"/>
926    <field name="Pointer to PS Sampler State" start="101" end="127" type="offset"/>
927  </instruction>
928
929  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2" engine="render">
930    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
931    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
932    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
933    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
934    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
935    <field name="Sample Mask" start="32" end="35" type="uint"/>
936  </instruction>
937
938  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2" engine="render">
939    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
940    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
941    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
942    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
943    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
944    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
945  </instruction>
946
947  <instruction name="3DSTATE_SF" bias="2" length="20" engine="render">
948    <field name="DWord Length" start="0" end="7" type="uint" default="18"/>
949    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
950    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
951    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
952    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
953    <field name="Vertex URB Entry Read Offset" start="36" end="41" type="uint"/>
954    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
955    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
956      <value name="UPPERLEFT" value="0"/>
957      <value name="LOWERLEFT" value="1"/>
958    </field>
959    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
960    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
961    <field name="Front Winding" start="64" end="64" type="uint">
962      <value name="FRONTWINDING_CW" value="0"/>
963      <value name="FRONTWINDING_CCW" value="1"/>
964    </field>
965    <field name="Viewport Transform Enable" start="65" end="65" type="bool"/>
966    <field name="BackFace Fill Mode" start="67" end="68" type="uint" prefix="FILL_MODE">
967      <value name="SOLID" value="0"/>
968      <value name="WIREFRAME" value="1"/>
969      <value name="POINT" value="2"/>
970    </field>
971    <field name="FrontFace Fill Mode" start="69" end="70" type="uint" prefix="FILL_MODE">
972      <value name="SOLID" value="0"/>
973      <value name="WIREFRAME" value="1"/>
974      <value name="POINT" value="2"/>
975    </field>
976    <field name="Global Depth Offset Enable Point" start="71" end="71" type="bool"/>
977    <field name="Global Depth Offset Enable Wireframe" start="72" end="72" type="bool"/>
978    <field name="Global Depth Offset Enable Solid" start="73" end="73" type="bool"/>
979    <field name="Statistics Enable" start="74" end="74" type="bool"/>
980    <field name="Legacy Global Depth Bias Enable" start="75" end="75" type="bool"/>
981    <field name="Multisample Rasterization Mode" start="104" end="105" type="uint">
982      <value name="MSRASTMODE_OFF_PIXEL" value="0"/>
983      <value name="MSRASTMODE_OFF_PATTERN" value="1"/>
984      <value name="MSRASTMODE_ON_PIXEL" value="2"/>
985      <value name="MSRASTMODE_ON_PATTERN" value="3"/>
986    </field>
987    <field name="Scissor Rectangle Enable" start="107" end="107" type="bool"/>
988    <field name="Line End Cap Antialiasing Region Width" start="112" end="113" type="uint">
989      <value name="0.5 pixels" value="0"/>
990      <value name="1.0 pixels" value="1"/>
991      <value name="2.0 pixels" value="2"/>
992      <value name="4.0 pixels" value="3"/>
993    </field>
994    <field name="Line Width" start="114" end="123" type="u3.7"/>
995    <field name="Cull Mode" start="125" end="126" type="uint" prefix="CULLMODE">
996      <value name="BOTH" value="0"/>
997      <value name="NONE" value="1"/>
998      <value name="FRONT" value="2"/>
999      <value name="BACK" value="3"/>
1000    </field>
1001    <field name="Antialiasing Enable" start="127" end="127" type="bool"/>
1002    <field name="Point Width" start="128" end="138" type="u8.3"/>
1003    <field name="Point Width Source" start="139" end="139" type="uint">
1004      <value name="Vertex" value="0"/>
1005      <value name="State" value="1"/>
1006    </field>
1007    <field name="Vertex Sub Pixel Precision Select" start="140" end="140" type="uint">
1008      <value name="8 Sub-Pixel Precision Bits" value="0"/>
1009      <value name="4 Sub-Pixel Precision Bits" value="1"/>
1010    </field>
1011    <field name="AA Line Distance Mode" start="142" end="142" type="uint">
1012      <value name="AALINEDISTANCE_TRUE" value="1"/>
1013    </field>
1014    <field name="Triangle Fan Provoking Vertex Select" start="153" end="154" type="uint">
1015      <value name="Vertex 0" value="0"/>
1016      <value name="Vertex 1" value="1"/>
1017      <value name="Vertex 2" value="2"/>
1018    </field>
1019    <field name="Line Strip/List Provoking Vertex Select" start="155" end="156" type="uint">
1020      <value name="Vertex 0" value="0"/>
1021      <value name="Vertex 1" value="1"/>
1022    </field>
1023    <field name="Triangle Strip/List Provoking Vertex Select" start="157" end="158" type="uint">
1024      <value name="Vertex 0" value="0"/>
1025      <value name="Vertex 1" value="1"/>
1026      <value name="Vertex 2" value="2"/>
1027    </field>
1028    <field name="Last Pixel Enable" start="159" end="159" type="bool"/>
1029    <field name="Global Depth Offset Constant" start="160" end="191" type="float"/>
1030    <field name="Global Depth Offset Scale" start="192" end="223" type="float"/>
1031    <field name="Global Depth Offset Clamp" start="224" end="255" type="float"/>
1032    <group count="16" start="256" size="16">
1033      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
1034    </group>
1035    <field name="Point Sprite Texture Coordinate Enable" start="512" end="543" type="uint"/>
1036    <field name="Constant Interpolation Enable" start="544" end="575" type="uint"/>
1037    <field name="Attribute 0 WrapShortest Enables" start="576" end="579" type="uint"/>
1038    <field name="Attribute 1 WrapShortest Enables" start="580" end="583" type="uint"/>
1039    <field name="Attribute 2 WrapShortest Enables" start="584" end="587" type="uint"/>
1040    <field name="Attribute 3 WrapShortest Enables" start="588" end="591" type="uint"/>
1041    <field name="Attribute 4 WrapShortest Enables" start="592" end="595" type="uint"/>
1042    <field name="Attribute 5 WrapShortest Enables" start="596" end="599" type="uint"/>
1043    <field name="Attribute 6 WrapShortest Enables" start="600" end="603" type="uint"/>
1044    <field name="Attribute 7 WrapShortest Enables" start="604" end="607" type="uint"/>
1045    <field name="Attribute 8 WrapShortest Enables" start="608" end="611" type="uint"/>
1046    <field name="Attribute 9 WrapShortest Enables" start="612" end="615" type="uint"/>
1047    <field name="Attribute 10 WrapShortest Enables" start="616" end="619" type="uint"/>
1048    <field name="Attribute 11 WrapShortest Enables" start="620" end="623" type="uint"/>
1049    <field name="Attribute 12 WrapShortest Enables" start="624" end="627" type="uint"/>
1050    <field name="Attribute 13 WrapShortest Enables" start="628" end="631" type="uint"/>
1051    <field name="Attribute 14 WrapShortest Enables" start="632" end="635" type="uint"/>
1052    <field name="Attribute 15 WrapShortest Enables" start="636" end="639" type="uint"/>
1053  </instruction>
1054
1055  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="3" engine="render">
1056    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1057    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
1058    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1059    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1060    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1061    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1062    <field name="MOCS" start="57" end="60" type="uint"/>
1063    <field name="Surface Base Address" start="64" end="95" type="address"/>
1064  </instruction>
1065
1066  <instruction name="3DSTATE_URB" bias="2" length="3" engine="render">
1067    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1068    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
1069    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1070    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1071    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1072    <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
1073    <field name="VS URB Entry Allocation Size" start="48" end="55" type="uint"/>
1074    <field name="GS URB Entry Allocation Size" start="64" end="66" type="uint"/>
1075    <field name="GS Number of URB Entries" start="72" end="81" type="uint"/>
1076  </instruction>
1077
1078  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2" engine="render">
1079    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1080    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1081    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1082    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1083    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1084    <group count="0" start="32" size="128">
1085      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
1086    </group>
1087  </instruction>
1088
1089  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2" engine="render">
1090    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1091    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
1092    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1093    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1094    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1095    <group count="0" start="32" size="64">
1096      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
1097    </group>
1098  </instruction>
1099
1100  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1" engine="render">
1101    <field name="Statistics Enable" start="0" end="0" type="bool"/>
1102    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
1103    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1104    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
1105    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1106  </instruction>
1107
1108  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS" bias="2" length="4" engine="render">
1109    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1110    <field name="CLIP Viewport State Change" start="10" end="10" type="uint"/>
1111    <field name="SF Viewport State Change" start="11" end="11" type="uint"/>
1112    <field name="CC Viewport State Change" start="12" end="12" type="uint"/>
1113    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
1114    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1115    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1116    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1117    <field name="Pointer to CLIP_VIEWPORT" start="37" end="63" type="offset"/>
1118    <field name="Pointer to SF_VIEWPORT" start="69" end="95" type="offset"/>
1119    <field name="Pointer to CC_VIEWPORT" start="101" end="127" type="offset"/>
1120  </instruction>
1121
1122  <instruction name="3DSTATE_VS" bias="2" length="6" engine="render">
1123    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
1124    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
1125    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1126    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1127    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1128    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
1129    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
1130    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1131    <field name="Floating Point Mode" start="80" end="80" type="uint">
1132      <value name="IEEE-754" value="0"/>
1133      <value name="Alternate" value="1"/>
1134    </field>
1135    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1136    <field name="Sampler Count" start="91" end="93" type="uint">
1137      <value name="No Samplers" value="0"/>
1138      <value name="1-4 Samplers" value="1"/>
1139      <value name="5-8 Samplers" value="2"/>
1140      <value name="9-12 Samplers" value="3"/>
1141      <value name="13-16 Samplers" value="4"/>
1142    </field>
1143    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1144    <field name="Single Vertex Dispatch" start="95" end="95" type="bool"/>
1145    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
1146    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1147    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
1148    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
1149    <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
1150    <field name="Enable" start="160" end="160" type="bool"/>
1151    <field name="Vertex Cache Disable" start="161" end="161" type="bool"/>
1152    <field name="Statistics Enable" start="170" end="170" type="bool"/>
1153    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1154  </instruction>
1155
1156  <instruction name="3DSTATE_WM" bias="2" length="9" engine="render">
1157    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1158    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
1159    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1160    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1161    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1162    <field name="Kernel Start Pointer 0" start="38" end="63" type="offset"/>
1163    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
1164    <field name="MaskStack Exception Enable" start="75" end="75" type="bool"/>
1165    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
1166    <field name="Floating Point Mode" start="80" end="80" type="uint" prefix="FLOATING_POINT_MODE">
1167      <value name="IEEE-745" value="0"/>
1168      <value name="Alternate" value="1"/>
1169    </field>
1170    <field name="Thread Priority" start="81" end="81" type="uint">
1171      <value name="High" value="1"/>
1172    </field>
1173    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
1174    <field name="Sampler Count" start="91" end="93" type="uint"/>
1175    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1176    <field name="Single Program Flow" start="95" end="95" type="bool"/>
1177    <field name="Per Thread Scratch Space" start="96" end="99" type="uint"/>
1178    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1179    <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="128" end="134" type="uint"/>
1180    <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="136" end="142" type="uint"/>
1181    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="144" end="150" type="uint"/>
1182    <field name="Hierarchical Depth Buffer Resolve Enable" start="155" end="155" type="bool"/>
1183    <field name="Depth Buffer Resolve Enable" start="156" end="156" type="bool"/>
1184    <field name="Depth Buffer Clear" start="158" end="158" type="bool"/>
1185    <field name="Statistics Enable" start="159" end="159" type="bool"/>
1186    <field name="8 Pixel Dispatch Enable" start="160" end="160" type="bool"/>
1187    <field name="16 Pixel Dispatch Enable" start="161" end="161" type="bool"/>
1188    <field name="32 Pixel Dispatch Enable" start="162" end="162" type="bool"/>
1189    <field name="Dual Source Blend Enable" start="167" end="167" type="bool"/>
1190    <field name="Pixel Shader Uses Source W" start="168" end="168" type="bool"/>
1191    <field name="oMask Present to RenderTarget" start="169" end="169" type="bool"/>
1192    <field name="Line Stipple Enable" start="171" end="171" type="bool"/>
1193    <field name="Polygon Stipple Enable" start="173" end="173" type="bool"/>
1194    <field name="Line Antialiasing Region Width" start="174" end="175" type="uint">
1195      <value name="0.5 pixels" value="0"/>
1196      <value name="1.0 pixels" value="1"/>
1197      <value name="2.0 pixels" value="2"/>
1198      <value name="4.0 pixels" value="3"/>
1199    </field>
1200    <field name="Line End Cap Antialiasing Region Width" start="176" end="177" type="uint">
1201      <value name="0.5 pixels" value="0"/>
1202      <value name="1.0 pixels" value="1"/>
1203      <value name="2.0 pixels" value="2"/>
1204      <value name="4.0 pixels" value="3"/>
1205    </field>
1206    <field name="Thread Dispatch Enable" start="179" end="179" type="bool"/>
1207    <field name="Pixel Shader Uses Source Depth" start="180" end="180" type="bool"/>
1208    <field name="Pixel Shader Computed Depth" start="181" end="181" type="bool"/>
1209    <field name="Pixel Shader Kills Pixel" start="182" end="182" type="bool"/>
1210    <field name="Legacy Diamond Line Rasterization" start="183" end="183" type="bool"/>
1211    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
1212    <field name="Multisample Dispatch Mode" start="192" end="192" type="uint">
1213      <value name="MSDISPMODE_PERSAMPLE" value="0"/>
1214      <value name="MSDISPMODE_PERPIXEL" value="1"/>
1215    </field>
1216    <field name="Multisample Rasterization Mode" start="193" end="194" type="uint">
1217      <value name="MSRASTMODE_OFF_PIXEL" value="0"/>
1218      <value name="MSRASTMODE_OFF_PATTERN" value="1"/>
1219      <value name="MSRASTMODE_ON_PIXEL" value="2"/>
1220      <value name="MSRASTMODE_ON_PATTERN" value="3"/>
1221    </field>
1222    <field name="Point Rasterization Rule" start="201" end="201" type="uint">
1223      <value name="RASTRULE_UPPER_LEFT" value="0"/>
1224      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
1225    </field>
1226    <field name="Barycentric Interpolation Mode" start="202" end="207" type="uint">
1227      <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
1228      <value name="BIM_PERSPECTIVE_CENTROID" value="2"/>
1229      <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
1230      <value name="BIM_LINEAR_PIXEL" value="8"/>
1231      <value name="BIM_LINEAR_CENTROID" value="16"/>
1232      <value name="BIM_LINEAR_SAMPLE" value="32"/>
1233    </field>
1234    <field name="Position ZW Interpolation Mode" start="208" end="209" type="uint">
1235      <value name="INTERP_PIXEL" value="0"/>
1236      <value name="INTERP_CENTROID" value="2"/>
1237      <value name="INTERP_SAMPLE" value="3"/>
1238    </field>
1239    <field name="Position XY Offset Select" start="210" end="211" type="uint">
1240      <value name="POSOFFSET_NONE" value="0"/>
1241      <value name="POSOFFSET_CENTROID" value="2"/>
1242      <value name="POSOFFSET_SAMPLE" value="3"/>
1243    </field>
1244    <field name="Number of SF Output Attributes" start="212" end="217" type="uint"/>
1245    <field name="Kernel Start Pointer 1" start="230" end="255" type="offset"/>
1246    <field name="Kernel Start Pointer 2" start="262" end="287" type="offset"/>
1247  </instruction>
1248
1249  <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4" engine="render">
1250    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
1251    <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
1252    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1253    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1254    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1255    <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
1256    <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
1257  </instruction>
1258
1259  <instruction name="MEDIA_GATEWAY_STATE" bias="2" length="2" engine="render">
1260    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
1261    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
1262    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1263    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1264    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1265    <field name="Barrier.ThreadCount" start="32" end="39" type="uint"/>
1266    <field name="Barrier.Byte" start="40" end="47" type="uint"/>
1267    <field name="BarrierID" start="48" end="55" type="uint"/>
1268  </instruction>
1269
1270  <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4" engine="render">
1271    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
1272    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
1273    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1274    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1275    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1276    <field name="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
1277    <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
1278  </instruction>
1279
1280  <instruction name="MEDIA_OBJECT" bias="2" engine="render">
1281    <field name="DWord Length" start="0" end="15" type="uint" default="4"/>
1282    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
1283    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1284    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
1285    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1286    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1287    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
1288    <field name="Use Scoreboard" start="85" end="85" type="uint">
1289      <value name="Not using scoreboard" value="0"/>
1290      <value name="Using scoreboard" value="1"/>
1291    </field>
1292    <field name="Thread Synchronization" start="88" end="88" type="uint">
1293      <value name="No thread synchronization" value="0"/>
1294      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
1295    </field>
1296    <field name="Children Present" start="95" end="95" type="bool"/>
1297    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
1298    <field name="Scoreboard X" start="128" end="136" type="uint"/>
1299    <field name="Scoredboard Y" start="144" end="152" type="uint"/>
1300    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
1301    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
1302    <group count="0" start="192" size="32">
1303      <field name="Inline Data" start="0" end="31" type="uint"/>
1304    </group>
1305  </instruction>
1306
1307  <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16" engine="render">
1308    <field name="DWord Length" start="0" end="15" type="uint" default="14"/>
1309    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
1310    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1311    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1312    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1313    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1314    <field name="PRT_FenceType" start="86" end="86" type="uint">
1315      <value name="Root thread queue" value="0"/>
1316      <value name="VFE state flush" value="1"/>
1317    </field>
1318    <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
1319    <field name="Children Present" start="95" end="95" type="bool"/>
1320    <group count="12" start="128" size="32">
1321      <field name="Inline Data" start="0" end="31" type="uint"/>
1322    </group>
1323  </instruction>
1324
1325  <instruction name="MEDIA_OBJECT_WALKER" bias="2" engine="render">
1326    <field name="DWord Length" start="0" end="15" type="uint" default="15"/>
1327    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
1328    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1329    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1330    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1331    <field name="Interface Descriptor Offset" start="32" end="36" type="uint"/>
1332    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
1333    <field name="Use Scoreboard" start="85" end="85" type="uint">
1334      <value name="Not using scoreboard" value="0"/>
1335      <value name="Using scoreboard" value="1"/>
1336    </field>
1337    <field name="Thread Synchronization" start="88" end="88" type="uint">
1338      <value name="No thread synchronization" value="0"/>
1339      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
1340    </field>
1341    <field name="Children Present" start="95" end="95" type="uint"/>
1342    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
1343    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
1344    <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
1345    <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
1346    <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
1347    <field name="Color Count Minus One" start="216" end="219" type="uint"/>
1348    <field name="Repel" start="222" end="222" type="uint"/>
1349    <field name="Dual Mode" start="223" end="223" type="uint"/>
1350    <field name="Local Loop Exec Count" start="224" end="233" type="uint"/>
1351    <field name="Global Loop Exec Count" start="240" end="249" type="uint"/>
1352    <field name="Block Resolution X" start="256" end="264" type="uint"/>
1353    <field name="Block Resolution Y" start="272" end="280" type="uint"/>
1354    <field name="Local Start X" start="288" end="296" type="uint"/>
1355    <field name="Local Start Y" start="304" end="312" type="uint"/>
1356    <field name="Local End X" start="320" end="328" type="uint"/>
1357    <field name="Local End Y" start="336" end="344" type="uint"/>
1358    <field name="Local Outer Loop Stride X" start="352" end="361" type="int"/>
1359    <field name="Local Outer Loop Stride Y" start="368" end="377" type="int"/>
1360    <field name="Local Inner Loop Unit X" start="384" end="393" type="int"/>
1361    <field name="Local Inner Loop Unit Y" start="400" end="409" type="int"/>
1362    <field name="Global Resolution X" start="416" end="424" type="uint"/>
1363    <field name="Global Resolution Y" start="432" end="440" type="uint"/>
1364    <field name="Global Start X" start="448" end="457" type="int"/>
1365    <field name="Global Start Y" start="464" end="473" type="int"/>
1366    <field name="Global Outer Loop Stride X" start="480" end="489" type="int"/>
1367    <field name="Global Outer Loop Stride Y" start="496" end="505" type="int"/>
1368    <field name="Global Inner Loop Unit X" start="512" end="521" type="int"/>
1369    <field name="Global Inner Loop Unit Y" start="528" end="537" type="int"/>
1370    <group count="0" start="544" size="32">
1371      <field name="Inline Data" start="0" end="31" type="uint"/>
1372    </group>
1373  </instruction>
1374
1375  <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2" engine="render">
1376    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
1377    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
1378    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1379    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1380    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1381    <field name="Barrier Mask" start="32" end="47" type="uint">
1382      <value name="Not Waiting" value="0"/>
1383      <value name="Waiting" value="1"/>
1384    </field>
1385    <field name="Thread Count WaterMark" start="48" end="55" type="uint"/>
1386  </instruction>
1387
1388  <instruction name="MEDIA_VFE_STATE" bias="2" length="8" engine="render">
1389    <field name="DWord Length" start="0" end="15" type="uint" default="6"/>
1390    <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
1391    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1392    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1393    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1394    <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
1395    <field name="Scratch Space Base Pointer" start="42" end="63" type="address"/>
1396    <field name="Fast Preempt" start="69" end="69" type="uint">
1397      <value name="Preempt only _PRT" value="0"/>
1398    </field>
1399    <field name="Bypass Gateway Control" start="70" end="70" type="uint">
1400      <value name="Maintaining OpenGateway/ForwardMsg/CloseGateway protocol (legacy mode)" value="0"/>
1401      <value name="Bypassing OpenGateway/CloseGateway protocol" value="1"/>
1402    </field>
1403    <field name="Reset Gateway Timer" start="71" end="71" type="uint">
1404      <value name="Maintaining the existing timestamp state" value="0"/>
1405      <value name="Resetting relative timer and latching the global timestamp" value="1"/>
1406    </field>
1407    <field name="Number of URB Entries" start="72" end="79" type="uint"/>
1408    <field name="Maximum Number of Threads" start="80" end="95" type="uint"/>
1409    <field name="CURBE Allocation Size" start="128" end="143" type="uint"/>
1410    <field name="URB Entry Allocation Size" start="144" end="159" type="uint"/>
1411    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
1412    <field name="Scoreboard Type" start="190" end="190" type="uint">
1413      <value name="Stalling Scoreboard" value="0"/>
1414    </field>
1415    <field name="Scoreboard Enable" start="191" end="191" type="uint">
1416      <value name="Scoreboard disabled" value="0"/>
1417      <value name="Scoreboard enabled" value="1"/>
1418    </field>
1419    <field name="Scoreboard 0 Delta X" start="192" end="195" type="int"/>
1420    <field name="Scoreboard 0 Delta Y" start="196" end="199" type="int"/>
1421    <field name="Scoreboard 1 Delta X" start="200" end="203" type="int"/>
1422    <field name="Scoreboard 1 Delta Y" start="204" end="207" type="int"/>
1423    <field name="Scoreboard 2 Delta X" start="208" end="211" type="int"/>
1424    <field name="Scoreboard 2 Delta Y" start="212" end="215" type="int"/>
1425    <field name="Scoreboard 3 Delta X" start="216" end="219" type="int"/>
1426    <field name="Scoreboard 3 Delta Y" start="220" end="223" type="int"/>
1427    <field name="Scoreboard 4 Delta X" start="224" end="227" type="int"/>
1428    <field name="Scoreboard 4 Delta Y" start="228" end="231" type="int"/>
1429    <field name="Scoreboard 5 Delta X" start="232" end="235" type="int"/>
1430    <field name="Scoreboard 5 Delta Y" start="236" end="239" type="int"/>
1431    <field name="Scoreboard 6 Delta X" start="240" end="243" type="int"/>
1432    <field name="Scoreboard 6 Delta Y" start="244" end="247" type="int"/>
1433    <field name="Scoreboard 7 Delta X" start="248" end="251" type="int"/>
1434    <field name="Scoreboard 7 Delta Y" start="252" end="255" type="int"/>
1435  </instruction>
1436
1437  <instruction name="MFC_AVC_FQM_STATE" bias="2" length="113" engine="video">
1438    <field name="DWord Length" start="0" end="11" type="uint" default="111"/>
1439    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
1440    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
1441    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1442    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1443    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1444    <group count="8" start="32" size="32">
1445      <field name="Luma4x4 Intra InvWeightScale" start="0" end="31" type="uint"/>
1446    </group>
1447    <group count="8" start="288" size="32">
1448      <field name="Cb4x4 Intra InvWeightScale" start="0" end="31" type="uint"/>
1449    </group>
1450    <group count="8" start="544" size="32">
1451      <field name="Cr4x4 Intra InvWeightScale" start="0" end="31" type="uint"/>
1452    </group>
1453    <group count="6" start="800" size="32">
1454      <field name="Luma4x4 Inter InvWeightScale" start="0" end="31" type="uint"/>
1455    </group>
1456    <group count="10" start="992" size="32">
1457      <field name="Cb4x4 Inter InvWeightScale" start="0" end="31" type="uint"/>
1458    </group>
1459    <group count="8" start="1312" size="32">
1460      <field name="Cr4x4 Inter InvWeightScale" start="0" end="31" type="uint"/>
1461    </group>
1462    <group count="32" start="1568" size="32">
1463      <field name="Luma8x8 Intra InvWeightScale" start="0" end="31" type="uint"/>
1464    </group>
1465    <group count="32" start="2592" size="32">
1466      <field name="Luma8x8 Inter InvWeightScale" start="0" end="31" type="uint"/>
1467    </group>
1468  </instruction>
1469
1470  <instruction name="MFC_AVC_PAK_INSERT_OBJECT" bias="2" engine="video">
1471    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
1472    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
1473    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
1474    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1475    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1476    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1477    <field name="Bitstream Start Reset" start="32" end="32" type="bool"/>
1478    <field name="End of Slice" start="33" end="33" type="bool"/>
1479    <field name="Last Header" start="34" end="34" type="bool"/>
1480    <field name="Emulation Byte Bits Insert Enable" start="35" end="35" type="bool"/>
1481    <field name="Skip Emulation Byte Count" start="36" end="39" type="uint"/>
1482    <field name="Data Bits In Last DW" start="40" end="45" type="uint"/>
1483    <field name="Data Byte Offset" start="48" end="49" type="uint"/>
1484    <group count="0" start="64" size="32">
1485      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
1486    </group>
1487  </instruction>
1488
1489  <instruction name="MFC_AVC_PAK_OBJECT" bias="2" length="11" engine="video">
1490    <field name="DWord Length" start="0" end="11" type="uint" default="9"/>
1491    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
1492    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
1493    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1494    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1495    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1496    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
1497    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
1498    <group count="8" start="96" size="32">
1499      <field name="Inline Data" start="0" end="31" type="uint"/>
1500    </group>
1501  </instruction>
1502
1503  <instruction name="MFC_STITCH_OBJECT" bias="2" engine="video">
1504    <field name="DWord Length" start="0" end="11" type="uint"/>
1505    <field name="SubOpcode B" start="16" end="20" type="uint" default="10"/>
1506    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
1507    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1508    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1509    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1510    <field name="Last Dst Data Insert Command" start="33" end="33" type="bool"/>
1511    <field name="Last Src Header Data Insert Command" start="34" end="34" type="bool"/>
1512    <field name="SrC Data Ending Bit Inclusion" start="40" end="45" type="uint"/>
1513    <field name="Src Data Starting Byte Offset" start="48" end="49" type="uint"/>
1514    <field name="Indirect Data Length" start="64" end="82" type="uint"/>
1515    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
1516    <group count="0" start="128" size="32">
1517      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
1518    </group>
1519  </instruction>
1520
1521  <instruction name="MFD_AVC_BSD_OBJECT" bias="2" length="6" engine="video">
1522    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
1523    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
1524    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
1525    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1526    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1527    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1528    <field name="Indirect BSD Data Length" start="32" end="53" type="uint"/>
1529    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
1530    <group count="3" start="96" size="32">
1531      <field name="Inline Data" start="0" end="31" type="uint"/>
1532    </group>
1533  </instruction>
1534
1535  <instruction name="MFD_IT_OBJECT" bias="2" engine="video">
1536    <field name="DWord Length" start="0" end="11" type="uint" default="12"/>
1537    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
1538    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
1539    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1540    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1541    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1542    <field name="Indirect IT-MV Data Length" start="32" end="41" type="uint"/>
1543    <field name="Indirect IT-MV Data Start Address Offset" start="64" end="92" type="offset"/>
1544    <field name="Indirect IT-COEFF Data Length" start="96" end="107" type="uint"/>
1545    <field name="Indirect IT-COEFF Data Start Address Offset" start="128" end="156" type="offset"/>
1546    <field name="Indirect IT-DBLK Control Data Length" start="160" end="165" type="uint"/>
1547    <field name="Indirect IT-DBLK Control Data Start Address Offset" start="192" end="220" type="offset"/>
1548    <group count="0" start="224" size="32">
1549      <field name="Inline Data" start="0" end="31" type="uint"/>
1550    </group>
1551  </instruction>
1552
1553  <instruction name="MFD_MPEG2_BSD_OBJECT" bias="2" length="5" engine="video">
1554    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
1555    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
1556    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
1557    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
1558    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1559    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1560    <field name="Indirect Data Length" start="32" end="48" type="uint"/>
1561    <field name="Indirect Data Start Address" start="64" end="92" type="address"/>
1562    <group count="2" start="96" size="32">
1563      <field name="Inline Data" start="0" end="31" type="uint"/>
1564    </group>
1565  </instruction>
1566
1567  <instruction name="MFD_VC1_BSD_OBJECT" bias="2" length="4" engine="video">
1568    <field name="DWord Length" start="0" end="11" type="uint" default="2"/>
1569    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
1570    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
1571    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
1572    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1573    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1574    <field name="Indirect Data Length" start="32" end="53" type="uint"/>
1575    <field name="Indirect Data Start Address" start="64" end="92" type="address"/>
1576    <field name="First MB Bit Offset" start="96" end="98" type="uint"/>
1577    <field name="Next Slice Start Vertical Position" start="112" end="119" type="uint"/>
1578    <field name="Slice Start Vertical Position" start="120" end="127" type="uint"/>
1579  </instruction>
1580
1581  <instruction name="MFX_AVC_DIRECTMODE_STATE" bias="2" length="69" engine="video">
1582    <field name="DWord Length" start="0" end="11" type="uint" default="67"/>
1583    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
1584    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1585    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1586    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1587    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1588    <group count="32" start="32" size="32">
1589      <field name="Direct MV Buffer - Address" start="6" end="31" type="address"/>
1590      <field name="Direct MV Buffer - Arbitration Priority Control" start="4" end="5" type="uint">
1591        <value name="Highest priority" value="0"/>
1592        <value name="Second highest priority" value="1"/>
1593        <value name="Third highest priority" value="2"/>
1594        <value name="Lowest priority" value="3"/>
1595      </field>
1596      <field name="Direct MV Buffer - Graphics Data Type" start="2" end="2" type="uint"/>
1597      <field name="Direct MV Buffer - Cacheability Control" start="0" end="1" type="uint">
1598        <value name="GTT entry" value="0"/>
1599        <value name="Not in LLC or MLC" value="1"/>
1600        <value name="In LLC but not MLC" value="2"/>
1601        <value name="Both LLC and MLC" value="3"/>
1602      </field>
1603    </group>
1604    <group count="2" start="1056" size="32">
1605      <field name="Direct MV Buffer (Write) - Address" start="6" end="31" type="address"/>
1606      <field name="Direct MV Buffer (Write) - Arbitration Priority Control" start="4" end="5" type="uint">
1607        <value name="Highest priority" value="0"/>
1608        <value name="Second highest priority" value="1"/>
1609        <value name="Third highest priority" value="2"/>
1610        <value name="Lowest priority" value="3"/>
1611      </field>
1612      <field name="Direct MV Buffer (Write) - Graphics Data Type" start="2" end="2" type="uint"/>
1613      <field name="Direct MV Buffer (Write) - Cacheability Control" start="0" end="1" type="uint">
1614        <value name="GTT entry" value="0"/>
1615        <value name="Not in LLC or MLC" value="1"/>
1616        <value name="In LLC but not MLC" value="2"/>
1617        <value name="Both LLC and MLC" value="3"/>
1618      </field>
1619    </group>
1620    <group count="34" start="1120" size="32">
1621      <field name="POC List" start="0" end="31" type="uint"/>
1622    </group>
1623  </instruction>
1624
1625  <instruction name="MFX_AVC_IMG_STATE" bias="2" length="13" engine="video">
1626    <field name="DWord Length" start="0" end="11" type="uint" default="11"/>
1627    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
1628    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1629    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1630    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1631    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1632    <field name="Frame Size" start="32" end="47" type="uint"/>
1633    <field name="Frame Width" start="64" end="71" type="uint"/>
1634    <field name="Frame Height" start="80" end="87" type="uint"/>
1635    <field name="Current Decoded Image Frame Store ID" start="96" end="103" type="uint"/>
1636    <field name="Image Structure" start="104" end="105" type="uint">
1637      <value name="Frame Picture" value="0"/>
1638      <value name="Top Field Picture" value="1"/>
1639      <value name="Bottom Field Picture" value="3"/>
1640      <value name="Invalid, not allowed" value="2"/>
1641    </field>
1642    <field name="QM Present" start="106" end="106" type="bool"/>
1643    <field name="Monochrome PWT Decoding Mode" start="108" end="108" type="bool"/>
1644    <field name="Inter MB Conformance" start="109" end="109" type="bool"/>
1645    <field name="Intra MB Conformance" start="110" end="110" type="bool"/>
1646    <field name="Second Chroma QP Offset" start="120" end="124" type="uint"/>
1647    <field name="Field Picture" start="128" end="128" type="bool"/>
1648    <field name="MBAFF Mode" start="129" end="129" type="bool"/>
1649    <field name="Frame MB Only" start="130" end="130" type="bool"/>
1650    <field name="8x8 IDCT Transform Mode" start="131" end="131" type="bool"/>
1651    <field name="Direct 8x8 Inference" start="132" end="132" type="bool"/>
1652    <field name="Constrained Intra Prediction" start="133" end="133" type="bool"/>
1653    <field name="Non-Reference Picture" start="134" end="134" type="bool"/>
1654    <field name="Entropy Coding" start="135" end="135" type="bool"/>
1655    <field name="Chroma Format IDC" start="138" end="139" type="uint">
1656      <value name="Monochrome picture" value="0"/>
1657      <value name="4:2:0 picture" value="1"/>
1658      <value name="4:2:2 picture (not supported)" value="2"/>
1659      <value name="4:4:4 picture (not supported)" value="3"/>
1660    </field>
1661    <field name="MV Unpacked Enable" start="140" end="140" type="bool"/>
1662    <field name="Load Bitstream Pointer Per Slice" start="142" end="142" type="bool"/>
1663    <field name="MB Status Read" start="143" end="143" type="bool"/>
1664    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
1665    <field name="Intra MB Max Bit Control" start="160" end="160" type="bool"/>
1666    <field name="Inter MB Max Bit Control" start="161" end="161" type="bool"/>
1667    <field name="Frame Bitrate Max Report" start="162" end="162" type="bool"/>
1668    <field name="Frame Bitrate Min Report" start="163" end="163" type="bool"/>
1669    <field name="Force IPCM Control" start="167" end="167" type="bool"/>
1670    <field name="MB Level Rate Control" start="169" end="169" type="bool"/>
1671    <field name="Inter MB Force CBP to Zero Control" start="172" end="172" type="bool"/>
1672    <field name="Frame Size Rate Control" start="176" end="176" type="bool"/>
1673    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
1674    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
1675    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
1676    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
1677    <field name="Slice Delta QP Max[2]" start="272" end="279" type="int"/>
1678    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
1679    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
1680    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
1681    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
1682    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
1683    <field name="Frame Bitrate Min" start="320" end="331" type="uint"/>
1684    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
1685    <field name="Frame Bitrate Max" start="336" end="347" type="uint"/>
1686    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
1687    <field name="Frame Bitrate Min Delta" start="352" end="363" type="uint"/>
1688    <field name="Frame Bitrate Max Delta" start="368" end="379" type="uint"/>
1689  </instruction>
1690
1691  <instruction name="MFX_AVC_QM_STATE" bias="2" length="2" engine="video">
1692    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
1693    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
1694    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1695    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1696    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1697    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1698    <field name="QM List Present Flags for the current Slice" start="32" end="39" type="uint"/>
1699    <field name="Use built-in Default QM Flags for the current Slice" start="40" end="47" type="uint"/>
1700    <group count="4" start="64" size="32">
1701      <field name="Luma4x4 Intra Weight Scale" start="0" end="31" type="uint"/>
1702    </group>
1703    <group count="4" start="192" size="32">
1704      <field name="Cb4x4 Intra Weight Scale" start="0" end="31" type="uint"/>
1705    </group>
1706    <group count="4" start="320" size="32">
1707      <field name="Cr4x4 Intra Weight Scale" start="0" end="31" type="uint"/>
1708    </group>
1709    <group count="4" start="448" size="32">
1710      <field name="Luma4x4 Inter Weight Scale" start="0" end="31" type="uint"/>
1711    </group>
1712    <group count="4" start="576" size="32">
1713      <field name="Cb4x4 Inter Weight Scale" start="0" end="31" type="uint"/>
1714    </group>
1715    <group count="4" start="704" size="32">
1716      <field name="Cr4x4 Inter Weight Scale" start="0" end="31" type="uint"/>
1717    </group>
1718    <group count="4" start="832" size="128">
1719      <field name="Luma8x8 Intra Weight Scale" start="0" end="127" type="uint"/>
1720    </group>
1721    <group count="4" start="1344" size="128">
1722      <field name="Luma8x8 Inter Weight Scale" start="0" end="127" type="uint"/>
1723    </group>
1724  </instruction>
1725
1726  <instruction name="MFX_AVC_REF_IDX_STATE" bias="2" length="10" engine="video">
1727    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
1728    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
1729    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1730    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1731    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1732    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1733    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
1734    <group count="32" start="64" size="8">
1735      <field name="Reference List Entry" start="0" end="7" type="uint"/>
1736    </group>
1737  </instruction>
1738
1739  <instruction name="MFX_AVC_SLICE_STATE" bias="2" length="10" engine="video">
1740    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
1741    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
1742    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1743    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1744    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1745    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1746    <field name="Slice Type" start="32" end="35" type="uint">
1747      <value name="P Slice" value="0"/>
1748      <value name="B Slice" value="1"/>
1749      <value name="I Slice" value="2"/>
1750    </field>
1751    <field name="Log2 Weight Denominator Luma" start="64" end="66" type="uint"/>
1752    <field name="Log2 Weight Denominator Chroma" start="72" end="74" type="uint"/>
1753    <field name="Number of Reference Pictures in Inter-prediction List 0" start="80" end="85" type="uint"/>
1754    <field name="Number of Reference Pictures in Inter-prediction List 1" start="88" end="93" type="uint"/>
1755    <field name="Slice Alpha C0 Offset Div2" start="96" end="99" type="int"/>
1756    <field name="Slice Beta Offset Div2" start="104" end="107" type="int"/>
1757    <field name="Slice Quantization Parameter" start="112" end="117" type="uint"/>
1758    <field name="CABAC Init IDC" start="120" end="121" type="uint"/>
1759    <field name="Disable Deblocking Filter Indicator" start="123" end="124" type="uint"/>
1760    <field name="Direct Prediction Type" start="125" end="125" type="uint">
1761      <value name="Temporal" value="0"/>
1762      <value name="Spatial" value="1"/>
1763    </field>
1764    <field name="Weighted Prediction Indicator" start="126" end="127" type="uint"/>
1765    <field name="Slice Start MB Number" start="128" end="142" type="uint"/>
1766    <field name="Slice Horizontal Position" start="144" end="151" type="uint"/>
1767    <field name="Slice Vertical Position" start="152" end="159" type="uint"/>
1768    <field name="Next Slice Horizontal Position" start="160" end="167" type="uint"/>
1769    <field name="Next Slice Vertical Position" start="176" end="183" type="uint"/>
1770    <field name="Stream ID" start="192" end="193" type="uint"/>
1771    <field name="Slice ID" start="196" end="199" type="uint"/>
1772    <field name="CABAC Zero Word Insertion Enable" start="204" end="204" type="bool"/>
1773    <field name="Emulation Byte Slice Insert Enable" start="205" end="205" type="bool"/>
1774    <field name="Tail Insertion Present" start="207" end="207" type="bool"/>
1775    <field name="Slice Data Insertion Present" start="208" end="208" type="bool"/>
1776    <field name="Header Insertion Present" start="209" end="209" type="bool"/>
1777    <field name="Last Slice Group" start="211" end="211" type="bool"/>
1778    <field name="MB Type Skip Conversion Disable" start="212" end="212" type="bool"/>
1779    <field name="MB Type Direct Conversion Disable" start="213" end="213" type="bool"/>
1780    <field name="Rate Control Panic Type" start="214" end="214" type="uint">
1781      <value name="QP Panic" value="0"/>
1782      <value name="CBP Panic" value="1"/>
1783    </field>
1784    <field name="Rate Control Panic Enable" start="215" end="215" type="bool"/>
1785    <field name="Rate Control Stable Tolerance" start="216" end="219" type="uint"/>
1786    <field name="Rate Control Triggle Mode" start="220" end="221" type="uint">
1787      <value name="Always Rate Control" value="0"/>
1788      <value name="Gentle Rate Control" value="1"/>
1789      <value name="Loose Rate Control" value="2"/>
1790    </field>
1791    <field name="Reset Rate Control Counter" start="222" end="222" type="bool"/>
1792    <field name="Rate Control Counter Enable" start="223" end="223" type="bool"/>
1793    <field name="Indirect PAK-BSE Data Start Address" start="224" end="252" type="offset"/>
1794    <field name="Grow Init" start="256" end="259" type="uint"/>
1795    <field name="Grow Resistance" start="260" end="263" type="uint"/>
1796    <field name="Shrink Init" start="264" end="267" type="uint"/>
1797    <field name="Shrink Resistance" start="268" end="271" type="uint"/>
1798    <field name="QP Max Positive Modifier Magnitude" start="272" end="279" type="uint"/>
1799    <field name="QP Max Negative Modifier Magnitude" start="280" end="287" type="uint"/>
1800    <field name="Correct 1" start="288" end="291" type="uint"/>
1801    <field name="Correct 2" start="292" end="295" type="uint"/>
1802    <field name="Correct 3" start="296" end="299" type="uint"/>
1803    <field name="Correct 4" start="300" end="303" type="uint"/>
1804    <field name="Correct 5" start="304" end="307" type="uint"/>
1805    <field name="Correct 6" start="308" end="311" type="uint"/>
1806    <field name="CV0" start="320" end="323" type="uint"/>
1807    <field name="CV1" start="324" end="327" type="uint"/>
1808    <field name="CV2" start="328" end="331" type="uint"/>
1809    <field name="CV3" start="332" end="335" type="uint"/>
1810    <field name="CV4" start="336" end="339" type="uint"/>
1811    <field name="CV5" start="340" end="343" type="uint"/>
1812    <field name="CV6" start="344" end="347" type="uint"/>
1813    <field name="CV7" start="348" end="351" type="uint"/>
1814  </instruction>
1815
1816  <instruction name="MFX_AVC_WEIGHTOFFSET_STATE" bias="2" length="50" engine="video">
1817    <field name="DWord Length" start="0" end="11" type="uint" default="48"/>
1818    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
1819    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1820    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
1821    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1822    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1823    <field name="Weight and Offset Select" start="32" end="32" type="uint">
1824      <value name="L0 table" value="0"/>
1825      <value name="L1 table" value="1"/>
1826    </field>
1827    <group count="96" start="64" size="32">
1828      <field name="Weight Offset" start="0" end="31" type="uint"/>
1829    </group>
1830  </instruction>
1831
1832  <instruction name="MFX_BSP_BUF_BASE_ADDR_STATE" bias="2" length="4" engine="video">
1833    <field name="DWord Length" start="0" end="11" type="uint" default="2"/>
1834    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
1835    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1836    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1837    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1838    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1839    <field name="BSP Row Store Scratch Buffer - Cacheability Control" start="32" end="33" type="uint">
1840      <value name="GTT entry" value="0"/>
1841      <value name="Not in LLC or MLC" value="1"/>
1842      <value name="In LLC but not MLC" value="2"/>
1843      <value name="Both LLC and MLC" value="3"/>
1844    </field>
1845    <field name="BSP Row Store Scratch Buffer - Graphics Data Type" start="34" end="34" type="uint"/>
1846    <field name="BSD/MPC Row Store Scratch Buffer - Arbitration Priority Control" start="36" end="37" type="uint">
1847      <value name="Highest priority" value="0"/>
1848      <value name="Second highest priority" value="1"/>
1849      <value name="Third highest priority" value="2"/>
1850      <value name="Lowest priority" value="3"/>
1851    </field>
1852    <field name="BSD/MPC Row Store Scratch Buffer - Address" start="38" end="63" type="address"/>
1853    <field name="MPR Row Store Scratch Buffer - Cacheability Control" start="64" end="65" type="uint">
1854      <value name="GTT entry" value="0"/>
1855      <value name="Not in LLC or MLC" value="1"/>
1856      <value name="In LLC but not MLC" value="2"/>
1857      <value name="Both LLC and MLC" value="3"/>
1858    </field>
1859    <field name="MPR Row Store Scratch Buffer - Graphics Data Type" start="66" end="66" type="uint"/>
1860    <field name="MPR Row Store Scratch Buffer - Arbitration Priority Control" start="68" end="69" type="uint">
1861      <value name="Highest priority" value="0"/>
1862      <value name="Second highest priority" value="1"/>
1863      <value name="Third highest priority" value="2"/>
1864      <value name="Lowest priority" value="3"/>
1865    </field>
1866    <field name="MPR Row Store Scratch Buffer - Address" start="70" end="95" type="address"/>
1867    <field name="Bitplane Read Buffer - Cacheability Control" start="96" end="97" type="uint">
1868      <value name="GTT entry" value="0"/>
1869      <value name="Not in LLC or MLC" value="1"/>
1870      <value name="In LLC but not MLC" value="2"/>
1871      <value name="Both LLC and MLC" value="3"/>
1872    </field>
1873    <field name="Bitplane Read Buffer - Graphics Data Type" start="98" end="98" type="uint"/>
1874    <field name="Bitplane Read Buffer - Arbitration Priority Control" start="100" end="101" type="uint">
1875      <value name="Highest priority" value="0"/>
1876      <value name="Second highest priority" value="1"/>
1877      <value name="Third highest priority" value="2"/>
1878      <value name="Lowest priority" value="3"/>
1879    </field>
1880    <field name="Bitplane Read Buffer - Address" start="102" end="127" type="address"/>
1881  </instruction>
1882
1883  <instruction name="MFX_IND_OBJ_BASE_ADDR_STATE" bias="2" length="11" engine="video">
1884    <field name="DWord Length" start="0" end="11" type="uint" default="9"/>
1885    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
1886    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1887    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
1888    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1889    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1890    <field name="MFX Indirect Bitstream Object - Cacheability Control" start="32" end="33" type="uint">
1891      <value name="GTT entry" value="0"/>
1892      <value name="Not in LLC or MLC" value="1"/>
1893      <value name="In LLC but not MLC" value="2"/>
1894      <value name="Both LLC and MLC" value="3"/>
1895    </field>
1896    <field name="MFX Indirect Bitstream Object - Graphics Data Type" start="34" end="34" type="uint"/>
1897    <field name="MFX Indirect Bitstream Object - Arbitration Priority Control" start="36" end="37" type="uint">
1898      <value name="Highest priority" value="0"/>
1899      <value name="Second highest priority" value="1"/>
1900      <value name="Third highest priority" value="2"/>
1901      <value name="Lowest priority" value="3"/>
1902    </field>
1903    <field name="MFX Indirect Bitstream Object - Address" start="44" end="63" type="address"/>
1904    <field name="MFX Indirect Bitstream Object - Access Upper Bound" start="76" end="95" type="address"/>
1905    <field name="MFX Indirect MV Object - Cacheability Control" start="96" end="97" type="uint">
1906      <value name="GTT entry" value="0"/>
1907      <value name="Not in LLC or MLC" value="1"/>
1908      <value name="In LLC but not MLC" value="2"/>
1909      <value name="Both LLC and MLC" value="3"/>
1910    </field>
1911    <field name="MFX Indirect MV Object - Graphics Data Type" start="98" end="98" type="uint"/>
1912    <field name="MFX Indirect MV Object - Arbitration Priority Control" start="100" end="101" type="uint">
1913      <value name="Highest priority" value="0"/>
1914      <value name="Second highest priority" value="1"/>
1915      <value name="Third highest priority" value="2"/>
1916      <value name="Lowest priority" value="3"/>
1917    </field>
1918    <field name="MFX Indirect MV Object - Address" start="108" end="127" type="address"/>
1919    <field name="MFX Indirect MV Object - Access Upper Bound" start="140" end="159" type="address"/>
1920    <field name="MFD Indirect IT-COEFF Object - Cacheability Control" start="160" end="161" type="uint">
1921      <value name="GTT entry" value="0"/>
1922      <value name="Not in LLC or MLC" value="1"/>
1923      <value name="In LLC but not MLC" value="2"/>
1924      <value name="Both LLC and MLC" value="3"/>
1925    </field>
1926    <field name="MFD Indirect IT-COEFF Object - Graphics Data Type" start="162" end="162" type="uint"/>
1927    <field name="MFD Indirect IT-COEFF Object - Arbitration Priority Control" start="164" end="165" type="uint">
1928      <value name="Highest priority" value="0"/>
1929      <value name="Second highest priority" value="1"/>
1930      <value name="Third highest priority" value="2"/>
1931      <value name="Lowest priority" value="3"/>
1932    </field>
1933    <field name="MFD Indirect IT-COEFF Object - Address" start="172" end="191" type="address"/>
1934    <field name="MFD Indirect IT-COEFF Object - Access Upper Bound" start="204" end="223" type="address"/>
1935    <field name="MFD Indirect IT-DBLK Object - Cacheability Control" start="224" end="225" type="uint">
1936      <value name="GTT entry" value="0"/>
1937      <value name="Not in LLC or MLC" value="1"/>
1938      <value name="In LLC but not MLC" value="2"/>
1939      <value name="Both LLC and MLC" value="3"/>
1940    </field>
1941    <field name="MFD Indirect IT-DBLK Object - Graphics Data Type" start="226" end="226" type="uint"/>
1942    <field name="MFD Indirect IT-DBLK Object - Arbitration Priority Control" start="228" end="229" type="uint">
1943      <value name="Highest priority" value="0"/>
1944      <value name="Second highest priority" value="1"/>
1945      <value name="Third highest priority" value="2"/>
1946      <value name="Lowest priority" value="3"/>
1947    </field>
1948    <field name="MFD Indirect IT-DBLK Object - Address" start="236" end="255" type="address"/>
1949    <field name="MFD Indirect IT-DBLK Object - Access Upper Bound" start="268" end="287" type="address"/>
1950    <field name="MFC Indirect PAK-BSE Object - Cacheability Control" start="288" end="289" type="uint">
1951      <value name="GTT entry" value="0"/>
1952      <value name="Not in LLC or MLC" value="1"/>
1953      <value name="In LLC but not MLC" value="2"/>
1954      <value name="Both LLC and MLC" value="3"/>
1955    </field>
1956    <field name="MFC Indirect PAK-BSE Object - Graphics Data Type" start="290" end="290" type="uint"/>
1957    <field name="MFC Indirect PAK-BSE Object - Arbitration Priority Control" start="292" end="293" type="uint">
1958      <value name="Highest priority" value="0"/>
1959      <value name="Second highest priority" value="1"/>
1960      <value name="Third highest priority" value="2"/>
1961      <value name="Lowest priority" value="3"/>
1962    </field>
1963    <field name="MFC Indirect PAK-BSE Object - Address" start="300" end="319" type="address"/>
1964    <field name="MFC Indirect PAK-BSE Object - Access Upper Bound" start="332" end="351" type="address"/>
1965  </instruction>
1966
1967  <instruction name="MFX_MPEG2_PIC_STATE" bias="2" length="3" engine="video">
1968    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
1969    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
1970    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
1971    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
1972    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
1973    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1974    <field name="Scan Order" start="38" end="38" type="uint">
1975      <value name="MPEG_ZIGZAG_SCAN" value="0"/>
1976      <value name="MPEG_ALTERNATE_VERTICAL_SCAN" value="1"/>
1977    </field>
1978    <field name="Intra VLC Format" start="39" end="39" type="uint"/>
1979    <field name="Quantizer Scale Type" start="40" end="40" type="uint">
1980      <value name="MPEG_QSCALE_LINEAR" value="0"/>
1981      <value name="MPEG_QSCALE_NONLINEAR" value="1"/>
1982    </field>
1983    <field name="Concealment MV" start="41" end="41" type="bool"/>
1984    <field name="Frame Prediction Frame DCT" start="42" end="42" type="uint"/>
1985    <field name="Top Field First" start="43" end="43" type="bool"/>
1986    <field name="Picture Structure" start="44" end="45" type="uint">
1987      <value name="MPEG_TOP_FIELD" value="1"/>
1988      <value name="MPEG_BOTTOM_FIELD" value="2"/>
1989      <value name="MPEG_FRAME" value="3"/>
1990    </field>
1991    <field name="Intra DC Precision" start="46" end="47" type="uint"/>
1992    <field name="F_code[0][0]" start="48" end="51" type="uint"/>
1993    <field name="F_code[0][1]" start="52" end="55" type="uint"/>
1994    <field name="F_code[1][0]" start="56" end="59" type="uint"/>
1995    <field name="F_code[1][1]" start="60" end="63" type="uint"/>
1996    <field name="Picture Coding Type" start="64" end="74" type="uint">
1997      <value name="MPEG_I_PICTURE" value="1"/>
1998      <value name="MPEG_P_PICTURE" value="2"/>
1999      <value name="MPEG_B_PICTURE" value="3"/>
2000    </field>
2001    <field name="Frame Width In MBs" start="96" end="103" type="uint"/>
2002    <field name="Frame Height In MBs" start="112" end="119" type="uint"/>
2003  </instruction>
2004
2005  <instruction name="MFX_MPEG2_QM_STATE" bias="2" length="18" engine="video">
2006    <field name="DWord Length" start="0" end="11" type="uint" default="16"/>
2007    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
2008    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2009    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
2010    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2011    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2012    <field name="QM Type" start="32" end="32" type="uint">
2013      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
2014      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
2015    </field>
2016    <group count="16" start="64" size="32">
2017      <field name="Quantizer Matrix" start="0" end="31" type="uint"/>
2018    </group>
2019  </instruction>
2020
2021  <instruction name="MFX_PIPE_BUF_ADDR_STATE" bias="2" length="24" engine="video">
2022    <field name="DWord Length" start="0" end="11" type="uint" default="22"/>
2023    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
2024    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2025    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2026    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2027    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2028    <field name="Pre Deblocking - Cacheability Control" start="32" end="33" type="uint">
2029      <value name="GTT entry" value="0"/>
2030      <value name="Not in LLC or MLC" value="1"/>
2031      <value name="In LLC but not MLC" value="2"/>
2032      <value name="Both LLC and MLC" value="3"/>
2033    </field>
2034    <field name="Pre Deblocking - Graphics Data Type" start="34" end="34" type="uint"/>
2035    <field name="Pre Deblocking - Arbitration Priority Control" start="36" end="37" type="uint">
2036      <value name="Highest priority" value="0"/>
2037      <value name="Second highest priority" value="1"/>
2038      <value name="Third highest priority" value="2"/>
2039      <value name="Lowest priority" value="3"/>
2040    </field>
2041    <field name="Pre Deblocking - Address" start="38" end="63" type="address"/>
2042    <field name="Post Deblocking - Cacheability Control" start="64" end="65" type="uint">
2043      <value name="GTT entry" value="0"/>
2044      <value name="Not in LLC or MLC" value="1"/>
2045      <value name="In LLC but not MLC" value="2"/>
2046      <value name="Both LLC and MLC" value="3"/>
2047    </field>
2048    <field name="Post Deblocking - Graphics Data Type" start="66" end="66" type="uint"/>
2049    <field name="Post Deblocking - Arbitration Priority Control" start="68" end="69" type="uint">
2050      <value name="Highest priority" value="0"/>
2051      <value name="Second highest priority" value="1"/>
2052      <value name="Third highest priority" value="2"/>
2053      <value name="Lowest priority" value="3"/>
2054    </field>
2055    <field name="Post Deblocking - Address" start="70" end="95" type="address"/>
2056    <field name="Original Uncompressed Picture Source - Cacheability Control" start="96" end="97" type="uint">
2057      <value name="GTT entry" value="0"/>
2058      <value name="Not in LLC or MLC" value="1"/>
2059      <value name="In LLC but not MLC" value="2"/>
2060      <value name="Both LLC and MLC" value="3"/>
2061    </field>
2062    <field name="Original Uncompressed Picture Source - Graphics Data Type" start="98" end="98" type="uint"/>
2063    <field name="Original Uncompressed Picture Source - Arbitration Priority Control" start="100" end="101" type="uint">
2064      <value name="Highest priority" value="0"/>
2065      <value name="Second highest priority" value="1"/>
2066      <value name="Third highest priority" value="2"/>
2067      <value name="Lowest priority" value="3"/>
2068    </field>
2069    <field name="Original Uncompressed Picture Source - Address" start="102" end="127" type="address"/>
2070    <field name="Stream-Out Data Destination - Cacheability Control" start="128" end="129" type="uint">
2071      <value name="GTT entry" value="0"/>
2072      <value name="Not in LLC or MLC" value="1"/>
2073      <value name="In LLC but not MLC" value="2"/>
2074      <value name="Both LLC and MLC" value="3"/>
2075    </field>
2076    <field name="Stream-Out Data Destination - Graphics Data Type" start="130" end="130" type="uint"/>
2077    <field name="Stream-Out Data Destination - Arbitration Priority Control" start="132" end="133" type="uint">
2078      <value name="Highest priority" value="0"/>
2079      <value name="Second highest priority" value="1"/>
2080      <value name="Third highest priority" value="2"/>
2081      <value name="Lowest priority" value="3"/>
2082    </field>
2083    <field name="Stream-Out Data Destination - Address" start="134" end="159" type="offset"/>
2084    <field name="Intra Row Store Scratch Buffer - Cacheability Control" start="160" end="161" type="uint">
2085      <value name="GTT entry" value="0"/>
2086      <value name="Not in LLC or MLC" value="1"/>
2087      <value name="In LLC but not MLC" value="2"/>
2088      <value name="Both LLC and MLC" value="3"/>
2089    </field>
2090    <field name="Intra Row Store Scratch Buffer - Graphics Data Type" start="162" end="162" type="uint"/>
2091    <field name="Intra Row Store Scratch Buffer - Arbitration Priority Control" start="164" end="165" type="uint">
2092      <value name="Highest priority" value="0"/>
2093      <value name="Second highest priority" value="1"/>
2094      <value name="Third highest priority" value="2"/>
2095      <value name="Lowest priority" value="3"/>
2096    </field>
2097    <field name="Intra Row Store Scratch Buffer - Address" start="166" end="191" type="address"/>
2098    <field name="Deblocking Filter Row Store Scratch Buffer - Cacheability Control" start="192" end="193" type="uint">
2099      <value name="GTT entry" value="0"/>
2100      <value name="Not in LLC or MLC" value="1"/>
2101      <value name="In LLC but not MLC" value="2"/>
2102      <value name="Both LLC and MLC" value="3"/>
2103    </field>
2104    <field name="Deblocking Filter Row Store Scratch Buffer - Graphics Data Type" start="194" end="194" type="uint"/>
2105    <field name="Deblocking Filter Row Store Scratch Buffer - Arbitration Priority Control" start="196" end="197" type="uint">
2106      <value name="Highest priority" value="0"/>
2107      <value name="Second highest priority" value="1"/>
2108      <value name="Third highest priority" value="2"/>
2109      <value name="Lowest priority" value="3"/>
2110    </field>
2111    <field name="Deblocking Filter Row Store Scratch Buffer - Address" start="198" end="223" type="address"/>
2112    <group count="16" start="224" size="32">
2113      <field name="Reference Picture - Address" start="6" end="31" type="address"/>
2114      <field name="Reference Picture - Arbitration Priority Control" start="4" end="5" type="uint">
2115        <value name="Highest priority" value="0"/>
2116        <value name="Second highest priority" value="1"/>
2117        <value name="Third highest priority" value="2"/>
2118        <value name="Lowest priority" value="3"/>
2119      </field>
2120      <field name="Reference Picture - Graphics Data Type" start="2" end="2" type="uint"/>
2121      <field name="Reference Picture - Cacheability Control" start="0" end="1" type="uint">
2122        <value name="GTT entry" value="0"/>
2123        <value name="Not in LLC or MLC" value="1"/>
2124        <value name="In LLC but not MLC" value="2"/>
2125        <value name="Both LLC and MLC" value="3"/>
2126      </field>
2127    </group>
2128    <field name="MB Status Buffer - Cacheability Control" start="736" end="737" type="uint">
2129      <value name="GTT entry" value="0"/>
2130      <value name="Not in LLC or MLC" value="1"/>
2131      <value name="In LLC but not MLC" value="2"/>
2132      <value name="Both LLC and MLC" value="3"/>
2133    </field>
2134    <field name="MB Status Buffer - Graphics Data Type" start="738" end="738" type="uint"/>
2135    <field name="MB Status Buffer - Arbitration Priority Control" start="740" end="741" type="uint">
2136      <value name="Highest priority" value="0"/>
2137      <value name="Second highest priority" value="1"/>
2138      <value name="Third highest priority" value="2"/>
2139      <value name="Lowest priority" value="3"/>
2140    </field>
2141    <field name="MB Status Buffer - Address" start="742" end="767" type="address"/>
2142  </instruction>
2143
2144  <instruction name="MFX_PIPE_MODE_SELECT" bias="2" length="4" engine="video">
2145    <field name="DWord Length" start="0" end="11" type="uint" default="2"/>
2146    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
2147    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2148    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2149    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2150    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2151    <field name="Standard Select" start="32" end="33" type="uint" prefix="SS">
2152      <value name="VC1" value="1"/>
2153      <value name="AVC" value="2"/>
2154    </field>
2155    <field name="Codec Select" start="36" end="36" type="uint">
2156      <value name="Decode" value="0"/>
2157      <value name="Encode" value="1"/>
2158    </field>
2159    <field name="Stitch Mode" start="37" end="37" type="bool"/>
2160    <field name="ZLR TLB Prefetch Enable" start="39" end="39" type="bool"/>
2161    <field name="Pre Deblocking Output Enable" start="40" end="40" type="bool"/>
2162    <field name="Post Deblocking Output Enable" start="41" end="41" type="bool"/>
2163    <field name="Stream-Out Enable" start="42" end="42" type="bool"/>
2164    <field name="Decoder Mode select" start="48" end="48" type="uint">
2165      <value name="LD Mode" value="0"/>
2166      <value name="IT Mode" value="1"/>
2167    </field>
2168    <field name="AVC ILDB Boundary Strength Calculation" start="64" end="64" type="uint">
2169      <value name="Calculated only when post-filter is ON" value="0"/>
2170      <value name="Calculated all the time" value="1"/>
2171    </field>
2172    <field name="AVC Long Field MV" start="65" end="65" type="uint">
2173      <value name="13 bits precision" value="0"/>
2174      <value name="12 bits precision" value="1"/>
2175    </field>
2176    <field name="AVC CABAC/CAVLC Decode Error Disable" start="66" end="66" type="uint">
2177      <value name="Terminate" value="0"/>
2178      <value name="Will not terminate" value="1"/>
2179    </field>
2180    <field name="AVC Mbdata Error Disable" start="67" end="67" type="uint"/>
2181    <field name="AVC MV/POC Table Error Disable" start="68" end="68" type="uint">
2182      <value name="Terminates" value="0"/>
2183      <value name="Will not terminate" value="1"/>
2184    </field>
2185    <field name="Clock Gate Enable at Slice-level" start="70" end="70" type="bool"/>
2186    <field name="Intra 8x8 Rounding" start="83" end="83" type="uint"/>
2187    <field name="Slice PB Rounding" start="84" end="84" type="uint"/>
2188  </instruction>
2189
2190  <instruction name="MFX_STATE_POINTER" bias="2" length="2" engine="video">
2191    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
2192    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
2193    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2194    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2195    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2196    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2197    <field name="State Pointer Index" start="32" end="33" type="uint">
2198      <value name="Indirect state pointer 0" value="0"/>
2199      <value name="Indirect state pointer 1" value="1"/>
2200      <value name="Indirect state pointer 2" value="2"/>
2201      <value name="Indirect state pointer 3" value="3"/>
2202    </field>
2203    <field name="State Pointer" start="37" end="63" type="uint"/>
2204  </instruction>
2205
2206  <instruction name="MFX_SURFACE_STATE" bias="2" length="6" engine="video">
2207    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
2208    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
2209    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2210    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2211    <field name="Pipeline" start="27" end="28" type="uint" default="0"/>
2212    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2213    <field name="Cr(V)/Cb(U) Pixel Offset V Direction" start="64" end="65" type="uint"/>
2214    <field name="Width" start="70" end="82" type="uint"/>
2215    <field name="Height" start="83" end="95" type="uint"/>
2216    <field name="Tile Walk" start="96" end="96" type="uint" prefix="TW">
2217      <value name="XMAJOR" value="0"/>
2218      <value name="YMAJOR" value="1"/>
2219    </field>
2220    <field name="Tiled Surface" start="97" end="97" type="bool"/>
2221    <field name="Half Pitch for Chroma" start="98" end="98" type="bool"/>
2222    <field name="Surface Pitch" start="99" end="115" type="uint"/>
2223    <field name="Interleave Chroma" start="123" end="123" type="bool"/>
2224    <field name="Surface Format" start="124" end="127" type="uint">
2225      <value name="YCRCB_NORMAL" value="0"/>
2226      <value name="YCRCB_SWAPUVY" value="1"/>
2227      <value name="YCRCB_SWAPUV" value="2"/>
2228      <value name="YCRCB_SWAPY" value="3"/>
2229      <value name="PLANAR_420_8" value="4"/>
2230      <value name="PLANAR_411_8" value="5"/>
2231      <value name="PLANAR_422_8" value="6"/>
2232      <value name="STMM_DN_STATISTICS" value="7"/>
2233      <value name="R10G10B10A2_UNORM" value="8"/>
2234      <value name="R8G8B8A8_UNORM" value="9"/>
2235      <value name="R8B8_UNORM (CrCb)" value="10"/>
2236      <value name="R8_UNORM (Cr/Cb)" value="11"/>
2237      <value name="Y8_UNORM" value="12"/>
2238    </field>
2239    <field name="Y Offset for U(Cb)" start="128" end="140" type="uint"/>
2240    <field name="X Offset for U(Cb)" start="144" end="156" type="uint"/>
2241    <field name="Y Offset for V(Cr)" start="160" end="172" type="uint"/>
2242    <field name="X Offset for V(Cr)" start="176" end="188" type="uint"/>
2243  </instruction>
2244
2245  <instruction name="MFX_VC1_DIRECTMODE_STATE" bias="2" length="3" engine="video">
2246    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
2247    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
2248    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2249    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
2250    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2251    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2252    <field name="Direct MV Write Buffer - Cacheability Control" start="32" end="33" type="uint">
2253      <value name="GTT entry" value="0"/>
2254      <value name="Not in in LLC or MLC" value="1"/>
2255      <value name="In LLC but not MLC" value="2"/>
2256      <value name="Both LLC and MLC" value="3"/>
2257    </field>
2258    <field name="Direct MV Write Buffer - Graphics Data Type" start="34" end="34" type="uint"/>
2259    <field name="Direct MV Write Buffer - Arbitration Priority Control" start="36" end="37" type="uint">
2260      <value name="Highest Priority" value="0"/>
2261      <value name="Second highest priority" value="1"/>
2262      <value name="Third highest priority" value="2"/>
2263      <value name="Lowest Priority" value="3"/>
2264    </field>
2265    <field name="Direct MV Write Buffer - Address" start="38" end="63" type="address"/>
2266    <field name="Direct MV Read Buffer - Cacheability Control" start="64" end="65" type="uint">
2267      <value name="GTT entry" value="0"/>
2268      <value name="Not in LLC or MLC" value="1"/>
2269      <value name="In LLC but not MLC" value="2"/>
2270      <value name="Both LLC and MLC" value="3"/>
2271    </field>
2272    <field name="Direct MV Read Buffer - Graphics Data Type" start="66" end="66" type="uint"/>
2273    <field name="Direct MV Read Buffer - Arbitration Priority Control" start="68" end="69" type="uint">
2274      <value name="Highest priority" value="0"/>
2275      <value name="Second highest priority" value="1"/>
2276      <value name="Third highest priority" value="2"/>
2277      <value name="Lowest priority" value="3"/>
2278    </field>
2279    <field name="Direct MV Read Buffer - Address" start="70" end="95" type="address"/>
2280  </instruction>
2281
2282  <instruction name="MFX_VC1_PIC_STATE" bias="2" length="6" engine="video">
2283    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
2284    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
2285    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2286    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
2287    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2288    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2289    <field name="Picture Width in MBs" start="32" end="39" type="uint"/>
2290    <field name="Picture Height in MBs" start="48" end="55" type="uint"/>
2291    <field name="Frame Coding Mode" start="64" end="65" type="uint">
2292      <value name="Progressive Frame Picture" value="0"/>
2293      <value name="Interlaced Frame Picture" value="1"/>
2294      <value name="Field Picture with Top Field First" value="2"/>
2295      <value name="Field Picture with Bottom Field First" value="3"/>
2296    </field>
2297    <field name="Picture Type" start="66" end="68" type="uint"/>
2298    <field name="Second Field" start="69" end="69" type="bool"/>
2299    <field name="CONDOVER" start="70" end="71" type="uint"/>
2300    <field name="PQ Uniform" start="72" end="72" type="bool"/>
2301    <field name="Half QP" start="73" end="73" type="uint"/>
2302    <field name="Alternative PQ Configuration" start="74" end="75" type="uint"/>
2303    <field name="Alternative PQ Edge Mask" start="76" end="79" type="uint"/>
2304    <field name="PQ Value" start="80" end="84" type="uint"/>
2305    <field name="Implicit Quantizer" start="85" end="85" type="bool"/>
2306    <field name="Overlap Smoothing Enable" start="86" end="86" type="bool"/>
2307    <field name="Loop Filter Enable" start="87" end="87" type="bool"/>
2308    <field name="Alternative PQ Value" start="88" end="92" type="uint"/>
2309    <field name="Concealment Enable" start="93" end="93" type="bool"/>
2310    <field name="Sync Marker" start="95" end="95" type="bool"/>
2311    <field name="FRFD Reference Distance" start="96" end="100" type="uint"/>
2312    <field name="Number of References" start="101" end="101" type="uint">
2313      <value name="One field referenced" value="0"/>
2314      <value name="Two fields referenced" value="1"/>
2315    </field>
2316    <field name="Reference Field Picture Polarity" start="102" end="102" type="uint">
2317      <value name="Top (even) Field" value="0"/>
2318      <value name="Bottom (odd) Field" value="1"/>
2319    </field>
2320    <field name="Unified MV Mode" start="104" end="105" type="uint">
2321      <value name="1-MV half-pel bilinear" value="3"/>
2322      <value name="1-MV" value="1"/>
2323      <value name="1-MV half-pel" value="2"/>
2324      <value name="Mixed MV" value="0"/>
2325    </field>
2326    <field name="Fast UV Motion Compensation" start="106" end="106" type="uint">
2327      <value name="No Rounding" value="0"/>
2328      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
2329    </field>
2330    <field name="Four MV Switch" start="107" end="107" type="uint">
2331      <value name="Only 1-MV" value="0"/>
2332      <value name="1, 2, or 4 MVs" value="1"/>
2333    </field>
2334    <field name="Extended MV Range" start="108" end="109" type="uint"/>
2335    <field name="Extended DMV Range" start="110" end="111" type="uint"/>
2336    <field name="FIELDTX Raw" start="112" end="112" type="bool"/>
2337    <field name="ACPRED Raw" start="113" end="113" type="bool"/>
2338    <field name="OVERFLAGS Raw" start="114" end="114" type="bool"/>
2339    <field name="DIRECTMB Raw" start="115" end="115" type="bool"/>
2340    <field name="SKIPMB Raw" start="116" end="116" type="bool"/>
2341    <field name="MVTYPEMB Raw" start="117" end="117" type="bool"/>
2342    <field name="FORWARDMB Raw" start="118" end="118" type="bool"/>
2343    <field name="Bitplane Buffer Present" start="119" end="119" type="bool"/>
2344    <field name="Coded Block Pattern Table" start="128" end="130" type="uint"/>
2345    <field name="Intra Transform DC Table" start="131" end="131" type="uint"/>
2346    <field name="Picture-level Transform Chroma AC Coding Set Index" start="132" end="133" type="uint"/>
2347    <field name="Picture-level Transform Luma AC Coding Set Index" start="134" end="135" type="uint"/>
2348    <field name="MB Mode Table" start="136" end="138" type="uint"/>
2349    <field name="MB Transform Type" start="139" end="139" type="uint"/>
2350    <field name="Picture-level Transform Type" start="140" end="141" type="uint">
2351      <value name="8x8 Transform" value="0"/>
2352      <value name="8x4 Transform" value="1"/>
2353      <value name="4x8 Transform" value="2"/>
2354      <value name="4x4 Transform" value="3"/>
2355    </field>
2356    <field name="2-MV Block Pattern Table" start="144" end="145" type="uint"/>
2357    <field name="4-MV Block Pattern Table" start="146" end="147" type="uint"/>
2358    <field name="MV Table" start="148" end="150" type="uint"/>
2359    <field name="Scale Factor" start="152" end="159" type="uint"/>
2360    <field name="Bitplane Buffer Pitch" start="160" end="167" type="uint"/>
2361    <field name="BRFD Reference Distance" start="168" end="172" type="uint"/>
2362    <field name="DMV Surface Valid" start="173" end="173" type="bool"/>
2363  </instruction>
2364
2365  <instruction name="MFX_VC1_PRED_PIPE_STATE" bias="2" length="4" engine="video">
2366    <field name="DWord Length" start="0" end="11" type="uint" default="2"/>
2367    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
2368    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2369    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
2370    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2371    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2372    <field name="VC1 Profile" start="34" end="35" type="uint">
2373      <value name="Simple Profile" value="0"/>
2374      <value name="Main Profile" value="1"/>
2375      <value name="Advanced Profile" value="2"/>
2376    </field>
2377    <field name="Interpolation Rounder Control" start="36" end="36" type="uint"/>
2378    <field name="Reference Frame Boundary Replication Mode" start="40" end="43" type="uint">
2379      <value name="Progressive Frame Replication" value="0"/>
2380      <value name="Interlace Frame Replication" value="1"/>
2381    </field>
2382    <field name="LumScale1 - single - FWD" start="64" end="69" type="uint"/>
2383    <field name="LumScale2 - single - FWD" start="72" end="77" type="uint"/>
2384    <field name="LumShift1 - single - FWD" start="80" end="85" type="uint"/>
2385    <field name="LumShift2 - single - FWD" start="88" end="93" type="uint"/>
2386    <field name="LumScale1 - double - FWD" start="96" end="101" type="uint"/>
2387    <field name="LumScale2 - double - FWD" start="104" end="109" type="uint"/>
2388    <field name="LumShift1 - double - FWD" start="112" end="117" type="uint"/>
2389    <field name="LumShift2 - double - FWD" start="120" end="125" type="uint"/>
2390    <field name="LumScale1 - single - BWD" start="128" end="133" type="uint"/>
2391    <field name="LumScale2 - single - BWD" start="136" end="141" type="uint"/>
2392    <field name="LumShift1 - single - BWD" start="144" end="149" type="uint"/>
2393    <field name="LumShift2 - single - BWD" start="152" end="157" type="uint"/>
2394    <field name="LumScale1 - double - BWD" start="160" end="165" type="uint"/>
2395    <field name="LumScale2 - double - BWD" start="168" end="173" type="uint"/>
2396    <field name="LumShift1 - double - BWD" start="176" end="181" type="uint"/>
2397    <field name="LumShift2 - double - BWD" start="184" end="189" type="uint"/>
2398    <field name="Vin Intensity Compensation Single Backward Enable" start="192" end="193" type="uint"/>
2399    <field name="Vin Intensity Compensation Single Forward Enable" start="194" end="195" type="uint"/>
2400    <field name="Vin Intensity Compensation Double Backward Enable" start="196" end="197" type="uint"/>
2401    <field name="Vin Intensity Compensation Double Forward Enable" start="198" end="199" type="uint"/>
2402    <field name="Range Reduction" start="208" end="208" type="bool"/>
2403    <field name="Range Reduction Scale" start="209" end="209" type="uint"/>
2404    <field name="Fast UV Compensation" start="210" end="210" type="bool"/>
2405    <field name="MV Mode" start="211" end="212" type="uint">
2406      <value name="Half-pel bicubic" value="0"/>
2407      <value name="Quarter-pel bicubic" value="1"/>
2408    </field>
2409  </instruction>
2410
2411  <instruction name="MFX_WAIT" bias="1" length="1" engine="video">
2412    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
2413    <field name="MFX Sync Control Flag" start="8" end="8" type="bool"/>
2414    <field name="SubOpcode" start="16" end="26" type="uint" default="0"/>
2415    <field name="Command Subtype" start="27" end="28" type="uint" default="1"/>
2416    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2417  </instruction>
2418
2419  <instruction name="MI_ARB_CHECK" bias="1" length="1">
2420    <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
2421    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2422  </instruction>
2423
2424  <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
2425    <field name="Arbitration Enable" start="0" end="0" type="bool"/>
2426    <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
2427    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2428  </instruction>
2429
2430  <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
2431    <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
2432    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2433  </instruction>
2434
2435  <instruction name="MI_BATCH_BUFFER_START" bias="2" length="2">
2436    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2437    <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
2438      <value name="GGTT" value="0"/>
2439      <value name="PPGTT" value="1"/>
2440    </field>
2441    <field name="Clear Command Buffer Enable" start="11" end="11" type="bool"/>
2442    <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
2443    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2444    <field name="Batch Buffer Start Address" start="34" end="63" type="address"/>
2445  </instruction>
2446
2447  <instruction name="MI_CLFLUSH" bias="2" engine="render">
2448    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
2449    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2450    <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
2451    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2452    <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
2453    <field name="Page Base Address" start="44" end="63" type="address"/>
2454    <group count="0" start="64" size="32">
2455      <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
2456    </group>
2457  </instruction>
2458
2459  <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="2">
2460    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2461    <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
2462    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2463    <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
2464    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2465    <field name="Compare Data Dword" start="32" end="63" type="uint"/>
2466    <field name="Compare Address" start="67" end="95" type="address"/>
2467  </instruction>
2468
2469  <instruction name="MI_FLUSH" bias="1" length="1" engine="render">
2470    <field name="State/Instruction Cache Invalidate" start="1" end="1" type="uint">
2471      <value name="Don't Invalidate" value="0"/>
2472      <value name="Invalidate" value="1"/>
2473    </field>
2474    <field name="Render Cache Flush Inhibit" start="2" end="2" type="uint">
2475      <value name="Flush" value="0"/>
2476      <value name="Don't Flush" value="1"/>
2477    </field>
2478    <field name="Global Snapshot Count Reset" start="3" end="3" type="uint">
2479      <value name="Don't Reset" value="0"/>
2480      <value name="Reset" value="1"/>
2481    </field>
2482    <field name="Generic Media State Clear" start="4" end="4" type="bool"/>
2483    <field name="Indirect State Pointers Disable" start="5" end="5" type="bool"/>
2484    <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
2485    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2486  </instruction>
2487
2488  <instruction name="MI_FLUSH_DW" bias="2" length="4" engine="video">
2489    <field name="DWord Length" start="0" end="5" type="uint"/>
2490    <field name="Video Pipeline Cache Invalidate" start="7" end="7" type="bool"/>
2491    <field name="Notify Enable" start="8" end="8" type="bool"/>
2492    <field name="Post-Sync Operation" start="14" end="15" type="uint"/>
2493    <field name="Synchronize GFDT Surface" start="17" end="17" type="bool"/>
2494    <field name="TLB Invalidate" start="18" end="18" type="bool"/>
2495    <field name="Store Data Index" start="21" end="21" type="bool"/>
2496    <field name="MI Command Opcode" start="23" end="28" type="uint" default="38"/>
2497    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2498    <field name="Destination Address Type" start="34" end="34" type="uint" prefix="DAT">
2499      <value name="PPGTT" value="0"/>
2500      <value name="GGTT" value="1"/>
2501    </field>
2502    <field name="Address" start="35" end="63" type="address"/>
2503    <group count="2" start="64" size="32">
2504      <field name="Immediate Data" start="0" end="31" type="uint"/>
2505    </group>
2506  </instruction>
2507
2508  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
2509    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2510    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
2511    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
2512    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2513    <field name="Register Offset" start="34" end="54" type="offset"/>
2514    <field name="Data DWord" start="64" end="95" type="uint"/>
2515    <group count="0" start="96" size="64">
2516      <field name="Register Offset" start="2" end="22" type="offset"/>
2517      <field name="Data DWord" start="32" end="63" type="uint"/>
2518    </group>
2519  </instruction>
2520
2521  <instruction name="MI_LOAD_SCAN_LINES_EXCL" bias="2" length="2" engine="render">
2522    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
2523    <field name="Display (Plane) Select" start="19" end="21" type="uint">
2524      <value name="Display Plane A" value="0"/>
2525      <value name="Display Plane B" value="1"/>
2526      <value name="Display Plane C" value="4"/>
2527    </field>
2528    <field name="MI Command Opcode" start="23" end="28" type="uint" default="19"/>
2529    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2530    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
2531    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
2532  </instruction>
2533
2534  <instruction name="MI_NOOP" bias="1" length="1">
2535    <field name="Identification Number" start="0" end="21" type="uint"/>
2536    <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
2537    <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
2538    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2539  </instruction>
2540
2541  <instruction name="MI_REPORT_HEAD" bias="1" length="1">
2542    <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
2543    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2544  </instruction>
2545
2546  <instruction name="MI_SEMAPHORE_MBOX" bias="2" length="3">
2547    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2548    <field name="Register Select" start="16" end="17" type="uint">
2549      <value name="RVSYNC" value="0"/>
2550      <value name="RBSYNC" value="2"/>
2551      <value name="Use General Register Select" value="3"/>
2552    </field>
2553    <field name="MI Command Opcode" start="23" end="28" type="uint" default="22"/>
2554    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2555    <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
2556  </instruction>
2557
2558  <instruction name="MI_SET_CONTEXT" bias="2" length="2" engine="render">
2559    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2560    <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
2561    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2562    <field name="Restore Inhibit" start="32" end="32" type="uint"/>
2563    <field name="Force Restore" start="33" end="33" type="uint"/>
2564    <field name="Extended State Restore Enable" start="34" end="34" type="bool"/>
2565    <field name="Extended State Save Enable" start="35" end="35" type="bool"/>
2566    <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
2567    <field name="HD DVD Context" start="41" end="41" type="bool"/>
2568    <field name="Logical Context Address" start="44" end="63" type="address"/>
2569  </instruction>
2570
2571  <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
2572    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
2573    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2574    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
2575    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2576    <field name="Core Mode Enable" start="64" end="64" type="uint"/>
2577    <field name="Address" start="66" end="95" type="address"/>
2578    <field name="Immediate Data" start="96" end="159" type="uint"/>
2579  </instruction>
2580
2581  <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
2582    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2583    <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
2584    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2585    <field name="Offset" start="34" end="43" type="uint"/>
2586    <field name="Data DWord 0" start="64" end="95" type="uint"/>
2587    <field name="Data DWord 1" start="96" end="127" type="uint"/>
2588  </instruction>
2589
2590  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="3">
2591    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2592    <field name="Use Global GTT" start="22" end="22" type="bool"/>
2593    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
2594    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2595    <field name="Register Address" start="34" end="54" type="offset"/>
2596    <field name="Memory Address" start="66" end="95" type="address"/>
2597  </instruction>
2598
2599  <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
2600    <field name="Suspend Flush" start="0" end="0" type="bool"/>
2601    <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
2602    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2603  </instruction>
2604
2605  <instruction name="MI_URB_CLEAR" bias="2" length="2" engine="render">
2606    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2607    <field name="MI Command Opcode" start="23" end="28" type="uint" default="25"/>
2608    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2609    <field name="URB Address" start="32" end="45" type="offset"/>
2610    <field name="URB Clear Length" start="48" end="60" type="uint"/>
2611  </instruction>
2612
2613  <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
2614    <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
2615    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2616  </instruction>
2617
2618  <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1" engine="render|blitter|video">
2619    <field name="Display Pipe A Scan Line Wait Enable" start="0" end="0" type="bool"/>
2620    <field name="Display Plane A Flip Pending Wait Enable" start="1" end="1" type="bool"/>
2621    <field name="Display Sprite A Flip Pending Wait Enable" start="2" end="2" type="bool"/>
2622    <field name="Display Pipe A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
2623    <field name="Display Pipe A Horizontal Blank Wait Enable" start="5" end="5" type="bool"/>
2624    <field name="Display Pipe B Scan Line Wait Enable" start="8" end="8" type="bool"/>
2625    <field name="Display Plane B Flip Pending Wait Enable" start="9" end="9" type="bool"/>
2626    <field name="Display Sprite B Flip Pending Wait Enable" start="10" end="10" type="bool"/>
2627    <field name="Display Pipe B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
2628    <field name="Display Pipe B Horizontal Blank Wait Enable" start="13" end="13" type="bool"/>
2629    <field name="Condition Code Wait Select" start="16" end="19" type="uint">
2630      <value name="Not enabled" value="0"/>
2631    </field>
2632    <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
2633    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
2634  </instruction>
2635
2636  <instruction name="PIPELINE_SELECT" bias="1" length="1" engine="render">
2637    <field name="Pipeline Selection" start="0" end="1" type="uint">
2638      <value name="3D" value="0"/>
2639      <value name="Media" value="1"/>
2640    </field>
2641    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
2642    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2643    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
2644    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2645  </instruction>
2646
2647  <instruction name="PIPE_CONTROL" bias="2" length="5" engine="render">
2648    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2649    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
2650    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
2651    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2652    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2653    <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
2654    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
2655    <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
2656    <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
2657    <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
2658    <field name="Notify Enable" start="40" end="40" type="bool"/>
2659    <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
2660    <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
2661    <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
2662    <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
2663    <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
2664    <field name="Post Sync Operation" start="46" end="47" type="uint">
2665      <value name="No Write" value="0"/>
2666      <value name="Write Immediate Data" value="1"/>
2667      <value name="Write PS Depth Count" value="2"/>
2668      <value name="Write Timestamp" value="3"/>
2669    </field>
2670    <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
2671    <field name="Synchronize GFDT Surface" start="49" end="49" type="bool"/>
2672    <field name="TLB Invalidate" start="50" end="50" type="bool"/>
2673    <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
2674    <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
2675    <field name="Store Data Index" start="53" end="53" type="uint"/>
2676    <field name="Destination Address Type" start="66" end="66" type="uint" prefix="DAT">
2677      <value name="GGTT" value="1"/>
2678    </field>
2679    <field name="Address" start="67" end="95" type="address"/>
2680    <field name="Immediate Data" start="96" end="159" type="uint"/>
2681  </instruction>
2682
2683  <instruction name="STATE_BASE_ADDRESS" bias="2" length="10" engine="render">
2684    <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
2685    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
2686    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2687    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2688    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2689    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
2690    <field name="Stateless Data Port Access Force Write Thru" start="35" end="35" type="uint"/>
2691    <field name="Stateless Data Port Access MOCS" start="36" end="39" type="uint"/>
2692    <field name="General State MOCS" start="40" end="43" type="uint"/>
2693    <field name="General State Base Address" start="44" end="63" type="address"/>
2694    <field name="Surface State Base Address Modify Enable" start="64" end="64" type="bool"/>
2695    <field name="Surface State MOCS" start="72" end="75" type="uint"/>
2696    <field name="Surface State Base Address" start="76" end="95" type="address"/>
2697    <field name="Dynamic State Base Address Modify Enable" start="96" end="96" type="bool"/>
2698    <field name="Dynamic State MOCS" start="104" end="107" type="uint"/>
2699    <field name="Dynamic State Base Address" start="108" end="127" type="address"/>
2700    <field name="Indirect Object Base Address Modify Enable" start="128" end="128" type="bool"/>
2701    <field name="Indirect Object MOCS" start="136" end="139" type="uint"/>
2702    <field name="Indirect Object Base Address" start="140" end="159" type="address"/>
2703    <field name="Instruction Base Address Modify Enable" start="160" end="160" type="bool"/>
2704    <field name="Instruction MOCS" start="168" end="171" type="uint"/>
2705    <field name="Instruction Base Address" start="172" end="191" type="address"/>
2706    <field name="General State Access Upper Bound Modify Enable" start="192" end="192" type="bool"/>
2707    <field name="General State Access Upper Bound" start="204" end="223" type="address"/>
2708    <field name="Dynamic State Access Upper Bound Modify Enable" start="224" end="224" type="bool"/>
2709    <field name="Dynamic State Access Upper Bound" start="236" end="255" type="address"/>
2710    <field name="Indirect Object Access Upper Bound Modify Enable" start="256" end="256" type="bool"/>
2711    <field name="Indirect Object Access Upper Bound" start="268" end="287" type="address"/>
2712    <field name="Instruction Access Upper Bound Modify Enable" start="288" end="288" type="bool"/>
2713    <field name="Instruction Access Upper Bound" start="300" end="319" type="address"/>
2714  </instruction>
2715
2716  <instruction name="STATE_PREFETCH" bias="2" length="2" engine="render">
2717    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2718    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
2719    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2720    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2721    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2722    <field name="Prefetch Count" start="32" end="34" type="uint"/>
2723    <field name="Prefetch Pointer" start="38" end="63" type="address"/>
2724  </instruction>
2725
2726  <instruction name="STATE_SIP" bias="2" length="2" engine="render">
2727    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2728    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
2729    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2730    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2731    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2732    <field name="System Instruction Pointer" start="36" end="63" type="offset"/>
2733  </instruction>
2734
2735  <register name="BCS_FAULT_REG" length="1" num="0x4294">
2736    <field name="Valid Bit" start="0" end="0" type="bool"/>
2737    <field name="Fault Type" start="1" end="2" type="uint">
2738      <value name="Page Fault" value="0"/>
2739      <value name="Invalid PD Fault" value="1"/>
2740      <value name="Unloaded PD Fault" value="2"/>
2741      <value name="Invalid and Unloaded PD fault" value="3"/>
2742    </field>
2743    <field name="SRCID of Fault" start="3" end="10" type="uint"/>
2744    <field name="GTTSEL" start="11" end="11" type="uint">
2745      <value name="PPGTT" value="0"/>
2746      <value name="GGTT" value="1"/>
2747    </field>
2748    <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
2749  </register>
2750
2751  <register name="BCS_INSTDONE" length="1" num="0x2206c">
2752    <field name="Ring Enable" start="0" end="0" type="bool"/>
2753    <field name="Blitter IDLE" start="1" end="1" type="bool" default="1"/>
2754    <field name="GAB IDLE" start="2" end="2" type="bool" default="1"/>
2755    <field name="BCS Done" start="3" end="3" type="bool" default="1"/>
2756  </register>
2757
2758  <register name="BCS_RING_BUFFER_CTL" length="1" num="0x2203c">
2759    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
2760    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
2761      <value name="MI_AUTOREPORT_OFF" value="0"/>
2762      <value name="MI_AUTOREPORT_64KB" value="1"/>
2763      <value name="MI_AUTOREPORT_4KB" value="2"/>
2764      <value name="MI_AUTOREPORT_128KB" value="3"/>
2765    </field>
2766    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
2767    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
2768    <field name="RBWait" start="11" end="11" type="bool"/>
2769    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
2770  </register>
2771
2772  <register name="GFX_ARB_ERROR_RPT" length="1" num="0x40a0">
2773    <field name="TLB Page Fault Error" start="0" end="0" type="bool"/>
2774    <field name="Context Page Fault Error" start="1" end="1" type="bool"/>
2775    <field name="Invalid Page Directory entry error" start="2" end="2" type="bool"/>
2776    <field name="Hardware Status Page Fault Error" start="3" end="3" type="bool"/>
2777    <field name="TLB Page VTD Translation Error" start="4" end="4" type="bool"/>
2778    <field name="Context Page VTD Translation Error" start="5" end="5" type="bool"/>
2779    <field name="Page Directory Entry VTD Translation Error" start="6" end="6" type="bool"/>
2780    <field name="Hardware Status Page VTD Translation Error" start="7" end="7" type="bool"/>
2781    <field name="Unloaded PD Error" start="8" end="8" type="bool"/>
2782  </register>
2783
2784  <register name="INSTDONE_1" length="1" num="0x206c">
2785    <field name="PRB0 Ring Enable" start="0" end="0" type="bool"/>
2786    <field name="AVS Done" start="1" end="1" type="bool"/>
2787    <field name="HIZ Done" start="2" end="2" type="bool"/>
2788    <field name="GW Done" start="3" end="3" type="bool"/>
2789    <field name="TS Done" start="4" end="4" type="bool"/>
2790    <field name="TD Done" start="6" end="6" type="bool"/>
2791    <field name="VFE Done" start="7" end="7" type="bool"/>
2792    <field name="IEF Done" start="8" end="8" type="bool"/>
2793    <field name="VSC Done" start="9" end="9" type="bool"/>
2794    <field name="ISC2/3 Done" start="10" end="10" type="bool"/>
2795    <field name="ISC1/0 Done" start="11" end="11" type="bool"/>
2796    <field name="IC0 Done" start="12" end="12" type="bool"/>
2797    <field name="IC1 Done" start="13" end="13" type="bool"/>
2798    <field name="IC2 Done" start="14" end="14" type="bool"/>
2799    <field name="IC3 Done" start="15" end="15" type="bool"/>
2800    <field name="EU00 Done" start="16" end="16" type="bool"/>
2801    <field name="EU01 Done" start="17" end="17" type="bool"/>
2802    <field name="EU02 Done" start="18" end="18" type="bool"/>
2803    <field name="MA0 Done" start="19" end="19" type="bool"/>
2804    <field name="EU10 Done" start="20" end="20" type="bool"/>
2805    <field name="EU11 Done" start="21" end="21" type="bool"/>
2806    <field name="EU12 Done" start="22" end="22" type="bool"/>
2807    <field name="MA1 Done" start="23" end="23" type="bool"/>
2808    <field name="EU20 Done" start="24" end="24" type="bool"/>
2809    <field name="EU21 Done" start="25" end="25" type="bool"/>
2810    <field name="EU22 Done" start="26" end="26" type="bool"/>
2811    <field name="MA2 Done" start="27" end="27" type="bool"/>
2812    <field name="EU30 Done" start="28" end="28" type="bool"/>
2813    <field name="EU31 Done" start="29" end="29" type="bool"/>
2814    <field name="EU32 Done" start="30" end="30" type="bool"/>
2815    <field name="MA3 Done" start="31" end="31" type="bool"/>
2816  </register>
2817
2818  <register name="INSTDONE_2" length="1" num="0x207c">
2819    <field name="VF Done" start="0" end="0" type="bool"/>
2820    <field name="VS0 Done" start="1" end="1" type="bool"/>
2821    <field name="GS Done" start="2" end="2" type="bool"/>
2822    <field name="CL Done" start="3" end="3" type="bool"/>
2823    <field name="SF Done" start="4" end="4" type="bool"/>
2824    <field name="VME Done" start="5" end="5" type="bool"/>
2825    <field name="PL Done" start="6" end="6" type="bool"/>
2826    <field name="SO Done" start="7" end="7" type="bool"/>
2827    <field name="SI Done" start="8" end="8" type="bool"/>
2828    <field name="DG Done" start="9" end="9" type="bool"/>
2829    <field name="FT Done" start="10" end="10" type="bool"/>
2830    <field name="DM Done" start="11" end="11" type="bool"/>
2831    <field name="SC Done" start="12" end="12" type="bool"/>
2832    <field name="FL Done" start="13" end="13" type="bool"/>
2833    <field name="QC Done" start="14" end="14" type="bool"/>
2834    <field name="SVSM Done" start="15" end="15" type="bool"/>
2835    <field name="WMFE Done" start="16" end="16" type="bool"/>
2836    <field name="IZ Done" start="17" end="17" type="bool"/>
2837    <field name="PSD Done" start="18" end="18" type="bool"/>
2838    <field name="DAP Done" start="19" end="19" type="bool"/>
2839    <field name="RCZ Done" start="20" end="20" type="bool"/>
2840    <field name="VDI Done" start="21" end="21" type="bool"/>
2841    <field name="RCPBE Done" start="22" end="22" type="bool"/>
2842    <field name="RCPFE Done" start="23" end="23" type="bool"/>
2843    <field name="MT Done" start="24" end="24" type="bool"/>
2844    <field name="ISC Done" start="25" end="25" type="bool"/>
2845    <field name="SVG Done" start="26" end="26" type="bool"/>
2846    <field name="RCC Done" start="27" end="27" type="bool"/>
2847    <field name="SVRW Done" start="28" end="28" type="bool"/>
2848    <field name="WMBE Done" start="29" end="29" type="bool"/>
2849    <field name="CS Done" start="30" end="30" type="bool"/>
2850    <field name="GAM Done" start="31" end="31" type="bool"/>
2851  </register>
2852
2853  <register name="INSTPM" length="1" num="0x20c0">
2854    <field name="3D State Instruction Disable" start="1" end="1" type="bool"/>
2855    <field name="3D Rendering Instruction Disable" start="2" end="2" type="bool"/>
2856    <field name="Media Instruction Disable" start="3" end="3" type="bool"/>
2857    <field name="CONSTANT_BUFFER Address Offset Disable" start="6" end="6" type="bool"/>
2858    <field name="3D State Instruction Disable Mask" start="17" end="17" type="bool"/>
2859    <field name="3D Rendering Instruction Disable Mask" start="18" end="18" type="bool"/>
2860    <field name="Media Instruction Disable Mask" start="19" end="19" type="bool"/>
2861    <field name="CONSTANT_BUFFER Address Offset Disable Mask" start="22" end="22" type="bool"/>
2862  </register>
2863
2864  <register name="RCS_FAULT_REG" length="1" num="0x4094">
2865    <field name="Valid Bit" start="0" end="0" type="bool"/>
2866    <field name="Fault Type" start="1" end="2" type="uint">
2867      <value name="Page Fault" value="0"/>
2868      <value name="Invalid PD Fault" value="1"/>
2869      <value name="Unloaded PD Fault" value="2"/>
2870      <value name="Invalid and Unloaded PD fault" value="3"/>
2871    </field>
2872    <field name="SRCID of Fault" start="3" end="10" type="uint"/>
2873    <field name="GTTSEL" start="11" end="11" type="uint">
2874      <value name="PPGTT" value="0"/>
2875      <value name="GGTT" value="1"/>
2876    </field>
2877    <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
2878  </register>
2879
2880  <register name="RCS_RING_BUFFER_CTL" length="1" num="0x203c">
2881    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
2882    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
2883      <value name="MI_AUTOREPORT_OFF" value="0"/>
2884      <value name="MI_AUTOREPORT_64KBMI_AUTOREPORT_4KB" value="1"/>
2885      <value name="MI_AUTOREPORT_128KB" value="3"/>
2886    </field>
2887    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
2888    <field name="RBWait" start="11" end="11" type="bool"/>
2889    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
2890  </register>
2891
2892  <register name="RPSTAT1" length="1" num="0xa01c">
2893    <field name="Previous GT Frequency" start="0" end="6" type="uint"/>
2894    <field name="Current GT Frequency" start="7" end="14" type="uint"/>
2895  </register>
2896
2897  <register name="VCS_FAULT_REG" length="1" num="0x4194">
2898    <field name="Valid Bit" start="0" end="0" type="bool"/>
2899    <field name="Fault Type" start="1" end="2" type="uint">
2900      <value name="Page Fault" value="0"/>
2901      <value name="Invalid PD Fault" value="1"/>
2902      <value name="Unloaded PD Fault" value="2"/>
2903      <value name="Invalid and Unloaded PD fault" value="3"/>
2904    </field>
2905    <field name="SRCID of Fault" start="3" end="10" type="uint"/>
2906    <field name="GTTSEL" start="11" end="11" type="uint">
2907      <value name="PPGTT" value="0"/>
2908      <value name="GGTT" value="1"/>
2909    </field>
2910    <field name="Virtual Address of Fault" start="12" end="31" type="address"/>
2911  </register>
2912
2913  <register name="VCS_INSTDONE" length="1" num="0x1206c">
2914    <field name="Ring Enable" start="0" end="0" type="bool"/>
2915    <field name="USB Done" start="1" end="1" type="bool"/>
2916    <field name="QRC Done" start="2" end="2" type="bool"/>
2917    <field name="SEC Done" start="3" end="3" type="bool"/>
2918    <field name="MPC Done" start="4" end="4" type="bool"/>
2919    <field name="VFT Done" start="5" end="5" type="bool"/>
2920    <field name="BSP Done" start="6" end="6" type="bool"/>
2921    <field name="VLF Done" start="7" end="7" type="bool"/>
2922    <field name="VOP Done" start="8" end="8" type="bool"/>
2923    <field name="VMC Done" start="9" end="9" type="bool"/>
2924    <field name="VIP Done" start="10" end="10" type="bool"/>
2925    <field name="VIT Done" start="11" end="11" type="bool"/>
2926    <field name="VDS Done" start="12" end="12" type="bool"/>
2927    <field name="VMX Done" start="13" end="13" type="bool"/>
2928    <field name="VCP Done" start="14" end="14" type="bool"/>
2929    <field name="VCD Done" start="15" end="15" type="bool"/>
2930    <field name="VAD Done" start="16" end="16" type="bool"/>
2931    <field name="VMD Done" start="17" end="17" type="bool"/>
2932    <field name="VIS Done" start="18" end="18" type="bool"/>
2933    <field name="VAC Done" start="19" end="19" type="bool"/>
2934    <field name="VAM Done" start="20" end="20" type="bool"/>
2935    <field name="JPG Done" start="21" end="21" type="bool"/>
2936    <field name="VBP Done" start="22" end="22" type="bool"/>
2937    <field name="VHR Done" start="23" end="23" type="bool"/>
2938    <field name="VCI Done" start="24" end="24" type="bool"/>
2939    <field name="VCR Done" start="25" end="25" type="bool"/>
2940    <field name="VIN Done" start="26" end="26" type="bool"/>
2941    <field name="VPR Done" start="27" end="27" type="bool"/>
2942    <field name="VTQ Done" start="28" end="28" type="bool"/>
2943    <field name="VCS Done" start="30" end="30" type="bool"/>
2944    <field name="GAC Done" start="31" end="31" type="bool"/>
2945  </register>
2946
2947  <register name="VCS_RING_BUFFER_CTL" length="1" num="0x1203c">
2948    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
2949    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
2950      <value name="MI_AUTOREPORT_OFF" value="0"/>
2951      <value name="MI_AUTOREPORT_64KB" value="1"/>
2952      <value name="MI_AUTOREPORT_4KB" value="2"/>
2953      <value name="MI_AUTOREPORT_128KB" value="3"/>
2954    </field>
2955    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
2956    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
2957    <field name="RBWait" start="11" end="11" type="bool"/>
2958    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
2959  </register>
2960</genxml>
2961