1<?xml version="1.0" ?>
2<genxml name="BDW" gen="8">
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    <value name="PATCHLIST_1" value="32"/>
87    <value name="PATCHLIST_2" value="33"/>
88    <value name="PATCHLIST_3" value="34"/>
89    <value name="PATCHLIST_4" value="35"/>
90    <value name="PATCHLIST_5" value="36"/>
91    <value name="PATCHLIST_6" value="37"/>
92    <value name="PATCHLIST_7" value="38"/>
93    <value name="PATCHLIST_8" value="39"/>
94    <value name="PATCHLIST_9" value="40"/>
95    <value name="PATCHLIST_10" value="41"/>
96    <value name="PATCHLIST_11" value="42"/>
97    <value name="PATCHLIST_12" value="43"/>
98    <value name="PATCHLIST_13" value="44"/>
99    <value name="PATCHLIST_14" value="45"/>
100    <value name="PATCHLIST_15" value="46"/>
101    <value name="PATCHLIST_16" value="47"/>
102    <value name="PATCHLIST_17" value="48"/>
103    <value name="PATCHLIST_18" value="49"/>
104    <value name="PATCHLIST_19" value="50"/>
105    <value name="PATCHLIST_20" value="51"/>
106    <value name="PATCHLIST_21" value="52"/>
107    <value name="PATCHLIST_22" value="53"/>
108    <value name="PATCHLIST_23" value="54"/>
109    <value name="PATCHLIST_24" value="55"/>
110    <value name="PATCHLIST_25" value="56"/>
111    <value name="PATCHLIST_26" value="57"/>
112    <value name="PATCHLIST_27" value="58"/>
113    <value name="PATCHLIST_28" value="59"/>
114    <value name="PATCHLIST_29" value="60"/>
115    <value name="PATCHLIST_30" value="61"/>
116    <value name="PATCHLIST_31" value="62"/>
117    <value name="PATCHLIST_32" value="63"/>
118  </enum>
119
120  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
121    <value name="KEEP" value="0"/>
122    <value name="ZERO" value="1"/>
123    <value name="REPLACE" value="2"/>
124    <value name="INCRSAT" value="3"/>
125    <value name="DECRSAT" value="4"/>
126    <value name="INCR" value="5"/>
127    <value name="DECR" value="6"/>
128    <value name="INVERT" value="7"/>
129  </enum>
130
131  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
132    <value name="NOSTORE" value="0"/>
133    <value name="STORE_SRC" value="1"/>
134    <value name="STORE_0" value="2"/>
135    <value name="STORE_1_FP" value="3"/>
136    <value name="STORE_1_INT" value="4"/>
137    <value name="STORE_PID" value="7"/>
138  </enum>
139
140  <enum name="Clear Color">
141    <value name="CC_ZERO" value="0"/>
142    <value name="CC_ONE" value="1"/>
143  </enum>
144
145  <enum name="Shader Channel Select" prefix="SCS">
146    <value name="ZERO" value="0"/>
147    <value name="ONE" value="1"/>
148    <value name="RED" value="4"/>
149    <value name="GREEN" value="5"/>
150    <value name="BLUE" value="6"/>
151    <value name="ALPHA" value="7"/>
152  </enum>
153
154  <enum name="Texture Coordinate Mode" prefix="TCM">
155    <value name="WRAP" value="0"/>
156    <value name="MIRROR" value="1"/>
157    <value name="CLAMP" value="2"/>
158    <value name="CUBE" value="3"/>
159    <value name="CLAMP_BORDER" value="4"/>
160    <value name="MIRROR_ONCE" value="5"/>
161    <value name="HALF_BORDER" value="6"/>
162  </enum>
163
164  <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
165    <value name="X" value="1"/>
166    <value name="Y" value="2"/>
167    <value name="XY" value="3"/>
168    <value name="Z" value="4"/>
169    <value name="XZ" value="5"/>
170    <value name="YZ" value="6"/>
171    <value name="XYZ" value="7"/>
172    <value name="W" value="8"/>
173    <value name="XW" value="9"/>
174    <value name="YW" value="10"/>
175    <value name="XYW" value="11"/>
176    <value name="ZW" value="12"/>
177    <value name="XZW" value="13"/>
178    <value name="YZW" value="14"/>
179    <value name="XYZW" value="15"/>
180  </enum>
181
182  <struct name="3DSTATE_CONSTANT_BODY" length="10">
183    <group count="4" start="0" size="16">
184      <field name="Read Length" start="0" end="15" type="uint"/>
185    </group>
186    <group count="4" start="64" size="64">
187      <field name="Buffer" start="5" end="63" type="address"/>
188    </group>
189  </struct>
190
191  <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
192    <field name="Surface State Pointer" start="0" end="15" type="offset"/>
193    <field name="Binding Table Index" start="16" end="23" type="uint"/>
194  </struct>
195
196  <struct name="BINDING_TABLE_STATE" length="1">
197    <field name="Surface State Pointer" start="6" end="31" type="offset"/>
198  </struct>
199
200  <struct name="BLEND_STATE_ENTRY" length="2">
201    <field name="Write Disable Blue" start="0" end="0" type="bool"/>
202    <field name="Write Disable Green" start="1" end="1" type="bool"/>
203    <field name="Write Disable Red" start="2" end="2" type="bool"/>
204    <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
205    <field name="Alpha Blend Function" start="5" end="7" type="3D_Color_Buffer_Blend_Function"/>
206    <field name="Destination Alpha Blend Factor" start="8" end="12" type="3D_Color_Buffer_Blend_Factor"/>
207    <field name="Source Alpha Blend Factor" start="13" end="17" type="3D_Color_Buffer_Blend_Factor"/>
208    <field name="Color Blend Function" start="18" end="20" type="3D_Color_Buffer_Blend_Function"/>
209    <field name="Destination Blend Factor" start="21" end="25" type="3D_Color_Buffer_Blend_Factor"/>
210    <field name="Source Blend Factor" start="26" end="30" type="3D_Color_Buffer_Blend_Factor"/>
211    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
212    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
213    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
214    <field name="Color Clamp Range" start="34" end="35" type="uint">
215      <value name="COLORCLAMP_UNORM" value="0"/>
216      <value name="COLORCLAMP_SNORM" value="1"/>
217      <value name="COLORCLAMP_RTFORMAT" value="2"/>
218    </field>
219    <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
220    <field name="Logic Op Function" start="59" end="62" type="3D_Logic_Op_Function"/>
221    <field name="Logic Op Enable" start="63" end="63" type="bool"/>
222  </struct>
223
224  <struct name="BLEND_STATE" length="1">
225    <field name="Y Dither Offset" start="19" end="20" type="uint"/>
226    <field name="X Dither Offset" start="21" end="22" type="uint"/>
227    <field name="Color Dither Enable" start="23" end="23" type="bool"/>
228    <field name="Alpha Test Function" start="24" end="26" type="3D_Compare_Function"/>
229    <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
230    <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
231    <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
232    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
233    <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
234    <group count="0" start="32" size="64">
235      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
236    </group>
237  </struct>
238
239  <struct name="CC_VIEWPORT" length="2">
240    <field name="Minimum Depth" start="0" end="31" type="float"/>
241    <field name="Maximum Depth" start="32" end="63" type="float"/>
242  </struct>
243
244  <struct name="COLOR_CALC_STATE" length="6">
245    <field name="Alpha Test Format" start="0" end="0" type="uint">
246      <value name="ALPHATEST_UNORM8" value="0"/>
247      <value name="ALPHATEST_FLOAT32" value="1"/>
248    </field>
249    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
250    <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
251    <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
252    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
253    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
254    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
255    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
256    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
257    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
258  </struct>
259
260  <struct name="FILTER_COEFFICIENT" length="1">
261    <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
262  </struct>
263
264  <struct name="GATHER_CONSTANT_ENTRY" length="1">
265    <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
266    <field name="Channel Mask" start="4" end="7" type="uint"/>
267    <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
268  </struct>
269
270  <struct name="INLINE_DATA_DESCRIPTION_FOR_MFD_AVC_BSD_OBJECT" length="3">
271    <field name="MB Error Concealment P Slice Weight Prediction Disable" start="0" end="0" type="bool"/>
272    <field name="MB Error Concealment P Slice Motion Vectors Override Disable" start="1" end="1" type="bool"/>
273    <field name="MB Error Concealment B Spatial Weight Prediction Disable" start="3" end="3" type="bool"/>
274    <field name="MB Error Concealment B Spatial Motion Vectors Override Disable" start="4" end="4" type="bool"/>
275    <field name="MB Error Concealment B Spatial Prediction Mode" start="6" end="7" type="uint"/>
276    <field name="MB Header Error Handling" start="8" end="8" type="bool"/>
277    <field name="Entropy Error Handling" start="10" end="10" type="bool"/>
278    <field name="MPR Error Handling" start="12" end="12" type="bool"/>
279    <field name="BSD Premature Complete Error Handling" start="14" end="14" type="bool"/>
280    <field name="Concealment Picture ID" start="16" end="21" type="uint"/>
281    <field name="MB Error Concealment B Temporal Weight Prediction Disable" start="24" end="24" type="bool"/>
282    <field name="MB Error Concealment B Temporal Motion Vectors Override Enable" start="25" end="25" type="bool"/>
283    <field name="MB Error Concealment B Temporal Prediction Mode" start="27" end="28" type="uint"/>
284    <field name="Intra PredMode (4x4/8x8 Luma) Error Control" start="29" end="29" type="bool"/>
285    <field name="Init Current MB Number" start="30" end="30" type="bool"/>
286    <field name="Concealment Method" start="31" end="31" type="uint"/>
287    <field name="First MB Bit Offset" start="32" end="34" type="uint"/>
288    <field name="Last Slice" start="35" end="35" type="bool"/>
289    <field name="Emulation Prevention Byte Present" start="36" end="36" type="bool"/>
290    <field name="Fix Prev MB Skipped" start="39" end="39" type="bool"/>
291    <field name="First MB Byte Offset of Slice Data or Slice Header" start="48" end="63" type="uint"/>
292    <field name="Intra Prediction Error Control" start="64" end="64" type="bool"/>
293    <field name="Intra 8x8/4x4 Prediction Error Concealment Control" start="65" end="65" type="bool"/>
294    <field name="B Slice Temporal Inter Concealment Mode" start="68" end="70" type="uint"/>
295    <field name="B Slice Spatial Inter Concealment Mode" start="72" end="74" type="uint"/>
296    <field name="B Slice Inter Direct Type Concealment Mode" start="76" end="77" type="uint"/>
297    <field name="B Slice Concealment Mode" start="79" end="79" type="uint">
298      <value name="Intra Concealment" value="1"/>
299      <value name="Inter Concealment" value="0"/>
300    </field>
301    <field name="P Slice Inter Concealment Mode" start="80" end="82" type="uint"/>
302    <field name="P Slice Concealment Mode" start="87" end="87" type="uint">
303      <value name="Intra Concealment" value="1"/>
304      <value name="Inter Concealment" value="0"/>
305    </field>
306    <field name="Concealment Reference Picture + Field Bit" start="88" end="93" type="uint"/>
307    <field name="I Slice Concealment Mode" start="95" end="95" type="uint">
308      <value name="Intra Concealment" value="1"/>
309      <value name="Inter Concealment" value="0"/>
310    </field>
311  </struct>
312
313  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
314    <field name="Kernel Start Pointer" start="6" end="47" type="offset"/>
315    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
316    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
317    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
318    <field name="Floating Point Mode" start="80" end="80" type="uint">
319      <value name="IEEE-754" value="0"/>
320      <value name="Alternate" value="1"/>
321    </field>
322    <field name="Thread Priority" start="81" end="81" type="uint">
323      <value name="Normal Priority" value="0"/>
324      <value name="High Priority" value="1"/>
325    </field>
326    <field name="Single Program Flow" start="82" end="82" type="bool"/>
327    <field name="Denorm Mode" start="83" end="83" type="uint">
328      <value name="Ftz" value="0"/>
329      <value name="SetByKernel" value="1"/>
330    </field>
331    <field name="Sampler Count" start="98" end="100" type="uint">
332      <value name="No samplers used" value="0"/>
333      <value name="Between 1 and 4 samplers used" value="1"/>
334      <value name="Between 5 and 8 samplers used" value="2"/>
335      <value name="Between 9 and 12 samplers used" value="3"/>
336      <value name="Between 13 and 16 samplers used" value="4"/>
337    </field>
338    <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
339    <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
340    <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
341    <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
342    <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
343    <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
344    <field name="Shared Local Memory Size" start="208" end="212" type="uint">
345      <value name="Encodes 0k" value="0"/>
346      <value name="Encodes 4k" value="1"/>
347      <value name="Encodes 8k" value="2"/>
348      <value name="Encodes 16k" value="4"/>
349      <value name="Encodes 32k" value="8"/>
350      <value name="Encodes 64k" value="16"/>
351    </field>
352    <field name="Barrier Enable" start="213" end="213" type="bool"/>
353    <field name="Rounding Mode" start="214" end="215" type="uint">
354      <value name="RTNE" value="0"/>
355      <value name="RU" value="1"/>
356      <value name="RD" value="2"/>
357      <value name="RTZ" value="3"/>
358    </field>
359    <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
360  </struct>
361
362  <struct name="MEMORYADDRESSATTRIBUTES" length="1">
363    <field name="Age for QUADLRU" start="0" end="1" type="uint"/>
364    <field name="Target Cache" start="3" end="4" type="uint">
365      <value name="eLLC Only" value="0"/>
366      <value name="LLC Only" value="1"/>
367      <value name="LLC/eLLC" value="2"/>
368      <value name="L3, LLC, eLLC" value="3"/>
369    </field>
370    <field name="Arbitration Priority Control" start="7" end="8" type="uint"/>
371  </struct>
372
373  <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
374    <field name="Age for QUADLRU" start="0" end="1" type="uint"/>
375    <field name="Target Cache" start="3" end="4" type="uint">
376      <value name="eLLC Only (when eDRAM is present, else gets allocated in LLC)" value="0"/>
377      <value name="LLC Only" value="1"/>
378      <value name="LLC/eLLC Allowed" value="2"/>
379      <value name="L3 + Defer to PAT for LLC/eLLC selection" value="3"/>
380    </field>
381    <field name="Memory Type:LLC/eLLC Cacheability Control" start="5" end="6" type="uint">
382      <value name=" UC with Fence (if coherent cycle)" value="0"/>
383      <value name="UC (Uncacheable)" value="1"/>
384      <value name="WT" value="2"/>
385      <value name="WB" value="3"/>
386    </field>
387  </struct>
388
389  <struct name="MFD_MPEG2_BSD_OBJECT_INLINE_DATA_DESCRIPTION" length="2">
390    <field name="First MB Bit Offset" start="0" end="2" type="uint"/>
391    <field name="Last MB" start="3" end="3" type="bool"/>
392    <field name="Last Pic Slice" start="5" end="5" type="bool"/>
393    <field name="Slice Concealment Type" start="6" end="6" type="uint"/>
394    <field name="Slice Concealment Override" start="7" end="7" type="uint"/>
395    <field name="MB Count" start="8" end="15" type="uint"/>
396    <field name="Slice Vertical Position" start="16" end="23" type="uint"/>
397    <field name="Slice Horizontal Position" start="24" end="31" type="uint"/>
398    <field name="Next Slice Horizontal Position" start="32" end="39" type="uint"/>
399    <field name="Next Slice Vertical Position" start="40" end="48" type="uint"/>
400    <field name="Quantizer Scale Code" start="56" end="60" type="uint"/>
401  </struct>
402
403  <struct name="MI_MATH_ALU_INSTRUCTION" length="1">
404    <field name="Operand 2" start="0" end="9" type="uint" prefix="MI_ALU">
405      <value name="REG0" value="0x00"/>
406      <value name="REG1" value="0x01"/>
407      <value name="REG2" value="0x02"/>
408      <value name="REG3" value="0x03"/>
409      <value name="REG4" value="0x04"/>
410      <value name="REG5" value="0x05"/>
411      <value name="REG6" value="0x06"/>
412      <value name="REG7" value="0x07"/>
413      <value name="REG8" value="0x08"/>
414      <value name="REG9" value="0x09"/>
415      <value name="REG10" value="0x0a"/>
416      <value name="REG11" value="0x0b"/>
417      <value name="REG12" value="0x0c"/>
418      <value name="REG13" value="0x0d"/>
419      <value name="REG14" value="0x0e"/>
420      <value name="REG15" value="0x0f"/>
421      <value name="SRCA" value="0x20"/>
422      <value name="SRCB" value="0x21"/>
423      <value name="ACCU" value="0x31"/>
424      <value name="ZF" value="0x32"/>
425      <value name="CF" value="0x33"/>
426    </field>
427    <field name="Operand 1" start="10" end="19" type="uint" prefix="MI_ALU">
428      <value name="REG0" value="0x00"/>
429      <value name="REG1" value="0x01"/>
430      <value name="REG2" value="0x02"/>
431      <value name="REG3" value="0x03"/>
432      <value name="REG4" value="0x04"/>
433      <value name="REG5" value="0x05"/>
434      <value name="REG6" value="0x06"/>
435      <value name="REG7" value="0x07"/>
436      <value name="REG8" value="0x08"/>
437      <value name="REG9" value="0x09"/>
438      <value name="REG10" value="0x0a"/>
439      <value name="REG11" value="0x0b"/>
440      <value name="REG12" value="0x0c"/>
441      <value name="REG13" value="0x0d"/>
442      <value name="REG14" value="0x0e"/>
443      <value name="REG15" value="0x0f"/>
444      <value name="SRCA" value="0x20"/>
445      <value name="SRCB" value="0x21"/>
446      <value name="ACCU" value="0x31"/>
447      <value name="ZF" value="0x32"/>
448      <value name="CF" value="0x33"/>
449    </field>
450    <field name="ALU Opcode" start="20" end="31" type="uint" prefix="MI_ALU">
451      <value name="NOOP" value="0x000"/>
452      <value name="LOAD" value="0x080"/>
453      <value name="LOADINV" value="0x480"/>
454      <value name="LOAD0" value="0x081"/>
455      <value name="LOAD1" value="0x481"/>
456      <value name="ADD" value="0x100"/>
457      <value name="SUB" value="0x101"/>
458      <value name="AND" value="0x102"/>
459      <value name="OR" value="0x103"/>
460      <value name="XOR" value="0x104"/>
461      <value name="STORE" value="0x180"/>
462      <value name="STOREINV" value="0x580"/>
463    </field>
464  </struct>
465
466  <struct name="PALETTE_ENTRY" length="1">
467    <field name="Blue" start="0" end="7" type="uint"/>
468    <field name="Green" start="8" end="15" type="uint"/>
469    <field name="Red" start="16" end="23" type="uint"/>
470    <field name="Alpha" start="24" end="31" type="uint"/>
471  </struct>
472
473  <struct name="RENDER_SURFACE_STATE" length="16">
474    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
475    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
476    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
477    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
478    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
479    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
480    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
481      <value name="NORMAL_MODE" value="0"/>
482      <value name="PROGRESSIVE_FRAME" value="2"/>
483      <value name="INTERLACED_FRAME" value="3"/>
484    </field>
485    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
486      <value name="Write-Only Cache" value="0"/>
487      <value name="Read-Write Cache" value="1"/>
488    </field>
489    <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
490    <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
491    <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
492    <field name="Tile Mode" start="12" end="13" type="uint">
493      <value name="LINEAR" value="0"/>
494      <value name="WMAJOR" value="1"/>
495      <value name="XMAJOR" value="2"/>
496      <value name="YMAJOR" value="3"/>
497    </field>
498    <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
499      <value name="HALIGN 4" value="1"/>
500      <value name="HALIGN 8" value="2"/>
501      <value name="HALIGN 16" value="3"/>
502    </field>
503    <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
504      <value name="VALIGN 4" value="1"/>
505      <value name="VALIGN 8" value="2"/>
506      <value name="VALIGN 16" value="3"/>
507    </field>
508    <field name="Surface Format" start="18" end="26" type="uint"/>
509    <field name="Surface Array" start="28" end="28" type="bool"/>
510    <field name="Surface Type" start="29" end="31" type="uint">
511      <value name="SURFTYPE_1D" value="0"/>
512      <value name="SURFTYPE_2D" value="1"/>
513      <value name="SURFTYPE_3D" value="2"/>
514      <value name="SURFTYPE_CUBE" value="3"/>
515      <value name="SURFTYPE_BUFFER" value="4"/>
516      <value name="SURFTYPE_STRBUF" value="5"/>
517      <value name="SURFTYPE_NULL" value="7"/>
518    </field>
519    <field name="Surface QPitch" start="32" end="46" type="uint"/>
520    <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
521    <field name="MOCS" start="56" end="62" type="uint"/>
522    <field name="Width" start="64" end="77" type="uint"/>
523    <field name="Height" start="80" end="93" type="uint"/>
524    <field name="Surface Pitch" start="96" end="113" type="uint"/>
525    <field name="Depth" start="117" end="127" type="uint"/>
526    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
527    <field name="Number of Multisamples" start="131" end="133" type="uint">
528      <value name="MULTISAMPLECOUNT_1" value="0"/>
529      <value name="MULTISAMPLECOUNT_2" value="1"/>
530      <value name="MULTISAMPLECOUNT_4" value="2"/>
531      <value name="MULTISAMPLECOUNT_8" value="3"/>
532    </field>
533    <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
534      <value name="MSFMT_MSS" value="0"/>
535      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
536    </field>
537    <field name="Render Target View Extent" start="135" end="145" type="uint"/>
538    <field name="Minimum Array Element" start="146" end="156" type="uint"/>
539    <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
540      <value name="0DEG" value="0"/>
541      <value name="90DEG" value="1"/>
542      <value name="270DEG" value="3"/>
543    </field>
544    <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
545    <field name="Surface Min LOD" start="164" end="167" type="uint"/>
546    <field name="Coherency Type" start="174" end="174" type="uint">
547      <value name="GPU coherent" value="0"/>
548      <value name="IA coherent" value="1"/>
549    </field>
550    <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
551    <field name="Y Offset" start="181" end="183" type="uint"/>
552    <field name="X Offset" start="185" end="191" type="uint"/>
553    <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
554      <value name="AUX_NONE" value="0"/>
555      <value name="AUX_MCS" value="1"/>
556      <value name="AUX_APPEND" value="2"/>
557      <value name="AUX_HIZ" value="3"/>
558    </field>
559    <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
560    <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
561    <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
562    <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
563    <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
564    <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
565    <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
566    <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
567    <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
568    <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
569    <field name="Alpha Clear Color" start="252" end="252" type="Clear Color"/>
570    <field name="Blue Clear Color" start="253" end="253" type="Clear Color"/>
571    <field name="Green Clear Color" start="254" end="254" type="Clear Color"/>
572    <field name="Red Clear Color" start="255" end="255" type="Clear Color"/>
573    <field name="Surface Base Address" start="256" end="319" type="address"/>
574    <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
575    <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
576    <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
577    <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
578  </struct>
579
580  <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
581    <field name="Border Color Float Red" start="0" end="31" type="float"/>
582    <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
583    <field name="Border Color Float Green" start="32" end="63" type="float"/>
584    <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
585    <field name="Border Color Float Blue" start="64" end="95" type="float"/>
586    <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
587    <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
588    <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
589  </struct>
590
591  <struct name="SAMPLER_STATE" length="4">
592    <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
593      <value name="LEGACY" value="0"/>
594      <value name="EWA Approximation" value="1"/>
595    </field>
596    <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
597    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
598      <value name="NEAREST" value="0"/>
599      <value name="LINEAR" value="1"/>
600      <value name="ANISOTROPIC" value="2"/>
601      <value name="MONO" value="6"/>
602    </field>
603    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
604      <value name="NEAREST" value="0"/>
605      <value name="LINEAR" value="1"/>
606      <value name="ANISOTROPIC" value="2"/>
607      <value name="MONO" value="6"/>
608    </field>
609    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
610      <value name="NONE" value="0"/>
611      <value name="NEAREST" value="1"/>
612      <value name="LINEAR" value="3"/>
613    </field>
614    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
615    <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
616      <value name="NONE" value="0"/>
617      <value name="OGL" value="2"/>
618    </field>
619    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
620      <value name="DX10/OGL" value="0"/>
621      <value name="DX9" value="1"/>
622    </field>
623    <field name="Sampler Disable" start="31" end="31" type="bool"/>
624    <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
625      <value name="PROGRAMMED" value="0"/>
626      <value name="OVERRIDE" value="1"/>
627    </field>
628    <field name="Shadow Function" start="33" end="35" type="uint">
629      <value name="PREFILTEROP ALWAYS" value="0"/>
630      <value name="PREFILTEROP NEVER" value="1"/>
631      <value name="PREFILTEROP LESS" value="2"/>
632      <value name="PREFILTEROP EQUAL" value="3"/>
633      <value name="PREFILTEROP LEQUAL" value="4"/>
634      <value name="PREFILTEROP GREATER" value="5"/>
635      <value name="PREFILTEROP NOTEQUAL" value="6"/>
636      <value name="PREFILTEROP GEQUAL" value="7"/>
637    </field>
638    <field name="ChromaKey Mode" start="36" end="36" type="uint">
639      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
640      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
641    </field>
642    <field name="ChromaKey Index" start="37" end="38" type="uint"/>
643    <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
644    <field name="Max LOD" start="40" end="51" type="u4.8"/>
645    <field name="Min LOD" start="52" end="63" type="u4.8"/>
646    <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
647      <value name="MIPNONE" value="0"/>
648      <value name="MIPFILTER" value="1"/>
649    </field>
650    <field name="Border Color Pointer" start="70" end="87" type="offset"/>
651    <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
652    <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
653    <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
654    <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
655    <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
656      <value name="FULL" value="0"/>
657      <value name="HIGH" value="1"/>
658      <value name="MED" value="2"/>
659      <value name="LOW" value="3"/>
660    </field>
661    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
662    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
663    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
664    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
665    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
666    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
667    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
668      <value name="RATIO 2:1" value="0"/>
669      <value name="RATIO 4:1" value="1"/>
670      <value name="RATIO 6:1" value="2"/>
671      <value name="RATIO 8:1" value="3"/>
672      <value name="RATIO 10:1" value="4"/>
673      <value name="RATIO 12:1" value="5"/>
674      <value name="RATIO 14:1" value="6"/>
675      <value name="RATIO 16:1" value="7"/>
676    </field>
677  </struct>
678
679  <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
680    <field name="Table 0X Filter Coefficient[n,0]" start="0" end="7" type="s1.6"/>
681    <field name="Table 0Y Filter Coefficient[n,0]" start="8" end="15" type="s1.6"/>
682    <field name="Table 0X Filter Coefficient[n,1]" start="16" end="23" type="s1.6"/>
683    <field name="Table 0Y Filter Coefficient[n,1]" start="24" end="31" type="s1.6"/>
684    <field name="Table 0X Filter Coefficient[n,2]" start="32" end="39" type="s1.6"/>
685    <field name="Table 0Y Filter Coefficient[n,2]" start="40" end="47" type="s1.6"/>
686    <field name="Table 0X Filter Coefficient[n,3]" start="48" end="55" type="s1.6"/>
687    <field name="Table 0Y Filter Coefficient[n,3]" start="56" end="63" type="s1.6"/>
688    <field name="Table 0X Filter Coefficient[n,4]" start="64" end="71" type="s1.6"/>
689    <field name="Table 0Y Filter Coefficient[n,4]" start="72" end="79" type="s1.6"/>
690    <field name="Table 0X Filter Coefficient[n,5]" start="80" end="87" type="s1.6"/>
691    <field name="Table 0Y Filter Coefficient[n,5]" start="88" end="95" type="s1.6"/>
692    <field name="Table 0X Filter Coefficient[n,6]" start="96" end="103" type="s1.6"/>
693    <field name="Table 0Y Filter Coefficient[n,6]" start="104" end="111" type="s1.6"/>
694    <field name="Table 0X Filter Coefficient[n,7]" start="112" end="119" type="s1.6"/>
695    <field name="Table 0Y Filter Coefficient[n,7]" start="120" end="127" type="s1.6"/>
696    <field name="Table 1X Filter Coefficient[n,2]" start="144" end="151" type="s1.6"/>
697    <field name="Table 1X Filter Coefficient[n,3]" start="152" end="159" type="s1.6"/>
698    <field name="Table 1X Filter Coefficient[n,4]" start="160" end="167" type="s1.6"/>
699    <field name="Table 1X Filter Coefficient[n,5]" start="168" end="175" type="s1.6"/>
700    <field name="Table 1Y Filter Coefficient[n,2]" start="208" end="215" type="s1.6"/>
701    <field name="Table 1Y Filter Coefficient[n,3]" start="216" end="223" type="s1.6"/>
702    <field name="Table 1Y Filter Coefficient[n,4]" start="224" end="231" type="s1.6"/>
703    <field name="Table 1Y Filter Coefficient[n,5]" start="232" end="239" type="s1.6"/>
704  </struct>
705
706  <struct name="SCISSOR_RECT" length="2">
707    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
708    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
709    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
710    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
711  </struct>
712
713  <struct name="SF_CLIP_VIEWPORT" length="16">
714    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
715    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
716    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
717    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
718    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
719    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
720    <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
721    <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
722    <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
723    <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
724    <field name="X Min ViewPort" start="384" end="415" type="float"/>
725    <field name="X Max ViewPort" start="416" end="447" type="float"/>
726    <field name="Y Min ViewPort" start="448" end="479" type="float"/>
727    <field name="Y Max ViewPort" start="480" end="511" type="float"/>
728  </struct>
729
730  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
731    <field name="Source Attribute" start="0" end="4" type="uint"/>
732    <field name="Swizzle Select" start="6" end="7" type="uint">
733      <value name="INPUTATTR" value="0"/>
734      <value name="INPUTATTR_FACING" value="1"/>
735      <value name="INPUTATTR_W" value="2"/>
736      <value name="INPUTATTR_FACING_W" value="3"/>
737    </field>
738    <field name="Constant Source" start="9" end="10" type="uint">
739      <value name="CONST_0000" value="0"/>
740      <value name="CONST_0001_FLOAT" value="1"/>
741      <value name="CONST_1111_FLOAT" value="2"/>
742      <value name="PRIM_ID" value="3"/>
743    </field>
744    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
745    <field name="Component Override X" start="12" end="12" type="bool"/>
746    <field name="Component Override Y" start="13" end="13" type="bool"/>
747    <field name="Component Override Z" start="14" end="14" type="bool"/>
748    <field name="Component Override W" start="15" end="15" type="bool"/>
749  </struct>
750
751  <struct name="SO_DECL" length="1">
752    <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
753    <field name="Register Index" start="4" end="9" type="uint"/>
754    <field name="Hole Flag" start="11" end="11" type="bool"/>
755    <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
756  </struct>
757
758  <struct name="SO_DECL_ENTRY" length="2">
759    <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
760    <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
761    <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
762    <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
763  </struct>
764
765  <struct name="VERTEX_BUFFER_STATE" length="4">
766    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
767    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
768    <field name="Address Modify Enable" start="14" end="14" type="bool"/>
769    <field name="MOCS" start="16" end="22" type="uint"/>
770    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
771    <field name="Buffer Starting Address" start="32" end="95" type="address"/>
772    <field name="Buffer Size" start="96" end="127" type="uint"/>
773  </struct>
774
775  <struct name="VERTEX_ELEMENT_STATE" length="2">
776    <field name="Source Element Offset" start="0" end="11" type="uint"/>
777    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
778    <field name="Source Element Format" start="16" end="24" type="uint"/>
779    <field name="Valid" start="25" end="25" type="bool"/>
780    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
781    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
782    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
783    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
784    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
785  </struct>
786
787  <instruction name="3DPRIMITIVE" bias="2" length="7" engine="render">
788    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
789    <field name="Predicate Enable" start="8" end="8" type="bool"/>
790    <field name="UAV Coherency Required" start="9" end="9" type="bool"/>
791    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
792    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
793    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
794    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
795    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
796    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
797    <field name="Vertex Access Type" start="40" end="40" type="uint">
798      <value name="SEQUENTIAL" value="0"/>
799      <value name="RANDOM" value="1"/>
800    </field>
801    <field name="End Offset Enable" start="41" end="41" type="bool"/>
802    <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
803    <field name="Start Vertex Location" start="96" end="127" type="uint"/>
804    <field name="Instance Count" start="128" end="159" type="uint"/>
805    <field name="Start Instance Location" start="160" end="191" type="uint"/>
806    <field name="Base Vertex Location" start="192" end="223" type="int"/>
807  </instruction>
808
809  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
810    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
811    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
812    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
813    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
814    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
815    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
816    <field name="AA Point Coverage Slope" start="40" end="47" type="u0.8"/>
817    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
818    <field name="AA Point Coverage Bias" start="56" end="63" type="u0.8"/>
819    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
820    <field name="AA Point Coverage EndCap Slope" start="72" end="79" type="u0.8"/>
821    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
822    <field name="AA Point Coverage EndCap Bias" start="88" end="95" type="u0.8"/>
823  </instruction>
824
825  <instruction name="3DSTATE_BINDING_TABLE_EDIT_DS" bias="2" engine="render">
826    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
827    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="70"/>
828    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
829    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
830    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
831    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
832      <value name="All Cores" value="3"/>
833      <value name="Core 1" value="2"/>
834      <value name="Core 0" value="1"/>
835    </field>
836    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
837    <group count="0" start="64" size="32">
838      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
839    </group>
840  </instruction>
841
842  <instruction name="3DSTATE_BINDING_TABLE_EDIT_GS" bias="2" engine="render">
843    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
844    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="68"/>
845    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
846    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
847    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
848    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
849      <value name="All Cores" value="3"/>
850      <value name="Core 1" value="2"/>
851      <value name="Core 0" value="1"/>
852    </field>
853    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
854    <group count="0" start="64" size="32">
855      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
856    </group>
857  </instruction>
858
859  <instruction name="3DSTATE_BINDING_TABLE_EDIT_HS" bias="2" engine="render">
860    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
861    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="69"/>
862    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
863    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
864    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
865    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
866      <value name="All Cores" value="3"/>
867      <value name="Core 1" value="2"/>
868      <value name="Core 0" value="1"/>
869    </field>
870    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
871    <group count="0" start="64" size="32">
872      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
873    </group>
874  </instruction>
875
876  <instruction name="3DSTATE_BINDING_TABLE_EDIT_PS" bias="2" engine="render">
877    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
878    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="71"/>
879    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
880    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
881    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
882    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
883      <value name="All Cores" value="3"/>
884      <value name="Core 1" value="2"/>
885      <value name="Core 0" value="1"/>
886    </field>
887    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
888    <group count="0" start="64" size="32">
889      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
890    </group>
891  </instruction>
892
893  <instruction name="3DSTATE_BINDING_TABLE_EDIT_VS" bias="2" engine="render">
894    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
895    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="67"/>
896    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
897    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
898    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
899    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
900      <value name="All Cores" value="3"/>
901      <value name="Core 1" value="2"/>
902      <value name="Core 0" value="1"/>
903    </field>
904    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
905    <group count="0" start="64" size="32">
906      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
907    </group>
908  </instruction>
909
910  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2" engine="render">
911    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
912    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="40"/>
913    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
914    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
915    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
916    <field name="Pointer to DS Binding Table" start="37" end="47" type="offset"/>
917  </instruction>
918
919  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2" engine="render">
920    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
921    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="41"/>
922    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
923    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
924    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
925    <field name="Pointer to GS Binding Table" start="37" end="47" type="offset"/>
926  </instruction>
927
928  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2" engine="render">
929    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
930    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="39"/>
931    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
932    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
933    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
934    <field name="Pointer to HS Binding Table" start="37" end="47" type="offset"/>
935  </instruction>
936
937  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2" engine="render">
938    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
939    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="42"/>
940    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
941    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
942    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
943    <field name="Pointer to PS Binding Table" start="37" end="47" type="offset"/>
944  </instruction>
945
946  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2" engine="render">
947    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
948    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="38"/>
949    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
950    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
951    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
952    <field name="Pointer to VS Binding Table" start="37" end="47" type="offset"/>
953  </instruction>
954
955  <instruction name="3DSTATE_BINDING_TABLE_POOL_ALLOC" bias="2" length="4" engine="render">
956    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
957    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
958    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
959    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
960    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
961    <field name="MOCS" start="32" end="38" type="uint"/>
962    <field name="Binding Table Pool Enable" start="43" end="43" type="uint"/>
963    <field name="Binding Table Pool Base Address" start="44" end="95" type="address"/>
964    <field name="Binding Table Pool Buffer Size" start="108" end="127" type="uint">
965      <value name="No Valid Data" value="0"/>
966    </field>
967  </instruction>
968
969  <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2" engine="render">
970    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
971    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="36"/>
972    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
973    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
974    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
975    <field name="Blend State Pointer Valid" start="32" end="32" type="bool"/>
976    <field name="Blend State Pointer" start="38" end="63" type="offset"/>
977  </instruction>
978
979  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2" engine="render">
980    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
981    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
982    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
983    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
984    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
985    <field name="Color Calc State Pointer Valid" start="32" end="32" type="bool"/>
986    <field name="Color Calc State Pointer" start="38" end="63" type="offset"/>
987  </instruction>
988
989  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4" engine="render">
990    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
991    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
992    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
993    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
994    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
995    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
996    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
997    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
998  </instruction>
999
1000  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3" engine="render">
1001    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1002    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1003    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1004    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1005    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1006    <field name="Depth Clear Value" start="32" end="63" type="float"/>
1007    <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
1008  </instruction>
1009
1010  <instruction name="3DSTATE_CLIP" bias="2" length="4" engine="render">
1011    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1012    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
1013    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1014    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1015    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1016    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
1017    <field name="Statistics Enable" start="42" end="42" type="bool"/>
1018    <field name="Force Clip Mode" start="48" end="48" type="bool"/>
1019    <field name="Force User Clip Distance Clip Test Enable Bitmask" start="49" end="49" type="bool"/>
1020    <field name="Early Cull Enable" start="50" end="50" type="bool"/>
1021    <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint">
1022      <value name="8 Bit" value="0"/>
1023      <value name="4 Bit" value="1"/>
1024    </field>
1025    <field name="Force User Clip Distance Cull Test Enable Bitmask" start="52" end="52" type="bool"/>
1026    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint"/>
1027    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint"/>
1028    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint"/>
1029    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
1030    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
1031    <field name="Clip Mode" start="77" end="79" type="uint">
1032      <value name="CLIPMODE_NORMAL" value="0"/>
1033      <value name="CLIPMODE_REJECT_ALL" value="3"/>
1034      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
1035    </field>
1036    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
1037    <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
1038    <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
1039    <field name="API Mode" start="94" end="94" type="uint">
1040      <value name="APIMODE_OGL" value="0"/>
1041      <value name="APIMODE_D3D" value="1"/>
1042    </field>
1043    <field name="Clip Enable" start="95" end="95" type="bool"/>
1044    <field name="Maximum VP Index" start="96" end="99" type="uint"/>
1045    <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
1046    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
1047    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
1048  </instruction>
1049
1050  <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="11" engine="render">
1051    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1052    <field name="MOCS" start="8" end="14" type="uint"/>
1053    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
1054    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1055    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1056    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1057    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1058  </instruction>
1059
1060  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="11" engine="render">
1061    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1062    <field name="MOCS" start="8" end="14" type="uint"/>
1063    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
1064    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1065    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1066    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1067    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1068  </instruction>
1069
1070  <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="11" engine="render">
1071    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1072    <field name="MOCS" start="8" end="14" type="uint"/>
1073    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
1074    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1075    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1076    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1077    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1078  </instruction>
1079
1080  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="11" engine="render">
1081    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1082    <field name="MOCS" start="8" end="14" type="uint"/>
1083    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
1084    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1085    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1086    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1087    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1088  </instruction>
1089
1090  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="11" engine="render">
1091    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1092    <field name="MOCS" start="8" end="14" type="uint"/>
1093    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1094    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1095    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1096    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1097    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1098  </instruction>
1099
1100  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="8" engine="render">
1101    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1102    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
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="3"/>
1105    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1106    <field name="Surface Pitch" start="32" end="49" type="uint"/>
1107    <field name="Surface Format" start="50" end="52" type="uint">
1108      <value name="D32_FLOAT" value="1"/>
1109      <value name="D24_UNORM_X8_UINT" value="3"/>
1110      <value name="D16_UNORM" value="5"/>
1111    </field>
1112    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
1113    <field name="Stencil Write Enable" start="59" end="59" type="bool"/>
1114    <field name="Depth Write Enable" start="60" end="60" type="bool"/>
1115    <field name="Surface Type" start="61" end="63" type="uint">
1116      <value name="SURFTYPE_1D" value="0"/>
1117      <value name="SURFTYPE_2D" value="1"/>
1118      <value name="SURFTYPE_3D" value="2"/>
1119      <value name="SURFTYPE_CUBE" value="3"/>
1120      <value name="SURFTYPE_NULL" value="7"/>
1121    </field>
1122    <field name="Surface Base Address" start="64" end="127" type="address"/>
1123    <field name="LOD" start="128" end="131" type="uint"/>
1124    <field name="Width" start="132" end="145" type="uint"/>
1125    <field name="Height" start="146" end="159" type="uint"/>
1126    <field name="MOCS" start="160" end="166" type="uint"/>
1127    <field name="Minimum Array Element" start="170" end="180" type="uint"/>
1128    <field name="Depth" start="181" end="191" type="uint"/>
1129    <field name="Surface QPitch" start="224" end="238" type="uint"/>
1130    <field name="Render Target View Extent" start="245" end="255" type="uint"/>
1131  </instruction>
1132
1133  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
1134    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1135    <field name="Core Mode Select" start="14" end="15" type="uint">
1136      <value name="Legacy" value="0"/>
1137      <value name="Core 0 Enabled" value="1"/>
1138      <value name="Core 1 Enabled" value="2"/>
1139    </field>
1140    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1141    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1142    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1143    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1144    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
1145    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
1146    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
1147    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
1148    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
1149    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
1150  </instruction>
1151
1152  <instruction name="3DSTATE_DS" bias="2" length="9" engine="render">
1153    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1154    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
1155    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1156    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1157    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1158    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
1159    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1160    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1161    <field name="Accesses UAV" start="110" end="110" type="bool"/>
1162    <field name="Floating Point Mode" start="112" end="112" type="uint">
1163      <value name="IEEE-754" value="0"/>
1164      <value name="Alternate" value="1"/>
1165    </field>
1166    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1167      <value name="High" value="1"/>
1168    </field>
1169    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1170    <field name="Sampler Count" start="123" end="125" type="uint">
1171      <value name="No Samplers" value="0"/>
1172      <value name="1-4 Samplers" value="1"/>
1173      <value name="5-8 Samplers" value="2"/>
1174      <value name="9-12 Samplers" value="3"/>
1175      <value name="13-16 Samplers" value="4"/>
1176    </field>
1177    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1178    <field name="Single Domain Point Dispatch" start="127" end="127" type="uint"/>
1179    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
1180    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1181    <field name="Patch URB Entry Read Offset" start="196" end="201" type="uint"/>
1182    <field name="Patch URB Entry Read Length" start="203" end="209" type="uint"/>
1183    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
1184    <field name="Enable" start="224" end="224" type="bool"/>
1185    <field name="Cache Disable" start="225" end="225" type="bool"/>
1186    <field name="Compute W Coordinate Enable" start="226" end="226" type="bool"/>
1187    <field name="Dispatch Mode" start="227" end="227" type="uint" prefix="DISPATCH_MODE">
1188      <value name="SIMD4X2" value="0"/>
1189      <value name="SIMD8_SINGLE_PATCH" value="1"/>
1190    </field>
1191    <field name="Statistics Enable" start="234" end="234" type="bool"/>
1192    <field name="Maximum Number of Threads" start="245" end="253" type="uint"/>
1193    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
1194    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
1195    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
1196    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
1197  </instruction>
1198
1199  <instruction name="3DSTATE_GATHER_CONSTANT_DS" bias="2" engine="render">
1200    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1201    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="55"/>
1202    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1203    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1204    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1205    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1206    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1207    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1208    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1209    <group count="0" start="96" size="32">
1210      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1211      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1212    </group>
1213  </instruction>
1214
1215  <instruction name="3DSTATE_GATHER_CONSTANT_GS" bias="2" engine="render">
1216    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1217    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="53"/>
1218    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1219    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1220    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1221    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1222    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1223    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1224    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1225    <group count="0" start="96" size="32">
1226      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1227      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1228    </group>
1229  </instruction>
1230
1231  <instruction name="3DSTATE_GATHER_CONSTANT_HS" bias="2" engine="render">
1232    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1233    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="54"/>
1234    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1235    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1236    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1237    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1238    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1239    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1240    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1241    <group count="0" start="96" size="32">
1242      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1243      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1244    </group>
1245  </instruction>
1246
1247  <instruction name="3DSTATE_GATHER_CONSTANT_PS" bias="2" engine="render">
1248    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1249    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="56"/>
1250    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1251    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1252    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1253    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1254    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1255    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
1256    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1257    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1258    <group count="0" start="96" size="32">
1259      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1260      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1261    </group>
1262  </instruction>
1263
1264  <instruction name="3DSTATE_GATHER_CONSTANT_VS" bias="2" engine="render">
1265    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1266    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="52"/>
1267    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1268    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1269    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1270    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1271    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1272    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
1273    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1274    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1275    <group count="0" start="96" size="32">
1276      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1277      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1278    </group>
1279  </instruction>
1280
1281  <instruction name="3DSTATE_GATHER_POOL_ALLOC" bias="2" length="4" engine="render">
1282    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1283    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
1284    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1285    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1286    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1287    <field name="MOCS" start="32" end="38" type="uint"/>
1288    <field name="Gather Pool Enable" start="43" end="43" type="bool"/>
1289    <field name="Gather Pool Base Address" start="44" end="95" type="address"/>
1290    <field name="Gather Pool Buffer Size" start="108" end="127" type="uint"/>
1291  </instruction>
1292
1293  <instruction name="3DSTATE_GS" bias="2" length="10" engine="render">
1294    <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
1295    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1296    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1297    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1298    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1299    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
1300    <field name="Expected Vertex Count" start="96" end="101" type="uint"/>
1301    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1302    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
1303    <field name="Accesses UAV" start="108" end="108" type="bool"/>
1304    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1305    <field name="Floating Point Mode" start="112" end="112" type="uint">
1306      <value name="IEEE-754" value="0"/>
1307      <value name="Alternate" value="1"/>
1308    </field>
1309    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1310      <value name="High" value="1"/>
1311    </field>
1312    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1313    <field name="Sampler Count" start="123" end="125" type="uint">
1314      <value name="No Samplers" value="0"/>
1315      <value name="1-4 Samplers" value="1"/>
1316      <value name="5-8 Samplers" value="2"/>
1317      <value name="9-12 Samplers" value="3"/>
1318      <value name="13-16 Samplers" value="4"/>
1319    </field>
1320    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1321    <field name="Single Program Flow" start="127" end="127" type="bool"/>
1322    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
1323    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1324    <field name="Dispatch GRF Start Register For URB Data" start="192" end="195" type="uint"/>
1325    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
1326    <field name="Include Vertex Handles" start="202" end="202" type="bool"/>
1327    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
1328    <field name="Output Topology" start="209" end="214" type="3D_Prim_Topo_Type"/>
1329    <field name="Output Vertex Size" start="215" end="220" type="uint"/>
1330    <field name="Enable" start="224" end="224" type="bool"/>
1331    <field name="Discard Adjacency" start="225" end="225" type="bool"/>
1332    <field name="Reorder Mode" start="226" end="226" type="uint">
1333      <value name="LEADING" value="0"/>
1334      <value name="TRAILING" value="1"/>
1335    </field>
1336    <field name="Hint" start="227" end="227" type="uint"/>
1337    <field name="Include Primitive ID" start="228" end="228" type="bool"/>
1338    <field name="Invocations Increment Value" start="229" end="233" type="uint"/>
1339    <field name="Statistics Enable" start="234" end="234" type="bool"/>
1340    <field name="Dispatch Mode" start="235" end="236" type="uint" prefix="DISPATCH_MODE">
1341      <value name="Dual Instance" value="1"/>
1342      <value name="Dual Object" value="2"/>
1343      <value name="SIMD8" value="3"/>
1344    </field>
1345    <field name="Default Stream Id" start="237" end="238" type="uint"/>
1346    <field name="Instance Control" start="239" end="243" type="uint"/>
1347    <field name="Control Data Header Size" start="244" end="247" type="uint"/>
1348    <field name="Maximum Number of Threads" start="248" end="255" type="uint"/>
1349    <field name="Static Output Vertex Count" start="272" end="282" type="uint"/>
1350    <field name="Static Output" start="286" end="286" type="bool"/>
1351    <field name="Control Data Format" start="287" end="287" type="uint">
1352      <value name="CUT" value="0"/>
1353      <value name="SID" value="1"/>
1354    </field>
1355    <field name="User Clip Distance Cull Test Enable Bitmask" start="288" end="295" type="uint"/>
1356    <field name="User Clip Distance Clip Test Enable Bitmask" start="296" end="303" type="uint"/>
1357    <field name="Vertex URB Entry Output Length" start="304" end="308" type="uint"/>
1358    <field name="Vertex URB Entry Output Read Offset" start="309" end="314" type="uint"/>
1359  </instruction>
1360
1361  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="5" engine="render">
1362    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1363    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1364    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1365    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1366    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1367    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1368    <field name="MOCS" start="57" end="63" type="uint"/>
1369    <field name="Surface Base Address" start="64" end="127" type="address"/>
1370    <field name="Surface QPitch" start="128" end="142" type="uint"/>
1371  </instruction>
1372
1373  <instruction name="3DSTATE_HS" bias="2" length="9" engine="render">
1374    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1375    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27"/>
1376    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1377    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1378    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1379    <field name="Software Exception Enable" start="44" end="44" type="bool"/>
1380    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
1381    <field name="Floating Point Mode" start="48" end="48" type="uint">
1382      <value name="IEEE-754" value="0"/>
1383      <value name="alternate" value="1"/>
1384    </field>
1385    <field name="Thread Dispatch Priority" start="49" end="49" type="uint">
1386      <value name="High" value="1"/>
1387    </field>
1388    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
1389    <field name="Sampler Count" start="59" end="61" type="uint">
1390      <value name="No Samplers" value="0"/>
1391      <value name="1-4 Samplers" value="1"/>
1392      <value name="5-8 Samplers" value="2"/>
1393      <value name="9-12 Samplers" value="3"/>
1394      <value name="13-16 Samplers" value="4"/>
1395    </field>
1396    <field name="Instance Count" start="64" end="67" type="uint"/>
1397    <field name="Maximum Number of Threads" start="72" end="80" type="uint"/>
1398    <field name="Statistics Enable" start="93" end="93" type="bool"/>
1399    <field name="Enable" start="95" end="95" type="bool"/>
1400    <field name="Kernel Start Pointer" start="102" end="159" type="offset"/>
1401    <field name="Per-Thread Scratch Space" start="160" end="163" type="uint"/>
1402    <field name="Scratch Space Base Pointer" start="170" end="223" type="address"/>
1403    <field name="Vertex URB Entry Read Offset" start="228" end="233" type="uint"/>
1404    <field name="Vertex URB Entry Read Length" start="235" end="240" type="uint"/>
1405    <field name="Dispatch GRF Start Register For URB Data" start="243" end="247" type="uint"/>
1406    <field name="Include Vertex Handles" start="248" end="248" type="bool"/>
1407    <field name="Accesses UAV" start="249" end="249" type="bool"/>
1408    <field name="Vector Mask Enable" start="250" end="250" type="bool"/>
1409    <field name="Single Program Flow" start="251" end="251" type="bool"/>
1410  </instruction>
1411
1412  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="5" engine="render">
1413    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1414    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1415    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1416    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1417    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1418    <field name="MOCS" start="32" end="38" type="uint"/>
1419    <field name="Index Format" start="40" end="41" type="uint" prefix="INDEX">
1420      <value name="BYTE" value="0"/>
1421      <value name="WORD" value="1"/>
1422      <value name="DWORD" value="2"/>
1423    </field>
1424    <field name="Buffer Starting Address" start="64" end="127" type="address"/>
1425    <field name="Buffer Size" start="128" end="159" type="uint"/>
1426  </instruction>
1427
1428  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
1429    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1430    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1431    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1432    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1433    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1434    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
1435    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
1436    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
1437    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
1438    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
1439    <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
1440  </instruction>
1441
1442  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2" engine="render">
1443    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1444    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1445    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1446    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1447    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1448    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
1449    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
1450  </instruction>
1451
1452  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="2" engine="render">
1453    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1454    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
1455    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1456    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1457    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1458    <field name="Number of Multisamples" start="33" end="35" type="uint"/>
1459    <field name="Pixel Location" start="36" end="36" type="uint">
1460      <value name="CENTER" value="0"/>
1461      <value name="UL_CORNER" value="1"/>
1462    </field>
1463    <field name="Pixel Position Offset Enable" start="37" end="37" type="bool"/>
1464  </instruction>
1465
1466  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2" engine="render">
1467    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1468    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
1469    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1470    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1471    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1472    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
1473    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
1474  </instruction>
1475
1476  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
1477    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
1478    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1479    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1480    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1481    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1482    <group count="32" start="32" size="32">
1483      <field name="Pattern Row" start="0" end="31" type="uint"/>
1484    </group>
1485  </instruction>
1486
1487  <instruction name="3DSTATE_PS" bias="2" length="12" engine="render">
1488    <field name="DWord Length" start="0" end="7" type="uint" default="10"/>
1489    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
1490    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1491    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1492    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1493    <field name="Kernel Start Pointer 0" start="38" end="95" type="offset"/>
1494    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1495    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
1496    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1497    <field name="Rounding Mode" start="110" end="111" type="uint">
1498      <value name="RTNE" value="0"/>
1499      <value name="RU" value="1"/>
1500      <value name="RD" value="2"/>
1501      <value name="RTZ" value="3"/>
1502    </field>
1503    <field name="Floating Point Mode" start="112" end="112" type="uint">
1504      <value name="IEEE-754" value="0"/>
1505      <value name="Alternate" value="1"/>
1506    </field>
1507    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1508      <value name="High" value="1"/>
1509    </field>
1510    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1511    <field name="Single Precision Denormal Mode" start="122" end="122" type="uint">
1512      <value name="Flushed to Zero" value="0"/>
1513      <value name="Retained" value="1"/>
1514    </field>
1515    <field name="Sampler Count" start="123" end="125" type="uint">
1516      <value name="No Samplers" value="0"/>
1517      <value name="1-4 Samplers" value="1"/>
1518      <value name="5-8 Samplers" value="2"/>
1519      <value name="9-12 Samplers" value="3"/>
1520      <value name="13-16 Samplers" value="4"/>
1521    </field>
1522    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1523    <field name="Single Program Flow" start="127" end="127" type="bool"/>
1524    <field name="Per Thread Scratch Space" start="128" end="131" type="uint"/>
1525    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1526    <field name="8 Pixel Dispatch Enable" start="192" end="192" type="bool"/>
1527    <field name="16 Pixel Dispatch Enable" start="193" end="193" type="bool"/>
1528    <field name="32 Pixel Dispatch Enable" start="194" end="194" type="bool"/>
1529    <field name="Position XY Offset Select" start="195" end="196" type="uint">
1530      <value name="POSOFFSET_NONE" value="0"/>
1531      <value name="POSOFFSET_CENTROID" value="2"/>
1532      <value name="POSOFFSET_SAMPLE" value="3"/>
1533    </field>
1534    <field name="Render Target Resolve Enable" start="198" end="198" type="bool"/>
1535    <field name="Render Target Fast Clear Enable" start="200" end="200" type="bool"/>
1536    <field name="Push Constant Enable" start="203" end="203" type="bool"/>
1537    <field name="Maximum Number of Threads Per PSD" start="215" end="223" type="uint"/>
1538    <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="224" end="230" type="uint"/>
1539    <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="232" end="238" type="uint"/>
1540    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="240" end="246" type="uint"/>
1541    <field name="Kernel Start Pointer 1" start="262" end="319" type="offset"/>
1542    <field name="Kernel Start Pointer 2" start="326" end="383" type="offset"/>
1543  </instruction>
1544
1545  <instruction name="3DSTATE_PS_BLEND" bias="2" length="2" engine="render">
1546    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1547    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="77"/>
1548    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1549    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1550    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1551    <field name="Independent Alpha Blend Enable" start="39" end="39" type="bool"/>
1552    <field name="Alpha Test Enable" start="40" end="40" type="bool"/>
1553    <field name="Destination Blend Factor" start="41" end="45" type="uint"/>
1554    <field name="Source Blend Factor" start="46" end="50" type="uint"/>
1555    <field name="Destination Alpha Blend Factor" start="51" end="55" type="uint"/>
1556    <field name="Source Alpha Blend Factor" start="56" end="60" type="uint"/>
1557    <field name="Color Buffer Blend Enable" start="61" end="61" type="bool"/>
1558    <field name="Has Writeable RT" start="62" end="62" type="bool"/>
1559    <field name="Alpha To Coverage Enable" start="63" end="63" type="bool"/>
1560  </instruction>
1561
1562  <instruction name="3DSTATE_PS_EXTRA" bias="2" length="2" engine="render">
1563    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1564    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="79"/>
1565    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1566    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1567    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1568    <field name="Pixel Shader Uses Input Coverage Mask" start="33" end="33" type="bool"/>
1569    <field name="Pixel Shader Has UAV" start="34" end="34" type="bool"/>
1570    <field name="Pixel Shader Is Per Sample" start="38" end="38" type="bool"/>
1571    <field name="Pixel Shader Disables Alpha To Coverage" start="39" end="39" type="bool"/>
1572    <field name="Attribute Enable" start="40" end="40" type="bool"/>
1573    <field name="Pixel Shader Uses Source W" start="55" end="55" type="bool"/>
1574    <field name="Pixel Shader Uses Source Depth" start="56" end="56" type="bool"/>
1575    <field name="Force Computed Depth" start="57" end="57" type="bool"/>
1576    <field name="Pixel Shader Computed Depth Mode" start="58" end="59" type="uint">
1577      <value name="PSCDEPTH_OFF" value="0"/>
1578      <value name="PSCDEPTH_ON" value="1"/>
1579      <value name="PSCDEPTH_ON_GE" value="2"/>
1580      <value name="PSCDEPTH_ON_LE" value="3"/>
1581    </field>
1582    <field name="Pixel Shader Kills Pixel" start="60" end="60" type="bool"/>
1583    <field name="oMask Present to Render Target" start="61" end="61" type="bool"/>
1584    <field name="Pixel Shader Does not write to RT" start="62" end="62" type="bool"/>
1585    <field name="Pixel Shader Valid" start="63" end="63" type="bool"/>
1586  </instruction>
1587
1588  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2" engine="render">
1589    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1590    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
1591    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1592    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1593    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1594    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
1595    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
1596  </instruction>
1597
1598  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2" engine="render">
1599    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1600    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1601    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1602    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1603    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1604    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
1605    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
1606  </instruction>
1607
1608  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2" engine="render">
1609    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1610    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
1611    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1612    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1613    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1614    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
1615    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
1616  </instruction>
1617
1618  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2" engine="render">
1619    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1620    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
1621    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1622    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1623    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1624    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
1625    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
1626  </instruction>
1627
1628  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2" engine="render">
1629    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1630    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
1631    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1632    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1633    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1634    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
1635    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
1636  </instruction>
1637
1638  <instruction name="3DSTATE_RASTER" bias="2" length="5" engine="render">
1639    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1640    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="80"/>
1641    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1642    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1643    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1644    <field name="Viewport Z Clip Test Enable" start="32" end="32" type="bool"/>
1645    <field name="Scissor Rectangle Enable" start="33" end="33" type="bool"/>
1646    <field name="Antialiasing Enable" start="34" end="34" type="bool"/>
1647    <field name="Back Face Fill Mode" start="35" end="36" type="uint" prefix="FILL_MODE">
1648      <value name="SOLID" value="0"/>
1649      <value name="WIREFRAME" value="1"/>
1650      <value name="POINT" value="2"/>
1651    </field>
1652    <field name="Front Face Fill Mode" start="37" end="38" type="uint" prefix="FILL_MODE">
1653      <value name="SOLID" value="0"/>
1654      <value name="WIREFRAME" value="1"/>
1655      <value name="POINT" value="2"/>
1656    </field>
1657    <field name="Global Depth Offset Enable Point" start="39" end="39" type="bool"/>
1658    <field name="Global Depth Offset Enable Wireframe" start="40" end="40" type="bool"/>
1659    <field name="Global Depth Offset Enable Solid" start="41" end="41" type="bool"/>
1660    <field name="DX Multisample Rasterization Mode" start="42" end="43" type="uint">
1661      <value name="MSRASTMODE_ OFF_PIXEL" value="0"/>
1662      <value name="MSRASTMODE_ OFF_PATTERN" value="1"/>
1663      <value name="MSRASTMODE_ ON_PIXEL" value="2"/>
1664      <value name="MSRASTMODE_ ON_PATTERN" value="3"/>
1665    </field>
1666    <field name="DX Multisample Rasterization Enable" start="44" end="44" type="bool"/>
1667    <field name="Smooth Point Enable" start="45" end="45" type="bool"/>
1668    <field name="Force Multisampling" start="46" end="46" type="uint"/>
1669    <field name="Cull Mode" start="48" end="49" type="uint" prefix="CULLMODE">
1670      <value name="BOTH" value="0"/>
1671      <value name="NONE" value="1"/>
1672      <value name="FRONT" value="2"/>
1673      <value name="BACK" value="3"/>
1674    </field>
1675    <field name="Forced Sample Count" start="50" end="52" type="uint" prefix="FSC">
1676      <value name="NUMRASTSAMPLES_0" value="0"/>
1677      <value name="NUMRASTSAMPLES_1" value="1"/>
1678      <value name="NUMRASTSAMPLES_2" value="2"/>
1679      <value name="NUMRASTSAMPLES_4" value="3"/>
1680      <value name="NUMRASTSAMPLES_8" value="4"/>
1681      <value name="NUMRASTSAMPLES_16" value="5"/>
1682    </field>
1683    <field name="Front Winding" start="53" end="53" type="uint">
1684      <value name="Clockwise" value="0"/>
1685      <value name="Counter Clockwise" value="1"/>
1686    </field>
1687    <field name="API Mode" start="54" end="55" type="uint">
1688      <value name="DX9/OGL" value="0"/>
1689      <value name="DX10.0" value="1"/>
1690      <value name="DX10.1+" value="2"/>
1691    </field>
1692    <field name="Global Depth Offset Constant" start="64" end="95" type="float"/>
1693    <field name="Global Depth Offset Scale" start="96" end="127" type="float"/>
1694    <field name="Global Depth Offset Clamp" start="128" end="159" type="float"/>
1695  </instruction>
1696
1697  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2" engine="render">
1698    <field name="DWord Length" start="0" end="7" type="uint"/>
1699    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1700    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1701    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1702    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1703    <group count="0" start="32" size="32">
1704      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
1705    </group>
1706  </instruction>
1707
1708  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2" engine="render">
1709    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1710    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
1711    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1712    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1713    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1714    <group count="0" start="32" size="32">
1715      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
1716      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
1717      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
1718      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
1719    </group>
1720  </instruction>
1721
1722  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_DS" bias="2" length="2" engine="render">
1723    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1724    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="45"/>
1725    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1726    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1727    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1728    <field name="Pointer to DS Sampler State" start="37" end="63" type="offset"/>
1729  </instruction>
1730
1731  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_GS" bias="2" length="2" engine="render">
1732    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1733    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="46"/>
1734    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1735    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1736    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1737    <field name="Pointer to GS Sampler State" start="37" end="63" type="offset"/>
1738  </instruction>
1739
1740  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_HS" bias="2" length="2" engine="render">
1741    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1742    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="44"/>
1743    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1744    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1745    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1746    <field name="Pointer to HS Sampler State" start="37" end="63" type="offset"/>
1747  </instruction>
1748
1749  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_PS" bias="2" length="2" engine="render">
1750    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1751    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="47"/>
1752    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1753    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1754    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1755    <field name="Pointer to PS Sampler State" start="37" end="63" type="offset"/>
1756  </instruction>
1757
1758  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_VS" bias="2" length="2" engine="render">
1759    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1760    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="43"/>
1761    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1762    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1763    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1764    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
1765  </instruction>
1766
1767  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2" engine="render">
1768    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1769    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
1770    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1771    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1772    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1773    <field name="Sample Mask" start="32" end="47" type="uint"/>
1774  </instruction>
1775
1776  <instruction name="3DSTATE_SAMPLE_PATTERN" bias="2" length="9" engine="render">
1777    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1778    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
1779    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1780    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1781    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1782    <field name="8x Sample4 Y Offset" start="160" end="163" type="u0.4"/>
1783    <field name="8x Sample4 X Offset" start="164" end="167" type="u0.4"/>
1784    <field name="8x Sample5 Y Offset" start="168" end="171" type="u0.4"/>
1785    <field name="8x Sample5 X Offset" start="172" end="175" type="u0.4"/>
1786    <field name="8x Sample6 Y Offset" start="176" end="179" type="u0.4"/>
1787    <field name="8x Sample6 X Offset" start="180" end="183" type="u0.4"/>
1788    <field name="8x Sample7 Y Offset" start="184" end="187" type="u0.4"/>
1789    <field name="8x Sample7 X Offset" start="188" end="191" type="u0.4"/>
1790    <field name="8x Sample0 Y Offset" start="192" end="195" type="u0.4"/>
1791    <field name="8x Sample0 X Offset" start="196" end="199" type="u0.4"/>
1792    <field name="8x Sample1 Y Offset" start="200" end="203" type="u0.4"/>
1793    <field name="8x Sample1 X Offset" start="204" end="207" type="u0.4"/>
1794    <field name="8x Sample2 Y Offset" start="208" end="211" type="u0.4"/>
1795    <field name="8x Sample2 X Offset" start="212" end="215" type="u0.4"/>
1796    <field name="8x Sample3 Y Offset" start="216" end="219" type="u0.4"/>
1797    <field name="8x Sample3 X Offset" start="220" end="223" type="u0.4"/>
1798    <field name="4x Sample0 Y Offset" start="224" end="227" type="u0.4"/>
1799    <field name="4x Sample0 X Offset" start="228" end="231" type="u0.4"/>
1800    <field name="4x Sample1 Y Offset" start="232" end="235" type="u0.4"/>
1801    <field name="4x Sample1 X Offset" start="236" end="239" type="u0.4"/>
1802    <field name="4x Sample2 Y Offset" start="240" end="243" type="u0.4"/>
1803    <field name="4x Sample2 X Offset" start="244" end="247" type="u0.4"/>
1804    <field name="4x Sample3 Y Offset" start="248" end="251" type="u0.4"/>
1805    <field name="4x Sample3 X Offset" start="252" end="255" type="u0.4"/>
1806    <field name="2x Sample0 Y Offset" start="256" end="259" type="u0.4"/>
1807    <field name="2x Sample0 X Offset" start="260" end="263" type="u0.4"/>
1808    <field name="2x Sample1 Y Offset" start="264" end="267" type="u0.4"/>
1809    <field name="2x Sample1 X Offset" start="268" end="271" type="u0.4"/>
1810    <field name="1x Sample0 Y Offset" start="272" end="275" type="u0.4"/>
1811    <field name="1x Sample0 X Offset" start="276" end="279" type="u0.4"/>
1812  </instruction>
1813
1814  <instruction name="3DSTATE_SBE" bias="2" length="4" engine="render">
1815    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1816    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="31"/>
1817    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1818    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1819    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1820    <field name="Primitive ID Override Attribute Select" start="32" end="36" type="uint"/>
1821    <field name="Vertex URB Entry Read Offset" start="37" end="42" type="uint"/>
1822    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
1823    <field name="Primitive ID Override Component X" start="48" end="48" type="bool"/>
1824    <field name="Primitive ID Override Component Y" start="49" end="49" type="bool"/>
1825    <field name="Primitive ID Override Component Z" start="50" end="50" type="bool"/>
1826    <field name="Primitive ID Override Component W" start="51" end="51" type="bool"/>
1827    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
1828      <value name="UPPERLEFT" value="0"/>
1829      <value name="LOWERLEFT" value="1"/>
1830    </field>
1831    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
1832    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
1833    <field name="Force Vertex URB Entry Read Offset" start="60" end="60" type="bool"/>
1834    <field name="Force Vertex URB Entry Read Length" start="61" end="61" type="bool"/>
1835    <field name="Point Sprite Texture Coordinate Enable" start="64" end="95" type="uint"/>
1836    <field name="Constant Interpolation Enable" start="96" end="127" type="uint"/>
1837  </instruction>
1838
1839  <instruction name="3DSTATE_SBE_SWIZ" bias="2" length="11" engine="render">
1840    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1841    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="81"/>
1842    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1843    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1844    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1845    <group count="16" start="32" size="16">
1846      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
1847    </group>
1848    <group count="16" start="288" size="4">
1849      <field name="Attribute Wrap Shortest Enables" start="0" end="3" type="uint"/>
1850    </group>
1851  </instruction>
1852
1853  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2" engine="render">
1854    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1855    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
1856    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1857    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1858    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1859    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
1860  </instruction>
1861
1862  <instruction name="3DSTATE_SF" bias="2" length="4" engine="render">
1863    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1864    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
1865    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1866    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1867    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1868    <field name="Viewport Transform Enable" start="33" end="33" type="bool"/>
1869    <field name="Statistics Enable" start="42" end="42" type="bool"/>
1870    <field name="Legacy Global Depth Bias Enable" start="43" end="43" type="bool"/>
1871    <field name="CHV Line Width" start="44" end="61" type="u11.7"/>
1872    <field name="Line End Cap Antialiasing Region Width" start="80" end="81" type="uint">
1873      <value name="0.5 pixels" value="0"/>
1874      <value name="1.0 pixels" value="1"/>
1875      <value name="2.0 pixels" value="2"/>
1876      <value name="4.0 pixels" value="3"/>
1877    </field>
1878    <field name="Line Width" start="82" end="91" type="u3.7"/>
1879    <field name="Point Width" start="96" end="106" type="u8.3"/>
1880    <field name="Point Width Source" start="107" end="107" type="uint">
1881      <value name="Vertex" value="0"/>
1882      <value name="State" value="1"/>
1883    </field>
1884    <field name="Vertex Sub Pixel Precision Select" start="108" end="108" type="uint">
1885      <value name="8 Bit" value="0"/>
1886      <value name="4 Bit" value="1"/>
1887    </field>
1888    <field name="Smooth Point Enable" start="109" end="109" type="bool"/>
1889    <field name="AA Line Distance Mode" start="110" end="110" type="uint">
1890      <value name="AALINEDISTANCE_TRUE" value="1"/>
1891    </field>
1892    <field name="Triangle Fan Provoking Vertex Select" start="121" end="122" type="uint"/>
1893    <field name="Line Strip/List Provoking Vertex Select" start="123" end="124" type="uint"/>
1894    <field name="Triangle Strip/List Provoking Vertex Select" start="125" end="126" type="uint"/>
1895    <field name="Last Pixel Enable" start="127" end="127" type="bool"/>
1896  </instruction>
1897
1898  <instruction name="3DSTATE_SO_BUFFER" bias="2" length="8" engine="render">
1899    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1900    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
1901    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1902    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1903    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1904    <field name="Stream Output Buffer Offset Address Enable" start="52" end="52" type="bool"/>
1905    <field name="Stream Offset Write Enable" start="53" end="53" type="bool"/>
1906    <field name="MOCS" start="54" end="60" type="uint"/>
1907    <field name="SO Buffer Index" start="61" end="62" type="uint"/>
1908    <field name="SO Buffer Enable" start="63" end="63" type="bool"/>
1909    <field name="Surface Base Address" start="66" end="111" type="address"/>
1910    <field name="Surface Size" start="128" end="157" type="uint"/>
1911    <field name="Stream Output Buffer Offset Address" start="162" end="207" type="address"/>
1912    <field name="Stream Offset" start="224" end="255" type="uint"/>
1913  </instruction>
1914
1915  <instruction name="3DSTATE_SO_DECL_LIST" bias="2" engine="render">
1916    <field name="DWord Length" start="0" end="8" type="uint"/>
1917    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
1918    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1919    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1920    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1921    <field name="Stream to Buffer Selects [0]" start="32" end="35" type="uint"/>
1922    <field name="Stream to Buffer Selects [1]" start="36" end="39" type="uint"/>
1923    <field name="Stream to Buffer Selects [2]" start="40" end="43" type="uint"/>
1924    <field name="Stream to Buffer Selects [3]" start="44" end="47" type="uint"/>
1925    <field name="Num Entries [0]" start="64" end="71" type="uint"/>
1926    <field name="Num Entries [1]" start="72" end="79" type="uint"/>
1927    <field name="Num Entries [2]" start="80" end="87" type="uint"/>
1928    <field name="Num Entries [3]" start="88" end="95" type="uint"/>
1929    <group count="0" start="96" size="64">
1930      <field name="Entry" start="0" end="63" type="SO_DECL_ENTRY"/>
1931    </group>
1932  </instruction>
1933
1934  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="5" engine="render">
1935    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1936    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
1937    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1938    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1939    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1940    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1941    <field name="MOCS" start="54" end="60" type="uint"/>
1942    <field name="Stencil Buffer Enable" start="63" end="63" type="bool"/>
1943    <field name="Surface Base Address" start="64" end="127" type="address"/>
1944    <field name="Surface QPitch" start="128" end="142" type="uint"/>
1945  </instruction>
1946
1947  <instruction name="3DSTATE_STREAMOUT" bias="2" length="5" engine="render">
1948    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1949    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="30"/>
1950    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1951    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1952    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1953    <field name="Force Rendering" start="55" end="56" type="uint">
1954      <value name="Resreved" value="1"/>
1955      <value name="Force_Off" value="2"/>
1956      <value name="Force_on" value="3"/>
1957    </field>
1958    <field name="SO Statistics Enable" start="57" end="57" type="bool"/>
1959    <field name="Reorder Mode" start="58" end="58" type="uint">
1960      <value name="LEADING" value="0"/>
1961      <value name="TRAILING" value="1"/>
1962    </field>
1963    <field name="Render Stream Select" start="59" end="60" type="uint"/>
1964    <field name="Rendering Disable" start="62" end="62" type="bool"/>
1965    <field name="SO Function Enable" start="63" end="63" type="bool"/>
1966    <field name="Stream 0 Vertex Read Length" start="64" end="68" type="uint"/>
1967    <field name="Stream 0 Vertex Read Offset" start="69" end="69" type="uint"/>
1968    <field name="Stream 1 Vertex Read Length" start="72" end="76" type="uint"/>
1969    <field name="Stream 1 Vertex Read Offset" start="77" end="77" type="uint"/>
1970    <field name="Stream 2 Vertex Read Length" start="80" end="84" type="uint"/>
1971    <field name="Stream 2 Vertex Read Offset" start="85" end="85" type="uint"/>
1972    <field name="Stream 3 Vertex Read Length" start="88" end="92" type="uint"/>
1973    <field name="Stream 3 Vertex Read Offset" start="93" end="93" type="uint"/>
1974    <field name="Buffer 0 Surface Pitch" start="96" end="107" type="uint"/>
1975    <field name="Buffer 1 Surface Pitch" start="112" end="123" type="uint"/>
1976    <field name="Buffer 2 Surface Pitch" start="128" end="139" type="uint"/>
1977    <field name="Buffer 3 Surface Pitch" start="144" end="155" type="uint"/>
1978  </instruction>
1979
1980  <instruction name="3DSTATE_TE" bias="2" length="4" engine="render">
1981    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1982    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
1983    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1984    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1985    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1986    <field name="TE Enable" start="32" end="32" type="bool"/>
1987    <field name="TE Mode" start="33" end="34" type="uint">
1988      <value name="HW_TESS" value="0"/>
1989      <value name="SW_TESS" value="1"/>
1990    </field>
1991    <field name="TE Domain" start="36" end="37" type="uint">
1992      <value name="QUAD" value="0"/>
1993      <value name="TRI" value="1"/>
1994      <value name="ISOLINE" value="2"/>
1995    </field>
1996    <field name="Output Topology" start="40" end="41" type="uint" prefix="OUTPUT">
1997      <value name="POINT" value="0"/>
1998      <value name="LINE" value="1"/>
1999      <value name="TRI_CW" value="2"/>
2000      <value name="TRI_CCW" value="3"/>
2001    </field>
2002    <field name="Partitioning" start="44" end="45" type="uint">
2003      <value name="INTEGER" value="0"/>
2004      <value name="ODD_FRACTIONAL" value="1"/>
2005      <value name="EVEN_FRACTIONAL" value="2"/>
2006    </field>
2007    <field name="Maximum Tessellation Factor Odd" start="64" end="95" type="float"/>
2008    <field name="Maximum Tessellation Factor Not Odd" start="96" end="127" type="float"/>
2009  </instruction>
2010
2011  <instruction name="3DSTATE_URB_DS" bias="2" length="2" engine="render">
2012    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2013    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="50"/>
2014    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2015    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2016    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2017    <field name="DS Number of URB Entries" start="32" end="47" type="uint"/>
2018    <field name="DS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2019    <field name="DS URB Starting Address" start="57" end="63" type="uint"/>
2020  </instruction>
2021
2022  <instruction name="3DSTATE_URB_GS" bias="2" length="2" engine="render">
2023    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2024    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="51"/>
2025    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2026    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2027    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2028    <field name="GS Number of URB Entries" start="32" end="47" type="uint"/>
2029    <field name="GS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2030    <field name="GS URB Starting Address" start="57" end="63" type="uint"/>
2031  </instruction>
2032
2033  <instruction name="3DSTATE_URB_HS" bias="2" length="2" engine="render">
2034    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2035    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="49"/>
2036    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2037    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2038    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2039    <field name="HS Number of URB Entries" start="32" end="47" type="uint"/>
2040    <field name="HS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2041    <field name="HS URB Starting Address" start="57" end="63" type="uint"/>
2042  </instruction>
2043
2044  <instruction name="3DSTATE_URB_VS" bias="2" length="2" engine="render">
2045    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2046    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="48"/>
2047    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2048    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2049    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2050    <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
2051    <field name="VS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2052    <field name="VS URB Starting Address" start="57" end="63" type="uint"/>
2053  </instruction>
2054
2055  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2" engine="render">
2056    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2057    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
2058    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2059    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2060    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2061    <group count="0" start="32" size="128">
2062      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
2063    </group>
2064  </instruction>
2065
2066  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2" engine="render">
2067    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2068    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
2069    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2070    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2071    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2072    <group count="0" start="32" size="64">
2073      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
2074    </group>
2075  </instruction>
2076
2077  <instruction name="3DSTATE_VF" bias="2" length="2" engine="render">
2078    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2079    <field name="Indexed Draw Cut Index Enable" start="8" end="8" type="bool"/>
2080    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
2081    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2082    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2083    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2084    <field name="Cut Index" start="32" end="63" type="uint"/>
2085  </instruction>
2086
2087  <instruction name="3DSTATE_VF_INSTANCING" bias="2" length="3" engine="render">
2088    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2089    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="73"/>
2090    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2091    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2092    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2093    <field name="Vertex Element Index" start="32" end="37" type="uint"/>
2094    <field name="Instancing Enable" start="40" end="40" type="bool"/>
2095    <field name="Instance Data Step Rate" start="64" end="95" type="uint"/>
2096  </instruction>
2097
2098  <instruction name="3DSTATE_VF_SGVS" bias="2" length="2" engine="render">
2099    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2100    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="74"/>
2101    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2102    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2103    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2104    <field name="VertexID Element Offset" start="32" end="37" type="uint"/>
2105    <field name="VertexID Component Number" start="45" end="46" type="uint">
2106      <value name="COMP_0" value="0"/>
2107      <value name="COMP_1" value="1"/>
2108      <value name="COMP_2" value="2"/>
2109      <value name="COMP_3" value="3"/>
2110    </field>
2111    <field name="VertexID Enable" start="47" end="47" type="bool"/>
2112    <field name="InstanceID Element Offset" start="48" end="53" type="uint"/>
2113    <field name="InstanceID Component Number" start="61" end="62" type="uint">
2114      <value name="COMP_0" value="0"/>
2115      <value name="COMP_1" value="1"/>
2116      <value name="COMP_2" value="2"/>
2117      <value name="COMP_3" value="3"/>
2118    </field>
2119    <field name="InstanceID Enable" start="63" end="63" type="bool"/>
2120  </instruction>
2121
2122  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1" engine="render">
2123    <field name="Statistics Enable" start="0" end="0" type="bool"/>
2124    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
2125    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2126    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
2127    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2128  </instruction>
2129
2130  <instruction name="3DSTATE_VF_TOPOLOGY" bias="2" length="2" engine="render">
2131    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2132    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="75"/>
2133    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2134    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2135    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2136    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
2137  </instruction>
2138
2139  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2" engine="render">
2140    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2141    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="35"/>
2142    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2143    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2144    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2145    <field name="CC Viewport Pointer" start="37" end="63" type="offset"/>
2146  </instruction>
2147
2148  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP" bias="2" length="2" engine="render">
2149    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2150    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="33"/>
2151    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2152    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2153    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2154    <field name="SF Clip Viewport Pointer" start="38" end="63" type="offset"/>
2155  </instruction>
2156
2157  <instruction name="3DSTATE_VS" bias="2" length="9" engine="render">
2158    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
2159    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
2160    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2161    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2162    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2163    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
2164    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
2165    <field name="Accesses UAV" start="108" end="108" type="bool"/>
2166    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
2167    <field name="Floating Point Mode" start="112" end="112" type="uint">
2168      <value name="IEEE-754" value="0"/>
2169      <value name="Alternate" value="1"/>
2170    </field>
2171    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
2172      <value name="High" value="1"/>
2173    </field>
2174    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
2175    <field name="Sampler Count" start="123" end="125" type="uint">
2176      <value name="No Samplers" value="0"/>
2177      <value name="1-4 Samplers" value="1"/>
2178      <value name="5-8 Samplers" value="2"/>
2179      <value name="9-12 Samplers" value="3"/>
2180      <value name="13-16 Samplers" value="4"/>
2181    </field>
2182    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
2183    <field name="Single Vertex Dispatch" start="127" end="127" type="bool"/>
2184    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
2185    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
2186    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
2187    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
2188    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
2189    <field name="Enable" start="224" end="224" type="bool"/>
2190    <field name="Vertex Cache Disable" start="225" end="225" type="bool"/>
2191    <field name="SIMD8 Dispatch Enable" start="226" end="226" type="bool"/>
2192    <field name="Statistics Enable" start="234" end="234" type="bool"/>
2193    <field name="Maximum Number of Threads" start="247" end="255" type="uint"/>
2194    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
2195    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
2196    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
2197    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
2198  </instruction>
2199
2200  <instruction name="3DSTATE_WM" bias="2" length="2" engine="render">
2201    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2202    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
2203    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2204    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2205    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2206    <field name="Force Kill Pixel Enable" start="32" end="33" type="uint">
2207      <value name="ForceOff" value="1"/>
2208      <value name="ForceON" value="2"/>
2209    </field>
2210    <field name="Point Rasterization Rule" start="34" end="34" type="uint">
2211      <value name="RASTRULE_UPPER_LEFT" value="0"/>
2212      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
2213    </field>
2214    <field name="Line Stipple Enable" start="35" end="35" type="bool"/>
2215    <field name="Polygon Stipple Enable" start="36" end="36" type="bool"/>
2216    <field name="Line Antialiasing Region Width" start="38" end="39" type="uint">
2217      <value name="0.5 pixels" value="0"/>
2218      <value name="1.0 pixels" value="1"/>
2219      <value name="2.0 pixels" value="2"/>
2220      <value name="4.0 pixels" value="3"/>
2221    </field>
2222    <field name="Line End Cap Antialiasing Region Width" start="40" end="41" type="uint">
2223      <value name="0.5 pixels" value="0"/>
2224      <value name="1.0 pixels" value="1"/>
2225      <value name="2.0 pixels" value="2"/>
2226      <value name="4.0 pixels" value="3"/>
2227    </field>
2228    <field name="Barycentric Interpolation Mode" start="43" end="48" type="uint">
2229      <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
2230      <value name="BIM_PERSPECTIVE_CENTROID" value="2"/>
2231      <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
2232      <value name="BIM_LINEAR_PIXEL" value="8"/>
2233      <value name="BIM_LINEAR_CENTROID" value="16"/>
2234      <value name="BIM_LINEAR_SAMPLE" value="32"/>
2235    </field>
2236    <field name="Position ZW Interpolation Mode" start="49" end="50" type="uint">
2237      <value name="INTERP_PIXEL" value="0"/>
2238      <value name="INTERP_CENTROID" value="2"/>
2239      <value name="INTERP_SAMPLE" value="3"/>
2240    </field>
2241    <field name="Force Thread Dispatch Enable" start="51" end="52" type="uint">
2242      <value name="ForceOff" value="1"/>
2243      <value name="ForceON" value="2"/>
2244    </field>
2245    <field name="Early Depth/Stencil Control" start="53" end="54" type="uint">
2246      <value name="EDSC_NORMAL" value="0"/>
2247      <value name="EDSC_PSEXEC" value="1"/>
2248      <value name="EDSC_PREPS" value="2"/>
2249    </field>
2250    <field name="Legacy Diamond Line Rasterization" start="58" end="58" type="bool"/>
2251    <field name="Legacy Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
2252    <field name="Legacy Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
2253    <field name="Legacy Depth Buffer Clear Enable" start="62" end="62" type="bool"/>
2254    <field name="Statistics Enable" start="63" end="63" type="bool"/>
2255  </instruction>
2256
2257  <instruction name="3DSTATE_WM_CHROMAKEY" bias="2" length="2" engine="render">
2258    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2259    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="76"/>
2260    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2261    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2262    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2263    <field name="ChromaKey Kill Enable" start="63" end="63" type="bool"/>
2264  </instruction>
2265
2266  <instruction name="3DSTATE_WM_DEPTH_STENCIL" bias="2" length="3" engine="render">
2267    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2268    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="78"/>
2269    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2270    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2271    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2272    <field name="Depth Buffer Write Enable" start="32" end="32" type="bool"/>
2273    <field name="Depth Test Enable" start="33" end="33" type="bool"/>
2274    <field name="Stencil Buffer Write Enable" start="34" end="34" type="bool"/>
2275    <field name="Stencil Test Enable" start="35" end="35" type="bool"/>
2276    <field name="Double Sided Stencil Enable" start="36" end="36" type="bool"/>
2277    <field name="Depth Test Function" start="37" end="39" type="3D_Compare_Function"/>
2278    <field name="Stencil Test Function" start="40" end="42" type="3D_Compare_Function"/>
2279    <field name="Backface Stencil Pass Depth Pass Op" start="43" end="45" type="3D_Stencil_Operation"/>
2280    <field name="Backface Stencil Pass Depth Fail Op" start="46" end="48" type="3D_Stencil_Operation"/>
2281    <field name="Backface Stencil Fail Op" start="49" end="51" type="3D_Stencil_Operation"/>
2282    <field name="Backface Stencil Test Function" start="52" end="54" type="3D_Compare_Function"/>
2283    <field name="Stencil Pass Depth Pass Op" start="55" end="57" type="3D_Stencil_Operation"/>
2284    <field name="Stencil Pass Depth Fail Op" start="58" end="60" type="3D_Stencil_Operation"/>
2285    <field name="Stencil Fail Op" start="61" end="63" type="3D_Stencil_Operation"/>
2286    <field name="Backface Stencil Write Mask" start="64" end="71" type="uint"/>
2287    <field name="Backface Stencil Test Mask" start="72" end="79" type="uint"/>
2288    <field name="Stencil Write Mask" start="80" end="87" type="uint"/>
2289    <field name="Stencil Test Mask" start="88" end="95" type="uint"/>
2290  </instruction>
2291
2292  <instruction name="3DSTATE_WM_HZ_OP" bias="2" length="5" engine="render">
2293    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2294    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="82"/>
2295    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2296    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2297    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2298    <field name="Number of Multisamples" start="45" end="47" type="uint"/>
2299    <field name="Stencil Clear Value" start="48" end="55" type="uint"/>
2300    <field name="Full Surface Depth and Stencil Clear" start="57" end="57" type="bool"/>
2301    <field name="Pixel Position Offset Enable" start="58" end="58" type="bool"/>
2302    <field name="Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
2303    <field name="Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
2304    <field name="Scissor Rectangle Enable" start="61" end="61" type="bool"/>
2305    <field name="Depth Buffer Clear Enable" start="62" end="62" type="bool"/>
2306    <field name="Stencil Buffer Clear Enable" start="63" end="63" type="bool"/>
2307    <field name="Clear Rectangle X Min" start="64" end="79" type="uint"/>
2308    <field name="Clear Rectangle Y Min" start="80" end="95" type="uint"/>
2309    <field name="Clear Rectangle X Max" start="96" end="111" type="uint"/>
2310    <field name="Clear Rectangle Y Max" start="112" end="127" type="uint"/>
2311    <field name="Sample Mask" start="128" end="143" type="uint"/>
2312  </instruction>
2313
2314  <instruction name="GPGPU_CSR_BASE_ADDRESS" bias="2" length="3" engine="render">
2315    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2316    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
2317    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2318    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2319    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2320    <field name="GPGPU CSR Base Address" start="44" end="95" type="address"/>
2321  </instruction>
2322
2323  <instruction name="GPGPU_WALKER" bias="2" length="15" engine="render">
2324    <field name="DWord Length" start="0" end="7" type="uint" default="13"/>
2325    <field name="Predicate Enable" start="8" end="8" type="bool"/>
2326    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
2327    <field name="SubOpcode" start="16" end="23" type="uint" default="5"/>
2328    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2329    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2330    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2331    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2332    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2333    <field name="Indirect Data Start Address" start="102" end="127" type="offset"/>
2334    <field name="Thread Width Counter Maximum" start="128" end="133" type="uint"/>
2335    <field name="Thread Height Counter Maximum" start="136" end="141" type="uint"/>
2336    <field name="Thread Depth Counter Maximum" start="144" end="149" type="uint"/>
2337    <field name="SIMD Size" start="158" end="159" type="uint">
2338      <value name="SIMD8" value="0"/>
2339      <value name="SIMD16" value="1"/>
2340      <value name="SIMD32" value="2"/>
2341    </field>
2342    <field name="Thread Group ID Starting X" start="160" end="191" type="uint"/>
2343    <field name="Thread Group ID X Dimension" start="224" end="255" type="uint"/>
2344    <field name="Thread Group ID Starting Y" start="256" end="287" type="uint"/>
2345    <field name="Thread Group ID Y Dimension" start="320" end="351" type="uint"/>
2346    <field name="Thread Group ID Starting/Resume Z" start="352" end="383" type="uint"/>
2347    <field name="Thread Group ID Z Dimension" start="384" end="415" type="uint"/>
2348    <field name="Right Execution Mask" start="416" end="447" type="uint"/>
2349    <field name="Bottom Execution Mask" start="448" end="479" type="uint"/>
2350  </instruction>
2351
2352  <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4" engine="render">
2353    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
2354    <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
2355    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2356    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2357    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2358    <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
2359    <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
2360  </instruction>
2361
2362  <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4" engine="render">
2363    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
2364    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
2365    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2366    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2367    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2368    <field name="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
2369    <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
2370  </instruction>
2371
2372  <instruction name="MEDIA_OBJECT" bias="2" engine="render">
2373    <field name="DWord Length" start="0" end="15" type="uint" default="4"/>
2374    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
2375    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2376    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
2377    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2378    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2379    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2380    <field name="SubSlice Destination Select" start="81" end="82" type="uint">
2381      <value name="SubSlice 2" value="2"/>
2382      <value name="SubSlice 1" value="1"/>
2383      <value name="SubSlice 0" value="0"/>
2384    </field>
2385    <field name="Slice Destination Select" start="83" end="84" type="uint">
2386      <value name="Slice 0" value="0"/>
2387      <value name="Slice 1" value="1"/>
2388      <value name="Slice 2" value="2"/>
2389    </field>
2390    <field name="Use Scoreboard" start="85" end="85" type="uint">
2391      <value name="Not using scoreboard" value="0"/>
2392      <value name="Using scoreboard" value="1"/>
2393    </field>
2394    <field name="Force Destination" start="86" end="86" type="uint"/>
2395    <field name="Thread Synchronization" start="88" end="88" type="uint">
2396      <value name="No thread synchronization" value="0"/>
2397      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
2398    </field>
2399    <field name="Children Present" start="95" end="95" type="bool"/>
2400    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
2401    <field name="Scoreboard X" start="128" end="136" type="uint"/>
2402    <field name="Scoredboard Y" start="144" end="152" type="uint"/>
2403    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
2404    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
2405    <group count="0" start="192" size="32">
2406      <field name="Inline Data" start="0" end="31" type="uint"/>
2407    </group>
2408  </instruction>
2409
2410  <instruction name="MEDIA_OBJECT_GRPID" bias="2" engine="render">
2411    <field name="DWord Length" start="0" end="15" type="uint" default="5"/>
2412    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="6"/>
2413    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2414    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
2415    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2416    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2417    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2418    <field name="SubSlice Destination Select" start="81" end="82" type="uint">
2419      <value name="SubSlice 2" value="2"/>
2420      <value name="SubSlice 1" value="1"/>
2421      <value name="SubSlice 0" value="0"/>
2422    </field>
2423    <field name="Slice Destination Select" start="83" end="84" type="uint">
2424      <value name="Slice 0" value="0"/>
2425      <value name="Slice 1" value="1"/>
2426      <value name="Slice 2" value="2"/>
2427    </field>
2428    <field name="Use Scoreboard" start="85" end="85" type="uint">
2429      <value name="Not using scoreboard" value="0"/>
2430      <value name="Using scoreboard" value="1"/>
2431    </field>
2432    <field name="Force Destination" start="86" end="86" type="uint"/>
2433    <field name="End of Thread Group" start="87" end="87" type="uint"/>
2434    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
2435    <field name="Scoreboard X" start="128" end="136" type="uint"/>
2436    <field name="Scoreboard Y" start="144" end="152" type="uint"/>
2437    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
2438    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
2439    <field name="GroupID" start="192" end="223" type="uint"/>
2440    <group count="0" start="224" size="32">
2441      <field name="Inline Data" start="0" end="31" type="uint"/>
2442    </group>
2443  </instruction>
2444
2445  <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16" engine="render">
2446    <field name="DWord Length" start="0" end="15" type="uint" default="14"/>
2447    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
2448    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2449    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2450    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2451    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2452    <field name="PRT_FenceType" start="86" end="86" type="uint">
2453      <value name="Root thread queue" value="0"/>
2454      <value name="VFE state flush" value="1"/>
2455    </field>
2456    <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
2457    <field name="Children Present" start="95" end="95" type="bool"/>
2458    <group count="12" start="128" size="32">
2459      <field name="Inline Data" start="0" end="31" type="uint"/>
2460    </group>
2461  </instruction>
2462
2463  <instruction name="MEDIA_OBJECT_WALKER" bias="2" engine="render">
2464    <field name="DWord Length" start="0" end="15" type="uint" default="15"/>
2465    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
2466    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2467    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2468    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2469    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2470    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2471    <field name="Use Scoreboard" start="85" end="85" type="uint">
2472      <value name="Not using scoreboard" value="0"/>
2473      <value name="Using scoreboard" value="1"/>
2474    </field>
2475    <field name="Thread Synchronization" start="88" end="88" type="uint">
2476      <value name="No thread synchronization" value="0"/>
2477      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
2478    </field>
2479    <field name="Children Present" start="95" end="95" type="uint"/>
2480    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
2481    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
2482    <field name="Group ID Loop Select" start="168" end="191" type="uint"/>
2483    <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
2484    <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
2485    <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
2486    <field name="Color Count Minus One" start="216" end="219" type="uint"/>
2487    <field name="Local Loop Exec Count" start="224" end="233" type="uint"/>
2488    <field name="Global Loop Exec Count" start="240" end="249" type="uint"/>
2489    <field name="Block Resolution X" start="256" end="264" type="uint"/>
2490    <field name="Block Resolution Y" start="272" end="280" type="uint"/>
2491    <field name="Local Start X" start="288" end="296" type="uint"/>
2492    <field name="Local Start Y" start="304" end="312" type="uint"/>
2493    <field name="Local Outer Loop Stride X" start="352" end="361" type="int"/>
2494    <field name="Local Outer Loop Stride Y" start="368" end="377" type="int"/>
2495    <field name="Local Inner Loop Unit X" start="384" end="393" type="int"/>
2496    <field name="Local Inner Loop Unit Y" start="400" end="409" type="int"/>
2497    <field name="Global Resolution X" start="416" end="424" type="uint"/>
2498    <field name="Global Resolution Y" start="432" end="440" type="uint"/>
2499    <field name="Global Start X" start="448" end="457" type="int"/>
2500    <field name="Global Start Y" start="464" end="473" type="int"/>
2501    <field name="Global Outer Loop Stride X" start="480" end="489" type="int"/>
2502    <field name="Global Outer Loop Stride Y" start="496" end="505" type="int"/>
2503    <field name="Global Inner Loop Unit X" start="512" end="521" type="int"/>
2504    <field name="Global Inner Loop Unit Y" start="528" end="537" type="int"/>
2505    <group count="0" start="544" size="32">
2506      <field name="Inline Data" start="0" end="31" type="uint"/>
2507    </group>
2508  </instruction>
2509
2510  <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2" engine="render">
2511    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
2512    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
2513    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2514    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2515    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2516    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2517    <field name="Watermark Required" start="38" end="38" type="uint"/>
2518    <field name="Flush to GO" start="39" end="39" type="bool"/>
2519  </instruction>
2520
2521  <instruction name="MEDIA_VFE_STATE" bias="2" length="9" engine="render">
2522    <field name="DWord Length" start="0" end="15" type="uint" default="7"/>
2523    <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
2524    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2525    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2526    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2527    <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
2528    <field name="Stack Size" start="36" end="39" type="uint"/>
2529    <field name="Scratch Space Base Pointer" start="42" end="79" type="address"/>
2530    <field name="Bypass Gateway Control" start="102" end="102" type="uint">
2531      <value name="Maintaining OpenGateway/ForwardMsg/CloseGateway protocol (legacy mode)" value="0"/>
2532      <value name="Bypassing OpenGateway/CloseGateway protocol" value="1"/>
2533    </field>
2534    <field name="Reset Gateway Timer" start="103" end="103" type="uint">
2535      <value name="Maintaining the existing timestamp state" value="0"/>
2536      <value name="Resetting relative timer and latching the global timestamp" value="1"/>
2537    </field>
2538    <field name="Number of URB Entries" start="104" end="111" type="uint"/>
2539    <field name="Maximum Number of Threads" start="112" end="127" type="uint"/>
2540    <field name="Slice Disable" start="128" end="129" type="uint">
2541      <value name="All Subslices Enabled" value="0"/>
2542      <value name="Only Slice 0 Enabled" value="1"/>
2543      <value name="Only Slice 0 Subslice 0 Enabled" value="3"/>
2544    </field>
2545    <field name="CURBE Allocation Size" start="160" end="175" type="uint"/>
2546    <field name="URB Entry Allocation Size" start="176" end="191" type="uint"/>
2547    <field name="Scoreboard Mask" start="192" end="199" type="uint"/>
2548    <field name="Scoreboard Type" start="222" end="222" type="uint">
2549      <value name="Stalling Scoreboard" value="0"/>
2550      <value name="Non-Stalling Scoreboard" value="1"/>
2551    </field>
2552    <field name="Scoreboard Enable" start="223" end="223" type="bool"/>
2553    <field name="Scoreboard 0 Delta X" start="224" end="227" type="int"/>
2554    <field name="Scoreboard 0 Delta Y" start="228" end="231" type="int"/>
2555    <field name="Scoreboard 1 Delta X" start="232" end="235" type="int"/>
2556    <field name="Scoreboard 1 Delta Y" start="236" end="239" type="int"/>
2557    <field name="Scoreboard 2 Delta X" start="240" end="243" type="int"/>
2558    <field name="Scoreboard 2 Delta Y" start="244" end="247" type="int"/>
2559    <field name="Scoreboard 3 Delta X" start="248" end="251" type="int"/>
2560    <field name="Scoreboard 3 Delta Y" start="252" end="255" type="int"/>
2561    <field name="Scoreboard 4 Delta X" start="256" end="259" type="int"/>
2562    <field name="Scoreboard 4 Delta Y" start="260" end="263" type="int"/>
2563    <field name="Scoreboard 5 Delta X" start="264" end="267" type="int"/>
2564    <field name="Scoreboard 5 Delta Y" start="268" end="271" type="int"/>
2565    <field name="Scoreboard 6 Delta X" start="272" end="275" type="int"/>
2566    <field name="Scoreboard 6 Delta Y" start="276" end="279" type="int"/>
2567    <field name="Scoreboard 7 Delta X" start="280" end="283" type="int"/>
2568    <field name="Scoreboard 7 Delta Y" start="284" end="287" type="int"/>
2569  </instruction>
2570
2571  <instruction name="MFC_AVC_PAK_OBJECT" bias="2" length="12" engine="video">
2572    <field name="DWord Length" start="0" end="11" type="uint" default="10"/>
2573    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
2574    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
2575    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2576    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2577    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2578    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
2579    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
2580    <group count="8" start="96" size="32">
2581      <field name="Inline Data" start="0" end="31" type="uint"/>
2582    </group>
2583  </instruction>
2584
2585  <instruction name="MFC_MPEG2_PAK_OBJECT" bias="2" length="9" engine="video">
2586    <field name="DWord Length" start="0" end="11" type="uint" default="7"/>
2587    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
2588    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
2589    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
2590    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2591    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2592    <group count="8" start="32" size="32">
2593      <field name="Inline Data" start="0" end="31" type="uint"/>
2594    </group>
2595  </instruction>
2596
2597  <instruction name="MFC_MPEG2_SLICEGROUP_STATE" bias="2" length="8" engine="video">
2598    <field name="DWord Length" start="0" end="11" type="uint" default="6"/>
2599    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
2600    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
2601    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
2602    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2603    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2604    <field name="Stream ID" start="32" end="33" type="uint"/>
2605    <field name="Slice ID" start="36" end="39" type="uint"/>
2606    <field name="Intra Slice Flag" start="44" end="44" type="bool"/>
2607    <field name="Intra Slice" start="45" end="45" type="bool"/>
2608    <field name="First Slice Header Disable" start="46" end="46" type="bool"/>
2609    <field name="Tail Insertion Present" start="47" end="47" type="bool"/>
2610    <field name="Slice Data Insertion Present" start="48" end="48" type="bool"/>
2611    <field name="Header Insertion Present" start="49" end="49" type="bool"/>
2612    <field name="Compressed BitStream Output Disable" start="50" end="50" type="bool"/>
2613    <field name="Last Slice" start="51" end="51" type="bool"/>
2614    <field name="MB Type Skip Conversion Disable" start="52" end="52" type="bool"/>
2615    <field name="Rate Control Panic Type" start="54" end="54" type="uint">
2616      <value name="QP Panic" value="0"/>
2617      <value name="CBP Panic" value="1"/>
2618    </field>
2619    <field name="Rate Control Panic Enable" start="55" end="55" type="bool"/>
2620    <field name="Rate Control Stable Tolerance" start="56" end="59" type="uint"/>
2621    <field name="Rate Control Triggle Mode" start="60" end="61" type="uint">
2622      <value name="Always Rate Control" value="0"/>
2623      <value name="Gentle Rate Control" value="1"/>
2624      <value name="Loose Rate Control" value="2"/>
2625    </field>
2626    <field name="Reset Rate Control Counter" start="62" end="62" type="bool"/>
2627    <field name="Rate Control Counter Enable" start="63" end="63" type="bool"/>
2628    <field name="First MB X Count" start="64" end="71" type="uint"/>
2629    <field name="First MB Y Count" start="72" end="79" type="uint"/>
2630    <field name="Next Slice Group MB X Count" start="80" end="87" type="uint"/>
2631    <field name="Next Slice Group MB Y Count" start="88" end="95" type="uint"/>
2632    <field name="Slice Group QP" start="96" end="101" type="uint"/>
2633    <field name="Slice Group Skip" start="104" end="104" type="bool"/>
2634    <field name="Indirect PAK-BSE Data Start Address" start="128" end="156" type="offset"/>
2635    <field name="Grow Init" start="160" end="163" type="uint"/>
2636    <field name="Grow Resistance" start="164" end="167" type="uint"/>
2637    <field name="Shrink Init" start="168" end="171" type="uint"/>
2638    <field name="Shrink Resistance" start="172" end="175" type="uint"/>
2639    <field name="QP Max Positive Modifier Magnitude" start="176" end="183" type="uint"/>
2640    <field name="QP Max Negative Modifier Magnitude" start="184" end="191" type="uint"/>
2641    <field name="Correct 1" start="192" end="195" type="uint"/>
2642    <field name="Correct 2" start="196" end="199" type="uint"/>
2643    <field name="Correct 3" start="200" end="203" type="uint"/>
2644    <field name="Correct 4" start="204" end="207" type="uint"/>
2645    <field name="Correct 5" start="208" end="211" type="uint"/>
2646    <field name="Correct 6" start="212" end="215" type="uint"/>
2647    <field name="CV0" start="224" end="227" type="uint"/>
2648    <field name="CV1" start="228" end="231" type="uint"/>
2649    <field name="CV2" start="232" end="235" type="uint"/>
2650    <field name="CV3" start="236" end="239" type="uint"/>
2651    <field name="CV4" start="240" end="243" type="uint"/>
2652    <field name="CV5" start="244" end="247" type="uint"/>
2653    <field name="CV6" start="248" end="251" type="uint"/>
2654    <field name="CV7" start="252" end="255" type="uint"/>
2655  </instruction>
2656
2657  <instruction name="MFD_AVC_BSD_OBJECT" bias="2" length="6" engine="video">
2658    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
2659    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
2660    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2661    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2662    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2663    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2664    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
2665    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
2666    <field name="Inline Data" start="96" end="191" type="INLINE_DATA_DESCRIPTION_FOR_MFD_AVC_BSD_OBJECT"/>
2667  </instruction>
2668
2669  <instruction name="MFD_AVC_DPB_STATE" bias="2" length="27" engine="video">
2670    <field name="DWord Length" start="0" end="11" type="uint" default="9"/>
2671    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
2672    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2673    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2674    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2675    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2676    <group count="16" start="32" size="1">
2677      <field name="Non-Existing Frame" start="0" end="0" type="uint">
2678        <value name="INVALID" value="1"/>
2679        <value name="VALID" value="0"/>
2680      </field>
2681    </group>
2682    <group count="16" start="48" size="1">
2683      <field name="Long Term Frame" start="0" end="0" type="uint"/>
2684    </group>
2685    <group count="16" start="64" size="2">
2686      <field name="Used for Reference" start="0" end="1" type="uint">
2687        <value name="NOT_REFERENCE" value="0"/>
2688        <value name="TOP_FIELD" value="1"/>
2689        <value name="BOTTOM_FIELD" value="2"/>
2690        <value name="FRAME" value="3"/>
2691      </field>
2692    </group>
2693    <group count="16" start="96" size="16">
2694      <field name="LTST Frame Number List" start="0" end="15" type="uint" prefix="LTST">
2695        <value name="Long Term Frame" value="1"/>
2696        <value name="Short Term Frame" value="0"/>
2697      </field>
2698    </group>
2699    <group count="16" start="352" size="16">
2700      <field name="View ID" start="0" end="15" type="uint"/>
2701    </group>
2702    <group count="16" start="608" size="8">
2703      <field name="L0 View Order" start="0" end="7" type="uint"/>
2704    </group>
2705    <group count="16" start="736" size="8">
2706      <field name="L1 View Order" start="0" end="7" type="uint"/>
2707    </group>
2708  </instruction>
2709
2710  <instruction name="MFD_AVC_PICID_STATE" bias="2" length="10" engine="video">
2711    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
2712    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
2713    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2714    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2715    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2716    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2717    <field name="PictureID Remapping Disable" start="32" end="32" type="uint">
2718      <value name="Use 16 bits Picture ID" value="0"/>
2719      <value name="Use 4 bits FrameStoreID" value="1"/>
2720    </field>
2721    <group count="16" start="64" size="16">
2722      <field name="Picture ID" start="0" end="15" type="uint"/>
2723    </group>
2724  </instruction>
2725
2726  <instruction name="MFD_AVC_SLICEADDR" bias="2" length="3" engine="video">
2727    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
2728    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
2729    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2730    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2731    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2732    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2733    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
2734    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
2735  </instruction>
2736
2737  <instruction name="MFD_IT_OBJECT" bias="2" engine="video">
2738    <field name="DWord Length" start="0" end="11" type="uint" default="6"/>
2739    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
2740    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2741    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
2742    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2743    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2744    <field name="Indirect IT-MV Data Length" start="32" end="41" type="uint"/>
2745    <field name="Indirect IT-MV Data Start Address Offset" start="64" end="92" type="offset"/>
2746    <field name="Indirect IT-COEFF Data Length" start="96" end="107" type="uint"/>
2747    <field name="Indirect IT-COEFF Data Start Address Offset" start="128" end="156" type="offset"/>
2748    <field name="Indirect IT-DBLK Control Data Length" start="160" end="165" type="uint"/>
2749    <field name="Indirect IT-DBLK Control Data Start Address Offset" start="192" end="220" type="offset"/>
2750    <group count="0" start="224" size="32">
2751      <field name="Inline Data" start="0" end="31" type="uint"/>
2752    </group>
2753  </instruction>
2754
2755  <instruction name="MFD_JPEG_BSD_OBJECT" bias="2" length="6" engine="video">
2756    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
2757    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
2758    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2759    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
2760    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2761    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2762    <field name="Indirect Data Length" start="32" end="63" type="uint"/>
2763    <field name="Indirect Data Start Address" start="64" end="92" type="offset"/>
2764    <field name="Scan Vertical Position" start="96" end="108" type="uint"/>
2765    <field name="Scan Horizontal Position" start="112" end="124" type="uint"/>
2766    <field name="MCU Count" start="128" end="153" type="uint"/>
2767    <field name="Scan Components" start="155" end="157" type="uint"/>
2768    <field name="Interleaved" start="158" end="158" type="bool"/>
2769    <field name="Restart Interval" start="160" end="175" type="uint"/>
2770  </instruction>
2771
2772  <instruction name="MFD_MPEG2_BSD_OBJECT" bias="2" length="5" engine="video">
2773    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
2774    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
2775    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2776    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
2777    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2778    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2779    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
2780    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
2781    <field name="Inline Data" start="96" end="159" type="MFD_MPEG2_BSD_OBJECT_INLINE_DATA_DESCRIPTION"/>
2782  </instruction>
2783
2784  <instruction name="MFD_VC1_BSD_OBJECT" bias="2" length="5" engine="video">
2785    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
2786    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
2787    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2788    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
2789    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2790    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2791    <field name="Indirect BSD Data Length" start="32" end="55" type="uint"/>
2792    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
2793    <field name="Next Slice Vertical Position" start="96" end="104" type="uint"/>
2794    <field name="Slice Start Vertical Position" start="112" end="119" type="uint"/>
2795    <field name="First MB Bit Offset" start="128" end="130" type="uint"/>
2796    <field name="Emulation Prevention Byte Present" start="132" end="132" type="uint"/>
2797    <field name="First MB Byte Offset of Slice Data or Slice Header" start="144" end="159" type="uint"/>
2798  </instruction>
2799
2800  <instruction name="MFD_VC1_LONG_PIC_STATE" bias="2" length="6" engine="video">
2801    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
2802    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
2803    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2804    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
2805    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2806    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2807    <field name="Picture Width In MBs" start="32" end="39" type="uint"/>
2808    <field name="Picture Height In MBs" start="48" end="55" type="uint"/>
2809    <field name="VC1 Profile" start="64" end="64" type="uint">
2810      <value name="Simple/Main Profile" value="0"/>
2811      <value name="Advanced Profile" value="1"/>
2812    </field>
2813    <field name="Second Field" start="67" end="67" type="bool"/>
2814    <field name="Overlap Smoothing Enable" start="68" end="68" type="bool"/>
2815    <field name="Loop Filter Enable" start="69" end="69" type="bool"/>
2816    <field name="Range Reduction Enable" start="70" end="70" type="bool"/>
2817    <field name="Range Reduction Scale" start="71" end="71" type="uint"/>
2818    <field name="MV Mode" start="72" end="75" type="uint"/>
2819    <field name="Sync Marker" start="76" end="76" type="bool"/>
2820    <field name="Interpolation Rounder Control" start="77" end="77" type="bool"/>
2821    <field name="Implicit Quantizer" start="78" end="78" type="bool"/>
2822    <field name="DMV Surface Valid" start="79" end="79" type="bool"/>
2823    <field name="Bitplane Buffer Pitch" start="88" end="95" type="uint"/>
2824    <field name="B Scale Factor" start="96" end="103" type="uint"/>
2825    <field name="PQ Value" start="104" end="108" type="uint"/>
2826    <field name="Alternative PQ Value" start="112" end="116" type="uint"/>
2827    <field name="Frame Coding Mode" start="120" end="121" type="uint">
2828      <value name="Progressive Frame Picture" value="0"/>
2829      <value name="Interlaced Frame Picture" value="1"/>
2830      <value name="Field Picture with Top Field First" value="2"/>
2831      <value name="Field Picture with Bottom Field First" value="3"/>
2832    </field>
2833    <field name="Picure Type" start="122" end="124" type="uint"/>
2834    <field name="CONDOVER" start="125" end="126" type="uint"/>
2835    <field name="PQ Uniform" start="128" end="128" type="bool"/>
2836    <field name="Half QP" start="129" end="129" type="bool"/>
2837    <field name="Alternative PQ Configuration" start="130" end="131" type="uint"/>
2838    <field name="Alternative PQ Edge Mask" start="132" end="135" type="uint"/>
2839    <field name="Extended MV Range" start="136" end="137" type="uint"/>
2840    <field name="Extended DMV Range" start="138" end="139" type="uint"/>
2841    <field name="Forward Reference Distance" start="144" end="147" type="uint"/>
2842    <field name="Backward Reference Distance" start="148" end="151" type="uint"/>
2843    <field name="Number of References" start="152" end="152" type="uint">
2844      <value name="One field referenced" value="0"/>
2845      <value name="Two fields referenced" value="1"/>
2846    </field>
2847    <field name="Reference Field Picture Polarity" start="153" end="153" type="uint">
2848      <value name="Top (even) Field" value="0"/>
2849      <value name="Bottom (odd) Field" value="1"/>
2850    </field>
2851    <field name="Fast UV Motion Compensation" start="154" end="154" type="uint">
2852      <value name="No Rounding" value="0"/>
2853      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
2854    </field>
2855    <field name="Four MV Switch" start="155" end="155" type="uint">
2856      <value name="Only 1-MV" value="0"/>
2857      <value name="1, 2, or 4 MVs" value="1"/>
2858    </field>
2859    <field name="Unified MV Mode" start="156" end="157" type="uint">
2860      <value name="1-MV half-pel bilinear" value="3"/>
2861      <value name="1-MV" value="1"/>
2862      <value name="1-MV half-pel" value="2"/>
2863      <value name="Mixed MV" value="0"/>
2864    </field>
2865    <field name="Coded Block Pattern Table" start="160" end="162" type="uint"/>
2866    <field name="Intra Transform DC Table" start="163" end="163" type="uint"/>
2867    <field name="Picture-level Transform Chroma AC Coding Set Index" start="164" end="165" type="uint"/>
2868    <field name="Picture-level Transform Luma AC Coding Set Index" start="166" end="167" type="uint"/>
2869    <field name="MB Mode Table" start="168" end="170" type="uint"/>
2870    <field name="MB Transform Type" start="171" end="171" type="bool"/>
2871    <field name="Picture-level Transform Type" start="172" end="173" type="uint">
2872      <value name="8x8 Transform" value="0"/>
2873      <value name="8x4 Transform" value="1"/>
2874      <value name="4x8 Transform" value="2"/>
2875      <value name="4x4 Transform" value="3"/>
2876    </field>
2877    <field name="2-MV Block Pattern Table" start="176" end="177" type="uint"/>
2878    <field name="4-MV Block Pattern Table" start="178" end="179" type="uint"/>
2879    <field name="MV Table" start="180" end="182" type="uint"/>
2880    <field name="FIELDTX Raw" start="184" end="184" type="bool"/>
2881    <field name="ACPRED Raw" start="185" end="185" type="bool"/>
2882    <field name="OVERFLAGS Raw" start="186" end="186" type="bool"/>
2883    <field name="DIRECTMB Raw" start="187" end="187" type="bool"/>
2884    <field name="SKIPMB Raw" start="188" end="188" type="bool"/>
2885    <field name="MVTYPEMB Raw" start="189" end="189" type="bool"/>
2886    <field name="FORWARDMB Raw" start="190" end="190" type="bool"/>
2887    <field name="Bitplane Buffer Present" start="191" end="191" type="bool"/>
2888  </instruction>
2889
2890  <instruction name="MFD_VC1_SHORT_PIC_STATE" bias="2" length="5" engine="video">
2891    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
2892    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
2893    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2894    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
2895    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2896    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2897    <field name="Picture Width" start="32" end="39" type="uint"/>
2898    <field name="Picture Height" start="48" end="55" type="uint"/>
2899    <field name="Picture Structure" start="64" end="65" type="uint"/>
2900    <field name="Second Field" start="67" end="67" type="bool"/>
2901    <field name="Intra Picture" start="68" end="68" type="bool"/>
2902    <field name="Backward Prediction Present" start="69" end="69" type="bool"/>
2903    <field name="VC1 Profile" start="75" end="75" type="uint">
2904      <value name="Simple/Main Profile" value="0"/>
2905      <value name="Advanced Profile" value="1"/>
2906    </field>
2907    <field name="DMV Surface Valid" start="79" end="79" type="bool"/>
2908    <field name="MV Mode" start="80" end="83" type="uint"/>
2909    <field name="Interpolation Rounder Control" start="87" end="87" type="bool"/>
2910    <field name="Bitplane Buffer Pitch" start="88" end="95" type="uint"/>
2911    <field name="variable-sized transform coding" start="96" end="96" type="bool"/>
2912    <field name="DQUANT" start="97" end="98" type="uint"/>
2913    <field name="EXTENDED_MV Present" start="99" end="99" type="bool"/>
2914    <field name="Fast UV Motion Compensation" start="100" end="100" type="uint">
2915      <value name="No Rounding" value="0"/>
2916      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
2917    </field>
2918    <field name="Loop Filter Enable" start="101" end="101" type="bool"/>
2919    <field name="REFDIST_FLAG" start="102" end="102" type="bool"/>
2920    <field name="PANSCAN Present" start="103" end="103" type="bool"/>
2921    <field name="MAXBFRAMES" start="104" end="106" type="uint"/>
2922    <field name="RANGERED Present" start="107" end="107" type="bool"/>
2923    <field name="SYNCMARKER Present" start="108" end="108" type="bool"/>
2924    <field name="MULTIRES Present" start="109" end="109" type="bool"/>
2925    <field name="QUANTIZER" start="110" end="111" type="uint"/>
2926    <field name="P-Pic Ref Distance" start="112" end="116" type="uint"/>
2927    <field name="Progressive Pic Type" start="118" end="119" type="uint"/>
2928    <field name="Range Reduction Enable" start="124" end="124" type="uint"/>
2929    <field name="Range Reduction Scale" start="125" end="125" type="uint"/>
2930    <field name="Overlap Smoothing Enable" start="126" end="126" type="bool"/>
2931    <field name="EXTENDED_DMV Present" start="128" end="128" type="bool"/>
2932    <field name="PSF" start="129" end="129" type="bool"/>
2933    <field name="REFPIC" start="130" end="130" type="bool"/>
2934    <field name="FINTERFLAG" start="131" end="131" type="bool"/>
2935    <field name="TFCNTRFLAG" start="132" end="132" type="bool"/>
2936    <field name="INTERLACE" start="133" end="133" type="bool"/>
2937    <field name="PULLDOWN" start="134" end="134" type="bool"/>
2938    <field name="POSTPROC" start="135" end="135" type="bool"/>
2939    <field name="4-MV Allowed" start="136" end="136" type="bool"/>
2940    <field name="BFraction Enumeration" start="152" end="156" type="uint"/>
2941  </instruction>
2942
2943  <instruction name="MFD_VP8_BSD_OBJECT" bias="2" length="22" engine="video">
2944    <field name="DWord Length" start="0" end="11" type="uint" default="20"/>
2945    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
2946    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
2947    <field name="Media Command OpCode" start="24" end="26" type="uint" default="4"/>
2948    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2949    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2950    <field name="Partition0 First MB Bit Offset from Frame Header" start="32" end="34" type="uint"/>
2951    <field name="Coded Num of Coeff Token Partitions" start="36" end="37" type="uint"/>
2952    <field name="Partition0 CPBAC Entropy Range" start="40" end="47" type="uint"/>
2953    <field name="Partition0 CPBAC Entropy Count" start="48" end="52" type="uint"/>
2954    <field name="Partition0 CPBAC Entropy Value" start="88" end="95" type="uint"/>
2955    <field name="Indirect Partition0 Data Length" start="96" end="119" type="uint"/>
2956    <field name="Indirect Partition0 Data Start Offset" start="128" end="159" type="uint"/>
2957    <field name="Indirect Partition1 Data Length" start="160" end="183" type="uint"/>
2958    <field name="Indirect Partition1 Data Start Offset" start="192" end="223" type="uint"/>
2959    <field name="Indirect Partition2 Data Length" start="224" end="247" type="uint"/>
2960    <field name="Indirect Partition2 Data Start Offset" start="256" end="287" type="uint"/>
2961    <field name="Indirect Partition3 Data Length" start="288" end="311" type="uint"/>
2962    <field name="Indirect Partition3 Data Start Offset" start="320" end="351" type="uint"/>
2963    <field name="Indirect Partition4 Data Length" start="352" end="375" type="uint"/>
2964    <field name="Indirect Partition4 Data Start Offset" start="384" end="415" type="uint"/>
2965    <field name="Indirect Partition5 Data Length" start="416" end="439" type="uint"/>
2966    <field name="Indirect Partition5 Data Start Offset" start="448" end="479" type="uint"/>
2967    <field name="Indirect Partition6 Data Length" start="480" end="503" type="uint"/>
2968    <field name="Indirect Partition6 Data Start Offset" start="512" end="543" type="uint"/>
2969    <field name="Indirect Partition7 Data Length" start="544" end="567" type="uint"/>
2970    <field name="Indirect Partition7 Data Start Offset" start="576" end="607" type="uint"/>
2971    <field name="Indirect Partition8 Data Length" start="608" end="631" type="uint"/>
2972    <field name="Indirect Partition8 Data Start Offset" start="640" end="671" type="uint"/>
2973    <field name="MB Header Error Handling" start="680" end="680" type="uint"/>
2974    <field name="Entropy Error Handling" start="682" end="682" type="uint"/>
2975    <field name="MPR Error (MV out of range) Handling" start="684" end="684" type="uint"/>
2976    <field name="BSD Premature Complete Error Handling" start="686" end="686" type="uint"/>
2977    <field name="Concealment Picture ID" start="688" end="689" type="uint"/>
2978    <field name="Concealment Method" start="703" end="703" type="uint">
2979      <value name="Intra 16x16 Prediction" value="0"/>
2980      <value name="Inter P Copy" value="1"/>
2981    </field>
2982  </instruction>
2983
2984  <instruction name="MFX_AVC_DIRECTMODE_STATE" bias="2" length="71" engine="video">
2985    <field name="DWord Length" start="0" end="11" type="uint" default="69"/>
2986    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
2987    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
2988    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2989    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2990    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2991    <group count="16" start="32" size="64">
2992      <field name="Direct MV Buffer - Address" start="0" end="63" type="address"/>
2993    </group>
2994    <field name="Direct MV Buffer - Attributes" start="1056" end="1087" type="MEMORYADDRESSATTRIBUTES"/>
2995    <field name="Direct MV Buffer (Write) - Address" start="1088" end="1151" type="address"/>
2996    <field name="Direct MV Buffer (Write) - Attributes" start="1152" end="1183" type="MEMORYADDRESSATTRIBUTES"/>
2997    <group count="34" start="1184" size="32">
2998      <field name="POC List" start="0" end="31" type="uint"/>
2999    </group>
3000  </instruction>
3001
3002  <instruction name="MFX_AVC_IMG_STATE" bias="2" length="14" engine="video">
3003    <field name="DWord Length" start="0" end="11" type="uint" default="12"/>
3004    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
3005    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3006    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3007    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3008    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3009    <field name="Frame Size" start="32" end="47" type="uint"/>
3010    <field name="Frame Width" start="64" end="71" type="uint"/>
3011    <field name="Frame Height" start="80" end="87" type="uint"/>
3012    <field name="Image Structure" start="104" end="105" type="uint">
3013      <value name="Frame Picture" value="0"/>
3014      <value name="Top Field Picture" value="1"/>
3015      <value name="Bottom Field Picture" value="3"/>
3016      <value name="Invalid, not allowed." value="2"/>
3017    </field>
3018    <field name="Weighted BiPrediction IDC" start="106" end="107" type="uint">
3019      <value name="DEFAULT" value="0"/>
3020      <value name="EXPLICIT" value="1"/>
3021      <value name="IMPLICIT" value="2"/>
3022    </field>
3023    <field name="Weighted Prediction Enable" start="108" end="108" type="bool"/>
3024    <field name="First Chroma QP Offset" start="112" end="116" type="uint"/>
3025    <field name="Second Chroma QP Offset" start="120" end="124" type="uint"/>
3026    <field name="Field Picure" start="128" end="128" type="bool"/>
3027    <field name="MBAFF Mode" start="129" end="129" type="bool"/>
3028    <field name="Frame MB Only" start="130" end="130" type="bool"/>
3029    <field name="8x8 IDCT Transform Mode" start="131" end="131" type="bool"/>
3030    <field name="Direct 8x8 Inference" start="132" end="132" type="bool"/>
3031    <field name="Constrained Intra Prediction" start="133" end="133" type="bool"/>
3032    <field name="Non-Reference Picture" start="134" end="134" type="bool"/>
3033    <field name="Entropy Coding Sync Enable" start="135" end="135" type="bool"/>
3034    <field name="MB MV Format" start="136" end="136" type="uint">
3035      <value name="IGNORE" value="0"/>
3036      <value name="FOLLOW" value="1"/>
3037    </field>
3038    <field name="Chroma Format IDC" start="138" end="139" type="uint">
3039      <value name="Monochrome picture" value="0"/>
3040      <value name="4:2:0 picture" value="1"/>
3041      <value name="4:2:2 picture (not supported)" value="2"/>
3042      <value name="4:4:4 picture (not supported)" value="3"/>
3043    </field>
3044    <field name="MV Unpacked Enable" start="140" end="140" type="bool"/>
3045    <field name="Load Bitstream Pointer Per Slice" start="142" end="142" type="bool"/>
3046    <field name="MB Status Read" start="143" end="143" type="bool"/>
3047    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
3048    <field name="Intra MB Max Bit Control" start="160" end="160" type="bool"/>
3049    <field name="Inter MB Max Bit Control" start="161" end="161" type="bool"/>
3050    <field name="Frame Bitrate Max Report" start="162" end="162" type="bool"/>
3051    <field name="Frame Bitrate Min Report" start="163" end="163" type="bool"/>
3052    <field name="Force IPCM Control" start="167" end="167" type="bool"/>
3053    <field name="MB Level Rate Control" start="169" end="169" type="bool"/>
3054    <field name="Minimum Frame Size Units" start="170" end="171" type="uint">
3055      <value name="Compatibility mode" value="0"/>
3056      <value name="16 bytes" value="1"/>
3057      <value name="4Kb" value="2"/>
3058      <value name="16Kb" value="3"/>
3059    </field>
3060    <field name="Non First Pass" start="176" end="176" type="uint"/>
3061    <field name="Trellis Quantization Chroma Disable" start="187" end="187" type="bool"/>
3062    <field name="Trellis Quantization Rounding" start="188" end="190" type="uint"/>
3063    <field name="Trellis Quantization Enable" start="191" end="191" type="bool"/>
3064    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
3065    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
3066    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
3067    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
3068    <field name="Slice Delta QP Max[2]" start="272" end="279" type="uint"/>
3069    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
3070    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
3071    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
3072    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
3073    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
3074    <field name="Frame Bitrate Min" start="320" end="333" type="uint"/>
3075    <field name="Frame Bitrate Min Unit Mode" start="334" end="334" type="uint">
3076      <value name="Compatibility mode" value="0"/>
3077      <value name="New mode" value="1"/>
3078    </field>
3079    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
3080    <field name="Frame Bitrate Max" start="336" end="349" type="uint"/>
3081    <field name="Frame Bitrate Max Unit Mode" start="350" end="350" type="uint">
3082      <value name="Compatibility mode" value="0"/>
3083      <value name="New mode" value="1"/>
3084    </field>
3085    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
3086    <field name="Frame Bitrate Min Delta" start="352" end="366" type="uint"/>
3087    <field name="Frame Bitrate Max Delta" start="368" end="382" type="uint"/>
3088    <field name="Slice Stats Stream-Out Enable" start="383" end="383" type="bool"/>
3089    <field name="Initial QP Value" start="416" end="423" type="int"/>
3090    <field name="Number of Active Reference Pictures from L0" start="424" end="429" type="uint"/>
3091    <field name="Number of Active Reference Pictures from L1" start="432" end="437" type="uint"/>
3092    <field name="Number of Reference Frames" start="440" end="444" type="uint"/>
3093    <field name="Current Picture Has Performed MMCO5" start="445" end="445" type="bool"/>
3094    <field name="Pic Order Present" start="448" end="448" type="bool"/>
3095    <field name="Delta Pic Order Always Zero" start="449" end="449" type="bool"/>
3096    <field name="Pic Order Count Type" start="450" end="451" type="uint"/>
3097    <field name="Slice Group Map Type" start="456" end="458" type="uint"/>
3098    <field name="Redundant Pic Count Present" start="459" end="459" type="bool"/>
3099    <field name="Number of Slice Groups" start="460" end="462" type="uint"/>
3100    <field name="Deblocking Filter Control Present" start="463" end="463" type="bool"/>
3101    <field name="Log2 Max Frame Number" start="464" end="471" type="uint"/>
3102    <field name="Log2 Max Pic Order Count LSB" start="472" end="479" type="uint"/>
3103    <field name="Slice Group Change Rate" start="480" end="495" type="uint"/>
3104    <field name="Current Picture Frame Number" start="496" end="511" type="uint"/>
3105    <field name="Current Frame View ID" start="512" end="521" type="uint"/>
3106    <field name="Max View IDXL0" start="524" end="527" type="uint"/>
3107    <field name="Max View IDXL1" start="530" end="533" type="uint"/>
3108    <field name="Inter View Order Disable" start="543" end="543" type="bool"/>
3109  </instruction>
3110
3111  <instruction name="MFX_AVC_REF_IDX_STATE" bias="2" length="10" engine="video">
3112    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
3113    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
3114    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3115    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3116    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3117    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3118    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
3119    <group count="32" start="64" size="8">
3120      <field name="Reference List Entry" start="0" end="7" type="uint"/>
3121    </group>
3122  </instruction>
3123
3124  <instruction name="MFX_AVC_SLICE_STATE" bias="2" length="10" engine="video">
3125    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
3126    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
3127    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3128    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3129    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3130    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3131    <field name="Slice Type" start="32" end="35" type="uint">
3132      <value name="P Slice" value="0"/>
3133      <value name="B Slice" value="1"/>
3134      <value name="I Slice" value="2"/>
3135    </field>
3136    <field name="Log2 Weight Denominator Luma" start="64" end="66" type="uint"/>
3137    <field name="Log2 Weight Denominator Chroma" start="72" end="74" type="uint"/>
3138    <field name="Number of Reference Pictures in Inter-prediction List 0" start="80" end="85" type="uint"/>
3139    <field name="Number of Reference Pictures in Inter-prediction List 1" start="88" end="93" type="uint"/>
3140    <field name="Slice Alpha C0 Offset Div2" start="96" end="99" type="int"/>
3141    <field name="Slice Beta Offset Div2" start="104" end="107" type="int"/>
3142    <field name="Slice Quantization Parameter" start="112" end="117" type="uint"/>
3143    <field name="CABAC Init IDC" start="120" end="121" type="uint"/>
3144    <field name="Disable Deblocking Filter Indicator" start="123" end="124" type="uint"/>
3145    <field name="Direct Prediction Type" start="125" end="125" type="uint">
3146      <value name="Temporal" value="0"/>
3147      <value name="Spatial" value="1"/>
3148    </field>
3149    <field name="Weighted Prediction Indicator" start="126" end="127" type="uint"/>
3150    <field name="Slice Start MB Number" start="128" end="142" type="uint"/>
3151    <field name="Slice Horizontal Position" start="144" end="151" type="uint"/>
3152    <field name="Slice Vertical Position" start="152" end="159" type="uint"/>
3153    <field name="Next Slice Horizontal Position" start="160" end="167" type="uint"/>
3154    <field name="Next Slice Vertical Position" start="176" end="183" type="uint"/>
3155    <field name="Stream ID" start="192" end="193" type="uint"/>
3156    <field name="Slice ID" start="196" end="199" type="uint"/>
3157    <field name="CABAC Zero Word Insertion Enable" start="204" end="204" type="bool"/>
3158    <field name="Emulation Byte Slice Insert Enable" start="205" end="205" type="bool"/>
3159    <field name="Tail Insertion Present" start="207" end="207" type="bool"/>
3160    <field name="Slice Data Insertion Present" start="208" end="208" type="bool"/>
3161    <field name="Header Insertion Present" start="209" end="209" type="bool"/>
3162    <field name="Last Slice Group" start="211" end="211" type="bool"/>
3163    <field name="MB Type Skip Conversion Disable" start="212" end="212" type="bool"/>
3164    <field name="MB Type Direct Conversion Disable" start="213" end="213" type="bool"/>
3165    <field name="Rate Control Panic Type" start="214" end="214" type="uint">
3166      <value name="QP Panic" value="0"/>
3167      <value name="CBP Panic" value="1"/>
3168    </field>
3169    <field name="Rate Control Panic Enable" start="215" end="215" type="bool"/>
3170    <field name="Rate Control Stable Tolerance" start="216" end="219" type="uint"/>
3171    <field name="Rate Control Triggle Mode" start="220" end="221" type="uint">
3172      <value name="Always Rate Control" value="0"/>
3173      <value name="Gentle Rate Control" value="1"/>
3174      <value name="Loose Rate Control" value="2"/>
3175    </field>
3176    <field name="Reset Rate Control Counter" start="222" end="222" type="bool"/>
3177    <field name="Rate Control Counter Enable" start="223" end="223" type="uint"/>
3178    <field name="Indirect PAK-BSE Data Start Address" start="224" end="252" type="offset"/>
3179    <field name="Grow Init" start="256" end="259" type="uint"/>
3180    <field name="Grow Resistance" start="260" end="263" type="uint"/>
3181    <field name="Shrink Init" start="264" end="267" type="uint"/>
3182    <field name="Shrink Resistance" start="268" end="271" type="uint"/>
3183    <field name="QP Max Positive Modifier Magnitude" start="272" end="279" type="uint"/>
3184    <field name="QP Max Negative Modifier Magnitude" start="280" end="287" type="uint"/>
3185    <field name="Correct 1" start="288" end="291" type="uint"/>
3186    <field name="Correct 2" start="292" end="295" type="uint"/>
3187    <field name="Correct 3" start="296" end="299" type="uint"/>
3188    <field name="Correct 4" start="300" end="303" type="uint"/>
3189    <field name="Correct 5" start="304" end="307" type="uint"/>
3190    <field name="Correct 6" start="308" end="311" type="uint"/>
3191    <field name="Round Intra" start="312" end="314" type="uint">
3192      <value name="+1/16" value="0"/>
3193      <value name="+2/16" value="1"/>
3194      <value name="+3/16" value="2"/>
3195      <value name="+4/16" value="3"/>
3196      <value name="+5/16" value="4"/>
3197      <value name="+6/16" value="5"/>
3198      <value name="+7/16" value="6"/>
3199      <value name="+8/16" value="7"/>
3200    </field>
3201    <field name="Round Intra Enable" start="315" end="315" type="bool"/>
3202    <field name="Round Inter" start="316" end="318" type="uint">
3203      <value name="+1/16" value="0"/>
3204      <value name="+2/16" value="1"/>
3205      <value name="+3/16" value="2"/>
3206      <value name="+4/16" value="3"/>
3207      <value name="+5/16" value="4"/>
3208      <value name="+6/16" value="5"/>
3209      <value name="+7/16" value="6"/>
3210      <value name="+8/16" value="7"/>
3211    </field>
3212    <field name="Round Inter Enable" start="319" end="319" type="bool"/>
3213    <field name="CV0" start="320" end="323" type="uint"/>
3214    <field name="CV1" start="324" end="327" type="uint"/>
3215    <field name="CV2" start="328" end="331" type="uint"/>
3216    <field name="CV3" start="332" end="335" type="uint"/>
3217    <field name="CV4" start="336" end="339" type="uint"/>
3218    <field name="CV5" start="340" end="343" type="uint"/>
3219    <field name="CV6" start="344" end="347" type="uint"/>
3220    <field name="CV7" start="348" end="351" type="uint"/>
3221  </instruction>
3222
3223  <instruction name="MFX_AVC_WEIGHTOFFSET_STATE" bias="2" length="98" engine="video">
3224    <field name="DWord Length" start="0" end="11" type="uint" default="96"/>
3225    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
3226    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3227    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3228    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3229    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3230    <field name="Weight and Offset Select" start="32" end="32" type="uint">
3231      <value name="L0 table" value="0"/>
3232      <value name="L1 table" value="1"/>
3233    </field>
3234    <group count="96" start="64" size="32">
3235      <field name="Weight Offset" start="0" end="31" type="uint"/>
3236    </group>
3237  </instruction>
3238
3239  <instruction name="MFX_BSP_BUF_BASE_ADDR_STATE" bias="2" length="10" engine="video">
3240    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
3241    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
3242    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3243    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3244    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3245    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3246    <field name="BSD/MPC Row Store Scratch Buffer - Address" start="38" end="79" type="address"/>
3247    <field name="BSD/MPC Row Store Scratch Buffer - Age for QUADLRU" start="96" end="97" type="uint"/>
3248    <field name="BSD/MPC Row Store Scratch Buffer - Target Cache" start="99" end="100" type="uint">
3249      <value name="eLLC Only" value="0"/>
3250      <value name="LLC Only" value="1"/>
3251      <value name="LLC/eLLC" value="2"/>
3252      <value name="L3, LLC, eLLC" value="3"/>
3253    </field>
3254    <field name="BSD/MPC Row Store Scratch Buffer - Cacheability Control" start="101" end="102" type="uint">
3255      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3256      <value name="Uncacheable" value="1"/>
3257      <value name="Writethrough" value="2"/>
3258      <value name="Writeback" value="3"/>
3259    </field>
3260    <field name="BSD/MPC Row Store Scratch Buffer - Arbitration Priority Control" start="103" end="104" type="uint">
3261      <value name="Highest priority" value="0"/>
3262      <value name="Second highest priority" value="1"/>
3263      <value name="Third highest priority" value="2"/>
3264      <value name="Lowest priority" value="3"/>
3265    </field>
3266    <field name="MPR Row Store Scratch Buffer - Address" start="134" end="175" type="address"/>
3267    <field name="MPR Row Store Scratch Buffer - Age for QUADLRU" start="192" end="193" type="uint"/>
3268    <field name="MPR Row Store Scratch Buffer - Target Cache" start="195" end="196" type="uint">
3269      <value name="eLLC Only" value="0"/>
3270      <value name="LLC Only" value="1"/>
3271      <value name="LLC/eLLC" value="2"/>
3272      <value name="L3, LLC, eLLC" value="3"/>
3273    </field>
3274    <field name="MPR Row Store Scratch Buffer - Cacheability Control" start="197" end="198" type="uint">
3275      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3276      <value name="Uncacheable" value="1"/>
3277      <value name="Writethrough" value="2"/>
3278      <value name="Writeback" value="3"/>
3279    </field>
3280    <field name="MPR Row Store Scratch Buffer - Arbitration Priority Control" start="199" end="200" type="uint">
3281      <value name="Highest priority" value="0"/>
3282      <value name="Second highest priority" value="1"/>
3283      <value name="Third highest priority" value="2"/>
3284      <value name="Lowest priority" value="3"/>
3285    </field>
3286    <field name="Bitplane Read Buffer - Address" start="230" end="271" type="uint"/>
3287    <field name="Bitplane Read Buffer - Age for QUADLRU" start="288" end="289" type="uint"/>
3288    <field name="Bitplane Read Buffer - Target Cache" start="291" end="292" type="uint">
3289      <value name="eLLC Only" value="0"/>
3290      <value name="LLC Only" value="1"/>
3291      <value name="LLC/eLLC" value="2"/>
3292      <value name="L3, LLC, eLLC" value="3"/>
3293    </field>
3294    <field name="Bitplane Read Buffer - Cacheability Control" start="293" end="294" type="uint">
3295      <value name="Use Cacheability Controls From Page Table / UC with Fence (if coherent cycle)" value="0"/>
3296      <value name="Uncacheable" value="1"/>
3297      <value name="Writethrough" value="2"/>
3298      <value name="Writeback" value="3"/>
3299    </field>
3300    <field name="Bitplane Read Buffer - Arbitration Priority Control" start="295" end="296" type="uint">
3301      <value name="Highest priority" value="0"/>
3302      <value name="Second highest priority" value="1"/>
3303      <value name="Third highest priority" value="2"/>
3304      <value name="Lowest priority" value="3"/>
3305    </field>
3306  </instruction>
3307
3308  <instruction name="MFX_DBK_OBJECT" bias="2" length="13" engine="video">
3309    <field name="DWord Length" start="0" end="11" type="uint" default="11"/>
3310    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
3311    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3312    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3313    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3314    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3315    <field name="Pre Deblocking Source - Address" start="38" end="79" type="address"/>
3316    <field name="Pre Deblocking Source - Age for QUADLRU" start="96" end="97" type="uint"/>
3317    <field name="Pre Deblocking Source - Target Cache" start="99" end="100" type="uint">
3318      <value name="eLLC Only" value="0"/>
3319      <value name="LLC Only" value="1"/>
3320      <value name="LLC/eLLC" value="2"/>
3321      <value name="L3, LLC, eLLC" value="3"/>
3322    </field>
3323    <field name="Pre Deblocking Source - Cacheability Control" start="101" end="102" type="uint">
3324      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3325      <value name="Uncacheable" value="1"/>
3326      <value name="Writethrough" value="2"/>
3327      <value name="Writeback" value="3"/>
3328    </field>
3329    <field name="Pre Deblocking Source - Arbitration Priority Control" start="103" end="104" type="uint">
3330      <value name="Highest priority" value="0"/>
3331      <value name="Second highest priority" value="1"/>
3332      <value name="Third highest priority" value="2"/>
3333      <value name="Lowest priority" value="3"/>
3334    </field>
3335    <field name="Deblocking Control - Address" start="134" end="175" type="address"/>
3336    <field name="Deblocking Control - Age for QUADLRU" start="192" end="193" type="uint"/>
3337    <field name="Deblocking Control - Target Cache" start="195" end="196" type="uint">
3338      <value name="eLLC Only" value="0"/>
3339      <value name="LLC Only" value="1"/>
3340      <value name="LLC/eLLC" value="2"/>
3341      <value name="L3, LLC, eLLC" value="3"/>
3342    </field>
3343    <field name="Deblocking Control - Cacheability Control" start="197" end="198" type="uint">
3344      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3345      <value name="Uncacheable" value="1"/>
3346      <value name="Writethrough" value="2"/>
3347      <value name="Writeback" value="3"/>
3348    </field>
3349    <field name="Deblocking Control - Arbitration Priority Control" start="199" end="200" type="uint">
3350      <value name="Highest priority" value="0"/>
3351      <value name="Second highest priority" value="1"/>
3352      <value name="Third highest priority" value="2"/>
3353      <value name="Lowest priority" value="3"/>
3354    </field>
3355    <field name="Deblocking Destination - Address" start="230" end="271" type="address"/>
3356    <field name="Deblocking Destination - Age for QUADLRU" start="288" end="289" type="uint"/>
3357    <field name="Deblocking Destination - Target Cache" start="291" end="292" type="uint">
3358      <value name="eLLC Only" value="0"/>
3359      <value name="LLC Only" value="1"/>
3360      <value name="LLC/eLLC" value="2"/>
3361      <value name="L3, LLC, eLLC" value="3"/>
3362    </field>
3363    <field name="Deblocking Destination - Cacheability Control" start="293" end="294" type="uint">
3364      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3365      <value name="Uncacheable" value="1"/>
3366      <value name="Writethrough" value="2"/>
3367      <value name="Writeback" value="3"/>
3368    </field>
3369    <field name="Deblocking Destination - Arbitration Priority Control" start="295" end="296" type="uint">
3370      <value name="Highest priority" value="0"/>
3371      <value name="Second highest priority" value="1"/>
3372      <value name="Third highest priority" value="2"/>
3373      <value name="Lowest priority" value="3"/>
3374    </field>
3375    <field name="Deblock Row Store - Address" start="326" end="367" type="address"/>
3376    <field name="Deblock Row Store - Age for QUADLRU" start="384" end="385" type="uint"/>
3377    <field name="Deblock Row Store - Target Cache" start="387" end="388" type="uint">
3378      <value name="eLLC Only" value="0"/>
3379      <value name="LLC Only" value="1"/>
3380      <value name="LLC/eLLC" value="2"/>
3381      <value name="L3, LLC, eLLC" value="3"/>
3382    </field>
3383    <field name="Deblock Row Store - Cacheability Control" start="389" end="390" type="uint">
3384      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3385      <value name="Uncacheable" value="1"/>
3386      <value name="Writethrough" value="2"/>
3387      <value name="Writeback" value="3"/>
3388    </field>
3389    <field name="Deblock Row Store - Arbitration Priority Control" start="391" end="392" type="uint">
3390      <value name="Highest priority" value="0"/>
3391      <value name="Second highest priority" value="1"/>
3392      <value name="Third highest priority" value="2"/>
3393      <value name="Lowest priority" value="3"/>
3394    </field>
3395  </instruction>
3396
3397  <instruction name="MFX_FQM_STATE" bias="2" length="34" engine="video">
3398    <field name="DWord Length" start="0" end="11" type="uint" default="32"/>
3399    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
3400    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3401    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3402    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3403    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3404    <field name="AVC" start="32" end="33" type="uint">
3405      <value name="AVC_4x4_Intra_MATRIX" value="0"/>
3406      <value name="AVC_4x4_Inter_MATRIX" value="1"/>
3407      <value name="AVC_8x8_Intra_MATRIX" value="2"/>
3408      <value name="AVC_8x8_Inter_MATRIX" value="3"/>
3409    </field>
3410    <field name="MPEG2" start="32" end="33" type="uint">
3411      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
3412      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
3413    </field>
3414    <field name="Forward Quantizer Matrix" start="64" end="1087" type="uint"/>
3415  </instruction>
3416
3417  <instruction name="MFX_IND_OBJ_BASE_ADDR_STATE" bias="2" length="26" engine="video">
3418    <field name="DWord Length" start="0" end="11" type="uint" default="24"/>
3419    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
3420    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3421    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3422    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3423    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3424    <field name="MFX Indirect Bitstream Object - Address" start="32" end="95" type="address"/>
3425    <field name="MFX Indirect Bitstream Object - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3426    <field name="MFX Indirect Bitstream Object - Upper Bound" start="128" end="191" type="address"/>
3427    <field name="MFX Indirect MV Object - Address" start="192" end="255" type="address"/>
3428    <field name="MFX Indirect MV Object - Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
3429    <field name="MFX Indirect MV Object - Upper Bound" start="288" end="351" type="address"/>
3430    <field name="MFD Indirect IT-COEFF Object - Address" start="352" end="415" type="address"/>
3431    <field name="MFD Indirect IT-COEFF Object - Attributes" start="416" end="447" type="MEMORYADDRESSATTRIBUTES"/>
3432    <field name="MFD Indirect IT-COEFF Object - Upper Bound" start="448" end="511" type="address"/>
3433    <field name="MFD Indirect IT-DBLK Object - Address" start="512" end="575" type="address"/>
3434    <field name="MFD Indirect IT-DBLK Object - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
3435    <field name="MFD Indirect IT-DBLK Object - Upper Bound" start="608" end="671" type="address"/>
3436    <field name="MFC Indirect PAK-BSE Object - Address" start="672" end="735" type="address"/>
3437    <field name="MFC Indirect PAK-BSE Object - Attributes" start="736" end="767" type="MEMORYADDRESSATTRIBUTES"/>
3438    <field name="MFC Indirect PAK-BSE Object - Upper Bound" start="768" end="831" type="address"/>
3439  </instruction>
3440
3441  <instruction name="MFX_JPEG_HUFF_TABLE_STATE" bias="2" length="831" engine="video">
3442    <field name="DWord Length" start="0" end="11" type="uint" default="829"/>
3443    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
3444    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3445    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
3446    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3447    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3448    <field name="Huffman Table ID" start="32" end="32" type="uint"/>
3449    <group count="12" start="64" size="8">
3450      <field name="DC_BITS" start="0" end="7" type="uint"/>
3451    </group>
3452    <group count="12" start="160" size="8">
3453      <field name="DC_HUFFVAL" start="0" end="7" type="uint"/>
3454    </group>
3455    <group count="16" start="256" size="8">
3456      <field name="AC_BITS" start="0" end="15" type="uint"/>
3457    </group>
3458    <group count="160" start="384" size="8">
3459      <field name="AC_HUFFVAL" start="0" end="7" type="uint"/>
3460    </group>
3461    <group count="2" start="1664" size="8">
3462      <field name="AC_HUFFVAL2" start="0" end="7" type="uint"/>
3463    </group>
3464  </instruction>
3465
3466  <instruction name="MFX_JPEG_PIC_STATE" bias="2" length="3" engine="video">
3467    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
3468    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
3469    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3470    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
3471    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3472    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3473    <field name="Input Format YUV" start="32" end="34" type="uint"/>
3474    <field name="Rotation" start="36" end="37" type="uint"/>
3475    <field name="Output Format YUV" start="40" end="43" type="uint"/>
3476    <field name="Average Down Sampling" start="48" end="48" type="uint"/>
3477    <field name="Vertical Down-Sampling Enable" start="49" end="49" type="bool"/>
3478    <field name="Horizontal Down-Sampling Enable" start="50" end="50" type="bool"/>
3479    <field name="Vertical Up-Sampling Enable" start="52" end="52" type="bool"/>
3480    <field name="Frame Width In Blocks" start="64" end="76" type="uint"/>
3481    <field name="Frame Height In Blocks" start="80" end="92" type="uint"/>
3482  </instruction>
3483
3484  <instruction name="MFX_MPEG2_PIC_STATE" bias="2" length="2" engine="video">
3485    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
3486    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
3487    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3488    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
3489    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3490    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3491    <field name="Scan Order" start="38" end="38" type="uint">
3492      <value name="MPEG_ZIGZAG_SCAN" value="0"/>
3493      <value name="MPEG_ALTERNATE_VERTICAL_SCAN" value="1"/>
3494    </field>
3495    <field name="Intra VLC Format" start="39" end="39" type="uint"/>
3496    <field name="Quantizer Scale Type" start="40" end="40" type="uint">
3497      <value name="MPEG_QSCALE_LINEAR" value="0"/>
3498      <value name="MPEG_QSCALE_NONLINEAR" value="1"/>
3499    </field>
3500    <field name="Concealment MV" start="41" end="41" type="bool"/>
3501    <field name="Frame Prediction Frame DCT" start="42" end="42" type="uint"/>
3502    <field name="Top Field First" start="43" end="43" type="bool"/>
3503    <field name="Picture Structure" start="44" end="45" type="uint">
3504      <value name="MPEG_TOP_FIELD" value="1"/>
3505      <value name="MPEG_BOTTOM_FIELD" value="2"/>
3506      <value name="MPEG_FRAME" value="3"/>
3507    </field>
3508    <field name="Intra DC Precision" start="46" end="47" type="uint"/>
3509    <field name="F_code[0][0]" start="48" end="51" type="uint"/>
3510    <field name="F_code[0][1]" start="52" end="55" type="uint"/>
3511    <field name="F_code[1][0]" start="56" end="59" type="uint"/>
3512    <field name="F_code[1][1]" start="60" end="63" type="uint"/>
3513    <field name="Disable Mismatch" start="64" end="64" type="bool"/>
3514    <field name="Mismatch Control Disable" start="65" end="65" type="bool"/>
3515    <field name="Picture Coding Type" start="73" end="74" type="uint">
3516      <value name="MPEG_I_PICTURE" value="1"/>
3517      <value name="MPEG_P_PICTURE" value="2"/>
3518      <value name="MPEG_B_PICTURE" value="3"/>
3519    </field>
3520    <field name="Load Bitstream Pointer Per Slice" start="78" end="78" type="bool"/>
3521    <field name="P/B Slice Predicted MV Override" start="88" end="88" type="uint">
3522      <value name="Predicted" value="0"/>
3523      <value name="ZERO" value="1"/>
3524    </field>
3525    <field name="P/B Slice Predicted Bi-direction MV Type Override" start="89" end="90" type="uint" prefix="MPEG2_MVTO">
3526      <value name="BID" value="0"/>
3527      <value name="RESERVED" value="1"/>
3528      <value name="FWD" value="2"/>
3529      <value name="BWD" value="3"/>
3530    </field>
3531    <field name="P/B Slice Concealment Mode" start="92" end="93" type="uint" prefix="MPEG2_CM">
3532      <value name="INTER" value="0"/>
3533      <value name="LEFT" value="1"/>
3534      <value name="ZERO" value="2"/>
3535      <value name="INTRA" value="3"/>
3536    </field>
3537    <field name="I Slice Concealment Mode" start="95" end="95" type="uint" prefix="MPEG2_CM">
3538      <value name="Intra Concealment" value="0"/>
3539      <value name="Inter Concealment" value="1"/>
3540    </field>
3541    <field name="Frame Width In MBs" start="96" end="103" type="uint"/>
3542    <field name="Frame Height In MBs" start="112" end="119" type="uint"/>
3543    <field name="Slice Concealment Disable" start="127" end="127" type="bool"/>
3544    <field name="Round Intra DC" start="129" end="130" type="uint"/>
3545    <field name="Round Inter DC" start="132" end="134" type="uint"/>
3546    <field name="Round Intra AC" start="136" end="138" type="uint"/>
3547    <field name="Round Inter AC," start="140" end="142" type="uint"/>
3548    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
3549    <field name="Intra MB Max Bit Control" start="160" end="160" type="uint"/>
3550    <field name="Inter MB Max Bit Control" start="161" end="161" type="uint"/>
3551    <field name="Frame Bitrate Max Report" start="162" end="162" type="uint"/>
3552    <field name="Frame Bitrate Min Report" start="163" end="163" type="uint"/>
3553    <field name="MBRateControlMask" start="169" end="169" type="uint"/>
3554    <field name="Minimum Frame Size Units" start="170" end="171" type="uint">
3555      <value name="Compatibility mode" value="0"/>
3556      <value name="16 bytes" value="1"/>
3557      <value name="4Kb" value="2"/>
3558      <value name="16Kb" value="3"/>
3559    </field>
3560    <field name="Inter MB Force CBP to Zero Control" start="172" end="172" type="uint"/>
3561    <field name="Frame Size Control" start="176" end="176" type="uint"/>
3562    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
3563    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
3564    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
3565    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
3566    <field name="Slice Delta QP Max[2]" start="272" end="279" type="int"/>
3567    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
3568    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
3569    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
3570    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
3571    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
3572    <field name="Frame Bitrate Min" start="320" end="333" type="uint"/>
3573    <field name="Frame Bitrate Min Unit Mode" start="334" end="334" type="uint">
3574      <value name="Compatibility mode" value="0"/>
3575      <value name="New Mode" value="1"/>
3576    </field>
3577    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
3578    <field name="Frame Bitrate Max" start="336" end="349" type="uint"/>
3579    <field name="Frame Bitrate Max Unit Mode" start="350" end="350" type="uint">
3580      <value name="Compatibility mode" value="0"/>
3581      <value name="New mode" value="1"/>
3582    </field>
3583    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
3584    <field name="Frame Bitrate Min Delta" start="352" end="366" type="uint"/>
3585    <field name="Frame Bitrate Max Delta" start="368" end="382" type="uint"/>
3586  </instruction>
3587
3588  <instruction name="MFX_PAK_INSERT_OBJECT" bias="2" engine="video">
3589    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
3590    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
3591    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3592    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3593    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3594    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3595    <field name="Bitstream Start Reset" start="32" end="32" type="bool"/>
3596    <field name="End of Slice" start="33" end="33" type="bool"/>
3597    <field name="Last Header" start="34" end="34" type="bool"/>
3598    <field name="Emulation Byte Bits Insert Enable" start="35" end="35" type="bool"/>
3599    <field name="Skip Emulation Byte Count" start="36" end="39" type="uint"/>
3600    <field name="Data Bits In Last DW" start="40" end="45" type="uint"/>
3601    <field name="Slice Header Indicator" start="46" end="46" type="uint">
3602      <value name="SLICE_HEADER" value="1"/>
3603      <value name="LEGACY" value="0"/>
3604    </field>
3605    <field name="Header Length Excluded From Size" start="47" end="47" type="uint">
3606      <value name="NO_ACCUMULATION" value="1"/>
3607      <value name="ACCUMULATE" value="0"/>
3608    </field>
3609    <field name="Data Byte Offset" start="48" end="49" type="uint"/>
3610    <group count="0" start="64" size="32">
3611      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
3612    </group>
3613  </instruction>
3614
3615  <instruction name="MFX_PIPE_BUF_ADDR_STATE" bias="2" length="61" engine="video">
3616    <field name="DWord Length" start="0" end="11" type="uint" default="59"/>
3617    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
3618    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3619    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3620    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3621    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3622    <field name="Pre Deblocking Destination - Address" start="38" end="79" type="address"/>
3623    <field name="Pre Deblocking Destination - MOCS" start="96" end="102" type="uint"/>
3624    <field name="Pre Deblocking Destination - Arbitration Priority Control" start="103" end="104" type="uint">
3625      <value name="Highest priority" value="0"/>
3626      <value name="Second highest priority" value="1"/>
3627      <value name="Third highest priority" value="2"/>
3628      <value name="Lowest priority" value="3"/>
3629    </field>
3630    <field name="Post Deblocking Destination - Address" start="134" end="175" type="address"/>
3631    <field name="Post Deblocking Destination - MOCS" start="192" end="198" type="uint"/>
3632    <field name="Post Deblocking Destination - Arbitration Priority Control" start="199" end="200" type="uint">
3633      <value name="Highest priority" value="0"/>
3634      <value name="Second highest priority" value="1"/>
3635      <value name="Third highest priority" value="2"/>
3636      <value name="Lowest priority" value="3"/>
3637    </field>
3638    <field name="Original Uncompressed Picture Source - Address" start="230" end="271" type="address"/>
3639    <field name="Original Uncompressed Picture Source - MOCS" start="288" end="294" type="uint"/>
3640    <field name="Original Uncompressed Picture Source - Arbitration Priority Control" start="295" end="296" type="uint">
3641      <value name="Highest priority" value="0"/>
3642      <value name="Second highest priority" value="1"/>
3643      <value name="Third highest priority" value="2"/>
3644      <value name="Lowest priority" value="3"/>
3645    </field>
3646    <field name="Stream-Out Data Destination - Address" start="326" end="367" type="address"/>
3647    <field name="Stream-Out Data Destination - MOCS" start="384" end="390" type="uint"/>
3648    <field name="Stream-Out Data Destination - Arbitration Priority Control" start="391" end="392" type="uint">
3649      <value name="Highest priority" value="0"/>
3650      <value name="Second highest priority" value="1"/>
3651      <value name="Third highest priority" value="2"/>
3652      <value name="Lowest priority" value="3"/>
3653    </field>
3654    <field name="Intra Row Store Scratch Buffer - Address High" start="422" end="463" type="address"/>
3655    <field name="Intra Row Store Scratch Buffer - MOCS" start="480" end="486" type="uint"/>
3656    <field name="Intra Row Store Scratch Buffer - Arbitration Priority Control" start="487" end="488" type="uint">
3657      <value name="Highest priority" value="0"/>
3658      <value name="Second highest priority" value="1"/>
3659      <value name="Third highest priority" value="2"/>
3660      <value name="Lowest priority" value="3"/>
3661    </field>
3662    <field name="Deblocking Filter Row Store Scratch - Address High" start="518" end="559" type="address"/>
3663    <field name="Deblocking Filter Row Store Scratch - MOCS" start="576" end="582" type="uint"/>
3664    <field name="Deblocking Filter Row Store Scratch - Arbitration Priority Control" start="583" end="584" type="uint">
3665      <value name="Highest priority" value="0"/>
3666      <value name="Second highest priority" value="1"/>
3667      <value name="Third highest priority" value="2"/>
3668      <value name="Lowest priority" value="3"/>
3669    </field>
3670    <group count="16" start="608" size="64">
3671      <field name="Reference Picture - Address" start="0" end="63" type="address"/>
3672    </group>
3673    <field name="Reference Picture - MOCS" start="1632" end="1638" type="uint"/>
3674    <field name="Reference Picture - Arbitration Priority Control" start="1639" end="1640" type="uint">
3675      <value name="Highest priority" value="0"/>
3676      <value name="Second highest priority" value="1"/>
3677      <value name="Third highest priority" value="2"/>
3678      <value name="Lowest priority" value="3"/>
3679    </field>
3680    <field name="MB Status Buffer - Address" start="1670" end="1711" type="address"/>
3681    <field name="MB Status Buffer - MOCS" start="1728" end="1734" type="uint"/>
3682    <field name="MB Status Buffer - Arbitration Priority Control" start="1735" end="1736" type="uint">
3683      <value name="Highest priority" value="0"/>
3684      <value name="Second highest priority" value="1"/>
3685      <value name="Third highest priority" value="2"/>
3686      <value name="Lowest priority" value="3"/>
3687    </field>
3688    <field name="MB ILDB Stream-Out Buffer - Address" start="1766" end="1807" type="address"/>
3689    <field name="MB ILDB Stream-Out Buffer - MOCS" start="1824" end="1830" type="uint"/>
3690    <field name="MB ILDB Stream-Out Buffer - Arbitration Priority Control" start="1831" end="1832" type="uint">
3691      <value name="Highest priority" value="0"/>
3692      <value name="Second highest priority" value="1"/>
3693      <value name="Third highest priority" value="2"/>
3694      <value name="Lowest priority" value="3"/>
3695    </field>
3696    <field name="Second MB ILDB Stream-Out Buffer - Address High" start="1862" end="1903" type="address"/>
3697    <field name="Second MB ILDB Stream-Out Buffer - MOCS" start="1920" end="1926" type="uint"/>
3698    <field name="Second MB ILDB Stream-Out Buffer - Arbitration Priority Control" start="1927" end="1928" type="uint">
3699      <value name="Highest priority" value="0"/>
3700      <value name="Second highest priority" value="1"/>
3701      <value name="Third highest priority" value="2"/>
3702      <value name="Lowest priority" value="3"/>
3703    </field>
3704  </instruction>
3705
3706  <instruction name="MFX_PIPE_MODE_SELECT" bias="2" length="5" engine="video">
3707    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
3708    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
3709    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3710    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3711    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3712    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3713    <field name="Standard Select" start="32" end="35" type="uint" prefix="SS">
3714      <value name="MPEG2" value="0"/>
3715      <value name="VC1" value="1"/>
3716      <value name="AVC" value="2"/>
3717      <value name="JPEG" value="3"/>
3718      <value name="VP8" value="5"/>
3719      <value name="UVLD" value="15"/>
3720    </field>
3721    <field name="Codec Select" start="36" end="36" type="uint">
3722      <value name="Decode" value="0"/>
3723      <value name="Encode" value="1"/>
3724    </field>
3725    <field name="Stitch Mode" start="37" end="37" type="bool"/>
3726    <field name="Pre Deblocking Output Enable" start="40" end="40" type="bool"/>
3727    <field name="Post Deblocking Output Enable" start="41" end="41" type="bool"/>
3728    <field name="Stream-Out Enable" start="42" end="42" type="bool"/>
3729    <field name="Pic Error/Status Report Enable" start="43" end="43" type="bool"/>
3730    <field name="Deblocker Stream-Out Enable" start="44" end="44" type="bool"/>
3731    <field name="Decoder Mode select" start="47" end="48" type="uint">
3732      <value name="VLD Mode" value="0"/>
3733      <value name="IT Mode" value="1"/>
3734      <value name="Deblocker Mode" value="2"/>
3735      <value name="Interlayer Mode" value="3"/>
3736    </field>
3737    <field name="Decoder Short Format Mode" start="49" end="49" type="uint">
3738      <value name="Short Format Driver Interface" value="0"/>
3739      <value name="Long Format Driver Interface" value="1"/>
3740    </field>
3741    <field name="Extended Stream-Out Enable" start="50" end="50" type="bool"/>
3742    <field name="Pic Status/Error Report ID" start="96" end="127" type="uint"/>
3743  </instruction>
3744
3745  <instruction name="MFX_QM_STATE" bias="2" length="34" engine="video">
3746    <field name="DWord Length" start="0" end="11" type="uint" default="32"/>
3747    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
3748    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3749    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3750    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3751    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3752    <field name="AVC" start="32" end="33" type="uint">
3753      <value name="AVC_4x4_Intra_MATRIX" value="0"/>
3754      <value name="AVC_4x4_Inter_MATRIX" value="1"/>
3755      <value name="AVC_8x8_Intra_MATRIX" value="2"/>
3756      <value name="AVC_8x8_Inter_MATRIX" value="3"/>
3757    </field>
3758    <field name="MPEG2" start="32" end="33" type="uint">
3759      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
3760      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
3761    </field>
3762    <field name="Forward Quantizer Matrix" start="64" end="1087" type="uint"/>
3763  </instruction>
3764
3765  <instruction name="MFX_STATE_POINTER" bias="2" length="2" engine="video">
3766    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
3767    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
3768    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3769    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3770    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3771    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3772    <field name="State Pointer Index" start="32" end="33" type="uint"/>
3773    <field name="State Pointer" start="37" end="63" type="uint"/>
3774  </instruction>
3775
3776  <instruction name="MFX_STITCH_OBJECT" bias="2" engine="video">
3777    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
3778    <field name="SubOpcode B" start="16" end="20" type="uint" default="10"/>
3779    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3780    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3781    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3782    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3783    <field name="End of Slice" start="33" end="33" type="bool"/>
3784    <field name="Last Header" start="34" end="34" type="bool"/>
3785    <field name="Source Data Ending Bit Inclusion" start="40" end="45" type="uint"/>
3786    <field name="Source Data Starting Byte Offset" start="48" end="49" type="uint"/>
3787    <field name="Indirect Data Length" start="64" end="82" type="uint"/>
3788    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
3789    <group count="0" start="128" size="32">
3790      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
3791    </group>
3792  </instruction>
3793
3794  <instruction name="MFX_SURFACE_STATE" bias="2" length="6" engine="video">
3795    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
3796    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
3797    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3798    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3799    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3800    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3801    <field name="Surface ID" start="32" end="35" type="uint">
3802      <value name="Source Input Picture" value="4"/>
3803      <value name="Reconstructed Scaled Reference Picture" value="5"/>
3804    </field>
3805    <field name="Cr(V)/Cb(U) Pixel Offset V Direction" start="64" end="65" type="u0.2"/>
3806    <field name="Width" start="68" end="81" type="uint"/>
3807    <field name="Height" start="82" end="95" type="uint"/>
3808    <field name="Tile Walk" start="96" end="96" type="uint" prefix="TW">
3809      <value name="XMAJOR" value="0"/>
3810      <value name="YMAJOR" value="1"/>
3811    </field>
3812    <field name="Tiled Surface" start="97" end="97" type="bool"/>
3813    <field name="Half Pitch for Chroma" start="98" end="98" type="bool"/>
3814    <field name="Surface Pitch" start="99" end="115" type="uint"/>
3815    <field name="Interleave Chroma" start="123" end="123" type="bool"/>
3816    <field name="Surface Format" start="124" end="127" type="uint">
3817      <value name="YCRCB_NORMAL" value="0"/>
3818      <value name="YCRCB_SWAPUVY" value="1"/>
3819      <value name="YCRCB_SWAPUV" value="2"/>
3820      <value name="YCRCB_SWAPY" value="3"/>
3821      <value name="PLANAR_420_8" value="4"/>
3822      <value name="PLANAR_411_8" value="5"/>
3823      <value name="PLANAR_422_8" value="6"/>
3824      <value name="STMM_DN_STATISTICS" value="7"/>
3825      <value name="R10G10B10A2_UNORM" value="8"/>
3826      <value name="R8G8B8A8_UNORM" value="9"/>
3827      <value name="R8B8_UNORM (CrCb)" value="10"/>
3828      <value name="R8_UNORM (Cr/Cb)" value="11"/>
3829      <value name="Y8_UNORM" value="12"/>
3830    </field>
3831    <field name="Y Offset for U(Cb)" start="128" end="142" type="uint"/>
3832    <field name="X Offset for U(Cb)" start="144" end="158" type="uint"/>
3833    <field name="Y Offset for V(Cr)" start="160" end="175" type="uint"/>
3834    <field name="X Offset for V(Cr)" start="176" end="188" type="uint"/>
3835  </instruction>
3836
3837  <instruction name="MFX_VC1_DIRECTMODE_STATE" bias="2" length="7" engine="video">
3838    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
3839    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
3840    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3841    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
3842    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3843    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3844    <field name="Direct MV Write Buffer - Address" start="32" end="95" type="address"/>
3845    <field name="Direct MV Write Buffer - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3846    <field name="Direct MV Read Buffer - Address" start="128" end="191" type="address"/>
3847    <field name="Direct MV Read Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
3848  </instruction>
3849
3850  <instruction name="MFX_VC1_PRED_PIPE_STATE" bias="2" length="6" engine="video">
3851    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
3852    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
3853    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3854    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
3855    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3856    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3857    <field name="Reference Frame Boundary Replication Mode" start="36" end="39" type="uint"/>
3858    <field name="Vin_intensitycomp_Single_BWDen" start="40" end="41" type="uint"/>
3859    <field name="Vin_intensitycomp_Single_FWDen" start="42" end="43" type="uint"/>
3860    <field name="Vin_intensitycomp_Double_BWDen" start="44" end="45" type="uint"/>
3861    <field name="Vin_intensitycomp_Double_FWDen" start="46" end="47" type="uint"/>
3862    <field name="LumScale1 - single - FWD" start="64" end="69" type="uint"/>
3863    <field name="LumScale2 - single - FWD" start="72" end="77" type="uint"/>
3864    <field name="LumShift1 - single - FWD" start="80" end="85" type="uint"/>
3865    <field name="LumShift2 - single - FWD" start="88" end="93" type="uint"/>
3866    <field name="LumScale1 - double - FWD" start="96" end="101" type="uint"/>
3867    <field name="LumScale2 - double - FWD" start="104" end="109" type="uint"/>
3868    <field name="LumShift1 - double - FWD" start="112" end="117" type="uint"/>
3869    <field name="LumShift2 - double - FWD" start="120" end="125" type="uint"/>
3870    <field name="LumScale1 - single - BWD" start="128" end="133" type="uint"/>
3871    <field name="LumScale2 - single - BWD" start="136" end="141" type="uint"/>
3872    <field name="LumShift1 - single - BWD" start="144" end="149" type="uint"/>
3873    <field name="LumShift2 - single - BWD" start="152" end="157" type="uint"/>
3874    <field name="LumScale1 - double - BWD" start="160" end="165" type="uint"/>
3875    <field name="LumScale2 - double - BWD" start="168" end="173" type="uint"/>
3876    <field name="LumShift1 - double - BWD" start="176" end="181" type="uint"/>
3877    <field name="LumShift2 - double - BWD" start="184" end="189" type="uint"/>
3878  </instruction>
3879
3880  <instruction name="MFX_VP8_PAK_OBJECT" bias="2" length="7" engine="video">
3881    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
3882    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
3883    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3884    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
3885    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3886    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3887    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
3888    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
3889    <field name="Inline Data" start="96" end="223" type="uint"/>
3890  </instruction>
3891
3892  <instruction name="MFX_VP8_PIC_STATE" bias="2" length="2" engine="video">
3893    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
3894    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
3895    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
3896    <field name="Media Command OpCode" start="24" end="26" type="uint" default="4"/>
3897    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3898    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3899    <field name="Frame Width" start="32" end="39" type="uint"/>
3900    <field name="Frame Height" start="48" end="55" type="uint"/>
3901    <field name="MC Filter Select" start="64" end="64" type="uint"/>
3902    <field name="Chroma Full Pixel MC Filter Mode" start="65" end="65" type="uint"/>
3903    <field name="DBLK Filter Type" start="68" end="68" type="uint"/>
3904    <field name="Key Frame" start="69" end="69" type="bool"/>
3905    <field name="Segmentation ID Stream-Out Enable" start="70" end="70" type="bool"/>
3906    <field name="Segmentation ID Stream-In Enable" start="71" end="71" type="bool"/>
3907    <field name="Segment Enable" start="72" end="72" type="bool"/>
3908    <field name="Update MB Segment Map" start="73" end="73" type="bool"/>
3909    <field name="MB NoCoeff Skip" start="74" end="74" type="bool"/>
3910    <field name="Mode Reference Loop Filter Delta Enable" start="75" end="75" type="bool"/>
3911    <field name="Golden Ref Picture MV Sign Bias" start="76" end="76" type="bool"/>
3912    <field name="Alternate Ref Pic MV Sign Bias" start="77" end="77" type="bool"/>
3913    <field name="Deblock Sharpness Level" start="80" end="82" type="uint"/>
3914    <field name="Log2 Num of Partition" start="88" end="89" type="uint">
3915      <value name="1 Token partition" value="0"/>
3916      <value name="2 Token partition" value="1"/>
3917      <value name="4 Token partition" value="2"/>
3918      <value name="8 Token partition" value="3"/>
3919    </field>
3920    <field name="DBLK Filter Level for Segment0" start="96" end="101" type="uint"/>
3921    <field name="DBLK Filter Level for Segment1" start="104" end="109" type="uint"/>
3922    <field name="DBLK Filter Level for Segment2" start="112" end="117" type="uint"/>
3923    <field name="DBLK Filter Level for Segment3" start="120" end="125" type="uint"/>
3924    <field name="Quantizer Value [0][Y1DC]" start="128" end="136" type="uint"/>
3925    <field name="Quantizer Value [0][Y1AC]" start="144" end="152" type="uint"/>
3926    <field name="Quantizer Value [0][UVDC]" start="160" end="168" type="uint"/>
3927    <field name="Quantizer Value [0][UVAC]" start="176" end="184" type="uint"/>
3928    <field name="Quantizer Value [0][Y2DC]" start="192" end="200" type="uint"/>
3929    <field name="Quantizer Value [0][Y2AC]" start="208" end="216" type="uint"/>
3930    <field name="Quantizer Value [1][Y1DC]" start="224" end="232" type="uint"/>
3931    <field name="Quantizer Value [1][Y1AC]" start="240" end="248" type="uint"/>
3932    <field name="Quantizer Value [1][UVDC]" start="256" end="264" type="uint"/>
3933    <field name="Quantizer Value [1][UVAC]" start="272" end="280" type="uint"/>
3934    <field name="Quantizer Value [1][Y2DC]" start="288" end="296" type="uint"/>
3935    <field name="Quantizer Value [1][Y2AC]" start="304" end="312" type="uint"/>
3936    <field name="Quantizer Value [2][Y1DC]" start="320" end="328" type="uint"/>
3937    <field name="Quantizer Value [2][Y1AC]" start="336" end="344" type="uint"/>
3938    <field name="Quantizer Value [2][UVDC]" start="352" end="360" type="uint"/>
3939    <field name="Quantizer Value [2][UVAC]" start="368" end="376" type="uint"/>
3940    <field name="Quantizer Value [2][Y2DC]" start="384" end="392" type="uint"/>
3941    <field name="Quantizer Value [2][Y2AC]" start="400" end="408" type="uint"/>
3942    <field name="Quantizer Value [3][Y1DC]" start="416" end="424" type="uint"/>
3943    <field name="Quantizer Value [3][Y1AC]" start="432" end="440" type="uint"/>
3944    <field name="Quantizer Value [3][UVDC]" start="448" end="456" type="uint"/>
3945    <field name="Quantizer Value [3][UVAC]" start="464" end="472" type="uint"/>
3946    <field name="Quantizer Value [3][Y2DC]" start="480" end="488" type="uint"/>
3947    <field name="Quantizer Value [3][Y2AC]" start="496" end="504" type="uint"/>
3948    <field name="CoeffProbability Stream-In - Address" start="518" end="559" type="address"/>
3949    <field name="CoeffProbability Stream-In - Age for QUADLRU" start="576" end="577" type="uint"/>
3950    <field name="CoeffProbability Stream-In - Target Cache" start="579" end="580" type="uint">
3951      <value name="eLLC Only" value="0"/>
3952      <value name="LLC Only" value="1"/>
3953      <value name="LLC/eLLC" value="2"/>
3954      <value name="L3, LLC, eLLC" value="3"/>
3955    </field>
3956    <field name="CoeffProbability Stream-In - Cacheability Control" start="581" end="582" type="uint">
3957      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
3958      <value name="Uncacheable" value="1"/>
3959      <value name="Writethrough" value="2"/>
3960      <value name="Writeback" value="3"/>
3961    </field>
3962    <field name="CoeffProbability Stream-In - Arbitration Priority Control" start="583" end="584" type="uint">
3963      <value name="Highest priority" value="0"/>
3964      <value name="Second highest priority" value="1"/>
3965      <value name="Third highest priority" value="2"/>
3966      <value name="Lowest priority" value="3"/>
3967    </field>
3968    <field name="MBSegmentIDTreeProbs[0]" start="608" end="615" type="uint"/>
3969    <field name="MBSegmentIDTreeProbs[1]" start="616" end="623" type="uint"/>
3970    <field name="MBSegmentIDTreeProbs[2]" start="624" end="631" type="uint"/>
3971    <field name="InterPredFromGRefRefProb" start="640" end="647" type="uint"/>
3972    <field name="InterPredFromLastRefProb" start="648" end="655" type="uint"/>
3973    <field name="IntraMBProb" start="656" end="663" type="uint"/>
3974    <field name="MBNoCoeffSkipFalseProb" start="664" end="671" type="uint"/>
3975    <field name="YModeProb[0]" start="672" end="679" type="uint"/>
3976    <field name="YModeProb[1]" start="680" end="687" type="uint"/>
3977    <field name="YModeProb[2]" start="688" end="695" type="uint"/>
3978    <field name="YModeProb[3]" start="696" end="703" type="uint"/>
3979    <field name="UVModeProb[0]" start="704" end="711" type="uint"/>
3980    <field name="UVModeProb[1]" start="712" end="719" type="uint"/>
3981    <field name="UVModeProb[2]" start="720" end="727" type="uint"/>
3982    <field name="MVUpdateProbs[0][0]" start="736" end="743" type="uint"/>
3983    <field name="MVUpdateProbs[0][1]" start="744" end="751" type="uint"/>
3984    <field name="MVUpdateProbs[0][2]" start="752" end="759" type="uint"/>
3985    <field name="MVUpdateProbs[0][3]" start="760" end="767" type="uint"/>
3986    <field name="MVUpdateProbs[0][4]" start="768" end="775" type="uint"/>
3987    <field name="MVUpdateProbs[0][5]" start="776" end="783" type="uint"/>
3988    <field name="MVUpdateProbs[0][6]" start="784" end="791" type="uint"/>
3989    <field name="MVUpdateProbs[0][7]" start="792" end="799" type="uint"/>
3990    <field name="MVUpdateProbs[0][8]" start="800" end="807" type="uint"/>
3991    <field name="MVUpdateProbs[0][9]" start="808" end="815" type="uint"/>
3992    <field name="MVUpdateProbs[0][10]" start="816" end="823" type="uint"/>
3993    <field name="MVUpdateProbs[0][11]" start="824" end="831" type="uint"/>
3994    <field name="MVUpdateProbs[0][12]" start="832" end="839" type="uint"/>
3995    <field name="MVUpdateProbs[0][13]" start="840" end="847" type="uint"/>
3996    <field name="MVUpdateProbs[0][14]" start="848" end="855" type="uint"/>
3997    <field name="MVUpdateProbs[0][15]" start="856" end="863" type="uint"/>
3998    <field name="MVUpdateProbs[0][16]" start="864" end="871" type="uint"/>
3999    <field name="MVUpdateProbs[0][17]" start="872" end="879" type="uint"/>
4000    <field name="MVUpdateProbs[0][18]" start="880" end="887" type="uint"/>
4001    <field name="MVUpdateProbs[1][0]" start="896" end="903" type="uint"/>
4002    <field name="MVUpdateProbs[1][1]" start="904" end="911" type="uint"/>
4003    <field name="MVUpdateProbs[1][2]" start="912" end="919" type="uint"/>
4004    <field name="MVUpdateProbs[1][3]" start="920" end="927" type="uint"/>
4005    <field name="MVUpdateProbs[1][4]" start="928" end="935" type="uint"/>
4006    <field name="MVUpdateProbs[1][5]" start="936" end="943" type="uint"/>
4007    <field name="MVUpdateProbs[1][6]" start="944" end="951" type="uint"/>
4008    <field name="MVUpdateProbs[1][7]" start="952" end="959" type="uint"/>
4009    <field name="MVUpdateProbs[1][8]" start="960" end="967" type="uint"/>
4010    <field name="MVUpdateProbs[1][9]" start="968" end="975" type="uint"/>
4011    <field name="MVUpdateProbs[1][10]" start="976" end="983" type="uint"/>
4012    <field name="MVUpdateProbs[1][11]" start="984" end="991" type="uint"/>
4013    <field name="MVUpdateProbs[1][12]" start="992" end="999" type="uint"/>
4014    <field name="MVUpdateProbs[1][13]" start="1000" end="1007" type="uint"/>
4015    <field name="MVUpdateProbs[1][14]" start="1008" end="1015" type="uint"/>
4016    <field name="MVUpdateProbs[1][15]" start="1016" end="1023" type="uint"/>
4017    <field name="MVUpdateProbs[1][16]" start="1024" end="1031" type="uint"/>
4018    <field name="MVUpdateProbs[1][17]" start="1032" end="1039" type="uint"/>
4019    <field name="MVUpdateProbs[1][18]" start="1040" end="1047" type="uint"/>
4020    <field name="RefLFDelta0" start="1056" end="1062" type="int"/>
4021    <field name="RefLFDelta1" start="1064" end="1070" type="int"/>
4022    <field name="RefLFDelta2" start="1072" end="1078" type="int"/>
4023    <field name="RefLFDelta3" start="1080" end="1086" type="int"/>
4024    <field name="ModeLFDelta0" start="1088" end="1094" type="int"/>
4025    <field name="ModeLFDelta1" start="1096" end="1102" type="int"/>
4026    <field name="ModeLFDelta2" start="1104" end="1110" type="int"/>
4027    <field name="ModeLFDelta3" start="1112" end="1118" type="int"/>
4028    <field name="Segmentation ID Stream - Address" start="1120" end="1167" type="uint"/>
4029    <field name="Segmentation ID Stream - Age for QUADLRU" start="1184" end="1185" type="uint"/>
4030    <field name="Segmentation ID Stream - Target Cache" start="1187" end="1188" type="uint">
4031      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
4032      <value name="Uncacheable" value="1"/>
4033      <value name="Writethrough" value="2"/>
4034      <value name="Writeback" value="3"/>
4035    </field>
4036    <field name="Segmentation ID Stream - Cacheability Control" start="1189" end="1190" type="uint">
4037      <value name="Use Cacheability Controls From Page Table / UC with Fence" value="0"/>
4038      <value name="Uncacheable" value="1"/>
4039      <value name="Writethrough" value="2"/>
4040      <value name="Writeback" value="3"/>
4041    </field>
4042    <field name="Segmentation ID Stream - Arbitration Priority Control" start="1191" end="1192" type="uint">
4043      <value name="Highest priority" value="0"/>
4044      <value name="Second highest priority" value="1"/>
4045      <value name="Third highest priority" value="2"/>
4046      <value name="Lowest priority" value="3"/>
4047    </field>
4048  </instruction>
4049
4050  <instruction name="MFX_WAIT" bias="1" length="1" engine="video">
4051    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
4052    <field name="MFX Sync Control Flag" start="8" end="8" type="uint"/>
4053    <field name="SubOpcode" start="16" end="26" type="uint" default="0"/>
4054    <field name="Command Subtype" start="27" end="28" type="uint" default="1"/>
4055    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4056  </instruction>
4057
4058  <instruction name="MI_ARB_CHECK" bias="1" length="1">
4059    <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
4060    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4061  </instruction>
4062
4063  <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
4064    <field name="Arbitration Enable" start="0" end="0" type="bool" default="1"/>
4065    <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
4066    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4067  </instruction>
4068
4069  <instruction name="MI_ATOMIC" bias="2" length="3">
4070    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4071    <field name="ATOMIC OPCODE" start="8" end="15" type="uint"/>
4072    <field name="Return Data Control" start="16" end="16" type="uint"/>
4073    <field name="CS STALL" start="17" end="17" type="uint"/>
4074    <field name="Inline Data" start="18" end="18" type="uint"/>
4075    <field name="Data Size" start="19" end="20" type="uint">
4076      <value name="DWORD" value="0"/>
4077      <value name="QWORD" value="1"/>
4078      <value name="OCTWORD" value="2"/>
4079      <value name="RESERVED" value="3"/>
4080    </field>
4081    <field name="Post-Sync Operation" start="21" end="21" type="bool"/>
4082    <field name="Memory Type" start="22" end="22" type="uint">
4083      <value name="Per Process Graphics Address" value="0"/>
4084      <value name="Global Graphics Address" value="1"/>
4085    </field>
4086    <field name="MI Command Opcode" start="23" end="28" type="uint" default="47"/>
4087    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4088    <field name="Memory Address" start="34" end="79" type="address"/>
4089    <field name="Operand1 Data Dword 0" start="96" end="127" type="uint"/>
4090    <field name="Operand2 Data Dword 0" start="128" end="159" type="uint"/>
4091    <field name="Operand1 Data Dword 1" start="160" end="191" type="uint"/>
4092    <field name="Operand2 Data Dword 1" start="192" end="223" type="uint"/>
4093    <field name="Operand1 Data Dword 2" start="224" end="255" type="uint"/>
4094    <field name="Operand2 Data Dword 2" start="256" end="287" type="uint"/>
4095    <field name="Operand1 Data Dword 3" start="288" end="319" type="uint"/>
4096    <field name="Operand2 Data Dword 3" start="320" end="351" type="uint"/>
4097  </instruction>
4098
4099  <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
4100    <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
4101    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4102  </instruction>
4103
4104  <instruction name="MI_BATCH_BUFFER_START" bias="2" length="3">
4105    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4106    <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
4107      <value name="GGTT" value="0"/>
4108      <value name="PPGTT" value="1"/>
4109    </field>
4110    <field name="Resource Streamer Enable" start="10" end="10" type="bool"/>
4111    <field name="Predication Enable" start="15" end="15" type="bool"/>
4112    <field name="Add Offset Enable" start="16" end="16" type="bool"/>
4113    <field name="Second Level Batch Buffer" start="22" end="22" type="uint">
4114      <value name="First level batch" value="0"/>
4115      <value name="Second level batch" value="1"/>
4116    </field>
4117    <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
4118    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4119    <field name="Batch Buffer Start Address" start="34" end="79" type="address"/>
4120  </instruction>
4121
4122  <instruction name="MI_CLFLUSH" bias="2" engine="render">
4123    <field name="DWord Length" start="0" end="9" type="uint" default="1"/>
4124    <field name="Use Global GTT" start="22" end="22" type="bool"/>
4125    <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
4126    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4127    <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
4128    <field name="Page Base Address" start="44" end="79" type="address"/>
4129    <group count="0" start="96" size="32">
4130      <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
4131    </group>
4132  </instruction>
4133
4134  <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="3">
4135    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4136    <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
4137    <field name="Use Global GTT" start="22" end="22" type="bool"/>
4138    <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
4139    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4140    <field name="Compare Data Dword" start="32" end="63" type="uint"/>
4141    <field name="Compare Address" start="67" end="111" type="address"/>
4142  </instruction>
4143
4144  <instruction name="MI_COPY_MEM_MEM" bias="2" length="5">
4145    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
4146    <field name="Use Global GTT Destination" start="21" end="21" type="bool"/>
4147    <field name="Use Global GTT Source" start="22" end="22" type="bool"/>
4148    <field name="MI Command Opcode" start="23" end="28" type="uint" default="46"/>
4149    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4150    <field name="Destination Memory Address" start="34" end="95" type="address"/>
4151    <field name="Source Memory Address" start="98" end="159" type="address"/>
4152  </instruction>
4153
4154  <instruction name="MI_FLUSH_DW" bias="2" length="5" engine="video">
4155    <field name="DWord Length" start="0" end="5" type="uint"/>
4156    <field name="Video Pipeline Cache Invalidate" start="7" end="7" type="bool"/>
4157    <field name="Notify Enable" start="8" end="8" type="bool"/>
4158    <field name="Post-Sync Operation" start="14" end="15" type="uint"/>
4159    <field name="TLB Invalidate" start="18" end="18" type="bool"/>
4160    <field name="Store Data Index" start="21" end="21" type="uint"/>
4161    <field name="MI Command Opcode" start="23" end="28" type="uint" default="38"/>
4162    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4163    <field name="Destination Address Type" start="34" end="34" type="uint" prefix="DAT">
4164      <value name="PPGTT" value="0"/>
4165      <value name="GGTT" value="1"/>
4166    </field>
4167    <field name="Address" start="35" end="79" type="address"/>
4168    <field name="Immediate Data" start="96" end="159" type="uint"/>
4169  </instruction>
4170
4171  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
4172    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4173    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
4174    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
4175    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4176    <field name="Register Offset" start="34" end="54" type="offset"/>
4177    <field name="Data DWord" start="64" end="95" type="uint"/>
4178    <group count="0" start="64" size="64">
4179      <field name="Register Offset" start="2" end="22" type="offset"/>
4180      <field name="Data DWord" start="32" end="63" type="uint"/>
4181    </group>
4182  </instruction>
4183
4184  <instruction name="MI_LOAD_REGISTER_MEM" bias="2" length="4">
4185    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
4186    <field name="Async Mode Enable" start="21" end="21" type="bool"/>
4187    <field name="Use Global GTT" start="22" end="22" type="bool"/>
4188    <field name="MI Command Opcode" start="23" end="28" type="uint" default="41"/>
4189    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4190    <field name="Register Address" start="34" end="54" type="offset"/>
4191    <field name="Memory Address" start="66" end="127" type="address"/>
4192  </instruction>
4193
4194  <instruction name="MI_LOAD_REGISTER_REG" bias="2" length="3">
4195    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4196    <field name="MI Command Opcode" start="23" end="28" type="uint" default="42"/>
4197    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4198    <field name="Source Register Address" start="34" end="54" type="offset"/>
4199    <field name="Destination Register Address" start="66" end="86" type="offset"/>
4200  </instruction>
4201
4202  <instruction name="MI_LOAD_SCAN_LINES_EXCL" bias="2" length="2" engine="render">
4203    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
4204    <field name="Display (Plane) Select" start="19" end="21" type="uint">
4205      <value name="Display Plane A" value="0"/>
4206      <value name="Display Plane B" value="1"/>
4207      <value name="Display Plane C" value="4"/>
4208    </field>
4209    <field name="MI Command Opcode" start="23" end="28" type="uint" default="19"/>
4210    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4211    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
4212    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
4213  </instruction>
4214
4215  <instruction name="MI_LOAD_SCAN_LINES_INCL" bias="2" length="2" engine="render">
4216    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
4217    <field name="Scan Line Event Done Forward" start="17" end="18" type="uint"/>
4218    <field name="Display (Plane) Select" start="19" end="21" type="uint">
4219      <value name="Display Plane A" value="0"/>
4220      <value name="Display Plane B" value="1"/>
4221      <value name="Display Plane C" value="4"/>
4222    </field>
4223    <field name="MI Command Opcode" start="23" end="28" type="uint" default="18"/>
4224    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4225    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
4226    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
4227  </instruction>
4228
4229  <instruction name="MI_LOAD_URB_MEM" bias="2" length="4" engine="render">
4230    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
4231    <field name="MI Command Opcode" start="23" end="28" type="uint" default="44"/>
4232    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4233    <field name="URB Address" start="34" end="46" type="uint"/>
4234    <field name="Memory Address" start="70" end="127" type="address"/>
4235  </instruction>
4236
4237  <instruction name="MI_MATH" bias="2">
4238    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
4239    <field name="MI Command Opcode" start="23" end="28" type="uint" default="26"/>
4240    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4241    <group count="0" start="32" size="32">
4242      <field name="Instruction" start="0" end="31" type="MI_MATH_ALU_INSTRUCTION"/>
4243    </group>
4244  </instruction>
4245
4246  <instruction name="MI_NOOP" bias="1" length="1">
4247    <field name="Identification Number" start="0" end="21" type="uint"/>
4248    <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
4249    <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
4250    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4251  </instruction>
4252
4253  <instruction name="MI_PREDICATE" bias="1" length="1">
4254    <field name="Compare Operation" start="0" end="1" type="uint" prefix="COMPARE">
4255      <value name="TRUE" value="0"/>
4256      <value name="FALSE" value="1"/>
4257      <value name="SRCS_EQUAL" value="2"/>
4258      <value name="DELTAS_EQUAL" value="3"/>
4259    </field>
4260    <field name="Combine Operation" start="3" end="4" type="uint" prefix="COMBINE">
4261      <value name="SET" value="0"/>
4262      <value name="AND" value="1"/>
4263      <value name="OR" value="2"/>
4264      <value name="XOR" value="3"/>
4265    </field>
4266    <field name="Load Operation" start="6" end="7" type="uint" prefix="LOAD">
4267      <value name="KEEP" value="0"/>
4268      <value name="LOAD" value="2"/>
4269      <value name="LOADINV" value="3"/>
4270    </field>
4271    <field name="MI Command Opcode" start="23" end="28" type="uint" default="12"/>
4272    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4273  </instruction>
4274
4275  <instruction name="MI_REPORT_HEAD" bias="1" length="1">
4276    <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
4277    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4278  </instruction>
4279
4280  <instruction name="MI_REPORT_PERF_COUNT" bias="2" length="4" engine="render">
4281    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
4282    <field name="MI Command Opcode" start="23" end="28" type="uint" default="40"/>
4283    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4284    <field name="Use Global GTT" start="32" end="32" type="bool"/>
4285    <field name="Core Mode Enable" start="36" end="36" type="uint"/>
4286    <field name="Memory Address" start="38" end="95" type="address"/>
4287    <field name="Report ID" start="96" end="127" type="uint"/>
4288  </instruction>
4289
4290  <instruction name="MI_RS_CONTEXT" bias="1" length="1" engine="render">
4291    <field name="Resource Streamer Save" start="0" end="0" type="uint" prefix="RS">
4292      <value name="Restore" value="0"/>
4293      <value name="Save" value="1"/>
4294    </field>
4295    <field name="MI Command Opcode" start="23" end="28" type="uint" default="15"/>
4296    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4297  </instruction>
4298
4299  <instruction name="MI_RS_CONTROL" bias="1" length="1" engine="render">
4300    <field name="Resource Streamer Control" start="0" end="0" type="uint" prefix="RS">
4301      <value name="Stop" value="0"/>
4302      <value name="Start" value="1"/>
4303    </field>
4304    <field name="MI Command Opcode" start="23" end="28" type="uint" default="6"/>
4305    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4306  </instruction>
4307
4308  <instruction name="MI_RS_STORE_DATA_IMM" bias="2" length="4" engine="render">
4309    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
4310    <field name="MI Command Opcode" start="23" end="28" type="uint" default="43"/>
4311    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4312    <field name="Core Mode Enable" start="32" end="32" type="uint"/>
4313    <field name="Destination Address" start="34" end="95" type="address"/>
4314    <field name="Data DWord 0" start="96" end="127" type="uint"/>
4315  </instruction>
4316
4317  <instruction name="MI_SEMAPHORE_SIGNAL" bias="2" length="2">
4318    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
4319    <field name="Target Engine Select" start="15" end="17" type="uint">
4320      <value name="RCS" value="0"/>
4321      <value name="VCS0" value="1"/>
4322      <value name="BCS" value="2"/>
4323      <value name="VECS" value="3"/>
4324      <value name="VCS1" value="4"/>
4325    </field>
4326    <field name="Post-Sync Operation" start="21" end="21" type="bool"/>
4327    <field name="MI Command Opcode" start="23" end="28" type="uint" default="27"/>
4328    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4329    <field name="Target Context ID" start="32" end="63" type="uint"/>
4330  </instruction>
4331
4332  <instruction name="MI_SEMAPHORE_WAIT" bias="2" length="4">
4333    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
4334    <field name="Compare Operation" start="12" end="14" type="uint" prefix="COMPARE">
4335      <value name="SAD_GREATER_THAN_SDD" value="0"/>
4336      <value name="SAD_GREATER_THAN_OR_EQUAL_SDD" value="1"/>
4337      <value name="SAD_LESS_THAN_SDD" value="2"/>
4338      <value name="SAD_LESS_THAN_OR_EQUAL_SDD" value="3"/>
4339      <value name="SAD_EQUAL_SDD" value="4"/>
4340      <value name="SAD_NOT_EQUAL_SDD" value="5"/>
4341    </field>
4342    <field name="Wait Mode" start="15" end="15" type="uint">
4343      <value name="Polling Mode" value="1"/>
4344      <value name="Signal Mode" value="0"/>
4345    </field>
4346    <field name="Memory Type" start="22" end="22" type="uint">
4347      <value name="Per Process Graphics Address" value="0"/>
4348      <value name="Global Graphics Address" value="1"/>
4349    </field>
4350    <field name="MI Command Opcode" start="23" end="28" type="uint" default="28"/>
4351    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4352    <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
4353    <field name="Semaphore Address" start="66" end="95" type="address"/>
4354    <field name="Semaphore Address High" start="96" end="111" type="address"/>
4355  </instruction>
4356
4357  <instruction name="MI_SET_CONTEXT" bias="2" length="2" engine="render">
4358    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
4359    <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
4360    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4361    <field name="Restore Inhibit" start="32" end="32" type="uint"/>
4362    <field name="Force Restore" start="33" end="33" type="uint"/>
4363    <field name="Resource Streamer State Restore Enable" start="34" end="34" type="bool"/>
4364    <field name="Resource Streamer State Save Enable" start="35" end="35" type="bool"/>
4365    <field name="Core Mode Enable" start="36" end="36" type="bool"/>
4366    <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
4367    <field name="Logical Context Address" start="44" end="63" type="address"/>
4368  </instruction>
4369
4370  <instruction name="MI_SET_PREDICATE" bias="1" length="1">
4371    <field name="PREDICATE ENABLE" start="0" end="3" type="uint">
4372      <value name="NOOP Never" value="0"/>
4373      <value name="NOOP on Result2 clear" value="1"/>
4374      <value name="NOOP on Result2 set" value="2"/>
4375      <value name="NOOP on Result clear" value="3"/>
4376      <value name="NOOP on Result set" value="4"/>
4377      <value name="Execute when one slice enabled." value="5"/>
4378      <value name="Execute when two slices are enabled." value="6"/>
4379      <value name="Execute when three slices are enabled." value="7"/>
4380      <value name="NOOP Always" value="15"/>
4381    </field>
4382    <field name="MI Command Opcode" start="23" end="28" type="uint" default="1"/>
4383    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4384  </instruction>
4385
4386  <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
4387    <field name="DWord Length" start="0" end="9" type="uint" default="2"/>
4388    <field name="Store Qword" start="21" end="21" type="uint"/>
4389    <field name="Use Global GTT" start="22" end="22" type="bool"/>
4390    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
4391    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4392    <field name="Core Mode Enable" start="32" end="32" type="uint"/>
4393    <field name="Address" start="34" end="79" type="address"/>
4394    <field name="Immediate Data" start="96" end="159" type="uint"/>
4395  </instruction>
4396
4397  <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
4398    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4399    <field name="Use Per-Process Hardware Status Page" start="21" end="21" type="uint"/>
4400    <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
4401    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4402    <field name="Offset" start="34" end="43" type="uint"/>
4403    <field name="Data DWord 0" start="64" end="95" type="uint"/>
4404    <field name="Data DWord 1" start="96" end="127" type="uint"/>
4405  </instruction>
4406
4407  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="4">
4408    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
4409    <field name="Predicate Enable" start="21" end="21" type="bool"/>
4410    <field name="Use Global GTT" start="22" end="22" type="bool"/>
4411    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
4412    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4413    <field name="Register Address" start="34" end="54" type="offset"/>
4414    <field name="Memory Address" start="66" end="127" type="address"/>
4415  </instruction>
4416
4417  <instruction name="MI_STORE_URB_MEM" bias="2" length="4" engine="render">
4418    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
4419    <field name="MI Command Opcode" start="23" end="28" type="uint" default="45"/>
4420    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4421    <field name="URB Address" start="34" end="46" type="uint"/>
4422    <field name="Memory Address" start="70" end="127" type="address"/>
4423  </instruction>
4424
4425  <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
4426    <field name="Suspend Flush" start="0" end="0" type="bool"/>
4427    <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
4428    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4429  </instruction>
4430
4431  <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1" engine="render">
4432    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
4433    <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
4434    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4435  </instruction>
4436
4437  <instruction name="MI_URB_ATOMIC_ALLOC" bias="1" length="1" engine="render">
4438    <field name="URB Atomic Storage Size" start="0" end="8" type="uint"/>
4439    <field name="URB Atomic Storage Offset" start="12" end="19" type="uint"/>
4440    <field name="MI Command Opcode" start="23" end="28" type="uint" default="9"/>
4441    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4442  </instruction>
4443
4444  <instruction name="MI_URB_CLEAR" bias="2" length="2" engine="render">
4445    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
4446    <field name="MI Command Opcode" start="23" end="28" type="uint" default="25"/>
4447    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4448    <field name="URB Address" start="32" end="46" type="offset"/>
4449    <field name="URB Clear Length" start="48" end="61" type="uint"/>
4450  </instruction>
4451
4452  <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
4453    <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
4454    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4455  </instruction>
4456
4457  <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1" engine="render|blitter">
4458    <field name="Display Pipe A Scan Line Wait Enable" start="0" end="0" type="bool"/>
4459    <field name="Display Plane A Flip Pending Wait Enable" start="1" end="1" type="bool"/>
4460    <field name="Display Sprite A Flip Pending Wait Enable" start="2" end="2" type="bool"/>
4461    <field name="Display Pipe A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
4462    <field name="Display Pipe B Scan Line Wait Enable" start="8" end="8" type="bool"/>
4463    <field name="Display Plane B Flip Pending Wait Enable" start="9" end="9" type="bool"/>
4464    <field name="Display Sprite B Flip Pending Wait Enable" start="10" end="10" type="bool"/>
4465    <field name="Display Pipe B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
4466    <field name="Display Pipe C Scan Line Wait Enable" start="14" end="14" type="bool"/>
4467    <field name="Display Plane C Flip Pending Wait Enable" start="15" end="15" type="bool"/>
4468    <field name="Display Sprite C Flip Pending Wait Enable" start="20" end="20" type="bool"/>
4469    <field name="Display Pipe C Vertical Blank Wait Enable" start="21" end="21" type="bool"/>
4470    <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
4471    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
4472  </instruction>
4473
4474  <instruction name="PIPELINE_SELECT" bias="1" length="1" engine="render">
4475    <field name="Pipeline Selection" start="0" end="1" type="uint">
4476      <value name="3D" value="0"/>
4477      <value name="Media" value="1"/>
4478      <value name="GPGPU" value="2"/>
4479    </field>
4480    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
4481    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
4482    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
4483    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4484  </instruction>
4485
4486  <instruction name="PIPE_CONTROL" bias="2" length="6" engine="render">
4487    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
4488    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
4489    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
4490    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
4491    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4492    <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
4493    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
4494    <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
4495    <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
4496    <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
4497    <field name="DC Flush Enable" start="37" end="37" type="bool"/>
4498    <field name="Pipe Control Flush Enable" start="39" end="39" type="bool"/>
4499    <field name="Notify Enable" start="40" end="40" type="bool"/>
4500    <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
4501    <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
4502    <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
4503    <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
4504    <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
4505    <field name="Post Sync Operation" start="46" end="47" type="uint">
4506      <value name="No Write" value="0"/>
4507      <value name="Write Immediate Data" value="1"/>
4508      <value name="Write PS Depth Count" value="2"/>
4509      <value name="Write Timestamp" value="3"/>
4510    </field>
4511    <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
4512    <field name="TLB Invalidate" start="50" end="50" type="bool"/>
4513    <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
4514    <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
4515    <field name="Store Data Index" start="53" end="53" type="uint"/>
4516    <field name="LRI Post Sync Operation" start="55" end="55" type="uint">
4517      <value name="No LRI Operation" value="0"/>
4518      <value name="MMIO Write Immediate Data" value="1"/>
4519    </field>
4520    <field name="Destination Address Type" start="56" end="56" type="uint" prefix="DAT">
4521      <value name="PPGTT" value="0"/>
4522      <value name="GGTT" value="1"/>
4523    </field>
4524    <field name="Address" start="66" end="111" type="address"/>
4525    <field name="Immediate Data" start="128" end="191" type="uint"/>
4526  </instruction>
4527
4528  <instruction name="STATE_BASE_ADDRESS" bias="2" length="16" engine="render">
4529    <field name="DWord Length" start="0" end="7" type="uint" default="14"/>
4530    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
4531    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
4532    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
4533    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4534    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
4535    <field name="General State MOCS" start="36" end="42" type="uint"/>
4536    <field name="General State Base Address" start="44" end="95" type="address"/>
4537    <field name="Stateless Data Port Access MOCS" start="112" end="118" type="uint"/>
4538    <field name="Surface State Base Address Modify Enable" start="128" end="128" type="bool"/>
4539    <field name="Surface State MOCS" start="132" end="138" type="uint"/>
4540    <field name="Surface State Base Address" start="140" end="191" type="address"/>
4541    <field name="Dynamic State Base Address Modify Enable" start="192" end="192" type="bool"/>
4542    <field name="Dynamic State MOCS" start="196" end="202" type="uint"/>
4543    <field name="Dynamic State Base Address" start="204" end="255" type="address"/>
4544    <field name="Indirect Object Base Address Modify Enable" start="256" end="256" type="bool"/>
4545    <field name="Indirect Object MOCS" start="260" end="266" type="uint"/>
4546    <field name="Indirect Object Base Address" start="268" end="319" type="address"/>
4547    <field name="Instruction Base Address Modify Enable" start="320" end="320" type="bool"/>
4548    <field name="Instruction MOCS" start="324" end="330" type="uint"/>
4549    <field name="Instruction Base Address" start="332" end="383" type="address"/>
4550    <field name="General State Buffer Size Modify Enable" start="384" end="384" type="bool"/>
4551    <field name="General State Buffer Size" start="396" end="415" type="uint"/>
4552    <field name="Dynamic State Buffer Size Modify Enable" start="416" end="416" type="bool"/>
4553    <field name="Dynamic State Buffer Size" start="428" end="447" type="uint"/>
4554    <field name="Indirect Object Buffer Size Modify Enable" start="448" end="448" type="bool"/>
4555    <field name="Indirect Object Buffer Size" start="460" end="479" type="uint"/>
4556    <field name="Instruction Buffer size Modify Enable" start="480" end="480" type="bool"/>
4557    <field name="Instruction Buffer Size" start="492" end="511" type="uint"/>
4558  </instruction>
4559
4560  <instruction name="STATE_PREFETCH" bias="2" length="2" engine="render">
4561    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
4562    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
4563    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
4564    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
4565    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4566    <field name="Prefetch Count" start="32" end="34" type="uint"/>
4567    <field name="Prefetch Pointer" start="38" end="63" type="address"/>
4568  </instruction>
4569
4570  <instruction name="STATE_SIP" bias="2" length="3" engine="render">
4571    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
4572    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
4573    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
4574    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
4575    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4576    <field name="System Instruction Pointer" start="36" end="95" type="offset"/>
4577  </instruction>
4578
4579  <instruction name="SWTESS_BASE_ADDRESS" bias="2" length="2" engine="render">
4580    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
4581    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
4582    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
4583    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
4584    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4585    <field name="SW Tessellation MOCS" start="40" end="43" type="uint"/>
4586    <field name="SW Tessellation Base Address" start="44" end="79" type="address"/>
4587  </instruction>
4588
4589  <register name="ACTHD_UDW" length="1" num="0x205c">
4590    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
4591  </register>
4592
4593  <register name="BCS_ACTHD_UDW" length="1" num="0x2205c">
4594    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
4595  </register>
4596
4597  <register name="BCS_INSTDONE" length="1" num="0x2206c">
4598    <field name="Ring Enable" start="0" end="0" type="bool"/>
4599    <field name="Blitter IDLE" start="1" end="1" type="bool" default="1"/>
4600    <field name="GAB IDLE" start="2" end="2" type="bool" default="1"/>
4601    <field name="BCS Done" start="3" end="3" type="bool" default="1"/>
4602  </register>
4603
4604  <register name="BCS_RING_BUFFER_CTL" length="1" num="0x2203c">
4605    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
4606    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
4607      <value name="MI_AUTOREPORT_OFF" value="0"/>
4608      <value name="MI_AUTOREPORT_64KB" value="1"/>
4609      <value name="MI_AUTOREPORT_4KB" value="2"/>
4610      <value name="MI_AUTOREPORT_128KB" value="3"/>
4611    </field>
4612    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
4613    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
4614    <field name="RBWait" start="11" end="11" type="bool"/>
4615    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
4616  </register>
4617
4618  <register name="CACHE_MODE_1" length="1" num="0x7004">
4619    <field name="RCZ Read after expansion control fix 2" start="2" end="2" type="bool"/>
4620    <field name="Depth Read Hit Write-Only Optimization Disable" start="3" end="3" type="bool"/>
4621    <field name="MCS Cache Disable" start="5" end="5" type="bool"/>
4622    <field name="4X4 RCPFE-STC Optimization Disable" start="6" end="6" type="bool"/>
4623    <field name="Sampler Cache Set XOR selection" start="7" end="8" type="uint"/>
4624    <field name="NP PMA Fix Enable" start="11" end="11" type="uint"/>
4625    <field name="HIZ Eviction Policy" start="12" end="12" type="uint"/>
4626    <field name="NP Early Z Fails Disable" start="13" end="13" type="uint"/>
4627    <field name="MSC Resolve Optimization Disable" start="14" end="14" type="uint"/>
4628    <field name="RCZ Read after expansion control fix 2 Mask" start="18" end="18" type="bool"/>
4629    <field name="Depth Read Hit Write-Only Optimization Disable Mask" start="19" end="19" type="bool"/>
4630    <field name="MCS Cache Disable Mask" start="21" end="21" type="bool"/>
4631    <field name="4X4 RCPFE-STC Optimization Disable Mask" start="22" end="22" type="bool"/>
4632    <field name="Sampler Cache Set XOR selection Mask" start="23" end="24" type="uint"/>
4633    <field name="NP PMA Fix Enable Mask" start="27" end="27" type="uint"/>
4634    <field name="HIZ Eviction Policy Mask" start="28" end="28" type="uint"/>
4635    <field name="NP Early Z Fails Disable Mask" start="29" end="29" type="uint"/>
4636    <field name="MSC Resolve Optimization Disable Mask" start="30" end="30" type="uint"/>
4637  </register>
4638
4639  <register name="CL_INVOCATION_COUNT" length="2" num="0x2338">
4640    <field name="CL Invocation Count Report" start="0" end="63" type="uint"/>
4641  </register>
4642
4643  <register name="CL_PRIMITIVES_COUNT" length="2" num="0x2340">
4644    <field name="CL Primitives Count Report" start="0" end="63" type="uint"/>
4645  </register>
4646
4647  <register name="CS_INVOCATION_COUNT" length="2" num="0x2290">
4648    <field name="CS Invocation Count Report" start="0" end="63" type="uint"/>
4649  </register>
4650
4651  <register name="DS_INVOCATION_COUNT" length="2" num="0x2308">
4652    <field name="DS Invocation Count Report" start="0" end="63" type="uint"/>
4653  </register>
4654
4655  <register name="FAULT_REG" length="1" num="0x4094">
4656    <field name="Valid Bit" start="0" end="0" type="bool"/>
4657    <field name="Fault Type" start="1" end="2" type="uint">
4658      <value name="Invalid PTE Fault" value="0"/>
4659      <value name="Invalid PDE Fault" value="1"/>
4660      <value name="Invalid PDPE Fault" value="2"/>
4661      <value name="Invalid PML4E Fault" value="3"/>
4662    </field>
4663    <field name="SRCID of Fault" start="3" end="10" type="uint"/>
4664    <field name="GTTSEL" start="11" end="11" type="uint">
4665      <value name="PPGTT" value="0"/>
4666      <value name="GGTT" value="1"/>
4667    </field>
4668    <field name="Engine ID" start="12" end="14" type="uint">
4669      <value name="GFX" value="0"/>
4670      <value name="MFX0" value="1"/>
4671      <value name="MFX1" value="2"/>
4672      <value name="VEBX" value="3"/>
4673      <value name="BLT" value="4"/>
4674      <value name="GUC" value="5"/>
4675    </field>
4676  </register>
4677
4678  <register name="GFX_ARB_ERROR_RPT" length="1" num="0x40a0">
4679    <field name="TLB Page Fault Error" start="0" end="0" type="bool"/>
4680    <field name="RSTRM PAVP Read Invalid" start="1" end="1" type="bool"/>
4681    <field name="Invalid Page Directory Entry Error" start="2" end="2" type="bool"/>
4682    <field name="ROSTRM PAVP Invalid Physical Address" start="3" end="3" type="bool"/>
4683    <field name="TLB Page VTD Translation Error" start="4" end="4" type="bool"/>
4684    <field name="WRDP PAVP Invalid" start="5" end="5" type="bool"/>
4685    <field name="Page Directory Entry VTD Translation Error" start="6" end="6" type="bool"/>
4686    <field name="Unloaded PD Error" start="8" end="8" type="bool"/>
4687    <field name="GuC VTd translation Page Fault 2nd level (Undefined doorbell)" start="9" end="9" type="bool"/>
4688    <field name="Non WB memory type for Advanced Context" start="10" end="10" type="bool"/>
4689    <field name="PASID Not Enabled" start="11" end="11" type="bool"/>
4690    <field name="PASID Boundary Violation" start="12" end="12" type="bool"/>
4691    <field name="PASID Not Valid" start="13" end="13" type="bool"/>
4692    <field name="PASID Was Zero For Untranslated Request" start="14" end="14" type="bool"/>
4693    <field name="Context Was Not Marked As Present When Doing DMA" start="15" end="15" type="bool"/>
4694  </register>
4695
4696  <register name="GS_INVOCATION_COUNT" length="2" num="0x2328">
4697    <field name="GS Invocation Count Report" start="0" end="63" type="uint"/>
4698  </register>
4699
4700  <register name="GS_PRIMITIVES_COUNT" length="2" num="0x2330">
4701    <field name="GS Primitives Count Report" start="0" end="63" type="uint"/>
4702  </register>
4703
4704  <register name="HS_INVOCATION_COUNT" length="2" num="0x2300">
4705    <field name="HS Invocation Count Report" start="0" end="63" type="uint"/>
4706  </register>
4707
4708  <register name="IA_PRIMITIVES_COUNT" length="2" num="0x2318">
4709    <field name="IA Primitives Count Report" start="0" end="63" type="uint"/>
4710  </register>
4711
4712  <register name="IA_VERTICES_COUNT" length="2" num="0x2310">
4713    <field name="IA Vertices Count Report" start="0" end="63" type="uint"/>
4714  </register>
4715
4716  <register name="INSTDONE_1" length="1" num="0x206c">
4717    <field name="PRB0 Ring Enable" start="0" end="0" type="bool"/>
4718    <field name="VFG Done" start="1" end="1" type="bool"/>
4719    <field name="VS Done" start="2" end="2" type="bool"/>
4720    <field name="HS Done" start="3" end="3" type="bool"/>
4721    <field name="TE Done" start="4" end="4" type="bool"/>
4722    <field name="DS Done" start="5" end="5" type="bool"/>
4723    <field name="GS Done" start="6" end="6" type="bool"/>
4724    <field name="SOL Done" start="7" end="7" type="bool"/>
4725    <field name="CL Done" start="8" end="8" type="bool"/>
4726    <field name="SF Done" start="9" end="9" type="bool"/>
4727    <field name="TDG Done" start="12" end="12" type="bool"/>
4728    <field name="URBM Done" start="13" end="13" type="bool"/>
4729    <field name="SVG Done" start="14" end="14" type="bool"/>
4730    <field name="GAFS Done" start="15" end="15" type="bool"/>
4731    <field name="VFE Done" start="16" end="16" type="bool"/>
4732    <field name="TSG Done" start="17" end="17" type="bool"/>
4733    <field name="GAFM Done" start="18" end="18" type="bool"/>
4734    <field name="GAM Done" start="19" end="19" type="bool"/>
4735    <field name="RS Done" start="20" end="20" type="bool"/>
4736    <field name="CS Done" start="21" end="21" type="bool"/>
4737    <field name="SDE Done" start="22" end="22" type="bool"/>
4738    <field name="RCCFBC CS Done" start="23" end="23" type="bool"/>
4739  </register>
4740
4741  <register name="INSTPM" length="1" num="0x20c0">
4742    <field name="3D State Instruction Disable" start="1" end="1" type="bool"/>
4743    <field name="3D Rendering Instruction Disable" start="2" end="2" type="bool"/>
4744    <field name="Media Instruction Disable" start="3" end="3" type="bool"/>
4745    <field name="CONSTANT_BUFFER Address Offset Disable" start="6" end="6" type="bool"/>
4746    <field name="3D State Instruction Disable Mask" start="17" end="17" type="bool"/>
4747    <field name="3D Rendering Instruction Disable Mask" start="18" end="18" type="bool"/>
4748    <field name="Media Instruction Disable Mask" start="19" end="19" type="bool"/>
4749    <field name="CONSTANT_BUFFER Address Offset Disable Mask" start="22" end="22" type="bool"/>
4750  </register>
4751
4752  <register name="L3CNTLREG" length="1" num="0x7034">
4753    <field name="SLM Enable" start="0" end="0" type="bool"/>
4754    <field name="URB Allocation" start="1" end="7" type="uint"/>
4755    <field name="RO Allocation" start="11" end="17" type="uint"/>
4756    <field name="DC Allocation" start="18" end="24" type="uint"/>
4757    <field name="All Allocation" start="25" end="31" type="uint"/>
4758  </register>
4759
4760  <register name="PERFCNT1" length="2" num="0x91b8">
4761    <field name="Value" start="0" end="43" type="uint"/>
4762    <field name="Event Selection" start="52" end="59" type="uint"/>
4763    <field name="Counter Clear" start="60" end="60" type="bool"/>
4764    <field name="Edge Detect" start="61" end="61" type="bool"/>
4765    <field name="Overflow Enable" start="62" end="62" type="bool"/>
4766    <field name="Counter Enable" start="63" end="63" type="bool"/>
4767  </register>
4768
4769  <register name="PERFCNT2" length="2" num="0x91c0">
4770    <field name="Value" start="0" end="43" type="uint"/>
4771    <field name="Event Selection" start="52" end="59" type="uint"/>
4772    <field name="Counter Clear" start="60" end="60" type="bool"/>
4773    <field name="Edge Detect" start="61" end="61" type="bool"/>
4774    <field name="Overflow Enable" start="62" end="62" type="bool"/>
4775    <field name="Counter Enable" start="63" end="63" type="bool"/>
4776  </register>
4777
4778  <register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
4779    <field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
4780  </register>
4781
4782  <register name="RCS_RING_BUFFER_CTL" length="1" num="0x203c">
4783    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
4784    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
4785      <value name="MI_AUTOREPORT_OFF" value="0"/>
4786      <value name="MI_AUTOREPORT_64KB" value="1"/>
4787      <value name="MI_AUTOREPORT_4KB" value="2"/>
4788      <value name="MI_AUTOREPORT_128KB" value="3"/>
4789    </field>
4790    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
4791    <field name="RBWait" start="11" end="11" type="bool"/>
4792    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
4793  </register>
4794
4795  <register name="ROW_INSTDONE" length="1" num="0xe164">
4796    <field name="BC Done" start="0" end="0" type="bool"/>
4797    <field name="PSD Done" start="1" end="1" type="bool"/>
4798    <field name="DAPR Done" start="3" end="3" type="bool"/>
4799    <field name="TDL Done" start="6" end="6" type="bool"/>
4800    <field name="IC Done" start="12" end="12" type="bool"/>
4801    <field name="MA0 Done" start="15" end="15" type="bool"/>
4802    <field name="EU00 Done SS0" start="16" end="16" type="bool"/>
4803    <field name="EU01 Done SS0" start="17" end="17" type="bool"/>
4804    <field name="EU02 Done SS0" start="18" end="18" type="bool"/>
4805    <field name="EU03 Done SS0" start="19" end="19" type="bool"/>
4806    <field name="EU10 Done SS0" start="21" end="21" type="bool"/>
4807    <field name="EU11 Done SS0" start="22" end="22" type="bool"/>
4808    <field name="EU12 Done SS0" start="23" end="23" type="bool"/>
4809    <field name="EU13 Done SS0" start="24" end="24" type="bool"/>
4810    <field name="MA1 Done SS0" start="26" end="26" type="bool"/>
4811  </register>
4812
4813  <register name="RPSTAT1" length="1" num="0xa01c">
4814    <field name="Previous GT Frequency" start="0" end="6" type="uint"/>
4815    <field name="Current GT Frequency" start="7" end="14" type="uint"/>
4816  </register>
4817
4818  <register name="SAMPLER_INSTDONE" length="1" num="0xe160">
4819    <field name="IME Done" start="0" end="0" type="bool"/>
4820    <field name="PL0 Done" start="1" end="1" type="bool"/>
4821    <field name="SO0 Done" start="2" end="2" type="bool"/>
4822    <field name="DG0 Done" start="3" end="3" type="bool"/>
4823    <field name="FT0 Done" start="4" end="4" type="bool"/>
4824    <field name="DM0 Done" start="5" end="5" type="bool"/>
4825    <field name="SC Done" start="6" end="6" type="bool"/>
4826    <field name="FL0 Done" start="7" end="7" type="bool"/>
4827    <field name="QC Done" start="8" end="8" type="bool"/>
4828    <field name="SVSM Done" start="9" end="9" type="bool"/>
4829    <field name="SI0 Done" start="10" end="10" type="bool"/>
4830    <field name="MT0 Done" start="11" end="11" type="bool"/>
4831    <field name="AVS Done" start="12" end="12" type="bool"/>
4832    <field name="IEF Done" start="13" end="13" type="bool"/>
4833    <field name="CRE Done" start="14" end="14" type="bool"/>
4834    <field name="SVSM ARB3" start="15" end="15" type="bool"/>
4835    <field name="SVSM ARB2" start="16" end="16" type="bool"/>
4836    <field name="SVSM ARB1" start="17" end="17" type="bool"/>
4837    <field name="SVSM Adapter" start="18" end="18" type="bool"/>
4838    <field name="BDM Done" start="19" end="19" type="bool"/>
4839  </register>
4840
4841  <register name="SC_INSTDONE" length="1" num="0x7100">
4842    <field name="SVL Done" start="0" end="0" type="bool"/>
4843    <field name="WMFE Done" start="1" end="1" type="bool"/>
4844    <field name="WMBE Done" start="2" end="2" type="bool"/>
4845    <field name="HIZ Done" start="3" end="3" type="bool"/>
4846    <field name="STC Done" start="4" end="4" type="bool"/>
4847    <field name="IZ Done" start="5" end="5" type="bool"/>
4848    <field name="SBE Done" start="6" end="6" type="bool"/>
4849    <field name="RCZ Done" start="8" end="8" type="bool"/>
4850    <field name="RCC Done" start="9" end="9" type="bool"/>
4851    <field name="RCPBE Done" start="10" end="10" type="bool"/>
4852    <field name="RCPFE Done" start="11" end="11" type="bool"/>
4853    <field name="DAPB Done" start="12" end="12" type="bool"/>
4854    <field name="DAPRBE Done" start="13" end="13" type="bool"/>
4855    <field name="SARB Done" start="15" end="15" type="bool"/>
4856    <field name="DC0 Done" start="16" end="16" type="bool"/>
4857    <field name="DC1 Done" start="17" end="17" type="bool"/>
4858    <field name="DC2 Done" start="18" end="18" type="bool"/>
4859    <field name="GW0 Done" start="20" end="20" type="bool"/>
4860    <field name="GW1 Done" start="21" end="21" type="bool"/>
4861    <field name="GW2 Done" start="22" end="22" type="bool"/>
4862    <field name="TDC Done" start="24" end="24" type="bool"/>
4863  </register>
4864
4865  <register name="SO_NUM_PRIMS_WRITTEN0" length="2" num="0x5200">
4866    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
4867  </register>
4868
4869  <register name="SO_NUM_PRIMS_WRITTEN1" length="2" num="0x5208">
4870    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
4871  </register>
4872
4873  <register name="SO_NUM_PRIMS_WRITTEN2" length="2" num="0x5210">
4874    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
4875  </register>
4876
4877  <register name="SO_NUM_PRIMS_WRITTEN3" length="2" num="0x5218">
4878    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
4879  </register>
4880
4881  <register name="SO_PRIM_STORAGE_NEEDED0" length="2" num="0x5240">
4882    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
4883  </register>
4884
4885  <register name="SO_PRIM_STORAGE_NEEDED1" length="2" num="0x5248">
4886    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
4887  </register>
4888
4889  <register name="SO_PRIM_STORAGE_NEEDED2" length="2" num="0x5250">
4890    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
4891  </register>
4892
4893  <register name="SO_PRIM_STORAGE_NEEDED3" length="2" num="0x5258">
4894    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
4895  </register>
4896
4897  <register name="SO_WRITE_OFFSET0" length="1" num="0x5280">
4898    <field name="Write Offset" start="2" end="31" type="offset"/>
4899  </register>
4900
4901  <register name="SO_WRITE_OFFSET1" length="1" num="0x5284">
4902    <field name="Write Offset" start="2" end="31" type="offset"/>
4903  </register>
4904
4905  <register name="SO_WRITE_OFFSET2" length="1" num="0x5288">
4906    <field name="Write Offset" start="2" end="31" type="offset"/>
4907  </register>
4908
4909  <register name="SO_WRITE_OFFSET3" length="1" num="0x528c">
4910    <field name="Write Offset" start="2" end="31" type="offset"/>
4911  </register>
4912
4913  <register name="VCS2_RING_BUFFER_CTL" length="1" num="0x1203c">
4914    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
4915    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
4916      <value name="MI_AUTOREPORT_OFF" value="0"/>
4917      <value name="MI_AUTOREPORT_64KB" value="1"/>
4918      <value name="MI_AUTOREPORT_4KB" value="2"/>
4919      <value name="MI_AUTOREPORT_128KB" value="3"/>
4920    </field>
4921    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
4922    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
4923    <field name="RBWait" start="11" end="11" type="bool"/>
4924    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
4925  </register>
4926
4927  <register name="VCS_ACTHD_UDW" length="1" num="0x1205c">
4928    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
4929  </register>
4930
4931  <register name="VCS_INSTDONE" length="1" num="0x1206c">
4932    <field name="Ring Enable" start="0" end="0" type="bool"/>
4933    <field name="USB Done" start="1" end="1" type="bool"/>
4934    <field name="QRC Done" start="2" end="2" type="bool"/>
4935    <field name="SEC Done" start="3" end="3" type="bool"/>
4936    <field name="MPC Done" start="4" end="4" type="bool"/>
4937    <field name="VFT Done" start="5" end="5" type="bool"/>
4938    <field name="BSP Done" start="6" end="6" type="bool"/>
4939    <field name="VLF Done" start="7" end="7" type="bool"/>
4940    <field name="VOP Done" start="8" end="8" type="bool"/>
4941    <field name="VMC Done" start="9" end="9" type="bool"/>
4942    <field name="VIP Done" start="10" end="10" type="bool"/>
4943    <field name="VIT Done" start="11" end="11" type="bool"/>
4944    <field name="VDS Done" start="12" end="12" type="bool"/>
4945    <field name="VMX Done" start="13" end="13" type="bool"/>
4946    <field name="VCP Done" start="14" end="14" type="bool"/>
4947    <field name="VCD Done" start="15" end="15" type="bool"/>
4948    <field name="VAD Done" start="16" end="16" type="bool"/>
4949    <field name="VMD Done" start="17" end="17" type="bool"/>
4950    <field name="VIS Done" start="18" end="18" type="bool"/>
4951    <field name="VAC Done" start="19" end="19" type="bool"/>
4952    <field name="VAM Done" start="20" end="20" type="bool"/>
4953    <field name="JPG Done" start="21" end="21" type="bool"/>
4954    <field name="VBP Done" start="22" end="22" type="bool"/>
4955    <field name="VHR Done" start="23" end="23" type="bool"/>
4956    <field name="VCI Done" start="24" end="24" type="bool"/>
4957    <field name="VCR Done" start="25" end="25" type="bool"/>
4958    <field name="VIN Done" start="26" end="26" type="bool"/>
4959    <field name="VPR Done" start="27" end="27" type="bool"/>
4960    <field name="VTQ Done" start="28" end="28" type="bool"/>
4961    <field name="Reserved" start="29" end="29" type="bool"/>
4962    <field name="VCS Done" start="30" end="30" type="bool"/>
4963    <field name="GAC Done" start="31" end="31" type="bool"/>
4964  </register>
4965
4966  <register name="VCS_RING_BUFFER_CTL" length="1" num="0x1203c">
4967    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
4968    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
4969      <value name="MI_AUTOREPORT_OFF" value="0"/>
4970      <value name="MI_AUTOREPORT_64KB" value="1"/>
4971      <value name="MI_AUTOREPORT_4KB" value="2"/>
4972      <value name="MI_AUTOREPORT_128KB" value="3"/>
4973    </field>
4974    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
4975    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
4976    <field name="RBWait" start="11" end="11" type="bool"/>
4977    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
4978  </register>
4979
4980  <register name="VECS_ACTHD_UDW" length="1" num="0x1a05c">
4981    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
4982  </register>
4983
4984  <register name="VECS_INSTDONE" length="1" num="0x1a06c">
4985    <field name="Ring Enable" start="0" end="0" type="bool"/>
4986    <field name="VECS Done" start="30" end="30" type="bool"/>
4987    <field name="GAM Done" start="31" end="31" type="bool"/>
4988  </register>
4989
4990  <register name="VECS_RING_BUFFER_CTL" length="1" num="0x1A03c">
4991    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
4992    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
4993      <value name="MI_AUTOREPORT_OFF" value="0"/>
4994      <value name="MI_AUTOREPORT_64KB" value="1"/>
4995      <value name="MI_AUTOREPORT_4KB" value="2"/>
4996      <value name="MI_AUTOREPORT_128KB" value="3"/>
4997    </field>
4998    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
4999    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
5000    <field name="RBWait" start="11" end="11" type="bool"/>
5001    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
5002  </register>
5003
5004  <register name="VS_INVOCATION_COUNT" length="2" num="0x2320">
5005    <field name="VS Invocation Count Report" start="0" end="63" type="uint"/>
5006  </register>
5007</genxml>
5008