• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" ?>
2<genxml name="SKL" gen="9">
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="Atomic_OPCODE" prefix="MI_ATOMIC_OP">
141    <value name="AND" value="0x01"/>
142    <value name="OR" value="0x02"/>
143    <value name="XOR" value="0x03"/>
144    <value name="MOVE" value="0x04"/>
145    <value name="INC" value="0x05"/>
146    <value name="DEC" value="0x06"/>
147    <value name="ADD" value="0x07"/>
148    <value name="SUB" value="0x08"/>
149    <value name="RSUB" value="0x09"/>
150    <value name="IMAX" value="0x0a"/>
151    <value name="IMIN" value="0x0b"/>
152    <value name="UMAX" value="0x0c"/>
153    <value name="UMIN" value="0x0d"/>
154    <value name="CMP_WR" value="0x0e"/>
155    <value name="PREDEC" value="0x0f"/>
156    <value name="AND8B" value="0x21"/>
157    <value name="OR8B" value="0x22"/>
158    <value name="XOR8B" value="0x23"/>
159    <value name="MOVE8B" value="0x24"/>
160    <value name="INC8B" value="0x25"/>
161    <value name="DEC8B" value="0x26"/>
162    <value name="ADD8B" value="0x27"/>
163    <value name="SUB8B" value="0x28"/>
164    <value name="RSUB8B" value="0x29"/>
165    <value name="IMAX8B" value="0x2a"/>
166    <value name="IMIN8B" value="0x2b"/>
167    <value name="UMAX8B" value="0x2c"/>
168    <value name="UMIN8B" value="0x2d"/>
169    <value name="CMP_WR8B" value="0x2e"/>
170    <value name="PREDEC8B" value="0x2f"/>
171    <value name="CMP_WR16B" value="0x4e"/>
172  </enum>
173
174  <enum name="Attribute_Component_Format" prefix="ACF">
175    <value name="disabled" value="0"/>
176    <value name=".xy" value="1"/>
177    <value name=".xyz" value="2"/>
178    <value name=".xyzw" value="3"/>
179  </enum>
180
181  <enum name="COMPONENT_ENABLES" prefix="CE">
182    <value name="NONE" value="0"/>
183    <value name="X" value="1"/>
184    <value name="Y" value="2"/>
185    <value name="XY" value="3"/>
186    <value name="Z" value="4"/>
187    <value name="XZ" value="5"/>
188    <value name="YZ" value="6"/>
189    <value name="XYZ" value="7"/>
190    <value name="W" value="8"/>
191    <value name="XW" value="9"/>
192    <value name="YW" value="10"/>
193    <value name="XYW" value="11"/>
194    <value name="ZW" value="12"/>
195    <value name="XZW" value="13"/>
196    <value name="YZW" value="14"/>
197    <value name="XYZW" value="15"/>
198  </enum>
199
200  <enum name="Shader Channel Select" prefix="SCS">
201    <value name="ZERO" value="0"/>
202    <value name="ONE" value="1"/>
203    <value name="RED" value="4"/>
204    <value name="GREEN" value="5"/>
205    <value name="BLUE" value="6"/>
206    <value name="ALPHA" value="7"/>
207  </enum>
208
209  <enum name="Texture Coordinate Mode" prefix="TCM">
210    <value name="WRAP" value="0"/>
211    <value name="MIRROR" value="1"/>
212    <value name="CLAMP" value="2"/>
213    <value name="CUBE" value="3"/>
214    <value name="CLAMP_BORDER" value="4"/>
215    <value name="MIRROR_ONCE" value="5"/>
216    <value name="HALF_BORDER" value="6"/>
217  </enum>
218
219  <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
220    <value name="X" value="1"/>
221    <value name="Y" value="2"/>
222    <value name="XY" value="3"/>
223    <value name="Z" value="4"/>
224    <value name="XZ" value="5"/>
225    <value name="YZ" value="6"/>
226    <value name="XYZ" value="7"/>
227    <value name="W" value="8"/>
228    <value name="XW" value="9"/>
229    <value name="YW" value="10"/>
230    <value name="XYW" value="11"/>
231    <value name="ZW" value="12"/>
232    <value name="XZW" value="13"/>
233    <value name="YZW" value="14"/>
234    <value name="XYZW" value="15"/>
235  </enum>
236
237  <struct name="3DSTATE_CONSTANT_BODY" length="10">
238    <group count="4" start="0" size="16">
239      <field name="Read Length" start="0" end="15" type="uint"/>
240    </group>
241    <group count="4" start="64" size="64">
242      <field name="Buffer" start="5" end="63" type="address"/>
243    </group>
244  </struct>
245
246  <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
247    <field name="Surface State Pointer" start="0" end="15" type="offset"/>
248    <field name="Binding Table Index" start="16" end="23" type="uint"/>
249  </struct>
250
251  <struct name="BINDING_TABLE_STATE" length="1">
252    <field name="Surface State Pointer" start="6" end="31" type="offset"/>
253  </struct>
254
255  <struct name="BLEND_STATE_ENTRY" length="2">
256    <field name="Write Disable Blue" start="0" end="0" type="bool"/>
257    <field name="Write Disable Green" start="1" end="1" type="bool"/>
258    <field name="Write Disable Red" start="2" end="2" type="bool"/>
259    <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
260    <field name="Alpha Blend Function" start="5" end="7" type="3D_Color_Buffer_Blend_Function"/>
261    <field name="Destination Alpha Blend Factor" start="8" end="12" type="3D_Color_Buffer_Blend_Factor"/>
262    <field name="Source Alpha Blend Factor" start="13" end="17" type="3D_Color_Buffer_Blend_Factor"/>
263    <field name="Color Blend Function" start="18" end="20" type="3D_Color_Buffer_Blend_Function"/>
264    <field name="Destination Blend Factor" start="21" end="25" type="3D_Color_Buffer_Blend_Factor"/>
265    <field name="Source Blend Factor" start="26" end="30" type="3D_Color_Buffer_Blend_Factor"/>
266    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
267    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
268    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
269    <field name="Color Clamp Range" start="34" end="35" type="uint">
270      <value name="COLORCLAMP_UNORM" value="0"/>
271      <value name="COLORCLAMP_SNORM" value="1"/>
272      <value name="COLORCLAMP_RTFORMAT" value="2"/>
273    </field>
274    <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
275    <field name="Logic Op Function" start="59" end="62" type="3D_Logic_Op_Function"/>
276    <field name="Logic Op Enable" start="63" end="63" type="bool"/>
277  </struct>
278
279  <struct name="BLEND_STATE" length="1">
280    <field name="Y Dither Offset" start="19" end="20" type="uint"/>
281    <field name="X Dither Offset" start="21" end="22" type="uint"/>
282    <field name="Color Dither Enable" start="23" end="23" type="bool"/>
283    <field name="Alpha Test Function" start="24" end="26" type="3D_Compare_Function"/>
284    <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
285    <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
286    <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
287    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
288    <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
289    <group count="0" start="32" size="64">
290      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
291    </group>
292  </struct>
293
294  <struct name="CC_VIEWPORT" length="2">
295    <field name="Minimum Depth" start="0" end="31" type="float"/>
296    <field name="Maximum Depth" start="32" end="63" type="float"/>
297  </struct>
298
299  <struct name="COLOR_CALC_STATE" length="6">
300    <field name="Alpha Test Format" start="0" end="0" type="uint">
301      <value name="ALPHATEST_UNORM8" value="0"/>
302      <value name="ALPHATEST_FLOAT32" value="1"/>
303    </field>
304    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
305    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
306    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
307    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
308    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
309    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
310    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
311  </struct>
312
313  <struct name="EXECUTION_UNIT_EXTENDED_MESSAGE_DESCRIPTOR" length="1">
314    <field name="Target Function ID" start="0" end="3" type="uint"/>
315    <field name="End Of Thread" start="5" end="5" type="uint">
316      <value name="No Termination" value="0"/>
317      <value name="EOT" value="1"/>
318    </field>
319    <field name="Extended Message Length" start="6" end="9" type="uint"/>
320  </struct>
321
322  <struct name="FILTER_COEFFICIENT" length="1">
323    <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
324  </struct>
325
326  <struct name="FRAMEDELTAQP" length="2">
327    <group count="8" start="0" size="8">
328      <field name="Frame Delta QP" start="0" end="7" type="int"/>
329    </group>
330  </struct>
331
332  <struct name="FRAMEDELTAQPRANGE" length="2">
333    <group count="8" start="0" size="8">
334      <field name="Frame Delta QP Range" start="0" end="7" type="uint"/>
335    </group>
336  </struct>
337
338  <struct name="GATHER_CONSTANT_ENTRY" length="1">
339    <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
340    <field name="Channel Mask" start="4" end="7" type="uint"/>
341    <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
342  </struct>
343
344  <struct name="MEMORYADDRESSATTRIBUTES" length="1">
345    <field name="MOCS" start="1" end="6" type="uint"/>
346    <field name="Arbitration Priority Control" start="7" end="8" type="uint">
347      <value name="Highest priority" value="0"/>
348      <value name="Second highest priority" value="1"/>
349      <value name="Third highest priority" value="2"/>
350      <value name="Lowest priority" value="3"/>
351    </field>
352    <field name="Memory Compression Enable" start="9" end="9" type="bool"/>
353    <field name="Row Store Scratch Buffer Cache Select" start="12" end="12" type="uint">
354      <value name="LLC" value="0"/>
355      <value name="Internal Media Storage" value="1"/>
356    </field>
357    <field name="Tiled Resource Mode" start="13" end="14" type="uint">
358      <value name="TRMODE_NONE" value="0"/>
359      <value name="TRMODE_TILEYF" value="1"/>
360      <value name="TRMODE_TILEYS" value="2"/>
361    </field>
362  </struct>
363
364  <struct name="HCP_PAK_INSERT_OBJECT_INDIRECT_PAYLOAD" length="4">
365    <field name="Indirect Payload Data Size in bits" start="0" end="31" type="uint"/>
366    <field name="Indirect Payload Base Address" start="32" end="95" type="address"/>
367    <field name="Indirect Payload Base Address2" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
368  </struct>
369
370  <struct name="HCP_REF_LIST_ENTRY" length="1">
371    <field name="Reference Picture tb Value" start="0" end="7" type="uint"/>
372    <field name="List Entry" start="8" end="10" type="uint"/>
373    <field name="Chroma Weighted Prediction" start="11" end="11" type="uint">
374      <value name="Default" value="0"/>
375      <value name="Explicit" value="1"/>
376    </field>
377    <field name="Luma Weighted Prediction" start="12" end="12" type="uint">
378      <value name="Default" value="0"/>
379      <value name="Explicit" value="1"/>
380    </field>
381    <field name="Long Term Reference" start="13" end="13" type="bool"/>
382    <field name="Field Pic" start="14" end="14" type="bool"/>
383    <field name="Top Field" start="15" end="15" type="bool"/>
384  </struct>
385
386  <struct name="HCP_TILE_POSITION_IN_CTB" length="1">
387    <field name="CtbPos0+i" start="0" end="7" type="uint"/>
388    <field name="CtbPos1+i" start="8" end="15" type="uint"/>
389    <field name="CtbPos2+i" start="16" end="23" type="uint"/>
390    <field name="CtbPos3+i" start="24" end="31" type="uint"/>
391  </struct>
392
393  <struct name="HCP_WEIGHTOFFSET_CHROMA_ENTRY" length="1">
394    <field name="Delta Chroma Weight LX[0]" start="0" end="7" type="int"/>
395    <field name="Chroma Offset LX[0]" start="8" end="15" type="uint"/>
396    <field name="Delta Chroma Weight LX[1]" start="16" end="23" type="int"/>
397    <field name="Chroma Offset LX[1]" start="24" end="31" type="uint"/>
398  </struct>
399
400  <struct name="HCP_WEIGHTOFFSET_LUMA_ENTRY" length="1">
401    <field name="Delta Luma Weight LX" start="0" end="7" type="int"/>
402    <field name="Luma Offset LX" start="8" end="15" type="uint"/>
403  </struct>
404
405  <struct name="HEVC_ARBITRATION_PRIORITY" length="1">
406    <field name="Priority" start="0" end="1" type="uint">
407      <value name="Highest priority" value="0"/>
408      <value name="Second highest priority" value="1"/>
409      <value name="Third highest priority" value="2"/>
410      <value name="Lowest priority" value="3"/>
411    </field>
412  </struct>
413
414  <struct name="HEVC_VP9_RDOQ_LAMBDA_FIELDS" length="1">
415    <field name="Lambda Value 0" start="0" end="15" type="uint"/>
416    <field name="Lambda Value 1" start="16" end="31" type="uint"/>
417  </struct>
418
419  <struct name="HUC_VIRTUAL_ADDR_REGION" length="3">
420    <field name="Address" start="0" end="63" type="address"/>
421    <field name="Memory Address Attributes" start="64" end="95" type="MEMORYADDRESSATTRIBUTES"/>
422  </struct>
423
424  <struct name="INLINE_DATA_DESCRIPTION_FOR_MFD_AVC_BSD_OBJECT" length="3">
425    <field name="MB Error Concealment P Slice Weight Prediction Disable" start="0" end="0" type="bool"/>
426    <field name="MB Error Concealment P Slice Motion Vectors Override Disable" start="1" end="1" type="bool"/>
427    <field name="MB Error Concealment B Spatial Weight Prediction Disable" start="3" end="3" type="bool"/>
428    <field name="MB Error Concealment B Spatial Motion Vectors Override Disable" start="4" end="4" type="bool"/>
429    <field name="MB Error Concealment B Spatial Prediction Mode" start="6" end="7" type="uint"/>
430    <field name="MB Header Error Handling" start="8" end="8" type="bool"/>
431    <field name="Entropy Error Handling" start="10" end="10" type="bool"/>
432    <field name="MPR Error Handling" start="12" end="12" type="bool"/>
433    <field name="BSD Premature Complete Error Handling" start="14" end="14" type="bool"/>
434    <field name="Concealment Picture ID" start="16" end="21" type="uint"/>
435    <field name="MB Error Concealment B Temporal Weight Prediction Disable" start="24" end="24" type="bool"/>
436    <field name="MB Error Concealment B Temporal Motion Vectors Override Enable" start="25" end="25" type="bool"/>
437    <field name="MB Error Concealment B Temporal Prediction Mode" start="27" end="28" type="uint" default="0"/>
438    <field name="Intra PredMode (4x4/8x8 Luma) Error Control" start="29" end="29" type="uint"/>
439    <field name="Init Current MB Number" start="30" end="30" type="bool"/>
440    <field name="Concealment Method" start="31" end="31" type="uint"/>
441    <field name="First MB Bit Offset" start="32" end="34" type="uint"/>
442    <field name="Last Slice" start="35" end="35" type="bool"/>
443    <field name="Emulation Prevention Byte Present" start="36" end="36" type="bool"/>
444    <field name="Fix Prev MB Skipped" start="39" end="39" type="bool"/>
445    <field name="First MB Byte Offset of Slice Data or Slice Header" start="48" end="63" type="uint"/>
446    <field name="Intra Prediction Error Control" start="64" end="64" type="bool"/>
447    <field name="Intra 8x8/4x4 Prediction Error Concealment Control" start="65" end="65" type="bool"/>
448    <field name="B Slice Temporal Inter Concealment Mode" start="68" end="70" type="uint"/>
449    <field name="B Slice Spatial Inter Concealment Mode" start="72" end="74" type="uint"/>
450    <field name="B Slice Inter Direct Type Concealment Mode" start="76" end="77" type="uint"/>
451    <field name="B Slice Concealment Mode" start="79" end="79" type="uint">
452      <value name="Intra Concealment" value="1"/>
453      <value name="Inter Concealment" value="0"/>
454    </field>
455    <field name="P Slice Inter Concealment Mode" start="80" end="82" type="uint"/>
456    <field name="P Slice Concealment Mode" start="87" end="87" type="uint">
457      <value name="Intra Concealment" value="1"/>
458      <value name="Inter Concealment" value="0"/>
459    </field>
460    <field name="Concealment Reference Picture + Field Bit" start="88" end="93" type="uint"/>
461    <field name="I Slice Concealment Mode" start="95" end="95" type="uint">
462      <value name="Intra Concealment" value="1"/>
463      <value name="Inter Concealment" value="0"/>
464    </field>
465  </struct>
466
467  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
468    <field name="Kernel Start Pointer" start="6" end="47" type="offset"/>
469    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
470    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
471    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
472    <field name="Floating Point Mode" start="80" end="80" type="uint">
473      <value name="IEEE-754" value="0"/>
474      <value name="Alternate" value="1"/>
475    </field>
476    <field name="Thread Priority" start="81" end="81" type="uint">
477      <value name="Normal Priority" value="0"/>
478      <value name="High Priority" value="1"/>
479    </field>
480    <field name="Single Program Flow" start="82" end="82" type="bool"/>
481    <field name="Denorm Mode" start="83" end="83" type="uint">
482      <value name="Ftz" value="0"/>
483      <value name="SetByKernel" value="1"/>
484    </field>
485    <field name="Sampler Count" start="98" end="100" type="uint">
486      <value name="No samplers used" value="0"/>
487      <value name="Between 1 and 4 samplers used" value="1"/>
488      <value name="Between 5 and 8 samplers used" value="2"/>
489      <value name="Between 9 and 12 samplers used" value="3"/>
490      <value name="Between 13 and 16 samplers used" value="4"/>
491    </field>
492    <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
493    <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
494    <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
495    <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
496    <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
497    <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
498    <field name="Global Barrier Enable" start="207" end="207" type="bool"/>
499    <field name="Shared Local Memory Size" start="208" end="212" type="uint">
500      <value name="Encodes 0K" value="0"/>
501      <value name="Encodes 1K" value="1"/>
502      <value name="Encodes 2K" value="2"/>
503      <value name="Encodes 4K" value="3"/>
504      <value name="Encodes 8K" value="4"/>
505      <value name="Encodes 16K" value="5"/>
506      <value name="Encodes 32K" value="6"/>
507      <value name="Encodes 64K" value="7"/>
508    </field>
509    <field name="Barrier Enable" start="213" end="213" type="bool"/>
510    <field name="Rounding Mode" start="214" end="215" type="uint">
511      <value name="RTNE" value="0"/>
512      <value name="RU" value="1"/>
513      <value name="RD" value="2"/>
514      <value name="RTZ" value="3"/>
515    </field>
516    <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
517  </struct>
518
519  <struct name="MFD_MPEG2_BSD_OBJECT_INLINE_DATA_DESCRIPTION" length="2">
520    <field name="First MB Bit Offset" start="0" end="2" type="uint"/>
521    <field name="Last MB" start="3" end="3" type="bool"/>
522    <field name="Last Pic Slice" start="5" end="5" type="bool"/>
523    <field name="Slice Concealment Type" start="6" end="6" type="uint"/>
524    <field name="Slice Concealment Override" start="7" end="7" type="uint"/>
525    <field name="MB Count" start="8" end="15" type="uint"/>
526    <field name="Slice Vertical Position" start="16" end="23" type="uint"/>
527    <field name="Slice Horizontal Position" start="24" end="31" type="uint"/>
528    <field name="Next Slice Horizontal Position" start="32" end="39" type="uint"/>
529    <field name="Next Slice Vertical Position" start="40" end="48" type="uint"/>
530    <field name="Quantizer Scale Code" start="56" end="60" type="uint"/>
531  </struct>
532
533  <struct name="MI_MATH_ALU_INSTRUCTION" length="1">
534    <field name="Operand 2" start="0" end="9" type="uint" prefix="MI_ALU">
535      <value name="REG0" value="0x00"/>
536      <value name="REG1" value="0x01"/>
537      <value name="REG2" value="0x02"/>
538      <value name="REG3" value="0x03"/>
539      <value name="REG4" value="0x04"/>
540      <value name="REG5" value="0x05"/>
541      <value name="REG6" value="0x06"/>
542      <value name="REG7" value="0x07"/>
543      <value name="REG8" value="0x08"/>
544      <value name="REG9" value="0x09"/>
545      <value name="REG10" value="0x0a"/>
546      <value name="REG11" value="0x0b"/>
547      <value name="REG12" value="0x0c"/>
548      <value name="REG13" value="0x0d"/>
549      <value name="REG14" value="0x0e"/>
550      <value name="REG15" value="0x0f"/>
551      <value name="SRCA" value="0x20"/>
552      <value name="SRCB" value="0x21"/>
553      <value name="ACCU" value="0x31"/>
554      <value name="ZF" value="0x32"/>
555      <value name="CF" value="0x33"/>
556    </field>
557    <field name="Operand 1" start="10" end="19" type="uint" prefix="MI_ALU">
558      <value name="REG0" value="0x00"/>
559      <value name="REG1" value="0x01"/>
560      <value name="REG2" value="0x02"/>
561      <value name="REG3" value="0x03"/>
562      <value name="REG4" value="0x04"/>
563      <value name="REG5" value="0x05"/>
564      <value name="REG6" value="0x06"/>
565      <value name="REG7" value="0x07"/>
566      <value name="REG8" value="0x08"/>
567      <value name="REG9" value="0x09"/>
568      <value name="REG10" value="0x0a"/>
569      <value name="REG11" value="0x0b"/>
570      <value name="REG12" value="0x0c"/>
571      <value name="REG13" value="0x0d"/>
572      <value name="REG14" value="0x0e"/>
573      <value name="REG15" value="0x0f"/>
574      <value name="SRCA" value="0x20"/>
575      <value name="SRCB" value="0x21"/>
576      <value name="ACCU" value="0x31"/>
577      <value name="ZF" value="0x32"/>
578      <value name="CF" value="0x33"/>
579    </field>
580    <field name="ALU Opcode" start="20" end="31" type="uint" prefix="MI_ALU">
581      <value name="NOOP" value="0x000"/>
582      <value name="LOAD" value="0x080"/>
583      <value name="LOADINV" value="0x480"/>
584      <value name="LOAD0" value="0x081"/>
585      <value name="LOAD1" value="0x481"/>
586      <value name="ADD" value="0x100"/>
587      <value name="SUB" value="0x101"/>
588      <value name="AND" value="0x102"/>
589      <value name="OR" value="0x103"/>
590      <value name="XOR" value="0x104"/>
591      <value name="STORE" value="0x180"/>
592      <value name="STOREINV" value="0x580"/>
593    </field>
594  </struct>
595
596  <struct name="PALETTE_ENTRY" length="1">
597    <field name="Blue" start="0" end="7" type="uint"/>
598    <field name="Green" start="8" end="15" type="uint"/>
599    <field name="Red" start="16" end="23" type="uint"/>
600    <field name="Alpha" start="24" end="31" type="uint"/>
601  </struct>
602
603  <struct name="RENDER_SURFACE_STATE" length="16">
604    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
605    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
606    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
607    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
608    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
609    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
610    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
611      <value name="NORMAL_MODE" value="0"/>
612      <value name="PROGRESSIVE_FRAME" value="2"/>
613      <value name="INTERLACED_FRAME" value="3"/>
614    </field>
615    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
616      <value name="Write-Only Cache" value="0"/>
617      <value name="Read-Write Cache" value="1"/>
618    </field>
619    <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
620    <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
621    <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
622    <field name="Tile Mode" start="12" end="13" type="uint">
623      <value name="LINEAR" value="0"/>
624      <value name="WMAJOR" value="1"/>
625      <value name="XMAJOR" value="2"/>
626      <value name="YMAJOR" value="3"/>
627    </field>
628    <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
629      <value name="HALIGN_4" value="1"/>
630      <value name="HALIGN_8" value="2"/>
631      <value name="HALIGN_16" value="3"/>
632    </field>
633    <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
634      <value name="VALIGN_4" value="1"/>
635      <value name="VALIGN_8" value="2"/>
636      <value name="VALIGN_16" value="3"/>
637    </field>
638    <field name="Surface Format" start="18" end="27" type="uint"/>
639    <field name="Surface Array" start="28" end="28" type="bool"/>
640    <field name="Surface Type" start="29" end="31" type="uint">
641      <value name="SURFTYPE_1D" value="0"/>
642      <value name="SURFTYPE_2D" value="1"/>
643      <value name="SURFTYPE_3D" value="2"/>
644      <value name="SURFTYPE_CUBE" value="3"/>
645      <value name="SURFTYPE_BUFFER" value="4"/>
646      <value name="SURFTYPE_STRBUF" value="5"/>
647      <value name="SURFTYPE_NULL" value="7"/>
648    </field>
649    <field name="Surface QPitch" start="32" end="46" type="uint"/>
650    <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
651    <field name="MOCS" start="56" end="62" type="uint"/>
652    <field name="Width" start="64" end="77" type="uint"/>
653    <field name="Height" start="80" end="93" type="uint"/>
654    <field name="Surface Pitch" start="96" end="113" type="uint"/>
655    <field name="Depth" start="117" end="127" type="uint"/>
656    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
657    <field name="Number of Multisamples" start="131" end="133" type="uint">
658      <value name="MULTISAMPLECOUNT_1" value="0"/>
659      <value name="MULTISAMPLECOUNT_2" value="1"/>
660      <value name="MULTISAMPLECOUNT_4" value="2"/>
661      <value name="MULTISAMPLECOUNT_8" value="3"/>
662      <value name="MULTISAMPLECOUNT_16" value="4"/>
663    </field>
664    <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
665      <value name="MSFMT_MSS" value="0"/>
666      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
667    </field>
668    <field name="Render Target View Extent" start="135" end="145" type="uint"/>
669    <field name="Minimum Array Element" start="146" end="156" type="uint"/>
670    <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
671      <value name="0DEG" value="0"/>
672      <value name="90DEG" value="1"/>
673      <value name="180DEG" value="2"/>
674      <value name="270DEG" value="3"/>
675    </field>
676    <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
677    <field name="Surface Min LOD" start="164" end="167" type="uint"/>
678    <field name="Mip Tail Start LOD" start="168" end="171" type="uint"/>
679    <field name="Coherency Type" start="174" end="174" type="uint">
680      <value name="GPU coherent" value="0"/>
681      <value name="IA coherent" value="1"/>
682    </field>
683    <field name="Tiled Resource Mode" start="178" end="179" type="uint">
684      <value name="NONE" value="0"/>
685      <value name="4KB" value="1"/>
686      <value name="64KB" value="2"/>
687      <value name="TILEYF" value="1"/>
688      <value name="TILEYS" value="2"/>
689    </field>
690    <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
691    <field name="Y Offset" start="181" end="183" type="uint"/>
692    <field name="X Offset" start="185" end="191" type="uint"/>
693    <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
694      <value name="AUX_NONE" value="0"/>
695      <value name="AUX_CCS_D" value="1"/>
696      <value name="AUX_APPEND" value="2"/>
697      <value name="AUX_HIZ" value="3"/>
698      <value name="AUX_CCS_E" value="5"/>
699    </field>
700    <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
701    <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
702    <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
703    <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
704    <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
705    <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
706    <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
707    <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
708    <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
709    <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
710    <field name="Memory Compression Enable" start="254" end="254" type="bool"/>
711    <field name="Memory Compression Mode" start="255" end="255" type="uint">
712      <value name="Horizontal" value="0"/>
713      <value name="Vertical" value="1"/>
714    </field>
715    <field name="Surface Base Address" start="256" end="319" type="address"/>
716    <field name="Quilt Width" start="320" end="324" type="uint"/>
717    <field name="Quilt Height" start="325" end="329" type="uint"/>
718    <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
719    <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
720    <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
721    <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
722    <field name="Hierarchical Depth Clear Value" start="384" end="415" type="float"/>
723    <field name="Red Clear Color" start="384" end="415" type="int"/>
724    <field name="Green Clear Color" start="416" end="447" type="int"/>
725    <field name="Blue Clear Color" start="448" end="479" type="int"/>
726    <field name="Alpha Clear Color" start="480" end="511" type="int"/>
727  </struct>
728
729  <struct name="ROUNDINGPRECISIONTABLE_3_BITS" length="1">
730    <field name="Rounding Precision" start="0" end="2" type="uint">
731      <value name="+1/16" value="0"/>
732      <value name="+2/16" value="1"/>
733      <value name="+3/16" value="2"/>
734      <value name="+4/16" value="3"/>
735      <value name="+5/16" value="4"/>
736      <value name="+6/16" value="5"/>
737      <value name="+7/16" value="6"/>
738      <value name="+8/16" value="7"/>
739    </field>
740  </struct>
741
742  <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
743    <field name="Border Color Float Red" start="0" end="31" type="float"/>
744    <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
745    <field name="Border Color Float Green" start="32" end="63" type="float"/>
746    <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
747    <field name="Border Color Float Blue" start="64" end="95" type="float"/>
748    <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
749    <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
750    <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
751  </struct>
752
753  <struct name="SAMPLER_STATE" length="4">
754    <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
755      <value name="LEGACY" value="0"/>
756      <value name="EWA Approximation" value="1"/>
757    </field>
758    <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
759    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
760      <value name="NEAREST" value="0"/>
761      <value name="LINEAR" value="1"/>
762      <value name="ANISOTROPIC" value="2"/>
763      <value name="MONO" value="6"/>
764    </field>
765    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
766      <value name="NEAREST" value="0"/>
767      <value name="LINEAR" value="1"/>
768      <value name="ANISOTROPIC" value="2"/>
769      <value name="MONO" value="6"/>
770    </field>
771    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
772      <value name="NONE" value="0"/>
773      <value name="NEAREST" value="1"/>
774      <value name="LINEAR" value="3"/>
775    </field>
776    <field name="Coarse LOD Quality Mode" start="22" end="26" type="uint"/>
777    <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
778      <value name="NONE" value="0"/>
779      <value name="OGL" value="2"/>
780    </field>
781    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
782      <value name="DX10/OGL" value="0"/>
783      <value name="DX9" value="1"/>
784    </field>
785    <field name="Sampler Disable" start="31" end="31" type="bool"/>
786    <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
787      <value name="PROGRAMMED" value="0"/>
788      <value name="OVERRIDE" value="1"/>
789    </field>
790    <field name="Shadow Function" start="33" end="35" type="uint" prefix="PREFILTEROP">
791      <value name="ALWAYS" value="0"/>
792      <value name="NEVER" value="1"/>
793      <value name="LESS" value="2"/>
794      <value name="EQUAL" value="3"/>
795      <value name="LEQUAL" value="4"/>
796      <value name="GREATER" value="5"/>
797      <value name="NOTEQUAL" value="6"/>
798      <value name="GEQUAL" value="7"/>
799    </field>
800    <field name="ChromaKey Mode" start="36" end="36" type="uint">
801      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
802      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
803    </field>
804    <field name="ChromaKey Index" start="37" end="38" type="uint"/>
805    <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
806    <field name="Max LOD" start="40" end="51" type="u4.8"/>
807    <field name="Min LOD" start="52" end="63" type="u4.8"/>
808    <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
809      <value name="MIPNONE" value="0"/>
810      <value name="MIPFILTER" value="1"/>
811    </field>
812    <field name="Border Color Pointer" start="70" end="87" type="offset"/>
813    <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
814    <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
815    <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
816    <field name="Reduction Type Enable" start="105" end="105" type="bool"/>
817    <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
818    <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
819      <value name="FULL" value="0"/>
820      <value name="HIGH" value="1"/>
821      <value name="MED" value="2"/>
822      <value name="LOW" value="3"/>
823    </field>
824    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
825    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
826    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
827    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
828    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
829    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
830    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
831      <value name="RATIO 2:1" value="0"/>
832      <value name="RATIO 4:1" value="1"/>
833      <value name="RATIO 6:1" value="2"/>
834      <value name="RATIO 8:1" value="3"/>
835      <value name="RATIO 10:1" value="4"/>
836      <value name="RATIO 12:1" value="5"/>
837      <value name="RATIO 14:1" value="6"/>
838      <value name="RATIO 16:1" value="7"/>
839    </field>
840    <field name="Reduction Type" start="118" end="119" type="uint">
841      <value name="STD_FILTER" value="0"/>
842      <value name="COMPARISON" value="1"/>
843      <value name="MINIMUM" value="2"/>
844      <value name="MAXIMUM" value="3"/>
845    </field>
846  </struct>
847
848  <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
849    <group count="4" start="0" size="8">
850      <field name="Table 0 Filter Coefficient" start="0" end="7" type="s1.6"/>
851    </group>
852    <group count="4" start="0" size="32">
853      <field name="Table 1 Filter Coefficient0" start="0" end="7" type="s1.6"/>
854      <field name="Table 1 Filter Coefficient1" start="8" end="15" type="s1.6"/>
855    </group>
856  </struct>
857
858  <struct name="SCISSOR_RECT" length="2">
859    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
860    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
861    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
862    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
863  </struct>
864
865  <struct name="SFC_AVS_CHROMA_COEFF_TABLE_BODY" length="64">
866    <field name="Table 1X Filter Coefficient[[n],2]" start="0" end="7" type="s1.6"/>
867    <field name="Table 1Y Filter Coefficient[[n],2]" start="8" end="15" type="s1.6"/>
868    <field name="Table 1X Filter Coefficient[[n],3]" start="16" end="23" type="s1.6"/>
869    <field name="Table 1Y Filter Coefficient[[n],3]" start="24" end="31" type="s1.6"/>
870    <field name="Table 1X Filter Coefficient[[n],4]" start="32" end="39" type="s1.6"/>
871    <field name="Table 1Y Filter Coefficient[[n],4]" start="40" end="47" type="s1.6"/>
872    <field name="Table 1X Filter Coefficient[[n],5]" start="48" end="55" type="s1.6"/>
873    <field name="Table 1Y Filter Coefficient[[n],5]" start="56" end="63" type="s1.6"/>
874    <group count="31" start="64" size="64">
875      <field name="Filter Coefficients" start="0" end="63" type="uint"/>
876    </group>
877  </struct>
878
879  <struct name="SFC_AVS_LUMA_COEFF_TABLE_BODY" length="128">
880    <field name="Table 0X Filter Coefficient[[n],0]" start="0" end="7" type="s1.6"/>
881    <field name="Table 0Y Filter Coefficient[[n],0]" start="8" end="15" type="s1.6"/>
882    <field name="Table 0X Filter Coefficient[[n],1]" start="16" end="23" type="s1.6"/>
883    <field name="Table 0Y Filter Coefficient[[n],1]" start="24" end="31" type="s1.6"/>
884    <field name="Table 0X Filter Coefficient[[n],2]" start="32" end="39" type="s1.6"/>
885    <field name="Table 0Y Filter Coefficient[[n],2]" start="40" end="47" type="s1.6"/>
886    <field name="Table 0X Filter Coefficient[[n],3]" start="48" end="55" type="s1.6"/>
887    <field name="Table 0Y Filter Coefficient[[n],3]" start="56" end="63" type="s1.6"/>
888    <field name="Table 0X Filter Coefficient[[n],4]" start="64" end="71" type="s1.6"/>
889    <field name="Table 0Y Filter Coefficient[[n],4]" start="72" end="79" type="s1.6"/>
890    <field name="Table 0X Filter Coefficient[[n],5]" start="80" end="87" type="s1.6"/>
891    <field name="Table 0Y Filter Coefficient[[n],5]" start="88" end="95" type="s1.6"/>
892    <field name="Table 0X Filter Coefficient[[n],6]" start="96" end="103" type="s1.6"/>
893    <field name="Table 0Y Filter Coefficient[[n],6]" start="104" end="111" type="s1.6"/>
894    <field name="Table 0X Filter Coefficient[[n],7]" start="112" end="119" type="s1.6"/>
895    <field name="Table 0Y Filter Coefficient[[n],7]" start="120" end="127" type="s1.6"/>
896    <group count="31" start="128" size="128">
897      <field name="Filter Coefficients" start="0" end="127" type="uint"/>
898    </group>
899  </struct>
900
901  <struct name="SFC_AVS_STATE_BODY" length="2">
902    <field name="Transition Area with 8 Pixels" start="0" end="2" type="uint"/>
903    <field name="Transition Area with 4 Pixels" start="4" end="6" type="uint"/>
904    <field name="Sharpness Level" start="24" end="31" type="uint"/>
905    <field name="Max Derivative 8 Pixels" start="32" end="39" type="uint"/>
906    <field name="Max Derivative 4 Pixels" start="48" end="55" type="uint"/>
907  </struct>
908
909  <struct name="SFC_IEF_STATE_BODY" length="23">
910    <field name="Gain Factor" start="0" end="5" type="uint" default="44"/>
911    <field name="Weak Edge Threshold" start="6" end="11" type="uint" default="1"/>
912    <field name="Strong Edge Threshold" start="12" end="17" type="uint" default="8"/>
913    <field name="R3x Coefficient" start="18" end="22" type="u0.5" default="5"/>
914    <field name="R3c Coefficient" start="23" end="27" type="u0.5" default="5"/>
915    <field name="Global Noise Estimation" start="32" end="39" type="uint"/>
916    <field name="Non Edge Weight" start="40" end="42" type="uint"/>
917    <field name="Regular Weight" start="43" end="45" type="uint"/>
918    <field name="Strong Edge Weight" start="46" end="48" type="uint"/>
919    <field name="R5x Coefficient" start="49" end="53" type="u0.5"/>
920    <field name="R5cx Coefficient" start="54" end="58" type="u0.5"/>
921    <field name="R5c Coefficient" start="59" end="63" type="u0.5"/>
922    <field name="STD Sin(alpha)" start="64" end="71" type="s0.7"/>
923    <field name="STD Cos(alpha)" start="72" end="79" type="s0.7"/>
924    <field name="Sat_Max" start="80" end="85" type="uint"/>
925    <field name="Hue_Max" start="86" end="91" type="uint"/>
926    <field name="S3U" start="96" end="106" type="s2.8"/>
927    <field name="Diamond Margin" start="108" end="110" type="uint"/>
928    <field name="VY_STD_Enable" start="111" end="111" type="bool"/>
929    <field name="U_Mid" start="112" end="119" type="uint"/>
930    <field name="V_Mid" start="120" end="127" type="uint"/>
931    <field name="Diamond_dv" start="128" end="134" type="int"/>
932    <field name="Diamond_Th" start="135" end="140" type="uint"/>
933    <field name="Diamond_alpha" start="141" end="148" type="u2.6"/>
934    <field name="HS_margin" start="149" end="151" type="uint"/>
935    <field name="Diamond_du" start="152" end="158" type="int"/>
936    <field name="Skin Detail Factor" start="159" end="159" type="uint">
937      <value name="Detail Revealed" value="0"/>
938      <value name="Not Detail Revealed" value="1"/>
939    </field>
940    <field name="Y_point_1" start="160" end="167" type="uint"/>
941    <field name="Y_point_2" start="168" end="175" type="uint"/>
942    <field name="Y_point_3" start="176" end="183" type="uint"/>
943    <field name="Y_point_4" start="184" end="191" type="uint"/>
944    <field name="INV_Margin_VYL" start="192" end="207" type="u0.16"/>
945    <field name="INV_Margin_VYU" start="224" end="239" type="u0.16"/>
946    <field name="P0L" start="240" end="247" type="uint"/>
947    <field name="P1L" start="248" end="255" type="uint"/>
948    <field name="P2L" start="256" end="263" type="uint"/>
949    <field name="P3L" start="264" end="271" type="uint"/>
950    <field name="B0L" start="272" end="279" type="uint"/>
951    <field name="B1L" start="280" end="287" type="uint"/>
952    <field name="B2L" start="288" end="295" type="uint"/>
953    <field name="B3L" start="296" end="303" type="uint"/>
954    <field name="S0L" start="304" end="314" type="s2.8"/>
955    <field name="Y_Slope_2" start="315" end="319" type="u2.3"/>
956    <field name="S1L" start="320" end="330" type="s2.8"/>
957    <field name="S2L" start="331" end="341" type="s2.8"/>
958    <field name="S3L" start="352" end="362" type="s2.8"/>
959    <field name="P0U" start="363" end="370" type="uint"/>
960    <field name="P1U" start="371" end="378" type="uint"/>
961    <field name="Y_Slope1" start="379" end="383" type="u2.3"/>
962    <field name="P2U" start="384" end="391" type="uint"/>
963    <field name="P3U" start="392" end="399" type="uint"/>
964    <field name="B0U" start="400" end="407" type="uint"/>
965    <field name="B1U" start="408" end="415" type="uint"/>
966    <field name="B2U" start="416" end="423" type="uint"/>
967    <field name="B3U" start="424" end="431" type="uint"/>
968    <field name="S0U" start="432" end="442" type="s2.8"/>
969    <field name="S1U" start="448" end="458" type="s2.8"/>
970    <field name="S2U" start="459" end="469" type="s2.8"/>
971    <field name="Transform Enable" start="480" end="480" type="bool"/>
972    <field name="YUV Channel Swap" start="481" end="481" type="bool"/>
973    <field name="C0" start="483" end="495" type="s2.10"/>
974    <field name="C1" start="496" end="508" type="s2.10"/>
975    <field name="C2" start="512" end="524" type="s2.10"/>
976    <field name="C3" start="525" end="537" type="s2.10"/>
977    <field name="C4" start="544" end="556" type="s2.10"/>
978    <field name="C5" start="557" end="569" type="s2.10"/>
979    <field name="C6" start="576" end="588" type="s2.10"/>
980    <field name="C7" start="589" end="601" type="s2.10"/>
981    <field name="C8" start="608" end="620" type="s2.10"/>
982    <field name="Offset In 1" start="640" end="650" type="s2.8"/>
983    <field name="Offset Out 1" start="651" end="661" type="s2.8"/>
984    <field name="Offset In 2" start="672" end="682" type="s2.8"/>
985    <field name="Offset Out 2" start="683" end="693" type="s2.8"/>
986    <field name="Offset In 3" start="704" end="714" type="s2.8"/>
987    <field name="Offset Out 3" start="715" end="725" type="s2.8"/>
988  </struct>
989
990  <struct name="SFC_LOCK_BODY" length="1">
991    <field name="VE-SFC Pipe Select" start="0" end="0" type="uint"/>
992    <field name="Pre-Scaled Output Surface Output Enable" start="1" end="1" type="bool"/>
993  </struct>
994
995  <struct name="SF_CLIP_VIEWPORT" length="16">
996    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
997    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
998    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
999    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
1000    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
1001    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
1002    <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
1003    <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
1004    <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
1005    <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
1006    <field name="X Min ViewPort" start="384" end="415" type="float"/>
1007    <field name="X Max ViewPort" start="416" end="447" type="float"/>
1008    <field name="Y Min ViewPort" start="448" end="479" type="float"/>
1009    <field name="Y Max ViewPort" start="480" end="511" type="float"/>
1010  </struct>
1011
1012  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
1013    <field name="Source Attribute" start="0" end="4" type="uint"/>
1014    <field name="Swizzle Select" start="6" end="7" type="uint">
1015      <value name="INPUTATTR" value="0"/>
1016      <value name="INPUTATTR_FACING" value="1"/>
1017      <value name="INPUTATTR_W" value="2"/>
1018      <value name="INPUTATTR_FACING_W" value="3"/>
1019    </field>
1020    <field name="Constant Source" start="9" end="10" type="uint">
1021      <value name="CONST_0000" value="0"/>
1022      <value name="CONST_0001_FLOAT" value="1"/>
1023      <value name="CONST_1111_FLOAT" value="2"/>
1024      <value name="PRIM_ID" value="3"/>
1025    </field>
1026    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
1027    <field name="Component Override X" start="12" end="12" type="bool"/>
1028    <field name="Component Override Y" start="13" end="13" type="bool"/>
1029    <field name="Component Override Z" start="14" end="14" type="bool"/>
1030    <field name="Component Override W" start="15" end="15" type="bool"/>
1031  </struct>
1032
1033  <struct name="SO_DECL" length="1">
1034    <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
1035    <field name="Register Index" start="4" end="9" type="uint"/>
1036    <field name="Hole Flag" start="11" end="11" type="bool"/>
1037    <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
1038  </struct>
1039
1040  <struct name="SO_DECL_ENTRY" length="2">
1041    <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
1042    <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
1043    <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
1044    <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
1045  </struct>
1046
1047  <struct name="VDENC_SURFACE_CONTROL_BITS" length="1">
1048    <field name="MOCS" start="1" end="6" type="uint"/>
1049    <field name="Arbitration Priority Control" start="7" end="8" type="uint">
1050      <value name="Highest priority" value="0"/>
1051      <value name="Second highest priority" value="1"/>
1052      <value name="Third highest priority" value="2"/>
1053      <value name="Lowest priority" value="3"/>
1054    </field>
1055    <field name="Memory Compression Enable" start="9" end="9" type="bool"/>
1056    <field name="Memory Compression Mode" start="10" end="10" type="uint"/>
1057    <field name="Cache Select" start="12" end="12" type="uint"/>
1058    <field name="Tiled Resource Mode" start="13" end="14" type="uint">
1059      <value name="TRMODE_NONE" value="0"/>
1060      <value name="TRMODE_TILEYF" value="1"/>
1061      <value name="TRMODE_TILEYS" value="2"/>
1062    </field>
1063  </struct>
1064
1065  <struct name="VDENC_PICTURE" length="3">
1066    <field name="Address" start="0" end="63" type="address"/>
1067    <field name="Picture Fields" start="64" end="95" type="VDENC_SURFACE_CONTROL_BITS"/>
1068  </struct>
1069
1070  <struct name="VDENC_SURFACE_STATE_FIELDS" length="4">
1071    <field name="Cr(V)/Cb(U) Pixel Offset V Direction" start="0" end="1" type="u0.2"/>
1072    <field name="Surface Format Byte Swizzle" start="2" end="2" type="bool"/>
1073    <field name="Color space selection" start="3" end="3" type="uint"/>
1074    <field name="Width" start="4" end="17" type="uint"/>
1075    <field name="Height" start="18" end="31" type="uint"/>
1076    <field name="Tile Walk" start="32" end="32" type="uint" prefix="TW">
1077      <value name="XMAJOR" value="0"/>
1078      <value name="YMAJOR" value="1"/>
1079    </field>
1080    <field name="Tiled Surface" start="33" end="33" type="uint"/>
1081    <field name="Half Pitch for Chroma" start="34" end="34" type="bool"/>
1082    <field name="Surface Pitch" start="35" end="51" type="uint"/>
1083    <field name="Format" start="59" end="63" type="uint"/>
1084    <field name="Surface Format" start="60" end="63" type="uint" prefix="VDENC">
1085      <value name="YUV 4:2:2" value="0"/>
1086      <value name="RGBA 4:4:4:4" value="1"/>
1087      <value name="YUV 4:4:4" value="2"/>
1088      <value name="Y8_UNORM" value="3"/>
1089      <value name="PLANAR_420_8" value="4"/>
1090    </field>
1091    <field name="Y Offset for U(Cb)" start="64" end="78" type="uint"/>
1092    <field name="X Offset for U(Cb)" start="80" end="94" type="uint"/>
1093    <field name="Y Offset for V(Cr)" start="96" end="111" type="uint"/>
1094    <field name="X Offset for V(Cr)" start="112" end="124" type="uint"/>
1095  </struct>
1096
1097  <struct name="VERTEX_BUFFER_STATE" length="4">
1098    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
1099    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
1100    <field name="Address Modify Enable" start="14" end="14" type="bool"/>
1101    <field name="MOCS" start="16" end="22" type="uint"/>
1102    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
1103    <field name="Buffer Starting Address" start="32" end="95" type="address"/>
1104    <field name="Buffer Size" start="96" end="127" type="uint"/>
1105  </struct>
1106
1107  <struct name="VERTEX_ELEMENT_STATE" length="2">
1108    <field name="Source Element Offset" start="0" end="11" type="uint"/>
1109    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
1110    <field name="Source Element Format" start="16" end="24" type="uint"/>
1111    <field name="Valid" start="25" end="25" type="bool"/>
1112    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
1113    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
1114    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
1115    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
1116    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
1117  </struct>
1118
1119  <instruction name="3DPRIMITIVE" bias="2" length="7" engine="render">
1120    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1121    <field name="Predicate Enable" start="8" end="8" type="bool"/>
1122    <field name="UAV Coherency Required" start="9" end="9" type="bool"/>
1123    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
1124    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1125    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
1126    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1127    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1128    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
1129    <field name="Vertex Access Type" start="40" end="40" type="uint">
1130      <value name="SEQUENTIAL" value="0"/>
1131      <value name="RANDOM" value="1"/>
1132    </field>
1133    <field name="End Offset Enable" start="41" end="41" type="bool"/>
1134    <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
1135    <field name="Start Vertex Location" start="96" end="127" type="uint"/>
1136    <field name="Instance Count" start="128" end="159" type="uint"/>
1137    <field name="Start Instance Location" start="160" end="191" type="uint"/>
1138    <field name="Base Vertex Location" start="192" end="223" type="int"/>
1139  </instruction>
1140
1141  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
1142    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1143    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1144    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1145    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1146    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1147    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
1148    <field name="AA Point Coverage Slope" start="40" end="47" type="u0.8"/>
1149    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
1150    <field name="AA Point Coverage Bias" start="56" end="63" type="u0.8"/>
1151    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
1152    <field name="AA Point Coverage EndCap Slope" start="72" end="79" type="u0.8"/>
1153    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
1154    <field name="AA Point Coverage EndCap Bias" start="88" end="95" type="u0.8"/>
1155  </instruction>
1156
1157  <instruction name="3DSTATE_BINDING_TABLE_EDIT_DS" bias="2" engine="render">
1158    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1159    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="70"/>
1160    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1161    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1162    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1163    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1164      <value name="All Cores" value="3"/>
1165      <value name="Core 1" value="2"/>
1166      <value name="Core 0" value="1"/>
1167    </field>
1168    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1169    <group count="0" start="64" size="32">
1170      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1171    </group>
1172  </instruction>
1173
1174  <instruction name="3DSTATE_BINDING_TABLE_EDIT_GS" bias="2" engine="render">
1175    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1176    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="68"/>
1177    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1178    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1179    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1180    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1181      <value name="All Cores" value="3"/>
1182      <value name="Core 1" value="2"/>
1183      <value name="Core 0" value="1"/>
1184    </field>
1185    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1186    <group count="0" start="64" size="32">
1187      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1188    </group>
1189  </instruction>
1190
1191  <instruction name="3DSTATE_BINDING_TABLE_EDIT_HS" bias="2" engine="render">
1192    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1193    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="69"/>
1194    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1195    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1196    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1197    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1198      <value name="All Cores" value="3"/>
1199      <value name="Core 1" value="2"/>
1200      <value name="Core 0" value="1"/>
1201    </field>
1202    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1203    <group count="0" start="64" size="32">
1204      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1205    </group>
1206  </instruction>
1207
1208  <instruction name="3DSTATE_BINDING_TABLE_EDIT_PS" bias="2" engine="render">
1209    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1210    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="71"/>
1211    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1212    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1213    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1214    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1215      <value name="All Cores" value="3"/>
1216      <value name="Core 1" value="2"/>
1217      <value name="Core 0" value="1"/>
1218    </field>
1219    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1220    <group count="0" start="64" size="32">
1221      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1222    </group>
1223  </instruction>
1224
1225  <instruction name="3DSTATE_BINDING_TABLE_EDIT_VS" bias="2" engine="render">
1226    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1227    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="67"/>
1228    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1229    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1230    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1231    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1232      <value name="All Cores" value="3"/>
1233      <value name="Core 1" value="2"/>
1234      <value name="Core 0" value="1"/>
1235    </field>
1236    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1237    <group count="0" start="64" size="32">
1238      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1239    </group>
1240  </instruction>
1241
1242  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2" engine="render">
1243    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1244    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="40"/>
1245    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1246    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1247    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1248    <field name="Pointer to DS Binding Table" start="37" end="47" type="offset"/>
1249  </instruction>
1250
1251  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2" engine="render">
1252    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1253    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="41"/>
1254    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1255    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1256    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1257    <field name="Pointer to GS Binding Table" start="37" end="47" type="offset"/>
1258  </instruction>
1259
1260  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2" engine="render">
1261    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1262    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="39"/>
1263    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1264    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1265    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1266    <field name="Pointer to HS Binding Table" start="37" end="47" type="offset"/>
1267  </instruction>
1268
1269  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2" engine="render">
1270    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1271    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="42"/>
1272    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1273    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1274    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1275    <field name="Pointer to PS Binding Table" start="37" end="47" type="offset"/>
1276  </instruction>
1277
1278  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2" engine="render">
1279    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1280    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="38"/>
1281    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1282    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1283    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1284    <field name="Pointer to VS Binding Table" start="37" end="47" type="offset"/>
1285  </instruction>
1286
1287  <instruction name="3DSTATE_BINDING_TABLE_POOL_ALLOC" bias="2" length="4" engine="render">
1288    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1289    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
1290    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1291    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1292    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1293    <field name="MOCS" start="32" end="38" type="uint"/>
1294    <field name="Binding Table Pool Enable" start="43" end="43" type="bool"/>
1295    <field name="Binding Table Pool Base Address" start="44" end="95" type="address"/>
1296    <field name="Binding Table Pool Buffer Size" start="108" end="127" type="uint">
1297      <value name="No Valid Data" value="0"/>
1298    </field>
1299  </instruction>
1300
1301  <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2" engine="render">
1302    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1303    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="36"/>
1304    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1305    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1306    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1307    <field name="Blend State Pointer Valid" start="32" end="32" type="bool"/>
1308    <field name="Blend State Pointer" start="38" end="63" type="offset"/>
1309  </instruction>
1310
1311  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2" engine="render">
1312    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1313    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
1314    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1315    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1316    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1317    <field name="Color Calc State Pointer Valid" start="32" end="32" type="bool"/>
1318    <field name="Color Calc State Pointer" start="38" end="63" type="offset"/>
1319  </instruction>
1320
1321  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4" engine="render">
1322    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1323    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1324    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1325    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1326    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1327    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
1328    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
1329    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
1330  </instruction>
1331
1332  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3" engine="render">
1333    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1334    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1335    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1336    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1337    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1338    <field name="Depth Clear Value" start="32" end="63" type="float"/>
1339    <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
1340  </instruction>
1341
1342  <instruction name="3DSTATE_CLIP" bias="2" length="4" engine="render">
1343    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1344    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
1345    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1346    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1347    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1348    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
1349    <field name="Statistics Enable" start="42" end="42" type="bool"/>
1350    <field name="Force Clip Mode" start="48" end="48" type="bool"/>
1351    <field name="Force User Clip Distance Clip Test Enable Bitmask" start="49" end="49" type="bool"/>
1352    <field name="Early Cull Enable" start="50" end="50" type="bool"/>
1353    <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint">
1354      <value name="8 Bit" value="0"/>
1355      <value name="4 Bit" value="1"/>
1356    </field>
1357    <field name="Force User Clip Distance Cull Test Enable Bitmask" start="52" end="52" type="bool"/>
1358    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint"/>
1359    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint"/>
1360    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint"/>
1361    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
1362    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
1363    <field name="Clip Mode" start="77" end="79" type="uint">
1364      <value name="CLIPMODE_NORMAL" value="0"/>
1365      <value name="CLIPMODE_REJECT_ALL" value="3"/>
1366      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
1367    </field>
1368    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
1369    <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
1370    <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
1371    <field name="API Mode" start="94" end="94" type="uint">
1372      <value name="APIMODE_OGL" value="0"/>
1373      <value name="APIMODE_D3D" value="1"/>
1374    </field>
1375    <field name="Clip Enable" start="95" end="95" type="bool"/>
1376    <field name="Maximum VP Index" start="96" end="99" type="uint"/>
1377    <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
1378    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
1379    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
1380  </instruction>
1381
1382  <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="11" engine="render">
1383    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1384    <field name="MOCS" start="8" end="14" type="uint"/>
1385    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
1386    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1387    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1388    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1389    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1390  </instruction>
1391
1392  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="11" engine="render">
1393    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1394    <field name="MOCS" start="8" end="14" type="uint"/>
1395    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
1396    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1397    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1398    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1399    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1400  </instruction>
1401
1402  <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="11" engine="render">
1403    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1404    <field name="MOCS" start="8" end="14" type="uint"/>
1405    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
1406    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1407    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1408    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1409    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1410  </instruction>
1411
1412  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="11" engine="render">
1413    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1414    <field name="MOCS" start="8" end="14" type="uint"/>
1415    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
1416    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1417    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1418    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1419    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1420  </instruction>
1421
1422  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="11" engine="render">
1423    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1424    <field name="MOCS" start="8" end="14" type="uint"/>
1425    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1426    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1427    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1428    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1429    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1430  </instruction>
1431
1432  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="8" engine="render">
1433    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1434    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
1435    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1436    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1437    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1438    <field name="Surface Pitch" start="32" end="49" type="uint"/>
1439    <field name="Surface Format" start="50" end="52" type="uint">
1440      <value name="D32_FLOAT" value="1"/>
1441      <value name="D24_UNORM_X8_UINT" value="3"/>
1442      <value name="D16_UNORM" value="5"/>
1443    </field>
1444    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
1445    <field name="Stencil Write Enable" start="59" end="59" type="bool"/>
1446    <field name="Depth Write Enable" start="60" end="60" type="bool"/>
1447    <field name="Surface Type" start="61" end="63" type="uint">
1448      <value name="SURFTYPE_2D" value="1"/>
1449      <value name="SURFTYPE_CUBE" value="3"/>
1450      <value name="SURFTYPE_NULL" value="7"/>
1451    </field>
1452    <field name="Surface Base Address" start="64" end="127" type="address"/>
1453    <field name="LOD" start="128" end="131" type="uint"/>
1454    <field name="Width" start="132" end="145" type="uint"/>
1455    <field name="Height" start="146" end="159" type="uint"/>
1456    <field name="MOCS" start="160" end="166" type="uint"/>
1457    <field name="Minimum Array Element" start="170" end="180" type="uint"/>
1458    <field name="Depth" start="181" end="191" type="uint"/>
1459    <field name="Mip Tail Start LOD" start="218" end="221" type="uint"/>
1460    <field name="Tiled Resource Mode" start="222" end="223" type="uint">
1461      <value name="NONE" value="0"/>
1462      <value name="TILEYF" value="1"/>
1463      <value name="TILEYS" value="2"/>
1464    </field>
1465    <field name="Surface QPitch" start="224" end="238" type="uint"/>
1466    <field name="Render Target View Extent" start="245" end="255" type="uint"/>
1467  </instruction>
1468
1469  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
1470    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1471    <field name="Core Mode Select" start="14" end="15" type="uint">
1472      <value name="Legacy" value="0"/>
1473      <value name="Core 0 Enabled" value="1"/>
1474      <value name="Core 1 Enabled" value="2"/>
1475    </field>
1476    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1477    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1478    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1479    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1480    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
1481    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
1482    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
1483    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
1484    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
1485    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
1486  </instruction>
1487
1488  <instruction name="3DSTATE_DS" bias="2" length="11" engine="render">
1489    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1490    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
1491    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1492    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1493    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1494    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
1495    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1496    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1497    <field name="Accesses UAV" start="110" end="110" type="bool"/>
1498    <field name="Floating Point Mode" start="112" end="112" type="uint">
1499      <value name="IEEE-754" value="0"/>
1500      <value name="Alternate" value="1"/>
1501    </field>
1502    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1503      <value name="High" value="1"/>
1504    </field>
1505    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1506    <field name="Sampler Count" start="123" end="125" type="uint">
1507      <value name="No Samplers" value="0"/>
1508      <value name="1-4 Samplers" value="1"/>
1509      <value name="5-8 Samplers" value="2"/>
1510      <value name="9-12 Samplers" value="3"/>
1511      <value name="13-16 Samplers" value="4"/>
1512    </field>
1513    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1514    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
1515    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1516    <field name="Patch URB Entry Read Offset" start="196" end="201" type="uint"/>
1517    <field name="Patch URB Entry Read Length" start="203" end="209" type="uint"/>
1518    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
1519    <field name="Enable" start="224" end="224" type="bool"/>
1520    <field name="Cache Disable" start="225" end="225" type="bool"/>
1521    <field name="Compute W Coordinate Enable" start="226" end="226" type="bool"/>
1522    <field name="Dispatch Mode" start="227" end="228" type="uint" prefix="DISPATCH_MODE">
1523      <value name="SIMD4X2" value="0"/>
1524      <value name="SIMD8_SINGLE_PATCH" value="1"/>
1525      <value name="SIMD8_SINGLE_OR_DUAL_PATCH" value="2"/>
1526    </field>
1527    <field name="Statistics Enable" start="234" end="234" type="bool"/>
1528    <field name="Maximum Number of Threads" start="245" end="253" type="uint"/>
1529    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
1530    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
1531    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
1532    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
1533    <field name="DUAL_PATCH Kernel Start Pointer" start="294" end="351" type="offset"/>
1534  </instruction>
1535
1536  <instruction name="3DSTATE_GATHER_CONSTANT_DS" bias="2" engine="render">
1537    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1538    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="55"/>
1539    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1540    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1541    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1542    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1543      <value name="Commit Gather" value="0"/>
1544      <value name="Non-Commit Gather" value="1"/>
1545    </field>
1546    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1547    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1548    <field name="On-Die Table" start="67" end="67" type="uint">
1549      <value name="Load" value="0"/>
1550      <value name="Read" value="1"/>
1551    </field>
1552    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1553    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1554    <group count="0" start="96" size="32">
1555      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1556      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1557    </group>
1558  </instruction>
1559
1560  <instruction name="3DSTATE_GATHER_CONSTANT_GS" bias="2" engine="render">
1561    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1562    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="53"/>
1563    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1564    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1565    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1566    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1567      <value name="Commit Gather" value="0"/>
1568      <value name="Non-Commit Gather" value="1"/>
1569    </field>
1570    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1571    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1572    <field name="On-Die Table" start="67" end="67" type="uint">
1573      <value name="Load" value="0"/>
1574      <value name="Read" value="1"/>
1575    </field>
1576    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1577    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1578    <group count="0" start="96" size="32">
1579      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1580      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1581    </group>
1582  </instruction>
1583
1584  <instruction name="3DSTATE_GATHER_CONSTANT_HS" bias="2" engine="render">
1585    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1586    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="54"/>
1587    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1588    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1589    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1590    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1591      <value name="Commit Gather" value="0"/>
1592      <value name="Non-Commit Gather" value="1"/>
1593    </field>
1594    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1595    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1596    <field name="On-Die Table" start="67" end="67" type="uint">
1597      <value name="Load" value="0"/>
1598      <value name="Read" value="1"/>
1599    </field>
1600    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1601    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1602    <group count="0" start="96" size="32">
1603      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1604      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1605    </group>
1606  </instruction>
1607
1608  <instruction name="3DSTATE_GATHER_CONSTANT_PS" bias="2" engine="render">
1609    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1610    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="56"/>
1611    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
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="DX9 On-Die Register Read Enable" start="32" end="32" type="bool"/>
1615    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1616      <value name="Commit Gather" value="0"/>
1617      <value name="Non-Commit Gather" value="1"/>
1618    </field>
1619    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1620    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1621    <field name="On-Die Table" start="67" end="67" type="uint">
1622      <value name="Load" value="0"/>
1623      <value name="Read" value="1"/>
1624    </field>
1625    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
1626    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1627    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1628    <group count="0" start="96" size="32">
1629      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1630      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1631    </group>
1632  </instruction>
1633
1634  <instruction name="3DSTATE_GATHER_CONSTANT_VS" bias="2" engine="render">
1635    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1636    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="52"/>
1637    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1638    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1639    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1640    <field name="DX9 On-Die Register Read Enable" start="32" end="32" type="bool"/>
1641    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1642      <value name="Commit Gather" value="0"/>
1643      <value name="Non-Commit Gather" value="1"/>
1644    </field>
1645    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1646    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1647    <field name="On-Die Table" start="67" end="67" type="uint">
1648      <value name="Load" value="0"/>
1649      <value name="Read" value="1"/>
1650    </field>
1651    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
1652    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1653    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1654    <group count="0" start="96" size="32">
1655      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1656      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1657    </group>
1658  </instruction>
1659
1660  <instruction name="3DSTATE_GATHER_POOL_ALLOC" bias="2" length="4" engine="render">
1661    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1662    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
1663    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1664    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1665    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1666    <field name="MOCS" start="32" end="38" type="uint"/>
1667    <field name="Gather Pool Enable" start="43" end="43" type="bool"/>
1668    <field name="Gather Pool Base Address" start="44" end="95" type="address"/>
1669    <field name="Gather Pool Buffer Size" start="108" end="127" type="uint"/>
1670  </instruction>
1671
1672  <instruction name="3DSTATE_GS" bias="2" length="10" engine="render">
1673    <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
1674    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1675    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1676    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1677    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1678    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
1679    <field name="Expected Vertex Count" start="96" end="101" type="uint"/>
1680    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1681    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
1682    <field name="Accesses UAV" start="108" end="108" type="bool"/>
1683    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1684    <field name="Floating Point Mode" start="112" end="112" type="uint">
1685      <value name="IEEE-754" value="0"/>
1686      <value name="Alternate" value="1"/>
1687    </field>
1688    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1689      <value name="High" value="1"/>
1690    </field>
1691    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1692    <field name="Sampler Count" start="123" end="125" type="uint">
1693      <value name="No Samplers" value="0"/>
1694      <value name="1-4 Samplers" value="1"/>
1695      <value name="5-8 Samplers" value="2"/>
1696      <value name="9-12 Samplers" value="3"/>
1697      <value name="13-16 Samplers" value="4"/>
1698    </field>
1699    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1700    <field name="Single Program Flow" start="127" end="127" type="bool"/>
1701    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
1702    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1703    <field name="Dispatch GRF Start Register For URB Data" start="192" end="195" type="uint"/>
1704    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
1705    <field name="Include Vertex Handles" start="202" end="202" type="bool"/>
1706    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
1707    <field name="Output Topology" start="209" end="214" type="3D_Prim_Topo_Type"/>
1708    <field name="Output Vertex Size" start="215" end="220" type="uint"/>
1709    <field name="Dispatch GRF Start Register For URB Data [5:4]" start="221" end="222" type="uint"/>
1710    <field name="Enable" start="224" end="224" type="bool"/>
1711    <field name="Discard Adjacency" start="225" end="225" type="bool"/>
1712    <field name="Reorder Mode" start="226" end="226" type="uint">
1713      <value name="LEADING" value="0"/>
1714      <value name="TRAILING" value="1"/>
1715    </field>
1716    <field name="Hint" start="227" end="227" type="uint"/>
1717    <field name="Include Primitive ID" start="228" end="228" type="bool"/>
1718    <field name="Invocations Increment Value" start="229" end="233" type="uint"/>
1719    <field name="Statistics Enable" start="234" end="234" type="bool"/>
1720    <field name="Dispatch Mode" start="235" end="236" type="uint" prefix="DISPATCH_MODE">
1721      <value name="Dual Instance" value="1"/>
1722      <value name="Dual Object" value="2"/>
1723      <value name="SIMD8" value="3"/>
1724    </field>
1725    <field name="Default Stream Id" start="237" end="238" type="uint"/>
1726    <field name="Instance Control" start="239" end="243" type="uint"/>
1727    <field name="Control Data Header Size" start="244" end="247" type="uint"/>
1728    <field name="Maximum Number of Threads" start="256" end="264" type="uint"/>
1729    <field name="Static Output Vertex Count" start="272" end="282" type="uint"/>
1730    <field name="Static Output" start="286" end="286" type="bool"/>
1731    <field name="Control Data Format" start="287" end="287" type="uint">
1732      <value name="CUT" value="0"/>
1733      <value name="SID" value="1"/>
1734    </field>
1735    <field name="User Clip Distance Cull Test Enable Bitmask" start="288" end="295" type="uint"/>
1736    <field name="User Clip Distance Clip Test Enable Bitmask" start="296" end="303" type="uint"/>
1737    <field name="Vertex URB Entry Output Length" start="304" end="308" type="uint"/>
1738    <field name="Vertex URB Entry Output Read Offset" start="309" end="314" type="uint"/>
1739  </instruction>
1740
1741  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="5" engine="render">
1742    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1743    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1744    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1745    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1746    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1747    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1748    <field name="MOCS" start="57" end="63" type="uint"/>
1749    <field name="Surface Base Address" start="64" end="127" type="address"/>
1750    <field name="Surface QPitch" start="128" end="142" type="uint"/>
1751  </instruction>
1752
1753  <instruction name="3DSTATE_HS" bias="2" length="9" engine="render">
1754    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1755    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27"/>
1756    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1757    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1758    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1759    <field name="Software Exception Enable" start="44" end="44" type="bool"/>
1760    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
1761    <field name="Floating Point Mode" start="48" end="48" type="uint">
1762      <value name="IEEE-754" value="0"/>
1763      <value name="alternate" value="1"/>
1764    </field>
1765    <field name="Thread Dispatch Priority" start="49" end="49" type="uint">
1766      <value name="High" value="1"/>
1767    </field>
1768    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
1769    <field name="Sampler Count" start="59" end="61" type="uint">
1770      <value name="No Samplers" value="0"/>
1771      <value name="1-4 Samplers" value="1"/>
1772      <value name="5-8 Samplers" value="2"/>
1773      <value name="9-12 Samplers" value="3"/>
1774      <value name="13-16 Samplers" value="4"/>
1775    </field>
1776    <field name="Instance Count" start="64" end="67" type="uint"/>
1777    <field name="Maximum Number of Threads" start="72" end="80" type="uint"/>
1778    <field name="Statistics Enable" start="93" end="93" type="bool"/>
1779    <field name="Enable" start="95" end="95" type="bool"/>
1780    <field name="Kernel Start Pointer" start="102" end="159" type="offset"/>
1781    <field name="Per-Thread Scratch Space" start="160" end="163" type="uint"/>
1782    <field name="Scratch Space Base Pointer" start="170" end="223" type="address"/>
1783    <field name="Include Primitive ID" start="224" end="224" type="bool"/>
1784    <field name="Vertex URB Entry Read Offset" start="228" end="233" type="uint"/>
1785    <field name="Vertex URB Entry Read Length" start="235" end="240" type="uint"/>
1786    <field name="Dispatch Mode" start="241" end="242" type="uint" prefix="DISPATCH_MODE">
1787      <value name="SINGLE_PATCH" value="0"/>
1788      <value name="DUAL_PATCH" value="1"/>
1789      <value name="8_PATCH" value="2"/>
1790    </field>
1791    <field name="Dispatch GRF Start Register For URB Data" start="243" end="247" type="uint"/>
1792    <field name="Include Vertex Handles" start="248" end="248" type="bool"/>
1793    <field name="Accesses UAV" start="249" end="249" type="bool"/>
1794    <field name="Vector Mask Enable" start="250" end="250" type="bool"/>
1795    <field name="Single Program Flow" start="251" end="251" type="bool"/>
1796    <field name="Dispatch GRF Start Register For URB Data [5]" start="252" end="252" type="uint"/>
1797  </instruction>
1798
1799  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="5" engine="render">
1800    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1801    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1802    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1803    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1804    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1805    <field name="MOCS" start="32" end="38" type="uint"/>
1806    <field name="Index Format" start="40" end="41" type="uint" prefix="INDEX">
1807      <value name="BYTE" value="0"/>
1808      <value name="WORD" value="1"/>
1809      <value name="DWORD" value="2"/>
1810    </field>
1811    <field name="Buffer Starting Address" start="64" end="127" type="address"/>
1812    <field name="Buffer Size" start="128" end="159" type="uint"/>
1813  </instruction>
1814
1815  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
1816    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1817    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1818    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1819    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1820    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1821    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
1822    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
1823    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
1824    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
1825    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
1826    <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
1827  </instruction>
1828
1829  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2" engine="render">
1830    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1831    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1832    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1833    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1834    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1835    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
1836    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
1837  </instruction>
1838
1839  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="2" engine="render">
1840    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1841    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
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    <field name="Number of Multisamples" start="33" end="35" type="uint"/>
1846    <field name="Pixel Location" start="36" end="36" type="uint">
1847      <value name="CENTER" value="0"/>
1848      <value name="UL_CORNER" value="1"/>
1849    </field>
1850    <field name="Pixel Position Offset Enable" start="37" end="37" type="bool"/>
1851  </instruction>
1852
1853  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" 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="6"/>
1856    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
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="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
1860    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
1861  </instruction>
1862
1863  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
1864    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
1865    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1866    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1867    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1868    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1869    <group count="32" start="32" size="32">
1870      <field name="Pattern Row" start="0" end="31" type="uint"/>
1871    </group>
1872  </instruction>
1873
1874  <instruction name="3DSTATE_PS" bias="2" length="12" engine="render">
1875    <field name="DWord Length" start="0" end="7" type="uint" default="10"/>
1876    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
1877    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1878    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1879    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1880    <field name="Kernel Start Pointer 0" start="38" end="95" type="offset"/>
1881    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1882    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
1883    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1884    <field name="Rounding Mode" start="110" end="111" type="uint">
1885      <value name="RTNE" value="0"/>
1886      <value name="RU" value="1"/>
1887      <value name="RD" value="2"/>
1888      <value name="RTZ" value="3"/>
1889    </field>
1890    <field name="Floating Point Mode" start="112" end="112" type="uint">
1891      <value name="IEEE-754" value="0"/>
1892      <value name="Alternate" value="1"/>
1893    </field>
1894    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1895      <value name="High" value="1"/>
1896    </field>
1897    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1898    <field name="Single Precision Denormal Mode" start="122" end="122" type="uint">
1899      <value name="Flushed to Zero" value="0"/>
1900      <value name="Retained" value="1"/>
1901    </field>
1902    <field name="Sampler Count" start="123" end="125" type="uint">
1903      <value name="No Samplers" value="0"/>
1904      <value name="1-4 Samplers" value="1"/>
1905      <value name="5-8 Samplers" value="2"/>
1906      <value name="9-12 Samplers" value="3"/>
1907      <value name="13-16 Samplers" value="4"/>
1908    </field>
1909    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1910    <field name="Single Program Flow" start="127" end="127" type="bool"/>
1911    <field name="Per Thread Scratch Space" start="128" end="131" type="uint"/>
1912    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1913    <field name="8 Pixel Dispatch Enable" start="192" end="192" type="bool"/>
1914    <field name="16 Pixel Dispatch Enable" start="193" end="193" type="bool"/>
1915    <field name="32 Pixel Dispatch Enable" start="194" end="194" type="bool"/>
1916    <field name="Position XY Offset Select" start="195" end="196" type="uint">
1917      <value name="POSOFFSET_NONE" value="0"/>
1918      <value name="POSOFFSET_CENTROID" value="2"/>
1919      <value name="POSOFFSET_SAMPLE" value="3"/>
1920    </field>
1921    <field name="Render Target Resolve Type" start="198" end="199" type="uint">
1922      <value name="RESOLVE_DISABLED" value="0"/>
1923      <value name="RESOLVE_PARTIAL" value="1"/>
1924      <value name="RESOLVE_FULL" value="3"/>
1925    </field>
1926    <field name="Render Target Fast Clear Enable" start="200" end="200" type="bool"/>
1927    <field name="Push Constant Enable" start="203" end="203" type="bool"/>
1928    <field name="Maximum Number of Threads Per PSD" start="215" end="223" type="uint"/>
1929    <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="224" end="230" type="uint"/>
1930    <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="232" end="238" type="uint"/>
1931    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="240" end="246" type="uint"/>
1932    <field name="Kernel Start Pointer 1" start="262" end="319" type="offset"/>
1933    <field name="Kernel Start Pointer 2" start="326" end="383" type="offset"/>
1934  </instruction>
1935
1936  <instruction name="3DSTATE_PS_BLEND" bias="2" length="2" engine="render">
1937    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1938    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="77"/>
1939    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1940    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1941    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1942    <field name="Independent Alpha Blend Enable" start="39" end="39" type="bool"/>
1943    <field name="Alpha Test Enable" start="40" end="40" type="bool"/>
1944    <field name="Destination Blend Factor" start="41" end="45" type="3D_Color_Buffer_Blend_Factor"/>
1945    <field name="Source Blend Factor" start="46" end="50" type="3D_Color_Buffer_Blend_Factor"/>
1946    <field name="Destination Alpha Blend Factor" start="51" end="55" type="3D_Color_Buffer_Blend_Factor"/>
1947    <field name="Source Alpha Blend Factor" start="56" end="60" type="3D_Color_Buffer_Blend_Factor"/>
1948    <field name="Color Buffer Blend Enable" start="61" end="61" type="bool"/>
1949    <field name="Has Writeable RT" start="62" end="62" type="bool"/>
1950    <field name="Alpha To Coverage Enable" start="63" end="63" type="bool"/>
1951  </instruction>
1952
1953  <instruction name="3DSTATE_PS_EXTRA" bias="2" length="2" engine="render">
1954    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1955    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="79"/>
1956    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1957    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1958    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1959    <field name="Input Coverage Mask State" start="32" end="33" type="uint" prefix="ICMS">
1960      <value name="NONE" value="0"/>
1961      <value name="NORMAL" value="1"/>
1962      <value name="INNER_CONSERVATIVE" value="2"/>
1963      <value name="DEPTH_COVERAGE" value="3"/>
1964    </field>
1965    <field name="Pixel Shader Has UAV" start="34" end="34" type="bool"/>
1966    <field name="Pixel Shader Pulls Bary" start="35" end="35" type="bool"/>
1967    <field name="Pixel Shader Computes Stencil" start="37" end="37" type="bool"/>
1968    <field name="Pixel Shader Is Per Sample" start="38" end="38" type="bool"/>
1969    <field name="Pixel Shader Disables Alpha To Coverage" start="39" end="39" type="bool"/>
1970    <field name="Attribute Enable" start="40" end="40" type="bool"/>
1971    <field name="Pixel Shader Uses Source W" start="55" end="55" type="bool"/>
1972    <field name="Pixel Shader Uses Source Depth" start="56" end="56" type="bool"/>
1973    <field name="Force Computed Depth" start="57" end="57" type="bool"/>
1974    <field name="Pixel Shader Computed Depth Mode" start="58" end="59" type="uint">
1975      <value name="PSCDEPTH_OFF" value="0"/>
1976      <value name="PSCDEPTH_ON" value="1"/>
1977      <value name="PSCDEPTH_ON_GE" value="2"/>
1978      <value name="PSCDEPTH_ON_LE" value="3"/>
1979    </field>
1980    <field name="Pixel Shader Kills Pixel" start="60" end="60" type="bool"/>
1981    <field name="oMask Present to Render Target" start="61" end="61" type="bool"/>
1982    <field name="Pixel Shader Does not write to RT" start="62" end="62" type="bool"/>
1983    <field name="Pixel Shader Valid" start="63" end="63" type="bool"/>
1984  </instruction>
1985
1986  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2" engine="render">
1987    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1988    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
1989    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1990    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1991    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1992    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
1993    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
1994  </instruction>
1995
1996  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2" engine="render">
1997    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1998    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1999    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2000    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2001    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2002    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2003    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2004  </instruction>
2005
2006  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2" engine="render">
2007    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2008    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
2009    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2010    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2011    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2012    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2013    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2014  </instruction>
2015
2016  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2" engine="render">
2017    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2018    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
2019    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2020    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2021    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2022    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2023    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2024  </instruction>
2025
2026  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2" engine="render">
2027    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2028    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
2029    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2030    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2031    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2032    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2033    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2034  </instruction>
2035
2036  <instruction name="3DSTATE_RASTER" bias="2" length="5" engine="render">
2037    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2038    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="80"/>
2039    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2040    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2041    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2042    <field name="Viewport Z Near Clip Test Enable" start="32" end="32" type="bool"/>
2043    <field name="Scissor Rectangle Enable" start="33" end="33" type="bool"/>
2044    <field name="Antialiasing Enable" start="34" end="34" type="bool"/>
2045    <field name="Back Face Fill Mode" start="35" end="36" type="uint" prefix="FILL_MODE">
2046      <value name="SOLID" value="0"/>
2047      <value name="WIREFRAME" value="1"/>
2048      <value name="POINT" value="2"/>
2049    </field>
2050    <field name="Front Face Fill Mode" start="37" end="38" type="uint" prefix="FILL_MODE">
2051      <value name="SOLID" value="0"/>
2052      <value name="WIREFRAME" value="1"/>
2053      <value name="POINT" value="2"/>
2054    </field>
2055    <field name="Global Depth Offset Enable Point" start="39" end="39" type="bool"/>
2056    <field name="Global Depth Offset Enable Wireframe" start="40" end="40" type="bool"/>
2057    <field name="Global Depth Offset Enable Solid" start="41" end="41" type="bool"/>
2058    <field name="DX Multisample Rasterization Mode" start="42" end="43" type="uint">
2059      <value name="MSRASTMODE_ OFF_PIXEL" value="0"/>
2060      <value name="MSRASTMODE_ OFF_PATTERN" value="1"/>
2061      <value name="MSRASTMODE_ ON_PIXEL" value="2"/>
2062      <value name="MSRASTMODE_ ON_PATTERN" value="3"/>
2063    </field>
2064    <field name="DX Multisample Rasterization Enable" start="44" end="44" type="bool"/>
2065    <field name="Smooth Point Enable" start="45" end="45" type="bool"/>
2066    <field name="Force Multisampling" start="46" end="46" type="uint"/>
2067    <field name="Cull Mode" start="48" end="49" type="uint" prefix="CULLMODE">
2068      <value name="BOTH" value="0"/>
2069      <value name="NONE" value="1"/>
2070      <value name="FRONT" value="2"/>
2071      <value name="BACK" value="3"/>
2072    </field>
2073    <field name="Forced Sample Count" start="50" end="52" type="uint" prefix="FSC">
2074      <value name="NUMRASTSAMPLES_0" value="0"/>
2075      <value name="NUMRASTSAMPLES_1" value="1"/>
2076      <value name="NUMRASTSAMPLES_2" value="2"/>
2077      <value name="NUMRASTSAMPLES_4" value="3"/>
2078      <value name="NUMRASTSAMPLES_8" value="4"/>
2079      <value name="NUMRASTSAMPLES_16" value="5"/>
2080    </field>
2081    <field name="Front Winding" start="53" end="53" type="uint">
2082      <value name="Clockwise" value="0"/>
2083      <value name="Counter Clockwise" value="1"/>
2084    </field>
2085    <field name="API Mode" start="54" end="55" type="uint">
2086      <value name="DX9/OGL" value="0"/>
2087      <value name="DX10.0" value="1"/>
2088      <value name="DX10.1+" value="2"/>
2089    </field>
2090    <field name="Conservative Rasterization Enable" start="56" end="56" type="bool"/>
2091    <field name="Viewport Z Far Clip Test Enable" start="58" end="58" type="bool"/>
2092    <field name="Global Depth Offset Constant" start="64" end="95" type="float"/>
2093    <field name="Global Depth Offset Scale" start="96" end="127" type="float"/>
2094    <field name="Global Depth Offset Clamp" start="128" end="159" type="float"/>
2095  </instruction>
2096
2097  <instruction name="3DSTATE_RS_CONSTANT_POINTER" bias="2" length="4" engine="render">
2098    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2099    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="84"/>
2100    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2101    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2102    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2103    <field name="Operation Load or Store" start="44" end="44" type="uint" prefix="RS">
2104      <value name="Store" value="0"/>
2105      <value name="Load" value="1"/>
2106    </field>
2107    <field name="Shader Select" start="60" end="62" type="uint">
2108      <value name="VS" value="0"/>
2109      <value name="PS" value="4"/>
2110    </field>
2111    <field name="Global Constant Buffer Address" start="70" end="95" type="address"/>
2112    <field name="Global Constant Buffer Address High" start="96" end="127" type="address"/>
2113  </instruction>
2114
2115  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2" engine="render">
2116    <field name="DWord Length" start="0" end="7" type="uint"/>
2117    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
2118    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2119    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2120    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2121    <group count="0" start="32" size="32">
2122      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
2123    </group>
2124  </instruction>
2125
2126  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2" engine="render">
2127    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2128    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
2129    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2130    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2131    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2132    <group count="0" start="32" size="32">
2133      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
2134      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
2135      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
2136      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
2137    </group>
2138  </instruction>
2139
2140  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_DS" bias="2" length="2" engine="render">
2141    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2142    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="45"/>
2143    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2144    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2145    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2146    <field name="Pointer to DS Sampler State" start="37" end="63" type="offset"/>
2147  </instruction>
2148
2149  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_GS" bias="2" length="2" engine="render">
2150    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2151    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="46"/>
2152    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2153    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2154    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2155    <field name="Pointer to GS Sampler State" start="37" end="63" type="offset"/>
2156  </instruction>
2157
2158  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_HS" bias="2" length="2" engine="render">
2159    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2160    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="44"/>
2161    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2162    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2163    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2164    <field name="Pointer to HS Sampler State" start="37" end="63" type="offset"/>
2165  </instruction>
2166
2167  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_PS" bias="2" length="2" engine="render">
2168    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2169    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="47"/>
2170    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2171    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2172    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2173    <field name="Pointer to PS Sampler State" start="37" end="63" type="offset"/>
2174  </instruction>
2175
2176  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_VS" bias="2" length="2" engine="render">
2177    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2178    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="43"/>
2179    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2180    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2181    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2182    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
2183  </instruction>
2184
2185  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2" engine="render">
2186    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2187    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
2188    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2189    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2190    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2191    <field name="Sample Mask" start="32" end="47" type="uint"/>
2192  </instruction>
2193
2194  <instruction name="3DSTATE_SAMPLE_PATTERN" bias="2" length="9" engine="render">
2195    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
2196    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
2197    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2198    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2199    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2200    <field name="16x Sample0 Y Offset" start="32" end="35" type="u0.4"/>
2201    <field name="16x Sample0 X Offset" start="36" end="39" type="u0.4"/>
2202    <field name="16x Sample1 Y Offset" start="40" end="43" type="u0.4"/>
2203    <field name="16x Sample1 X Offset" start="44" end="47" type="u0.4"/>
2204    <field name="16x Sample2 Y Offset" start="48" end="51" type="u0.4"/>
2205    <field name="16x Sample2 X Offset" start="52" end="55" type="u0.4"/>
2206    <field name="16x Sample3 Y Offset" start="56" end="59" type="u0.4"/>
2207    <field name="16x Sample3 X Offset" start="60" end="63" type="u0.4"/>
2208    <field name="16x Sample4 Y Offset" start="64" end="67" type="u0.4"/>
2209    <field name="16x Sample4 X Offset" start="68" end="71" type="u0.4"/>
2210    <field name="16x Sample5 Y Offset" start="72" end="75" type="u0.4"/>
2211    <field name="16x Sample5 X Offset" start="76" end="79" type="u0.4"/>
2212    <field name="16x Sample6 Y Offset" start="80" end="83" type="u0.4"/>
2213    <field name="16x Sample6 X Offset" start="84" end="87" type="u0.4"/>
2214    <field name="16x Sample7 Y Offset" start="88" end="91" type="u0.4"/>
2215    <field name="16x Sample7 X Offset" start="92" end="95" type="u0.4"/>
2216    <field name="16x Sample8 Y Offset" start="96" end="99" type="u0.4"/>
2217    <field name="16x Sample8 X Offset" start="100" end="103" type="u0.4"/>
2218    <field name="16x Sample9 Y Offset" start="104" end="107" type="u0.4"/>
2219    <field name="16x Sample9 X Offset" start="108" end="111" type="u0.4"/>
2220    <field name="16x Sample10 Y Offset" start="112" end="115" type="u0.4"/>
2221    <field name="16x Sample10 X Offset" start="116" end="119" type="u0.4"/>
2222    <field name="16x Sample11 Y Offset" start="120" end="123" type="u0.4"/>
2223    <field name="16x Sample11 X Offset" start="124" end="127" type="u0.4"/>
2224    <field name="16x Sample12 Y Offset" start="128" end="131" type="u0.4"/>
2225    <field name="16x Sample12 X Offset" start="132" end="135" type="u0.4"/>
2226    <field name="16x Sample13 Y Offset" start="136" end="139" type="u0.4"/>
2227    <field name="16x Sample13 X Offset" start="140" end="143" type="u0.4"/>
2228    <field name="16x Sample14 Y Offset" start="144" end="147" type="u0.4"/>
2229    <field name="16x Sample14 X Offset" start="148" end="151" type="u0.4"/>
2230    <field name="16x Sample15 Y Offset" start="152" end="155" type="u0.4"/>
2231    <field name="16x Sample15 X Offset" start="156" end="159" type="u0.4"/>
2232    <field name="8x Sample4 Y Offset" start="160" end="163" type="u0.4"/>
2233    <field name="8x Sample4 X Offset" start="164" end="167" type="u0.4"/>
2234    <field name="8x Sample5 Y Offset" start="168" end="171" type="u0.4"/>
2235    <field name="8x Sample5 X Offset" start="172" end="175" type="u0.4"/>
2236    <field name="8x Sample6 Y Offset" start="176" end="179" type="u0.4"/>
2237    <field name="8x Sample6 X Offset" start="180" end="183" type="u0.4"/>
2238    <field name="8x Sample7 Y Offset" start="184" end="187" type="u0.4"/>
2239    <field name="8x Sample7 X Offset" start="188" end="191" type="u0.4"/>
2240    <field name="8x Sample0 Y Offset" start="192" end="195" type="u0.4"/>
2241    <field name="8x Sample0 X Offset" start="196" end="199" type="u0.4"/>
2242    <field name="8x Sample1 Y Offset" start="200" end="203" type="u0.4"/>
2243    <field name="8x Sample1 X Offset" start="204" end="207" type="u0.4"/>
2244    <field name="8x Sample2 Y Offset" start="208" end="211" type="u0.4"/>
2245    <field name="8x Sample2 X Offset" start="212" end="215" type="u0.4"/>
2246    <field name="8x Sample3 Y Offset" start="216" end="219" type="u0.4"/>
2247    <field name="8x Sample3 X Offset" start="220" end="223" type="u0.4"/>
2248    <field name="4x Sample0 Y Offset" start="224" end="227" type="u0.4"/>
2249    <field name="4x Sample0 X Offset" start="228" end="231" type="u0.4"/>
2250    <field name="4x Sample1 Y Offset" start="232" end="235" type="u0.4"/>
2251    <field name="4x Sample1 X Offset" start="236" end="239" type="u0.4"/>
2252    <field name="4x Sample2 Y Offset" start="240" end="243" type="u0.4"/>
2253    <field name="4x Sample2 X Offset" start="244" end="247" type="u0.4"/>
2254    <field name="4x Sample3 Y Offset" start="248" end="251" type="u0.4"/>
2255    <field name="4x Sample3 X Offset" start="252" end="255" type="u0.4"/>
2256    <field name="2x Sample0 Y Offset" start="256" end="259" type="u0.4"/>
2257    <field name="2x Sample0 X Offset" start="260" end="263" type="u0.4"/>
2258    <field name="2x Sample1 Y Offset" start="264" end="267" type="u0.4"/>
2259    <field name="2x Sample1 X Offset" start="268" end="271" type="u0.4"/>
2260    <field name="1x Sample0 Y Offset" start="272" end="275" type="u0.4"/>
2261    <field name="1x Sample0 X Offset" start="276" end="279" type="u0.4"/>
2262  </instruction>
2263
2264  <instruction name="3DSTATE_SBE" bias="2" length="6" engine="render">
2265    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
2266    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="31"/>
2267    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2268    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2269    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2270    <field name="Primitive ID Override Attribute Select" start="32" end="36" type="uint"/>
2271    <field name="Vertex URB Entry Read Offset" start="37" end="42" type="uint"/>
2272    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
2273    <field name="Primitive ID Override Component X" start="48" end="48" type="bool"/>
2274    <field name="Primitive ID Override Component Y" start="49" end="49" type="bool"/>
2275    <field name="Primitive ID Override Component Z" start="50" end="50" type="bool"/>
2276    <field name="Primitive ID Override Component W" start="51" end="51" type="bool"/>
2277    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
2278      <value name="UPPERLEFT" value="0"/>
2279      <value name="LOWERLEFT" value="1"/>
2280    </field>
2281    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
2282    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
2283    <field name="Force Vertex URB Entry Read Offset" start="60" end="60" type="bool"/>
2284    <field name="Force Vertex URB Entry Read Length" start="61" end="61" type="bool"/>
2285    <field name="Point Sprite Texture Coordinate Enable" start="64" end="95" type="uint"/>
2286    <field name="Constant Interpolation Enable" start="96" end="127" type="uint"/>
2287    <group count="32" start="128" size="2">
2288      <field name="Attribute Active Component Format" start="0" end="1" type="uint" prefix="ACTIVE_COMPONENT">
2289        <value name="DISABLED" value="0"/>
2290        <value name="XY" value="1"/>
2291        <value name="XYZ" value="2"/>
2292        <value name="XYZW" value="3"/>
2293      </field>
2294    </group>
2295  </instruction>
2296
2297  <instruction name="3DSTATE_SBE_SWIZ" bias="2" length="11" engine="render">
2298    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
2299    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="81"/>
2300    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2301    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2302    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2303    <group count="16" start="32" size="16">
2304      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
2305    </group>
2306    <group count="16" start="288" size="4">
2307      <field name="Attribute Wrap Shortest Enables" start="0" end="3" type="uint"/>
2308    </group>
2309  </instruction>
2310
2311  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2" engine="render">
2312    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2313    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
2314    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2315    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2316    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2317    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
2318  </instruction>
2319
2320  <instruction name="3DSTATE_SF" bias="2" length="4" engine="render">
2321    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2322    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
2323    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2324    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2325    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2326    <field name="Viewport Transform Enable" start="33" end="33" type="bool"/>
2327    <field name="Statistics Enable" start="42" end="42" type="bool"/>
2328    <field name="Legacy Global Depth Bias Enable" start="43" end="43" type="bool"/>
2329    <field name="Line Width" start="44" end="61" type="u11.7"/>
2330    <field name="Line End Cap Antialiasing Region Width" start="80" end="81" type="uint">
2331      <value name="0.5 pixels" value="0"/>
2332      <value name="1.0 pixels" value="1"/>
2333      <value name="2.0 pixels" value="2"/>
2334      <value name="4.0 pixels" value="3"/>
2335    </field>
2336    <field name="Point Width" start="96" end="106" type="u8.3"/>
2337    <field name="Point Width Source" start="107" end="107" type="uint">
2338      <value name="Vertex" value="0"/>
2339      <value name="State" value="1"/>
2340    </field>
2341    <field name="Vertex Sub Pixel Precision Select" start="108" end="108" type="uint">
2342      <value name="8 Bit" value="0"/>
2343      <value name="4 Bit" value="1"/>
2344    </field>
2345    <field name="Smooth Point Enable" start="109" end="109" type="bool"/>
2346    <field name="AA Line Distance Mode" start="110" end="110" type="uint">
2347      <value name="AALINEDISTANCE_TRUE" value="1"/>
2348    </field>
2349    <field name="Triangle Fan Provoking Vertex Select" start="121" end="122" type="uint"/>
2350    <field name="Line Strip/List Provoking Vertex Select" start="123" end="124" type="uint"/>
2351    <field name="Triangle Strip/List Provoking Vertex Select" start="125" end="126" type="uint"/>
2352    <field name="Last Pixel Enable" start="127" end="127" type="bool"/>
2353  </instruction>
2354
2355  <instruction name="3DSTATE_SO_BUFFER" bias="2" length="8" engine="render">
2356    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2357    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
2358    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2359    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2360    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2361    <field name="Stream Output Buffer Offset Address Enable" start="52" end="52" type="bool"/>
2362    <field name="Stream Offset Write Enable" start="53" end="53" type="bool"/>
2363    <field name="MOCS" start="54" end="60" type="uint"/>
2364    <field name="SO Buffer Index" start="61" end="62" type="uint"/>
2365    <field name="SO Buffer Enable" start="63" end="63" type="bool"/>
2366    <field name="Surface Base Address" start="66" end="111" type="address"/>
2367    <field name="Surface Size" start="128" end="157" type="uint"/>
2368    <field name="Stream Output Buffer Offset Address" start="162" end="207" type="address"/>
2369    <field name="Stream Offset" start="224" end="255" type="uint"/>
2370  </instruction>
2371
2372  <instruction name="3DSTATE_SO_DECL_LIST" bias="2" engine="render">
2373    <field name="DWord Length" start="0" end="8" type="uint"/>
2374    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
2375    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2376    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2377    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2378    <field name="Stream to Buffer Selects [0]" start="32" end="35" type="uint"/>
2379    <field name="Stream to Buffer Selects [1]" start="36" end="39" type="uint"/>
2380    <field name="Stream to Buffer Selects [2]" start="40" end="43" type="uint"/>
2381    <field name="Stream to Buffer Selects [3]" start="44" end="47" type="uint"/>
2382    <field name="Num Entries [0]" start="64" end="71" type="uint"/>
2383    <field name="Num Entries [1]" start="72" end="79" type="uint"/>
2384    <field name="Num Entries [2]" start="80" end="87" type="uint"/>
2385    <field name="Num Entries [3]" start="88" end="95" type="uint"/>
2386    <group count="0" start="96" size="64">
2387      <field name="Entry" start="0" end="63" type="SO_DECL_ENTRY"/>
2388    </group>
2389  </instruction>
2390
2391  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="5" engine="render">
2392    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2393    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
2394    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2395    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2396    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2397    <field name="Surface Pitch" start="32" end="48" type="uint"/>
2398    <field name="MOCS" start="54" end="60" type="uint"/>
2399    <field name="Stencil Buffer Enable" start="63" end="63" type="bool"/>
2400    <field name="Surface Base Address" start="64" end="127" type="address"/>
2401    <field name="Surface QPitch" start="128" end="142" type="uint"/>
2402  </instruction>
2403
2404  <instruction name="3DSTATE_STREAMOUT" bias="2" length="5" engine="render">
2405    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2406    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="30"/>
2407    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2408    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2409    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2410    <field name="Force Rendering" start="55" end="56" type="uint">
2411      <value name="Resreved" value="1"/>
2412      <value name="Force_Off" value="2"/>
2413      <value name="Force_on" value="3"/>
2414    </field>
2415    <field name="SO Statistics Enable" start="57" end="57" type="bool"/>
2416    <field name="Reorder Mode" start="58" end="58" type="uint">
2417      <value name="LEADING" value="0"/>
2418      <value name="TRAILING" value="1"/>
2419    </field>
2420    <field name="Render Stream Select" start="59" end="60" type="uint"/>
2421    <field name="Rendering Disable" start="62" end="62" type="bool"/>
2422    <field name="SO Function Enable" start="63" end="63" type="bool"/>
2423    <field name="Stream 0 Vertex Read Length" start="64" end="68" type="uint"/>
2424    <field name="Stream 0 Vertex Read Offset" start="69" end="69" type="uint"/>
2425    <field name="Stream 1 Vertex Read Length" start="72" end="76" type="uint"/>
2426    <field name="Stream 1 Vertex Read Offset" start="77" end="77" type="uint"/>
2427    <field name="Stream 2 Vertex Read Length" start="80" end="84" type="uint"/>
2428    <field name="Stream 2 Vertex Read Offset" start="85" end="85" type="uint"/>
2429    <field name="Stream 3 Vertex Read Length" start="88" end="92" type="uint"/>
2430    <field name="Stream 3 Vertex Read Offset" start="93" end="93" type="uint"/>
2431    <field name="Buffer 0 Surface Pitch" start="96" end="107" type="uint"/>
2432    <field name="Buffer 1 Surface Pitch" start="112" end="123" type="uint"/>
2433    <field name="Buffer 2 Surface Pitch" start="128" end="139" type="uint"/>
2434    <field name="Buffer 3 Surface Pitch" start="144" end="155" type="uint"/>
2435  </instruction>
2436
2437  <instruction name="3DSTATE_TE" bias="2" length="4" engine="render">
2438    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2439    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
2440    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2441    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2442    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2443    <field name="TE Enable" start="32" end="32" type="bool"/>
2444    <field name="TE Mode" start="33" end="34" type="uint">
2445      <value name="HW_TESS" value="0"/>
2446    </field>
2447    <field name="TE Domain" start="36" end="37" type="uint">
2448      <value name="QUAD" value="0"/>
2449      <value name="TRI" value="1"/>
2450      <value name="ISOLINE" value="2"/>
2451    </field>
2452    <field name="Output Topology" start="40" end="41" type="uint" prefix="OUTPUT">
2453      <value name="POINT" value="0"/>
2454      <value name="LINE" value="1"/>
2455      <value name="TRI_CW" value="2"/>
2456      <value name="TRI_CCW" value="3"/>
2457    </field>
2458    <field name="Partitioning" start="44" end="45" type="uint">
2459      <value name="INTEGER" value="0"/>
2460      <value name="ODD_FRACTIONAL" value="1"/>
2461      <value name="EVEN_FRACTIONAL" value="2"/>
2462    </field>
2463    <field name="Maximum Tessellation Factor Odd" start="64" end="95" type="float"/>
2464    <field name="Maximum Tessellation Factor Not Odd" start="96" end="127" type="float"/>
2465  </instruction>
2466
2467  <instruction name="3DSTATE_URB_CLEAR" bias="2" length="2" engine="render">
2468    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2469    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
2470    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2471    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2472    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2473    <field name="URB Address" start="32" end="46" type="offset"/>
2474    <field name="URB Clear Length" start="48" end="61" type="uint"/>
2475  </instruction>
2476
2477  <instruction name="3DSTATE_URB_DS" bias="2" length="2" engine="render">
2478    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2479    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="50"/>
2480    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2481    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2482    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2483    <field name="DS Number of URB Entries" start="32" end="47" type="uint"/>
2484    <field name="DS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2485    <field name="DS URB Starting Address" start="57" end="63" type="uint"/>
2486  </instruction>
2487
2488  <instruction name="3DSTATE_URB_GS" bias="2" length="2" engine="render">
2489    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2490    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="51"/>
2491    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2492    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2493    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2494    <field name="GS Number of URB Entries" start="32" end="47" type="uint"/>
2495    <field name="GS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2496    <field name="GS URB Starting Address" start="57" end="63" type="uint"/>
2497  </instruction>
2498
2499  <instruction name="3DSTATE_URB_HS" bias="2" length="2" engine="render">
2500    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2501    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="49"/>
2502    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2503    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2504    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2505    <field name="HS Number of URB Entries" start="32" end="47" type="uint"/>
2506    <field name="HS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2507    <field name="HS URB Starting Address" start="57" end="63" type="uint"/>
2508  </instruction>
2509
2510  <instruction name="3DSTATE_URB_VS" bias="2" length="2" engine="render">
2511    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2512    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="48"/>
2513    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2514    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2515    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2516    <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
2517    <field name="VS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2518    <field name="VS URB Starting Address" start="57" end="63" type="uint"/>
2519  </instruction>
2520
2521  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2" engine="render">
2522    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2523    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
2524    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2525    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2526    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2527    <group count="0" start="32" size="128">
2528      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
2529    </group>
2530  </instruction>
2531
2532  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2" engine="render">
2533    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2534    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
2535    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2536    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2537    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2538    <group count="0" start="32" size="64">
2539      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
2540    </group>
2541  </instruction>
2542
2543  <instruction name="3DSTATE_VF" bias="2" length="2" engine="render">
2544    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2545    <field name="Indexed Draw Cut Index Enable" start="8" end="8" type="bool"/>
2546    <field name="Component Packing Enable" start="9" end="9" type="bool"/>
2547    <field name="Sequential Draw Cut Index Enable" start="10" end="10" type="bool"/>
2548    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
2549    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2550    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2551    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2552    <field name="Cut Index" start="32" end="63" type="uint"/>
2553  </instruction>
2554
2555  <instruction name="3DSTATE_VF_COMPONENT_PACKING" bias="2" length="5" engine="render">
2556    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2557    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="85"/>
2558    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2559    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2560    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2561    <field name="Vertex Element 00 Enables" start="32" end="35" type="uint"/>
2562    <field name="Vertex Element 01 Enables" start="36" end="39" type="uint"/>
2563    <field name="Vertex Element 02 Enables" start="40" end="43" type="uint"/>
2564    <field name="Vertex Element 03 Enables" start="44" end="47" type="uint"/>
2565    <field name="Vertex Element 04 Enables" start="48" end="51" type="uint"/>
2566    <field name="Vertex Element 05 Enables" start="52" end="55" type="uint"/>
2567    <field name="Vertex Element 06 Enables" start="56" end="59" type="uint"/>
2568    <field name="Vertex Element 07 Enables" start="60" end="63" type="uint"/>
2569    <field name="Vertex Element 08 Enables" start="64" end="67" type="uint"/>
2570    <field name="Vertex Element 09 Enables" start="68" end="71" type="uint"/>
2571    <field name="Vertex Element 10 Enables" start="72" end="75" type="uint"/>
2572    <field name="Vertex Element 11 Enables" start="76" end="79" type="uint"/>
2573    <field name="Vertex Element 12 Enables" start="80" end="83" type="uint"/>
2574    <field name="Vertex Element 13 Enables" start="84" end="87" type="uint"/>
2575    <field name="Vertex Element 14 Enables" start="88" end="91" type="uint"/>
2576    <field name="Vertex Element 15 Enables" start="92" end="95" type="uint"/>
2577    <field name="Vertex Element 16 Enables" start="96" end="99" type="uint"/>
2578    <field name="Vertex Element 17 Enables" start="100" end="103" type="uint"/>
2579    <field name="Vertex Element 18 Enables" start="104" end="107" type="uint"/>
2580    <field name="Vertex Element 19 Enables" start="108" end="111" type="uint"/>
2581    <field name="Vertex Element 20 Enables" start="112" end="115" type="uint"/>
2582    <field name="Vertex Element 21 Enables" start="116" end="119" type="uint"/>
2583    <field name="Vertex Element 22 Enables" start="120" end="123" type="uint"/>
2584    <field name="Vertex Element 23 Enables" start="124" end="127" type="uint"/>
2585    <field name="Vertex Element 24 Enables" start="128" end="131" type="uint"/>
2586    <field name="Vertex Element 25 Enables" start="132" end="135" type="uint"/>
2587    <field name="Vertex Element 26 Enables" start="136" end="139" type="uint"/>
2588    <field name="Vertex Element 27 Enables" start="140" end="143" type="uint"/>
2589    <field name="Vertex Element 28 Enables" start="144" end="147" type="uint"/>
2590    <field name="Vertex Element 29 Enables" start="148" end="151" type="uint"/>
2591    <field name="Vertex Element 30 Enables" start="152" end="155" type="uint"/>
2592    <field name="Vertex Element 31 Enables" start="156" end="159" type="uint"/>
2593  </instruction>
2594
2595  <instruction name="3DSTATE_VF_INSTANCING" bias="2" length="3" engine="render">
2596    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2597    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="73"/>
2598    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2599    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2600    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2601    <field name="Vertex Element Index" start="32" end="37" type="uint"/>
2602    <field name="Instancing Enable" start="40" end="40" type="bool"/>
2603    <field name="Instance Data Step Rate" start="64" end="95" type="uint"/>
2604  </instruction>
2605
2606  <instruction name="3DSTATE_VF_SGVS" bias="2" length="2" engine="render">
2607    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2608    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="74"/>
2609    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2610    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2611    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2612    <field name="VertexID Element Offset" start="32" end="37" type="uint"/>
2613    <field name="VertexID Component Number" start="45" end="46" type="uint">
2614      <value name="COMP_0" value="0"/>
2615      <value name="COMP_1" value="1"/>
2616      <value name="COMP_2" value="2"/>
2617      <value name="COMP_3" value="3"/>
2618    </field>
2619    <field name="VertexID Enable" start="47" end="47" type="bool"/>
2620    <field name="InstanceID Element Offset" start="48" end="53" type="uint"/>
2621    <field name="InstanceID Component Number" start="61" end="62" type="uint">
2622      <value name="COMP_0" value="0"/>
2623      <value name="COMP_1" value="1"/>
2624      <value name="COMP_2" value="2"/>
2625      <value name="COMP_3" value="3"/>
2626    </field>
2627    <field name="InstanceID Enable" start="63" end="63" type="bool"/>
2628  </instruction>
2629
2630  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1" engine="render">
2631    <field name="Statistics Enable" start="0" end="0" type="bool"/>
2632    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
2633    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2634    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
2635    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2636  </instruction>
2637
2638  <instruction name="3DSTATE_VF_TOPOLOGY" bias="2" length="2" engine="render">
2639    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2640    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="75"/>
2641    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2642    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2643    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2644    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
2645  </instruction>
2646
2647  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2" engine="render">
2648    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2649    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="35"/>
2650    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2651    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2652    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2653    <field name="CC Viewport Pointer" start="37" end="63" type="offset"/>
2654  </instruction>
2655
2656  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP" bias="2" length="2" engine="render">
2657    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2658    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="33"/>
2659    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2660    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2661    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2662    <field name="SF Clip Viewport Pointer" start="38" end="63" type="offset"/>
2663  </instruction>
2664
2665  <instruction name="3DSTATE_VS" bias="2" length="9" engine="render">
2666    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
2667    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
2668    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2669    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2670    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2671    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
2672    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
2673    <field name="Accesses UAV" start="108" end="108" type="bool"/>
2674    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
2675    <field name="Floating Point Mode" start="112" end="112" type="uint">
2676      <value name="IEEE-754" value="0"/>
2677      <value name="Alternate" value="1"/>
2678    </field>
2679    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
2680      <value name="High" value="1"/>
2681    </field>
2682    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
2683    <field name="Sampler Count" start="123" end="125" type="uint">
2684      <value name="No Samplers" value="0"/>
2685      <value name="1-4 Samplers" value="1"/>
2686      <value name="5-8 Samplers" value="2"/>
2687      <value name="9-12 Samplers" value="3"/>
2688      <value name="13-16 Samplers" value="4"/>
2689    </field>
2690    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
2691    <field name="Single Vertex Dispatch" start="127" end="127" type="bool"/>
2692    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
2693    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
2694    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
2695    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
2696    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
2697    <field name="Enable" start="224" end="224" type="bool"/>
2698    <field name="Vertex Cache Disable" start="225" end="225" type="bool"/>
2699    <field name="SIMD8 Dispatch Enable" start="226" end="226" type="bool"/>
2700    <field name="Statistics Enable" start="234" end="234" type="bool"/>
2701    <field name="Maximum Number of Threads" start="247" end="255" type="uint"/>
2702    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
2703    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
2704    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
2705    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
2706  </instruction>
2707
2708  <instruction name="3DSTATE_WM" bias="2" length="2" engine="render">
2709    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2710    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
2711    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2712    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2713    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2714    <field name="Force Kill Pixel Enable" start="32" end="33" type="uint">
2715      <value name="ForceOff" value="1"/>
2716      <value name="ForceON" value="2"/>
2717    </field>
2718    <field name="Point Rasterization Rule" start="34" end="34" type="uint">
2719      <value name="RASTRULE_UPPER_LEFT" value="0"/>
2720      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
2721    </field>
2722    <field name="Line Stipple Enable" start="35" end="35" type="bool"/>
2723    <field name="Polygon Stipple Enable" start="36" end="36" type="bool"/>
2724    <field name="Line Antialiasing Region Width" start="38" end="39" type="uint">
2725      <value name="0.5 pixels" value="0"/>
2726      <value name="1.0 pixels" value="1"/>
2727      <value name="2.0 pixels" value="2"/>
2728      <value name="4.0 pixels" value="3"/>
2729    </field>
2730    <field name="Line End Cap Antialiasing Region Width" start="40" end="41" type="uint">
2731      <value name="0.5 pixels" value="0"/>
2732      <value name="1.0 pixels" value="1"/>
2733      <value name="2.0 pixels" value="2"/>
2734      <value name="4.0 pixels" value="3"/>
2735    </field>
2736    <field name="Barycentric Interpolation Mode" start="43" end="48" type="uint">
2737      <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
2738      <value name="BIM_PERSPECTIVE_CENTROID" value="2"/>
2739      <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
2740      <value name="BIM_LINEAR_PIXEL" value="8"/>
2741      <value name="BIM_LINEAR_CENTROID" value="16"/>
2742      <value name="BIM_LINEAR_SAMPLE" value="32"/>
2743    </field>
2744    <field name="Position ZW Interpolation Mode" start="49" end="50" type="uint">
2745      <value name="INTERP_PIXEL" value="0"/>
2746      <value name="INTERP_CENTROID" value="2"/>
2747      <value name="INTERP_SAMPLE" value="3"/>
2748    </field>
2749    <field name="Force Thread Dispatch Enable" start="51" end="52" type="uint">
2750      <value name="ForceOff" value="1"/>
2751      <value name="ForceON" value="2"/>
2752    </field>
2753    <field name="Early Depth/Stencil Control" start="53" end="54" type="uint">
2754      <value name="EDSC_NORMAL" value="0"/>
2755      <value name="EDSC_PSEXEC" value="1"/>
2756      <value name="EDSC_PREPS" value="2"/>
2757    </field>
2758    <field name="Legacy Diamond Line Rasterization" start="58" end="58" type="bool"/>
2759    <field name="Legacy Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
2760    <field name="Legacy Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
2761    <field name="Legacy Depth Buffer Clear Enable" start="62" end="62" type="bool"/>
2762    <field name="Statistics Enable" start="63" end="63" type="bool"/>
2763  </instruction>
2764
2765  <instruction name="3DSTATE_WM_CHROMAKEY" bias="2" length="2" engine="render">
2766    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2767    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="76"/>
2768    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2769    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2770    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2771    <field name="ChromaKey Kill Enable" start="63" end="63" type="bool"/>
2772  </instruction>
2773
2774  <instruction name="3DSTATE_WM_DEPTH_STENCIL" bias="2" length="4" engine="render">
2775    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2776    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="78"/>
2777    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2778    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2779    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2780    <field name="Depth Buffer Write Enable" start="32" end="32" type="bool"/>
2781    <field name="Depth Test Enable" start="33" end="33" type="bool"/>
2782    <field name="Stencil Buffer Write Enable" start="34" end="34" type="bool"/>
2783    <field name="Stencil Test Enable" start="35" end="35" type="bool"/>
2784    <field name="Double Sided Stencil Enable" start="36" end="36" type="bool"/>
2785    <field name="Depth Test Function" start="37" end="39" type="3D_Compare_Function"/>
2786    <field name="Stencil Test Function" start="40" end="42" type="3D_Compare_Function"/>
2787    <field name="Backface Stencil Pass Depth Pass Op" start="43" end="45" type="3D_Stencil_Operation"/>
2788    <field name="Backface Stencil Pass Depth Fail Op" start="46" end="48" type="3D_Stencil_Operation"/>
2789    <field name="Backface Stencil Fail Op" start="49" end="51" type="3D_Stencil_Operation"/>
2790    <field name="Backface Stencil Test Function" start="52" end="54" type="3D_Compare_Function"/>
2791    <field name="Stencil Pass Depth Pass Op" start="55" end="57" type="3D_Stencil_Operation"/>
2792    <field name="Stencil Pass Depth Fail Op" start="58" end="60" type="3D_Stencil_Operation"/>
2793    <field name="Stencil Fail Op" start="61" end="63" type="3D_Stencil_Operation"/>
2794    <field name="Backface Stencil Write Mask" start="64" end="71" type="uint"/>
2795    <field name="Backface Stencil Test Mask" start="72" end="79" type="uint"/>
2796    <field name="Stencil Write Mask" start="80" end="87" type="uint"/>
2797    <field name="Stencil Test Mask" start="88" end="95" type="uint"/>
2798    <field name="Backface Stencil Reference Value" start="96" end="103" type="uint"/>
2799    <field name="Stencil Reference Value" start="104" end="111" type="uint"/>
2800  </instruction>
2801
2802  <instruction name="3DSTATE_WM_HZ_OP" bias="2" length="5" engine="render">
2803    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2804    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="82"/>
2805    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2806    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2807    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2808    <field name="Number of Multisamples" start="45" end="47" type="uint"/>
2809    <field name="Stencil Clear Value" start="48" end="55" type="uint"/>
2810    <field name="Full Surface Depth and Stencil Clear" start="57" end="57" type="bool"/>
2811    <field name="Pixel Position Offset Enable" start="58" end="58" type="bool"/>
2812    <field name="Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
2813    <field name="Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
2814    <field name="Scissor Rectangle Enable" start="61" end="61" type="bool"/>
2815    <field name="Depth Buffer Clear Enable" start="62" end="62" type="bool"/>
2816    <field name="Stencil Buffer Clear Enable" start="63" end="63" type="bool"/>
2817    <field name="Clear Rectangle X Min" start="64" end="79" type="uint"/>
2818    <field name="Clear Rectangle Y Min" start="80" end="95" type="uint"/>
2819    <field name="Clear Rectangle X Max" start="96" end="111" type="uint"/>
2820    <field name="Clear Rectangle Y Max" start="112" end="127" type="uint"/>
2821    <field name="Sample Mask" start="128" end="143" type="uint"/>
2822  </instruction>
2823
2824  <instruction name="GPGPU_CSR_BASE_ADDRESS" bias="2" length="3" engine="render">
2825    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2826    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
2827    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2828    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
2829    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2830    <field name="GPGPU CSR Base Address" start="44" end="95" type="address"/>
2831  </instruction>
2832
2833  <instruction name="GPGPU_WALKER" bias="2" length="15" engine="render">
2834    <field name="DWord Length" start="0" end="7" type="uint" default="13"/>
2835    <field name="Predicate Enable" start="8" end="8" type="bool"/>
2836    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
2837    <field name="SubOpcode" start="16" end="23" type="uint" default="5"/>
2838    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
2839    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2840    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2841    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
2842    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
2843    <field name="Indirect Data Start Address" start="102" end="127" type="offset"/>
2844    <field name="Thread Width Counter Maximum" start="128" end="133" type="uint"/>
2845    <field name="Thread Height Counter Maximum" start="136" end="141" type="uint"/>
2846    <field name="Thread Depth Counter Maximum" start="144" end="149" type="uint"/>
2847    <field name="SIMD Size" start="158" end="159" type="uint">
2848      <value name="SIMD8" value="0"/>
2849      <value name="SIMD16" value="1"/>
2850      <value name="SIMD32" value="2"/>
2851    </field>
2852    <field name="Thread Group ID Starting X" start="160" end="191" type="uint"/>
2853    <field name="Thread Group ID X Dimension" start="224" end="255" type="uint"/>
2854    <field name="Thread Group ID Starting Y" start="256" end="287" type="uint"/>
2855    <field name="Thread Group ID Y Dimension" start="320" end="351" type="uint"/>
2856    <field name="Thread Group ID Starting/Resume Z" start="352" end="383" type="uint"/>
2857    <field name="Thread Group ID Z Dimension" start="384" end="415" type="uint"/>
2858    <field name="Right Execution Mask" start="416" end="447" type="uint"/>
2859    <field name="Bottom Execution Mask" start="448" end="479" type="uint"/>
2860  </instruction>
2861
2862  <instruction name="HCP_BSD_OBJECT" bias="2" length="3" engine="video">
2863    <field name="DWord Length" start="0" end="11" type="uint"/>
2864    <field name="SubOpcode" start="16" end="22" type="uint" default="32"/>
2865    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
2866    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2867    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2868    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
2869    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
2870  </instruction>
2871
2872  <instruction name="HCP_FQM_STATE" bias="2" length="34" engine="video">
2873    <field name="DWord Length" start="0" end="11" type="uint"/>
2874    <field name="SubOpcode" start="16" end="22" type="uint" default="5"/>
2875    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
2876    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2877    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2878    <field name="Intra/Inter" start="32" end="32" type="uint">
2879      <value name="Intra" value="0"/>
2880      <value name="Inter" value="1"/>
2881    </field>
2882    <field name="SizeID" start="33" end="34" type="uint">
2883      <value name="4x4" value="0"/>
2884      <value name="8x8" value="1"/>
2885      <value name="16x16" value="2"/>
2886      <value name="32x32" value="3"/>
2887    </field>
2888    <field name="Color Component" start="35" end="36" type="uint">
2889      <value name="Luma" value="0"/>
2890      <value name="Chroma Cb" value="1"/>
2891      <value name="Chroma Cr" value="2"/>
2892    </field>
2893    <field name="FQM DC Value" start="48" end="63" type="uint"/>
2894    <group count="64" start="64" size="8">
2895      <field name="Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
2896    </group>
2897  </instruction>
2898
2899  <instruction name="HCP_IND_OBJ_BASE_ADDR_STATE" bias="2" length="14" engine="video">
2900    <field name="DWord Length" start="0" end="11" type="uint"/>
2901    <field name="SubOpcode" start="16" end="22" type="uint" default="3"/>
2902    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
2903    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2904    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2905    <field name="HCP Indirect Bitstream Object - Base Address" start="32" end="95" type="address"/>
2906    <field name="HCP Indirect Bitstream Object - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
2907    <field name="HCP Indirect Bitstream Object - Access Upper Bound" start="128" end="191" type="address"/>
2908    <field name="HCP Indirect CU Object - Base Address" start="192" end="255" type="address"/>
2909    <field name="HCP Indirect CU Object - Memory Address Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
2910    <field name="HCP PAK-BSE Object - Base Address" start="288" end="351" type="address"/>
2911    <field name="HCP PAK-BSE Object - Memory Address Attributes" start="352" end="383" type="MEMORYADDRESSATTRIBUTES"/>
2912    <field name="HCP PAK-BSE Object - Access Upper Bound" start="384" end="447" type="address"/>
2913  </instruction>
2914
2915  <instruction name="HCP_PAK_INSERT_OBJECT" bias="2" engine="video">
2916    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
2917    <field name="SubOpcode" start="16" end="22" type="uint" default="34"/>
2918    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
2919    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2920    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2921    <field name="End of Slice" start="33" end="33" type="bool"/>
2922    <field name="Last Header" start="34" end="34" type="bool"/>
2923    <field name="Emulation Byte Bits Insert Enable" start="35" end="35" type="bool"/>
2924    <field name="Skip Emulation Byte Count" start="36" end="39" type="uint"/>
2925    <field name="Data Bits In Last DW" start="40" end="45" type="uint"/>
2926    <field name="Header Length Excluded From Size" start="47" end="47" type="uint">
2927      <value name="ACCUMULATE" value="0"/>
2928      <value name="NO_ACCUMULATION" value="1"/>
2929    </field>
2930    <field name="Data Byte Offset" start="48" end="49" type="uint"/>
2931    <field name="Indirect Payload Enable" start="63" end="63" type="bool"/>
2932    <group count="0" start="64" size="128">
2933      <field name="Indirect Payload" start="0" end="127" type="HCP_PAK_INSERT_OBJECT_INDIRECT_PAYLOAD"/>
2934      <field name="Inline PayLoad" start="0" end="31" type="uint"/>
2935    </group>
2936  </instruction>
2937
2938  <instruction name="HCP_PAK_OBJECT" bias="2" length="2" engine="video">
2939    <field name="DWord Length" start="0" end="11" type="uint"/>
2940    <field name="SubOpcode" start="16" end="22" type="uint" default="33"/>
2941    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
2942    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2943    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2944    <field name="Split Level 2 Part 0" start="32" end="35" type="uint"/>
2945    <field name="Split Level 2 Part 1" start="36" end="39" type="uint"/>
2946    <field name="Split Level 2 Part 2" start="40" end="43" type="uint"/>
2947    <field name="Split Level 2 Part 3" start="44" end="47" type="uint"/>
2948    <field name="Split Level 1" start="48" end="51" type="uint"/>
2949    <field name="Split Level 0" start="52" end="52" type="uint"/>
2950    <field name="CU Count" start="56" end="61" type="uint"/>
2951    <field name="Last LCU of Tile" start="62" end="62" type="bool"/>
2952    <field name="Last LCU of Slice" start="63" end="63" type="bool"/>
2953    <field name="Current LCU X Address" start="64" end="79" type="uint"/>
2954    <field name="Current LCU Y Address" start="80" end="95" type="uint"/>
2955  </instruction>
2956
2957  <instruction name="HCP_PIC_STATE" bias="2" length="2" engine="video">
2958    <field name="DWord Length" start="0" end="11" type="uint"/>
2959    <field name="SubOpcode" start="16" end="22" type="uint" default="16"/>
2960    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
2961    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
2962    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2963    <field name="Frame Width In Minimum Coding Block Size" start="32" end="41" type="uint"/>
2964    <field name="PAK Transform Skip Enable" start="47" end="47" type="bool"/>
2965    <field name="Frame Height In Minimum Coding Block Size" start="48" end="57" type="uint"/>
2966    <field name="Min CU Size" start="64" end="65" type="uint" prefix="LCU">
2967      <value name="64x64" value="3"/>
2968      <value name="32x32" value="2"/>
2969      <value name="16x16" value="1"/>
2970      <value name="8x8" value="0"/>
2971    </field>
2972    <field name="LCU Size" start="66" end="67" type="uint" prefix="LCU">
2973      <value name="64x64" value="3"/>
2974      <value name="32x32" value="2"/>
2975      <value name="16x16" value="1"/>
2976      <value name="Illegal/reserved" value="0"/>
2977    </field>
2978    <field name="Min TU Size" start="68" end="69" type="uint" prefix="TU">
2979      <value name="32x32" value="3"/>
2980      <value name="16x16" value="2"/>
2981      <value name="8x8" value="1"/>
2982      <value name="4x4" value="0"/>
2983    </field>
2984    <field name="Max TU Size" start="70" end="71" type="uint" prefix="TU">
2985      <value name="32x32" value="3"/>
2986      <value name="16x16" value="2"/>
2987      <value name="8x8" value="1"/>
2988      <value name="4x4" value="0"/>
2989    </field>
2990    <field name="Min PCM Size" start="72" end="73" type="uint" prefix="PCM">
2991      <value name="32x32" value="2"/>
2992      <value name="16x16" value="1"/>
2993      <value name="8x8" value="0"/>
2994    </field>
2995    <field name="Max PCM Size" start="74" end="75" type="uint" prefix="PCM">
2996      <value name="32x32" value="2"/>
2997      <value name="16x16" value="1"/>
2998      <value name="8x8" value="0"/>
2999    </field>
3000    <field name="Collocated Picture Is I Slice" start="96" end="96" type="bool"/>
3001    <field name="Current Picture Is I Slice" start="97" end="97" type="bool"/>
3002    <field name="CABAC Zero Word Insertion Test Enable" start="98" end="98" type="bool"/>
3003    <field name="Sample Adaptive Offset Enable" start="131" end="131" type="bool"/>
3004    <field name="PCM Enable" start="132" end="132" type="bool"/>
3005    <field name="CU QP Delta Enable" start="133" end="133" type="bool"/>
3006    <field name="Max DQP Depth" start="134" end="135" type="uint"/>
3007    <field name="PCM Loop Filter Disable" start="136" end="136" type="bool"/>
3008    <field name="Constrained Intra Prediction" start="137" end="137" type="bool"/>
3009    <field name="Log2 Parallel Merge Level" start="138" end="140" type="uint"/>
3010    <field name="Sign Data Hiding" start="141" end="141" type="bool"/>
3011    <field name="Loop Filter Enable" start="143" end="143" type="bool"/>
3012    <field name="Entropy Coding Sync Enable" start="144" end="144" type="bool"/>
3013    <field name="Tiling Enable" start="145" end="145" type="bool"/>
3014    <field name="Weighted BiPredication Enable" start="146" end="146" type="bool"/>
3015    <field name="Weighted Predication Enable" start="147" end="147" type="bool"/>
3016    <field name="Field Pic" start="148" end="148" type="bool"/>
3017    <field name="Top Field" start="149" end="149" type="bool"/>
3018    <field name="Transform Skip Enable" start="150" end="150" type="bool"/>
3019    <field name="AMP Enable" start="151" end="151" type="bool"/>
3020    <field name="Transquant Bypass Enable" start="153" end="153" type="bool"/>
3021    <field name="Strong Intra Smoothing Enable" start="154" end="154" type="bool"/>
3022    <field name="CU Packet Structure" start="155" end="155" type="uint">
3023      <value name="VME" value="0"/>
3024      <value name="ExtEnc" value="1"/>
3025    </field>
3026    <field name="Picture Cb QP Offset" start="160" end="164" type="int"/>
3027    <field name="Picture Cr QP Offset" start="165" end="169" type="int"/>
3028    <field name="Intra Max Transform Hierarchy Depth" start="170" end="172" type="uint"/>
3029    <field name="Inter Max Transform Hierarchy Depth" start="173" end="175" type="uint"/>
3030    <field name="Chroma PCM Sample Bit Depth" start="176" end="179" type="uint"/>
3031    <field name="Luma PCM Sample Bit Depth" start="180" end="183" type="uint"/>
3032    <field name="Chroma Bit Depth" start="184" end="186" type="uint">
3033      <value name="8-bit" value="0"/>
3034      <value name="9-bit" value="1"/>
3035      <value name="10-bit" value="2"/>
3036      <value name="11-bit" value="3"/>
3037      <value name="12-bit" value="4"/>
3038    </field>
3039    <field name="Luma Bit Depth" start="187" end="189" type="uint">
3040      <value name="8-bit" value="0"/>
3041      <value name="9-bit" value="1"/>
3042      <value name="10-bit" value="2"/>
3043      <value name="11-bit" value="3"/>
3044      <value name="12-bit" value="4"/>
3045    </field>
3046    <field name="LCU Max Bit Size Allowed" start="192" end="207" type="uint"/>
3047    <field name="Non First Pass" start="208" end="208" type="bool"/>
3048    <field name="LCU Max Size Report" start="216" end="216" type="bool"/>
3049    <field name="Frame Bitrate Max Report" start="217" end="217" type="bool"/>
3050    <field name="Frame Bitrate Min Report" start="218" end="218" type="bool"/>
3051    <field name="Load Bitstream Pointer Per Slice" start="221" end="221" type="bool"/>
3052    <field name="Frame Bitrate Max" start="224" end="237" type="uint"/>
3053    <field name="Frame Bitrate Max Unit" start="255" end="255" type="uint"/>
3054    <field name="Frame Bitrate Min" start="256" end="269" type="uint"/>
3055    <field name="Frame Bitrate Min Unit" start="287" end="287" type="uint"/>
3056    <field name="Frame Bitrate Min Delta" start="288" end="302" type="uint"/>
3057    <field name="Frame Bitrate Max Delta" start="304" end="318" type="uint"/>
3058    <field name="Frame Delta QP Max" start="320" end="383" type="FRAMEDELTAQP"/>
3059    <field name="Frame Delta QP Min" start="384" end="447" type="FRAMEDELTAQP"/>
3060    <field name="Frame Delta QP Max Range" start="448" end="511" type="FRAMEDELTAQPRANGE"/>
3061    <field name="Frame Delta QP Min Range" start="512" end="575" type="FRAMEDELTAQPRANGE"/>
3062    <field name="Minimum Frame Size" start="576" end="591" type="uint"/>
3063    <field name="Minimum Frame Size Units" start="606" end="607" type="uint" prefix="HCP_MFSU">
3064      <value name="4Kb" value="0"/>
3065      <value name="16Kb" value="1"/>
3066    </field>
3067  </instruction>
3068
3069  <instruction name="HCP_PIPE_BUF_ADDR_STATE" bias="2" length="95" engine="video">
3070    <field name="DWord Length" start="0" end="11" type="uint"/>
3071    <field name="SubOpcode" start="16" end="22" type="uint" default="2"/>
3072    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3073    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3074    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3075    <field name="Decoded Picture - Address" start="32" end="95" type="address"/>
3076    <field name="Decoded Picture - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3077    <field name="Deblocking Filter Line Buffer - Address" start="128" end="191" type="address"/>
3078    <field name="Deblocking Filter Line Buffer - Memory Address Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
3079    <field name="Deblocking Filter Tile Line Buffer - Address" start="224" end="287" type="address"/>
3080    <field name="Deblocking Filter Tile Line Buffer - Memory Address Attributes" start="288" end="319" type="MEMORYADDRESSATTRIBUTES"/>
3081    <field name="Deblocking Filter Tile Column Buffer - Address" start="320" end="383" type="address"/>
3082    <field name="Deblocking Filter Tile Column Buffer - Memory Address Attributes" start="384" end="415" type="MEMORYADDRESSATTRIBUTES"/>
3083    <field name="Metadata Line Buffer - Address" start="416" end="479" type="address"/>
3084    <field name="Metadata Line Buffer - Memory Address Attributes" start="480" end="511" type="MEMORYADDRESSATTRIBUTES"/>
3085    <field name="Metadata Tile Line Buffer - Address" start="512" end="575" type="address"/>
3086    <field name="Metadata Tile Line Buffer - Memory Address Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
3087    <field name="Metadata Tile Column Buffer - Address" start="608" end="671" type="address"/>
3088    <field name="Metadata Tile Column Buffer - Memory Address Attributes" start="672" end="703" type="MEMORYADDRESSATTRIBUTES"/>
3089    <field name="SAO Line Buffer - Address" start="704" end="767" type="address"/>
3090    <field name="SAO Line Buffer - Memory Address Attributes" start="768" end="799" type="MEMORYADDRESSATTRIBUTES"/>
3091    <field name="SAO Tile Line Buffer - Address" start="800" end="863" type="address"/>
3092    <field name="SAO Tile Line Buffer - Memory Address Attributes" start="864" end="895" type="MEMORYADDRESSATTRIBUTES"/>
3093    <field name="SAO Tile Column Buffer - Address" start="896" end="959" type="address"/>
3094    <field name="SAO Tile Column Buffer - Memory Address Attributes" start="960" end="991" type="MEMORYADDRESSATTRIBUTES"/>
3095    <field name="Current MV Temporal Buffer - Address" start="992" end="1055" type="address"/>
3096    <field name="Current MV Temporal Buffer - Memory Address Attributes" start="1056" end="1087" type="MEMORYADDRESSATTRIBUTES"/>
3097    <group count="8" start="1184" size="64">
3098      <field name="Reference Picture - Address" start="0" end="63" type="address"/>
3099    </group>
3100    <field name="Reference Picture - Memory Address Attributes" start="1696" end="1727" type="MEMORYADDRESSATTRIBUTES"/>
3101    <field name="Original Uncompressed Picture Source - Address" start="1728" end="1791" type="address"/>
3102    <field name="Original Uncompressed Picture Source - Memory Address Attributes" start="1792" end="1823" type="MEMORYADDRESSATTRIBUTES"/>
3103    <field name="Stream-Out Data Destination - Address" start="1824" end="1887" type="address"/>
3104    <field name="Stream-Out Data Destination - Memory Address Attributes" start="1888" end="1919" type="MEMORYADDRESSATTRIBUTES"/>
3105    <field name="Decoded Picture Status Buffer - Address" start="1920" end="1983" type="address"/>
3106    <field name="Decoded Picture Status Buffer - Memory Address Attributes" start="1984" end="2015" type="MEMORYADDRESSATTRIBUTES"/>
3107    <field name="LCU ILDB Stream-Out Buffer - Address" start="2016" end="2079" type="address"/>
3108    <field name="LCU ILDB Stream-Out Buffer - Memory Address Attributes" start="2080" end="2111" type="MEMORYADDRESSATTRIBUTES"/>
3109    <group count="8" start="2112" size="64">
3110      <field name="Collocated MV Temporal Buffer - Address" start="0" end="63" type="address"/>
3111    </group>
3112    <field name="Collocated MV Temporal Buffer - Memory Address Attributes" start="2624" end="2655" type="MEMORYADDRESSATTRIBUTES"/>
3113    <field name="VP9 Probability Buffer - Address" start="2656" end="2719" type="address"/>
3114    <field name="VP9 Probability Buffer - Memory Address Attributes" start="2720" end="2751" type="MEMORYADDRESSATTRIBUTES"/>
3115    <field name="VP9 Segment ID Buffer - Address" start="2752" end="2815" type="uint"/>
3116    <field name="VP9 Segment ID Buffer - Memory Address Attributes" start="2816" end="2847" type="MEMORYADDRESSATTRIBUTES"/>
3117    <field name="VP9 HVD Line Rowstore Buffer - Address" start="2848" end="2911" type="address"/>
3118    <field name="VP9 HVD Line Rowstore Buffer - Memory Address Attributes" start="2912" end="2943" type="MEMORYADDRESSATTRIBUTES"/>
3119    <field name="VP9 HVD Tile Rowstore Buffer - Address" start="2944" end="3007" type="address"/>
3120    <field name="VP9 HVD Tile Rowstore Buffer - Memory Address Attributes" start="3008" end="3039" type="MEMORYADDRESSATTRIBUTES"/>
3121  </instruction>
3122
3123  <instruction name="HCP_PIPE_MODE_SELECT" bias="2" length="4" engine="video">
3124    <field name="DWord Length" start="0" end="11" type="uint"/>
3125    <field name="SubOpcode" start="16" end="22" type="uint" default="0"/>
3126    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3127    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3128    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3129    <field name="Codec Select" start="32" end="32" type="uint">
3130      <value name="Decode" value="0"/>
3131      <value name="Encode" value="1"/>
3132    </field>
3133    <field name="Deblocker Stream-Out Enable" start="33" end="33" type="bool"/>
3134    <field name="PAK Pipeline Stream-Out Enable" start="34" end="34" type="bool"/>
3135    <field name="Pic Status/Error Report Enable" start="35" end="35" type="bool"/>
3136    <field name="Codec Standard Select" start="37" end="39" type="uint">
3137      <value name="HEVC" value="0"/>
3138      <value name="VP9" value="1"/>
3139    </field>
3140    <field name="Advanced Rate Control Enable" start="41" end="41" type="bool"/>
3141    <field name="PAK Frame Level Stream-Out Enable" start="44" end="44" type="bool"/>
3142    <field name="Media Soft-Reset Counter" start="64" end="95" type="uint"/>
3143    <field name="Pic Status/Error Report ID" start="96" end="127" type="uint"/>
3144  </instruction>
3145
3146  <instruction name="HCP_QM_STATE" bias="2" length="34" engine="video">
3147    <field name="DWord Length" start="0" end="11" type="uint"/>
3148    <field name="SubOpcode" start="16" end="22" type="uint" default="4"/>
3149    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3150    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3151    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3152    <field name="Prediction Type" start="32" end="32" type="uint">
3153      <value name="Intra" value="0"/>
3154      <value name="Inter" value="1"/>
3155    </field>
3156    <field name="SizeID" start="33" end="34" type="uint">
3157      <value name="4x4" value="0"/>
3158      <value name="8x8" value="1"/>
3159      <value name="16x16" value="2"/>
3160      <value name="32x32" value="3"/>
3161    </field>
3162    <field name="Color Component" start="35" end="36" type="uint">
3163      <value name="Luma" value="0"/>
3164      <value name="Chroma Cb" value="1"/>
3165      <value name="Chroma Cr" value="2"/>
3166    </field>
3167    <field name="DC Coefficient" start="37" end="44" type="uint"/>
3168    <group count="64" start="64" size="8">
3169      <field name="Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
3170    </group>
3171  </instruction>
3172
3173  <instruction name="HCP_REF_IDX_STATE" bias="2" length="18" engine="video">
3174    <field name="DWord Length" start="0" end="11" type="uint"/>
3175    <field name="SubOpcode" start="16" end="22" type="uint" default="18"/>
3176    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3177    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3178    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3179    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
3180    <field name="Number of Reference Indexes Active" start="33" end="36" type="uint"/>
3181    <group count="16" start="64" size="32">
3182      <field name="Reference List Entry" start="0" end="31" type="HCP_REF_LIST_ENTRY"/>
3183    </group>
3184  </instruction>
3185
3186  <instruction name="HCP_SLICE_STATE" bias="2" length="2" engine="video">
3187    <field name="DWord Length" start="0" end="11" type="uint"/>
3188    <field name="SubOpcode" start="16" end="22" type="uint" default="20"/>
3189    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3190    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3191    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3192    <field name="Slice Horizontal Position" start="32" end="40" type="uint"/>
3193    <field name="Slice Vertical Position" start="48" end="56" type="uint"/>
3194    <field name="Next Slice Horizontal Position" start="64" end="72" type="uint"/>
3195    <field name="Next Slice Vertical Position" start="80" end="88" type="uint"/>
3196    <field name="Slice Type" start="96" end="97" type="uint" prefix="HCP_ST">
3197      <value name="B Slice" value="0"/>
3198      <value name="P Slice" value="1"/>
3199      <value name="I Slice" value="2"/>
3200    </field>
3201    <field name="Last Slice" start="98" end="98" type="bool"/>
3202    <field name="Slice QP Sign" start="99" end="99" type="uint"/>
3203    <field name="Dependent Slice" start="100" end="100" type="bool"/>
3204    <field name="Slice Temporal MVP Enable" start="101" end="101" type="bool"/>
3205    <field name="Slice QP" start="102" end="107" type="uint"/>
3206    <field name="Slice Cb QP Offset" start="108" end="112" type="int">
3207      <value name="-12" value="20"/>
3208      <value name="-11" value="21"/>
3209      <value name="-10" value="22"/>
3210      <value name="-9" value="23"/>
3211      <value name="-8" value="24"/>
3212      <value name="-7" value="25"/>
3213      <value name="-6" value="26"/>
3214      <value name="-5" value="27"/>
3215      <value name="-4" value="28"/>
3216      <value name="-3" value="29"/>
3217      <value name="-2" value="30"/>
3218      <value name="-1" value="31"/>
3219    </field>
3220    <field name="Slice Cr QP Offset" start="113" end="117" type="int">
3221      <value name="-12" value="20"/>
3222      <value name="-11" value="21"/>
3223      <value name="-10" value="22"/>
3224      <value name="-9" value="23"/>
3225      <value name="-8" value="24"/>
3226      <value name="-7" value="25"/>
3227      <value name="-6" value="26"/>
3228      <value name="-5" value="27"/>
3229      <value name="-4" value="28"/>
3230      <value name="-3" value="29"/>
3231      <value name="-2" value="30"/>
3232      <value name="-1" value="31"/>
3233    </field>
3234    <field name="Last Slice of Tile" start="120" end="120" type="bool"/>
3235    <field name="Slice Header Disable Deblocking Filter" start="128" end="128" type="bool"/>
3236    <field name="Slice TC Offset Div2" start="129" end="132" type="int"/>
3237    <field name="Slice Beta Offset Div2" start="133" end="136" type="int"/>
3238    <field name="Slice Loop Filter Enable" start="138" end="138" type="bool"/>
3239    <field name="Slice SAO Chroma" start="139" end="139" type="bool"/>
3240    <field name="Slice SAO Luma" start="140" end="140" type="bool"/>
3241    <field name="MVD L1 Zero" start="141" end="141" type="bool"/>
3242    <field name="Low Delay" start="142" end="142" type="bool"/>
3243    <field name="Collocated From L0" start="143" end="143" type="bool"/>
3244    <field name="Log2 Weight Denominator Chroma" start="144" end="146" type="uint"/>
3245    <field name="Log2 Weight Denominator Luma" start="147" end="149" type="uint"/>
3246    <field name="CABAC Init" start="150" end="150" type="bool"/>
3247    <field name="Max Merge Index" start="151" end="153" type="uint"/>
3248    <field name="Collocated MV Temporal Buffer Index" start="154" end="156" type="uint"/>
3249    <field name="Slice Header Length" start="160" end="175" type="uint"/>
3250    <field name="Round Intra" start="212" end="215" type="uint">
3251      <value name="+1/32" value="0"/>
3252      <value name="+2/32" value="1"/>
3253      <value name="+3/32" value="2"/>
3254      <value name="+4/32" value="3"/>
3255      <value name="+5/32" value="4"/>
3256      <value name="+6/32" value="5"/>
3257      <value name="+7/32" value="6"/>
3258      <value name="+8/32" value="7"/>
3259      <value name="+9/32" value="8"/>
3260      <value name="+10/32" value="9"/>
3261      <value name="+11/32" value="10"/>
3262      <value name="+12/32" value="11"/>
3263      <value name="+13/32" value="12"/>
3264      <value name="+14/32" value="13"/>
3265      <value name="+15/32" value="14"/>
3266      <value name="+16/32" value="15"/>
3267    </field>
3268    <field name="Round Inter" start="218" end="221" type="uint">
3269      <value name="+1/32" value="0"/>
3270      <value name="+2/32" value="1"/>
3271      <value name="+3/32" value="2"/>
3272      <value name="+4/32" value="3"/>
3273      <value name="+5/32" value="4"/>
3274      <value name="+6/32" value="5"/>
3275      <value name="+7/32" value="6"/>
3276      <value name="+8/32" value="7"/>
3277      <value name="+9/32" value="8"/>
3278      <value name="+10/32" value="9"/>
3279      <value name="+11/32" value="10"/>
3280      <value name="+12/32" value="11"/>
3281      <value name="+13/32" value="12"/>
3282      <value name="+14/32" value="13"/>
3283      <value name="+15/32" value="14"/>
3284      <value name="+16/32" value="15"/>
3285    </field>
3286    <field name="CABAC Zero Word Insertion Enable" start="225" end="225" type="bool"/>
3287    <field name="Emulation Byte Slice Insert Enable" start="226" end="226" type="bool"/>
3288    <field name="Tail Insertion Present" start="232" end="232" type="bool"/>
3289    <field name="Slice Data Insertion Present" start="233" end="233" type="bool"/>
3290    <field name="Header Insertion Present" start="234" end="234" type="bool"/>
3291    <field name="Indirect PAK-BSE Data Start Offset" start="262" end="284" type="offset"/>
3292    <field name="Transform Skip Lambda" start="288" end="303" type="uint"/>
3293    <field name="Transform Skip Number of Zero Coeffs Factor0" start="320" end="327" type="uint"/>
3294    <field name="Transform Skip Number of Non-Zero Coeffs Factor0" start="328" end="335" type="uint"/>
3295    <field name="Transform Skip Number of Zero Coeffs Factor1" start="336" end="343" type="uint"/>
3296    <field name="Transform Skip Number of Non-Zero Coeffs Factor1" start="344" end="351" type="uint"/>
3297  </instruction>
3298
3299  <instruction name="HCP_SURFACE_STATE" bias="2" length="3" engine="video">
3300    <field name="DWord Length" start="0" end="11" type="uint"/>
3301    <field name="SubOpcode" start="16" end="22" type="uint" default="1"/>
3302    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3303    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3304    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3305    <field name="Surface Pitch" start="32" end="48" type="uint"/>
3306    <field name="Surface ID" start="60" end="63" type="uint" prefix="HCP">
3307      <value name="Current Decoded Picture" value="0"/>
3308      <value name="Source Input Picture" value="1"/>
3309      <value name="Prev Reference Picture" value="2"/>
3310      <value name="Golden Reference Picture" value="3"/>
3311      <value name="AltRef Reference Picture" value="4"/>
3312    </field>
3313    <field name="Y Offset for U(Cb)" start="64" end="78" type="uint"/>
3314    <field name="Surface Format" start="92" end="95" type="uint">
3315      <value name="PLANAR_420_8" value="4"/>
3316      <value name="P010" value="13"/>
3317    </field>
3318  </instruction>
3319
3320  <instruction name="HCP_TILE_CODING" bias="1" length="1" engine="video">
3321    <field name="DWord Length" start="0" end="11" type="uint"/>
3322    <field name="SubOpcode" start="16" end="22" type="uint" default="21"/>
3323    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3324    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3325    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3326    <field name="SAO Parameter Offset" start="128" end="159" type="uint"/>
3327  </instruction>
3328
3329  <instruction name="HCP_TILE_STATE" bias="2" length="13" engine="video">
3330    <field name="DWord Length" start="0" end="11" type="uint"/>
3331    <field name="Media Instruction Command" start="16" end="22" type="uint" default="17"/>
3332    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3333    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3334    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3335    <field name="Number of Tile Rows" start="32" end="36" type="uint"/>
3336    <field name="Number of Tile Columns" start="37" end="41" type="uint"/>
3337    <group count="5" start="64" size="32">
3338      <field name="Column Position" start="0" end="31" type="HCP_TILE_POSITION_IN_CTB"/>
3339    </group>
3340    <group count="6" start="224" size="32">
3341      <field name="Row position" start="0" end="31" type="HCP_TILE_POSITION_IN_CTB"/>
3342    </group>
3343  </instruction>
3344
3345  <instruction name="HCP_VP9_PIC_STATE" bias="2" length="2" engine="video">
3346    <field name="DWord Length" start="0" end="11" type="uint"/>
3347    <field name="SubOpcode" start="16" end="22" type="uint" default="48"/>
3348    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3349    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3350    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3351    <field name="Frame Width" start="32" end="45" type="uint"/>
3352    <field name="Frame Height" start="48" end="61" type="uint"/>
3353    <field name="Frame Type" start="64" end="64" type="uint" prefix="VP9">
3354      <value name="Key Frame" value="0"/>
3355      <value name="Inter Frame" value="1"/>
3356    </field>
3357    <field name="Adapt Probabilities" start="65" end="65" type="bool"/>
3358    <field name="Intra Only" start="66" end="66" type="bool"/>
3359    <field name="Allow Hi Precision MV" start="67" end="67" type="bool"/>
3360    <field name="Motion Compensation Filter Type" start="68" end="70" type="uint">
3361      <value name="Eight-tap" value="0"/>
3362      <value name="Eight-tap-Smooth" value="1"/>
3363      <value name="Eight-tap-Sharp" value="2"/>
3364      <value name="Bilinear" value="3"/>
3365      <value name="Switchable" value="4"/>
3366    </field>
3367    <field name="Reference Frame Sign Bias" start="71" end="73" type="uint"/>
3368    <field name="Use Prev in Find MV References" start="74" end="74" type="bool"/>
3369    <field name="Hybrid Prediction Mode" start="75" end="75" type="uint"/>
3370    <field name="Selectable TX Mode" start="76" end="76" type="uint"/>
3371    <field name="Last Frame Type" start="77" end="77" type="uint" prefix="VP9">
3372      <value name="Key Frame" value="0"/>
3373      <value name="Non Key Frame" value="1"/>
3374    </field>
3375    <field name="Refresh Frame Context Enable" start="78" end="78" type="bool"/>
3376    <field name="Error Resilient Mode Enable" start="79" end="79" type="bool"/>
3377    <field name="Frame Parallel Decoding Mode Enable" start="80" end="80" type="bool"/>
3378    <field name="Filter Level" start="81" end="86" type="uint"/>
3379    <field name="Sharpness Level" start="87" end="89" type="uint"/>
3380    <field name="Segmentation Enable" start="90" end="90" type="bool"/>
3381    <field name="Segmentation Update Map" start="91" end="91" type="bool"/>
3382    <field name="Segmentation Temporal Update" start="92" end="92" type="bool"/>
3383    <field name="Lossless Mode" start="93" end="93" type="bool"/>
3384    <field name="Segment ID Stream-Out Enable" start="94" end="94" type="bool"/>
3385    <field name="Segment ID Stream-In Enable" start="95" end="95" type="bool"/>
3386    <field name="Log2 Tile Column" start="96" end="99" type="uint">
3387      <value name="1 Tile Column" value="0"/>
3388      <value name="2 Tile Column" value="1"/>
3389      <value name="4 Tile Column" value="2"/>
3390      <value name="8 Tile Column" value="3"/>
3391      <value name="16 Tile Column" value="4"/>
3392      <value name="32 Tile Column" value="5"/>
3393      <value name="64 Tile Column" value="6"/>
3394    </field>
3395    <field name="Log2 Tile Row" start="104" end="105" type="uint">
3396      <value name="1 Tile Row" value="0"/>
3397      <value name="2 Tile Row" value="1"/>
3398      <value name="4 Tile Row" value="2"/>
3399    </field>
3400    <field name="Chroma Sampling Format" start="118" end="119" type="uint">
3401      <value name="Format_420" value="0"/>
3402    </field>
3403    <field name="Bit Depth" start="120" end="123" type="uint">
3404      <value name="8-bit" value="0"/>
3405      <value name="10-bit" value="2"/>
3406      <value name="12-bit" value="4"/>
3407    </field>
3408    <field name="Profile Level" start="124" end="127" type="uint">
3409      <value name="Profile_0" value="0"/>
3410      <value name="Profile_2" value="2"/>
3411    </field>
3412    <field name="Vertical Scale Factor for LAST" start="128" end="143" type="u2.14"/>
3413    <field name="Horizontal Scale Factor for LAST" start="144" end="159" type="u2.14"/>
3414    <field name="Vertical Scale Factor for GOLDEN" start="160" end="175" type="u2.14"/>
3415    <field name="Horizontal Scale Factor for GOLDEN" start="176" end="191" type="u2.14"/>
3416    <field name="Vertical Scale Factor for ALTREF" start="192" end="207" type="u2.14"/>
3417    <field name="Horizontal Scale Factor for ALTREF" start="208" end="223" type="u2.14"/>
3418    <field name="Last Frame Width" start="224" end="237" type="uint"/>
3419    <field name="Last Frame Height" start="240" end="253" type="uint"/>
3420    <field name="Golden Frame Width" start="256" end="269" type="uint"/>
3421    <field name="Golden Frame Height" start="272" end="285" type="uint"/>
3422    <field name="Altref Frame Width" start="288" end="301" type="uint"/>
3423    <field name="Altref Frame Height" start="304" end="317" type="uint"/>
3424    <field name="Uncompressed Header Length" start="320" end="327" type="uint"/>
3425    <field name="First Partition Size" start="336" end="351" type="uint"/>
3426    <field name="Motion Comp Scaling Enable" start="353" end="353" type="bool"/>
3427    <field name="Compressed Header BIN count" start="416" end="431" type="uint"/>
3428    <field name="Luma AC Q Index Delta" start="432" end="439" type="uint"/>
3429    <field name="Chroma AC Q Index Delta" start="448" end="452" type="int"/>
3430    <field name="Chroma DC Q Index Delta" start="456" end="460" type="int"/>
3431    <field name="Luma DC Q Index Delta" start="464" end="468" type="int"/>
3432    <field name="LF Ref Delta 0" start="480" end="486" type="int"/>
3433    <field name="LF Ref Delta 1" start="488" end="494" type="int"/>
3434    <field name="LF Ref Delta 2" start="496" end="502" type="int"/>
3435    <field name="LF Ref Delta 3" start="504" end="510" type="int"/>
3436    <field name="LF Mode Delta 0" start="512" end="518" type="int"/>
3437    <field name="LF Mode Delta 1" start="520" end="526" type="int"/>
3438    <field name="Bit Offset for LF Ref Delta" start="544" end="559" type="uint"/>
3439    <field name="Bit Offset for LF Mode Delta" start="560" end="575" type="uint"/>
3440    <field name="Bit Offset for Q index" start="576" end="591" type="uint"/>
3441    <field name="Bit Offset for LF Level" start="592" end="607" type="uint"/>
3442  </instruction>
3443
3444  <instruction name="HCP_VP9_SEGMENT_STATE" bias="2" length="8" engine="video">
3445    <field name="DWord Length" start="0" end="11" type="uint"/>
3446    <field name="SubOpcode" start="16" end="22" type="uint" default="50"/>
3447    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3448    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3449    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3450    <field name="Segment ID" start="32" end="34" type="uint"/>
3451    <field name="Segment Skipped" start="64" end="64" type="bool"/>
3452    <field name="Segment Reference" start="65" end="66" type="uint"/>
3453    <field name="Segment Reference Enable" start="67" end="67" type="bool"/>
3454    <field name="Filter Level Ref0 Mode 0" start="96" end="101" type="uint"/>
3455    <field name="Filter Level Ref0 Mode 1" start="104" end="109" type="uint"/>
3456    <field name="Filter Level Ref1 Mode 0" start="112" end="117" type="uint"/>
3457    <field name="Filter Level Ref1 Mode 1" start="120" end="125" type="uint"/>
3458    <field name="Filter Level Ref2 Mode 0" start="128" end="133" type="uint"/>
3459    <field name="Filter Level Ref2 Mode 1" start="136" end="141" type="uint"/>
3460    <field name="Filter Level Ref3 Mode 0" start="144" end="149" type="uint"/>
3461    <field name="Filter Level Ref3 Mode 1" start="152" end="157" type="uint"/>
3462    <field name="Luma DC Quant Scale" start="160" end="174" type="uint"/>
3463    <field name="Luma AC Quant Scale" start="176" end="190" type="uint"/>
3464    <field name="Chroma DC Quant Scale" start="192" end="206" type="uint"/>
3465    <field name="Chroma AC Quant Scale" start="208" end="222" type="uint"/>
3466  </instruction>
3467
3468  <instruction name="HCP_WEIGHTOFFSET_STATE" bias="2" length="34" engine="video">
3469    <field name="DWord Length" start="0" end="11" type="uint"/>
3470    <field name="SubOpcode" start="16" end="22" type="uint" default="19"/>
3471    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3472    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3473    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3474    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
3475    <group count="16" start="64" size="32">
3476      <field name="Luma Offsets" start="0" end="31" type="HCP_WEIGHTOFFSET_LUMA_ENTRY"/>
3477    </group>
3478    <group count="16" start="576" size="32">
3479      <field name="Chroma Offsets" start="0" end="31" type="HCP_WEIGHTOFFSET_CHROMA_ENTRY"/>
3480    </group>
3481  </instruction>
3482
3483  <instruction name="HEVC_VP9_RDOQ_STATE" bias="2" length="62" engine="video">
3484    <field name="DWord Length" start="0" end="11" type="uint" default="60"/>
3485    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
3486    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
3487    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3488    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3489    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3490    <field name="HTQ Performance Fix 1 Disable" start="62" end="62" type="bool"/>
3491    <field name="HTQ Performance Fix 0 Disable" start="63" end="63" type="bool"/>
3492    <group count="32" start="64" size="32">
3493      <field name="Intra Luma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
3494    </group>
3495    <group count="32" start="1088" size="32">
3496      <field name="Intra Chroma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
3497    </group>
3498    <group count="32" start="2112" size="32">
3499      <field name="Inter Luma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
3500    </group>
3501    <group count="32" start="3136" size="32">
3502      <field name="Inter Chroma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
3503    </group>
3504  </instruction>
3505
3506  <instruction name="HUC_CFG_STATE" bias="2" length="2" engine="video">
3507    <field name="DWord Length" start="0" end="11" type="uint"/>
3508    <field name="SubOpcode" start="16" end="22" type="uint" default="3"/>
3509    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3510    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3511    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3512    <field name="P24C" start="32" end="32" type="uint">
3513      <value name="Normal operation" value="0"/>
3514      <value name="Force reset" value="1"/>
3515    </field>
3516  </instruction>
3517
3518  <instruction name="HUC_DMEM_STATE" bias="2" length="6" engine="video">
3519    <field name="DWord Length" start="0" end="11" type="uint"/>
3520    <field name="SubOpcode" start="16" end="22" type="uint" default="2"/>
3521    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3522    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3523    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3524    <field name="HUC Data Source - Address" start="32" end="95" type="address"/>
3525    <field name="HUC Data Source - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3526    <field name="HUC Data Destination - Address" start="134" end="144" type="address"/>
3527    <field name="HUC Data Length" start="166" end="176" type="uint"/>
3528  </instruction>
3529
3530  <instruction name="HUC_IMEM_STATE" bias="2" length="5" engine="video">
3531    <field name="DWord Length" start="0" end="11" type="uint"/>
3532    <field name="SubOpcode" start="16" end="22" type="uint" default="1"/>
3533    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3534    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3535    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3536    <field name="HUC Firmware Descriptor" start="128" end="135" type="uint"/>
3537  </instruction>
3538
3539  <instruction name="HUC_IND_OBJ_BASE_ADDR_STATE" bias="2" length="11" engine="video">
3540    <field name="DWord Length" start="0" end="11" type="uint"/>
3541    <field name="SubOpcode" start="16" end="22" type="uint" default="5"/>
3542    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3543    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3544    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3545    <field name="HUC Indirect Stream-In Object - Address" start="32" end="95" type="address"/>
3546    <field name="HUC Indirect Stream-In Object - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3547    <field name="HUC Indirect Stream-In Object - Access Upper Bound" start="128" end="191" type="address"/>
3548    <field name="HUC Indirect Stream-Out Object - Address" start="192" end="255" type="address"/>
3549    <field name="HUC Indirect Stream-Out Object - Memory Address Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
3550    <field name="HUC Indirect Stream-Out Object - Access Upper Bound" start="288" end="351" type="address"/>
3551  </instruction>
3552
3553  <instruction name="HUC_PIPE_MODE_SELECT" bias="2" length="3" engine="video">
3554    <field name="DWord Length" start="0" end="11" type="uint"/>
3555    <field name="SubOpcode" start="16" end="22" type="uint" default="0"/>
3556    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3557    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3558    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3559    <field name="Indirect Stream-Out Enable" start="36" end="36" type="bool"/>
3560    <field name="Media Soft-Reset Counter" start="64" end="95" type="uint"/>
3561  </instruction>
3562
3563  <instruction name="HUC_START" bias="2" length="2" engine="video">
3564    <field name="DWord Length" start="0" end="11" type="uint"/>
3565    <field name="SubOpcode" start="16" end="22" type="uint" default="33"/>
3566    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3567    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3568    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3569    <field name="Last Stream Object" start="32" end="32" type="bool"/>
3570  </instruction>
3571
3572  <instruction name="HUC_STREAM_OBJECT" bias="2" length="5" engine="video">
3573    <field name="DWord Length" start="0" end="11" type="uint"/>
3574    <field name="SubOpcode" start="16" end="22" type="uint" default="32"/>
3575    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3576    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3577    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3578    <field name="Indirect Stream-In Data Length" start="32" end="63" type="uint"/>
3579    <field name="Indirect Stream-In - Address" start="64" end="92" type="address"/>
3580    <field name="HUC Processing" start="95" end="95" type="bool"/>
3581    <field name="Indirect Stream-Out - Address" start="96" end="124" type="address"/>
3582    <field name="Start Code Byte [0]" start="128" end="135" type="uint"/>
3583    <field name="Start Code Byte [1]" start="136" end="143" type="uint"/>
3584    <field name="Start Code Byte [2]" start="144" end="151" type="uint"/>
3585    <field name="Start Code Search Engine" start="152" end="152" type="bool"/>
3586    <field name="Emulation Prevention Byte Removal" start="153" end="153" type="bool"/>
3587    <field name="Stream-Out" start="154" end="154" type="bool"/>
3588    <field name="DRM Length Mode" start="155" end="156" type="uint">
3589      <value name="Start Code Mode" value="0"/>
3590      <value name="Length Mode" value="1"/>
3591    </field>
3592    <field name="HUC Bitstream Enable" start="157" end="157" type="bool"/>
3593  </instruction>
3594
3595  <instruction name="HUC_VIRTUAL_ADDR_STATE" bias="2" length="49" engine="video">
3596    <field name="DWord Length" start="0" end="11" type="uint"/>
3597    <field name="SubOpcode" start="16" end="22" type="uint" default="4"/>
3598    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
3599    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3600    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3601    <group count="16" start="32" size="96">
3602      <field name="HUC Virtual Address Region" start="0" end="95" type="HUC_VIRTUAL_ADDR_REGION"/>
3603    </group>
3604  </instruction>
3605
3606  <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4" engine="render">
3607    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
3608    <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
3609    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3610    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3611    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3612    <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
3613    <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
3614  </instruction>
3615
3616  <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4" engine="render">
3617    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
3618    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
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="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
3623    <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
3624  </instruction>
3625
3626  <instruction name="MEDIA_OBJECT" bias="2" engine="render">
3627    <field name="DWord Length" start="0" end="15" type="uint" default="4"/>
3628    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
3629    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3630    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
3631    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3632    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
3633    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
3634    <field name="SubSlice Destination Select" start="81" end="82" type="uint">
3635      <value name="Subslice 3" value="3"/>
3636      <value name="SubSlice 2" value="2"/>
3637      <value name="SubSlice 1" value="1"/>
3638      <value name="SubSlice 0" value="0"/>
3639    </field>
3640    <field name="Slice Destination Select" start="83" end="84" type="uint">
3641      <value name="Slice 0" value="0"/>
3642      <value name="Slice 1" value="1"/>
3643      <value name="Slice 2" value="2"/>
3644    </field>
3645    <field name="Use Scoreboard" start="85" end="85" type="uint">
3646      <value name="Not using scoreboard" value="0"/>
3647      <value name="Using scoreboard" value="1"/>
3648    </field>
3649    <field name="Force Destination" start="86" end="86" type="uint"/>
3650    <field name="Thread Synchronization" start="88" end="88" type="uint">
3651      <value name="No thread synchronization" value="0"/>
3652      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
3653    </field>
3654    <field name="Slice Destination Select MSBs" start="89" end="90" type="uint"/>
3655    <field name="Children Present" start="95" end="95" type="bool"/>
3656    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
3657    <field name="Scoreboard X" start="128" end="136" type="uint"/>
3658    <field name="Scoredboard Y" start="144" end="152" type="uint"/>
3659    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
3660    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
3661    <group count="0" start="192" size="32">
3662      <field name="Inline Data" start="0" end="31" type="uint"/>
3663    </group>
3664  </instruction>
3665
3666  <instruction name="MEDIA_OBJECT_GRPID" bias="2" engine="render">
3667    <field name="DWord Length" start="0" end="15" type="uint" default="5"/>
3668    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="6"/>
3669    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3670    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
3671    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3672    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
3673    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
3674    <field name="SubSlice Destination Select" start="81" end="82" type="uint">
3675      <value name="Subslice3" value="3"/>
3676      <value name="SubSlice 2" value="2"/>
3677      <value name="SubSlice 1" value="1"/>
3678      <value name="SubSlice 0" value="0"/>
3679    </field>
3680    <field name="Slice Destination Select" start="83" end="84" type="uint">
3681      <value name="Slice 0" value="0"/>
3682      <value name="Slice 1" value="1"/>
3683      <value name="Slice 2" value="2"/>
3684    </field>
3685    <field name="Use Scoreboard" start="85" end="85" type="uint">
3686      <value name="Not using scoreboard" value="0"/>
3687      <value name="Using scoreboard" value="1"/>
3688    </field>
3689    <field name="Force Destination" start="86" end="86" type="uint"/>
3690    <field name="End of Thread Group" start="87" end="87" type="uint"/>
3691    <field name="Slice Destination Select MSB" start="88" end="88" type="uint"/>
3692    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
3693    <field name="Scoreboard X" start="128" end="136" type="uint"/>
3694    <field name="Scoreboard Y" start="144" end="152" type="uint"/>
3695    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
3696    <field name="Scoreboard Color" start="176" end="179" type="uint"/>
3697    <field name="GroupID" start="192" end="223" type="uint"/>
3698    <group count="0" start="224" size="32">
3699      <field name="Inline Data" start="0" end="31" type="uint"/>
3700    </group>
3701  </instruction>
3702
3703  <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16" engine="render">
3704    <field name="DWord Length" start="0" end="15" type="uint" default="14"/>
3705    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
3706    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3707    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3708    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3709    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
3710    <field name="PRT_FenceType" start="86" end="86" type="uint">
3711      <value name="Root thread queue" value="0"/>
3712      <value name="VFE state flush" value="1"/>
3713    </field>
3714    <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
3715    <field name="Children Present" start="95" end="95" type="bool"/>
3716    <group count="12" start="128" size="32">
3717      <field name="Inline Data" start="0" end="31" type="uint"/>
3718    </group>
3719  </instruction>
3720
3721  <instruction name="MEDIA_OBJECT_WALKER" bias="2" engine="render">
3722    <field name="DWord Length" start="0" end="15" type="uint" default="15"/>
3723    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
3724    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3725    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3726    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3727    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
3728    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
3729    <field name="Use Scoreboard" start="85" end="85" type="uint">
3730      <value name="Not using scoreboard" value="0"/>
3731      <value name="Using scoreboard" value="1"/>
3732    </field>
3733    <field name="Masked Dispatch" start="86" end="87" type="uint"/>
3734    <field name="Thread Synchronization" start="88" end="88" type="uint">
3735      <value name="No thread synchronization" value="0"/>
3736      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
3737    </field>
3738    <field name="Indirect Data Start Address" start="96" end="127" type="uint"/>
3739    <field name="Scoreboard Mask" start="160" end="167" type="uint"/>
3740    <field name="Group ID Loop Select" start="168" end="191" type="uint">
3741      <value name="No_Groups" value="0"/>
3742      <value name="Color_Groups" value="1"/>
3743      <value name="InnerLocal_Groups" value="2"/>
3744      <value name="MidLocal_Groups" value="3"/>
3745      <value name="OuterLocal_Groups" value="4"/>
3746      <value name="InnerGlobal_Groups" value="5"/>
3747    </field>
3748    <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
3749    <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
3750    <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
3751    <field name="Color Count Minus One" start="216" end="219" type="uint"/>
3752    <field name="Local Loop Exec Count" start="224" end="235" type="uint"/>
3753    <field name="Global Loop Exec Count" start="240" end="251" type="uint"/>
3754    <field name="Block Resolution X" start="256" end="266" type="uint"/>
3755    <field name="Block Resolution Y" start="272" end="282" type="uint"/>
3756    <field name="Local Start X" start="288" end="298" type="uint"/>
3757    <field name="Local Start Y" start="304" end="314" type="uint"/>
3758    <field name="Local Outer Loop Stride X" start="352" end="363" type="int"/>
3759    <field name="Local Outer Loop Stride Y" start="368" end="379" type="int"/>
3760    <field name="Local Inner Loop Unit X" start="384" end="395" type="int"/>
3761    <field name="Local Inner Loop Unit Y" start="400" end="411" type="int"/>
3762    <field name="Global Resolution X" start="416" end="426" type="uint"/>
3763    <field name="Global Resolution Y" start="432" end="442" type="uint"/>
3764    <field name="Global Start X" start="448" end="459" type="int"/>
3765    <field name="Global Start Y" start="464" end="475" type="int"/>
3766    <field name="Global Outer Loop Stride X" start="480" end="491" type="int"/>
3767    <field name="Global Outer Loop Stride Y" start="496" end="507" type="int"/>
3768    <field name="Global Inner Loop Unit X" start="512" end="523" type="int"/>
3769    <field name="Global Inner Loop Unit Y" start="528" end="539" type="int"/>
3770    <group count="0" start="544" size="32">
3771      <field name="Inline Data" start="0" end="31" type="uint"/>
3772    </group>
3773  </instruction>
3774
3775  <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2" engine="render">
3776    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
3777    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
3778    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3779    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3780    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3781    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
3782    <field name="Watermark Required" start="38" end="38" type="uint"/>
3783    <field name="Flush to GO" start="39" end="39" type="bool"/>
3784  </instruction>
3785
3786  <instruction name="MEDIA_VFE_STATE" bias="2" length="9" engine="render">
3787    <field name="DWord Length" start="0" end="15" type="uint" default="7"/>
3788    <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
3789    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
3790    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3791    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3792    <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
3793    <field name="Stack Size" start="36" end="39" type="uint"/>
3794    <field name="Scratch Space Base Pointer" start="42" end="79" type="address"/>
3795    <field name="Reset Gateway Timer" start="103" end="103" type="uint">
3796      <value name="Maintaining the existing timestamp state" value="0"/>
3797      <value name="Resetting relative timer and latching the global timestamp" value="1"/>
3798    </field>
3799    <field name="Number of URB Entries" start="104" end="111" type="uint"/>
3800    <field name="Maximum Number of Threads" start="112" end="127" type="uint"/>
3801    <field name="Slice Disable" start="128" end="129" type="uint">
3802      <value name="All Subslices Enabled" value="0"/>
3803      <value name="Only Slice 0 Enabled" value="1"/>
3804      <value name="Only Slice 0 Subslice 0 Enabled" value="3"/>
3805    </field>
3806    <field name="CURBE Allocation Size" start="160" end="175" type="uint"/>
3807    <field name="URB Entry Allocation Size" start="176" end="191" type="uint"/>
3808    <field name="Scoreboard Mask" start="192" end="199" type="uint"/>
3809    <field name="Scoreboard Type" start="222" end="222" type="uint">
3810      <value name="Stalling Scoreboard" value="0"/>
3811      <value name="Non-Stalling Scoreboard" value="1"/>
3812    </field>
3813    <field name="Scoreboard Enable" start="223" end="223" type="bool"/>
3814    <field name="Scoreboard 0 Delta X" start="224" end="227" type="int"/>
3815    <field name="Scoreboard 0 Delta Y" start="228" end="231" type="int"/>
3816    <field name="Scoreboard 1 Delta X" start="232" end="235" type="int"/>
3817    <field name="Scoreboard 1 Delta Y" start="236" end="239" type="int"/>
3818    <field name="Scoreboard 2 Delta X" start="240" end="243" type="int"/>
3819    <field name="Scoreboard 2 Delta Y" start="244" end="247" type="int"/>
3820    <field name="Scoreboard 3 Delta X" start="248" end="251" type="int"/>
3821    <field name="Scoreboard 3 Delta Y" start="252" end="255" type="int"/>
3822    <field name="Scoreboard 4 Delta X" start="256" end="259" type="int"/>
3823    <field name="Scoreboard 4 Delta Y" start="260" end="263" type="int"/>
3824    <field name="Scoreboard 5 Delta X" start="264" end="267" type="int"/>
3825    <field name="Scoreboard 5 Delta Y" start="268" end="271" type="int"/>
3826    <field name="Scoreboard 6 Delta X" start="272" end="275" type="int"/>
3827    <field name="Scoreboard 6 Delta Y" start="276" end="279" type="int"/>
3828    <field name="Scoreboard 7 Delta X" start="280" end="283" type="int"/>
3829    <field name="Scoreboard 7 Delta Y" start="284" end="287" type="int"/>
3830  </instruction>
3831
3832  <instruction name="MFC_AVC_PAK_OBJECT" bias="2" length="12" engine="video">
3833    <field name="DWord Length" start="0" end="11" type="uint" default="10"/>
3834    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
3835    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3836    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3837    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3838    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3839    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
3840    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
3841    <group count="8" start="96" size="32">
3842      <field name="Inline Data" start="0" end="31" type="uint"/>
3843    </group>
3844    <group count="12" start="384" size="32">
3845      <field name="VDEnc Mode Inline Data" start="0" end="31" type="uint"/>
3846    </group>
3847  </instruction>
3848
3849  <instruction name="MFC_JPEG_HUFF_TABLE_STATE" bias="2" length="176" engine="video">
3850    <field name="DWord Length" start="0" end="11" type="uint" default="174"/>
3851    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
3852    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3853    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
3854    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3855    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3856    <field name="Huff Table ID" start="32" end="32" type="uint"/>
3857    <field name="DC_TABLE" start="64" end="447" type="uint"/>
3858    <field name="AC_TABLE" start="448" end="5631" type="uint"/>
3859  </instruction>
3860
3861  <instruction name="MFC_JPEG_SCAN_OBJECT" bias="2" length="3" engine="video">
3862    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
3863    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
3864    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3865    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
3866    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3867    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3868    <field name="MCU Count" start="32" end="57" type="uint"/>
3869    <field name="Restart Interval" start="64" end="79" type="uint"/>
3870    <field name="Last Scan" start="80" end="80" type="bool"/>
3871    <field name="Head Present" start="81" end="81" type="bool"/>
3872    <field name="Huffman DC Table" start="82" end="84" type="uint"/>
3873    <field name="Huffman AC Table" start="86" end="88" type="uint"/>
3874  </instruction>
3875
3876  <instruction name="MFC_MPEG2_PAK_OBJECT" bias="2" length="9" engine="video">
3877    <field name="DWord Length" start="0" end="11" type="uint" default="7"/>
3878    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
3879    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3880    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
3881    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3882    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3883    <group count="8" start="32" size="32">
3884      <field name="Inline Data" start="0" end="31" type="uint"/>
3885    </group>
3886  </instruction>
3887
3888  <instruction name="MFC_MPEG2_SLICEGROUP_STATE" bias="2" length="8" engine="video">
3889    <field name="DWord Length" start="0" end="11" type="uint" default="6"/>
3890    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
3891    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
3892    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
3893    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3894    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3895    <field name="Stream ID" start="32" end="33" type="uint"/>
3896    <field name="Slice ID" start="36" end="39" type="uint"/>
3897    <field name="Intra Slice Flag" start="44" end="44" type="bool"/>
3898    <field name="Intra Slice" start="45" end="45" type="bool"/>
3899    <field name="First Slice Header Disable" start="46" end="46" type="bool"/>
3900    <field name="Tail Insertion Present" start="47" end="47" type="bool"/>
3901    <field name="Slice Data Insertion Present" start="48" end="48" type="bool"/>
3902    <field name="Header Insertion Present" start="49" end="49" type="bool"/>
3903    <field name="Compressed BitStream Output Disable" start="50" end="50" type="bool"/>
3904    <field name="Last Slice" start="51" end="51" type="bool"/>
3905    <field name="MB Type Skip Conversion Disable" start="52" end="52" type="bool"/>
3906    <field name="Rate Control Panic Type" start="54" end="54" type="uint">
3907      <value name="QP Panic" value="0"/>
3908      <value name="CBP Panic" value="1"/>
3909    </field>
3910    <field name="Rate Control Panic Enable" start="55" end="55" type="bool"/>
3911    <field name="Rate Control Stable Tolerance" start="56" end="59" type="uint"/>
3912    <field name="Rate Control Triggle Mode" start="60" end="61" type="uint">
3913      <value name="Always Rate Control" value="0"/>
3914      <value name="Gentle Rate Control" value="1"/>
3915      <value name="Loose Rate Control" value="2"/>
3916    </field>
3917    <field name="Reset Rate Control Counter" start="62" end="62" type="bool"/>
3918    <field name="Rate Control Counter Enable" start="63" end="63" type="bool"/>
3919    <field name="First MB X Count" start="64" end="71" type="uint"/>
3920    <field name="First MB Y Count" start="72" end="79" type="uint"/>
3921    <field name="Next Slice Group MB X Count" start="80" end="87" type="uint"/>
3922    <field name="Next Slice Group MB Y Count" start="88" end="95" type="uint"/>
3923    <field name="Slice Group QP" start="96" end="101" type="uint"/>
3924    <field name="Slice Group Skip" start="104" end="104" type="bool"/>
3925    <field name="Indirect PAK-BSE Data Start Address" start="128" end="156" type="offset"/>
3926    <field name="Grow Init" start="160" end="163" type="uint"/>
3927    <field name="Grow Resistance" start="164" end="167" type="uint"/>
3928    <field name="Shrink Init" start="168" end="171" type="uint"/>
3929    <field name="Shrink Resistance" start="172" end="175" type="uint"/>
3930    <field name="QP Max Positive Modifier Magnitude" start="176" end="183" type="uint"/>
3931    <field name="QP Max Negative Modifier Magnitude" start="184" end="191" type="uint"/>
3932    <field name="Correct 1" start="192" end="195" type="uint"/>
3933    <field name="Correct 2" start="196" end="199" type="uint"/>
3934    <field name="Correct 3" start="200" end="203" type="uint"/>
3935    <field name="Correct 4" start="204" end="207" type="uint"/>
3936    <field name="Correct 5" start="208" end="211" type="uint"/>
3937    <field name="Correct 6" start="212" end="215" type="uint"/>
3938    <field name="CV0" start="224" end="227" type="uint"/>
3939    <field name="CV1" start="228" end="231" type="uint"/>
3940    <field name="CV2" start="232" end="235" type="uint"/>
3941    <field name="CV3" start="236" end="239" type="uint"/>
3942    <field name="CV4" start="240" end="243" type="uint"/>
3943    <field name="CV5" start="244" end="247" type="uint"/>
3944    <field name="CV6" start="248" end="251" type="uint"/>
3945    <field name="CV7" start="252" end="255" type="uint"/>
3946  </instruction>
3947
3948  <instruction name="MFD_AVC_BSD_OBJECT" bias="2" length="6" engine="video">
3949    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
3950    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
3951    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
3952    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3953    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3954    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3955    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
3956    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
3957    <field name="Inline Data" start="96" end="191" type="INLINE_DATA_DESCRIPTION_FOR_MFD_AVC_BSD_OBJECT"/>
3958  </instruction>
3959
3960  <instruction name="MFD_AVC_DPB_STATE" bias="2" length="27" engine="video">
3961    <field name="DWord Length" start="0" end="11" type="uint" default="9"/>
3962    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
3963    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
3964    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3965    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3966    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3967    <group count="16" start="32" size="1">
3968      <field name="Non-Existing Frame" start="0" end="0" type="uint">
3969        <value name="INVALID" value="1"/>
3970        <value name="VALID" value="0"/>
3971      </field>
3972    </group>
3973    <group count="16" start="48" size="1">
3974      <field name="Long Term Frame" start="0" end="0" type="uint"/>
3975    </group>
3976    <group count="16" start="64" size="2">
3977      <field name="Used for Reference" start="0" end="1" type="uint">
3978        <value name="NOT_REFERENCE" value="0"/>
3979        <value name="TOP_FIELD" value="1"/>
3980        <value name="BOTTOM_FIELD" value="2"/>
3981        <value name="FRAME" value="3"/>
3982      </field>
3983    </group>
3984    <group count="16" start="96" size="16">
3985      <field name="LTST Frame Number List" start="0" end="15" type="uint" prefix="LTST">
3986        <value name="Long Term Frame" value="1"/>
3987        <value name="Short Term Frame" value="0"/>
3988      </field>
3989    </group>
3990    <group count="16" start="352" size="16">
3991      <field name="View ID" start="0" end="15" type="uint"/>
3992    </group>
3993    <group count="16" start="608" size="8">
3994      <field name="L0 View Order" start="0" end="7" type="uint"/>
3995    </group>
3996    <group count="16" start="736" size="8">
3997      <field name="L1 View Order" start="0" end="7" type="uint"/>
3998    </group>
3999  </instruction>
4000
4001  <instruction name="MFD_AVC_PICID_STATE" bias="2" length="10" engine="video">
4002    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4003    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
4004    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4005    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4006    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4007    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4008    <field name="PictureID Remapping Disable" start="32" end="32" type="uint">
4009      <value name="Use 16 bits Picture ID" value="0"/>
4010      <value name="Use 4 bits FrameStoreID" value="1"/>
4011    </field>
4012    <group count="16" start="64" size="16">
4013      <field name="Picture ID" start="0" end="15" type="uint"/>
4014    </group>
4015  </instruction>
4016
4017  <instruction name="MFD_AVC_SLICEADDR" bias="2" length="3" engine="video">
4018    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
4019    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
4020    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4021    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4022    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4023    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4024    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
4025    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
4026  </instruction>
4027
4028  <instruction name="MFD_IT_OBJECT" bias="2" engine="video">
4029    <field name="DWord Length" start="0" end="11" type="uint" default="6"/>
4030    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
4031    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4032    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4033    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4034    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4035    <field name="Indirect IT-MV Data Length" start="32" end="41" type="uint"/>
4036    <field name="Indirect IT-MV Data Start Address Offset" start="64" end="92" type="offset"/>
4037    <field name="Indirect IT-COEFF Data Length" start="96" end="107" type="uint"/>
4038    <field name="Indirect IT-COEFF Data Start Address Offset" start="128" end="156" type="offset"/>
4039    <field name="Indirect IT-DBLK Control Data Length" start="160" end="165" type="uint"/>
4040    <field name="Indirect IT-DBLK Control Data Start Address Offset" start="192" end="220" type="offset"/>
4041    <group count="0" start="224" size="32">
4042      <field name="Inline Data" start="0" end="31" type="uint"/>
4043    </group>
4044  </instruction>
4045
4046  <instruction name="MFD_JPEG_BSD_OBJECT" bias="2" length="6" engine="video">
4047    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
4048    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4049    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4050    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
4051    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4052    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4053    <field name="Indirect Data Length" start="32" end="63" type="uint"/>
4054    <field name="Indirect Data Start Address" start="64" end="92" type="offset"/>
4055    <field name="Scan Vertical Position" start="96" end="108" type="uint"/>
4056    <field name="Scan Horizontal Position" start="112" end="124" type="uint"/>
4057    <field name="MCU Count" start="128" end="153" type="uint"/>
4058    <field name="Scan Components" start="155" end="157" type="uint"/>
4059    <field name="Interleaved" start="158" end="158" type="bool"/>
4060    <field name="Restart Interval" start="160" end="175" type="uint"/>
4061  </instruction>
4062
4063  <instruction name="MFD_MPEG2_BSD_OBJECT" bias="2" length="5" engine="video">
4064    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4065    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4066    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4067    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
4068    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4069    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4070    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
4071    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
4072    <field name="Inline Data" start="96" end="159" type="MFD_MPEG2_BSD_OBJECT_INLINE_DATA_DESCRIPTION"/>
4073  </instruction>
4074
4075  <instruction name="MFD_VC1_BSD_OBJECT" bias="2" length="5" engine="video">
4076    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4077    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4078    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4079    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
4080    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4081    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4082    <field name="Indirect BSD Data Length" start="32" end="55" type="uint"/>
4083    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
4084    <field name="Next Slice Vertical Position" start="96" end="104" type="uint"/>
4085    <field name="Slice Start Vertical Position" start="112" end="119" type="uint"/>
4086    <field name="First MB Bit Offset" start="128" end="130" type="uint"/>
4087    <field name="Emulation Prevention Byte Present" start="132" end="132" type="uint"/>
4088    <field name="First MB Byte Offset of Slice Data or Slice Header" start="144" end="159" type="uint"/>
4089  </instruction>
4090
4091  <instruction name="MFD_VC1_LONG_PIC_STATE" bias="2" length="6" engine="video">
4092    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
4093    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
4094    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4095    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
4096    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4097    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4098    <field name="Picture Width In MBs" start="32" end="39" type="uint"/>
4099    <field name="Picture Height In MBs" start="48" end="55" type="uint"/>
4100    <field name="VC1 Profile" start="64" end="64" type="uint">
4101      <value name="Simple/Main Profile" value="0"/>
4102      <value name="Advanced Profile" value="1"/>
4103    </field>
4104    <field name="Second Field" start="67" end="67" type="bool"/>
4105    <field name="Overlap Smoothing Enable" start="68" end="68" type="bool"/>
4106    <field name="Loop Filter Enable" start="69" end="69" type="bool"/>
4107    <field name="Range Reduction Enable" start="70" end="70" type="bool"/>
4108    <field name="Range Reduction Scale" start="71" end="71" type="uint"/>
4109    <field name="MV Mode" start="72" end="75" type="uint"/>
4110    <field name="Sync Marker" start="76" end="76" type="bool"/>
4111    <field name="Interpolation Rounder Control" start="77" end="77" type="bool"/>
4112    <field name="Implicit Quantizer" start="78" end="78" type="bool"/>
4113    <field name="DMV Surface Valid" start="79" end="79" type="bool"/>
4114    <field name="Bitplane Buffer Pitch" start="88" end="95" type="uint"/>
4115    <field name="B Scale Factor" start="96" end="103" type="uint"/>
4116    <field name="PQ Value" start="104" end="108" type="uint"/>
4117    <field name="Alternative PQ Value" start="112" end="116" type="uint"/>
4118    <field name="Frame Coding Mode" start="120" end="121" type="uint">
4119      <value name="Progressive Frame Picture" value="0"/>
4120      <value name="Interlaced Frame Picture" value="1"/>
4121      <value name="Field Picture with Top Field First" value="2"/>
4122      <value name="Field Picture with Bottom Field First" value="3"/>
4123    </field>
4124    <field name="Picure Type" start="122" end="124" type="uint"/>
4125    <field name="CONDOVER" start="125" end="126" type="uint"/>
4126    <field name="PQ Uniform" start="128" end="128" type="bool"/>
4127    <field name="Half QP" start="129" end="129" type="bool"/>
4128    <field name="Alternative PQ Configuration" start="130" end="131" type="uint"/>
4129    <field name="Alternative PQ Edge Mask" start="132" end="135" type="uint"/>
4130    <field name="Extended MV Range" start="136" end="137" type="uint"/>
4131    <field name="Extended DMV Range" start="138" end="139" type="uint"/>
4132    <field name="Forward Reference Distance" start="144" end="147" type="uint"/>
4133    <field name="Backward Reference Distance" start="148" end="151" type="uint"/>
4134    <field name="Number of References" start="152" end="152" type="uint">
4135      <value name="One field referenced" value="0"/>
4136      <value name="Two fields referenced" value="1"/>
4137    </field>
4138    <field name="Reference Field Picture Polarity" start="153" end="153" type="uint">
4139      <value name="Top (even) Field" value="0"/>
4140      <value name="Bottom (odd) Field" value="1"/>
4141    </field>
4142    <field name="Fast UV Motion Compensation" start="154" end="154" type="uint">
4143      <value name="No Rounding" value="0"/>
4144      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
4145    </field>
4146    <field name="Four MV Switch" start="155" end="155" type="uint">
4147      <value name="Only 1-MV" value="0"/>
4148      <value name="1, 2, or 4 MVs" value="1"/>
4149    </field>
4150    <field name="Unified MV Mode" start="156" end="157" type="uint">
4151      <value name="1-MV half-pel bilinear" value="3"/>
4152      <value name="1-MV" value="1"/>
4153      <value name="1-MV half-pel" value="2"/>
4154      <value name="Mixed MV" value="0"/>
4155    </field>
4156    <field name="Coded Block Pattern Table" start="160" end="162" type="uint"/>
4157    <field name="Intra Transform DC Table" start="163" end="163" type="uint"/>
4158    <field name="Picture-level Transform Chroma AC Coding Set Index" start="164" end="165" type="uint"/>
4159    <field name="Picture-level Transform Luma AC Coding Set Index" start="166" end="167" type="uint"/>
4160    <field name="MB Mode Table" start="168" end="170" type="uint"/>
4161    <field name="MB Transform Type" start="171" end="171" type="bool"/>
4162    <field name="Picture-level Transform Type" start="172" end="173" type="uint">
4163      <value name="8x8 Transform" value="0"/>
4164      <value name="8x4 Transform" value="1"/>
4165      <value name="4x8 Transform" value="2"/>
4166      <value name="4x4 Transform" value="3"/>
4167    </field>
4168    <field name="2-MV Block Pattern Table" start="176" end="177" type="uint"/>
4169    <field name="4-MV Block Pattern Table" start="178" end="179" type="uint"/>
4170    <field name="MV Table" start="180" end="182" type="uint"/>
4171    <field name="FIELDTX Raw" start="184" end="184" type="bool"/>
4172    <field name="ACPRED Raw" start="185" end="185" type="bool"/>
4173    <field name="OVERFLAGS Raw" start="186" end="186" type="bool"/>
4174    <field name="DIRECTMB Raw" start="187" end="187" type="bool"/>
4175    <field name="SKIPMB Raw" start="188" end="188" type="bool"/>
4176    <field name="MVTYPEMB Raw" start="189" end="189" type="bool"/>
4177    <field name="FORWARDMB Raw" start="190" end="190" type="bool"/>
4178    <field name="Bitplane Buffer Present" start="191" end="191" type="bool"/>
4179  </instruction>
4180
4181  <instruction name="MFD_VC1_SHORT_PIC_STATE" bias="2" length="5" engine="video">
4182    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4183    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4184    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4185    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
4186    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4187    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4188    <field name="Picture Width" start="32" end="39" type="uint"/>
4189    <field name="Picture Height" start="48" end="55" type="uint"/>
4190    <field name="Picture Structure" start="64" end="65" type="uint"/>
4191    <field name="Second Field" start="67" end="67" type="bool"/>
4192    <field name="Intra Picture" start="68" end="68" type="bool"/>
4193    <field name="Backward Prediction Present" start="69" end="69" type="bool"/>
4194    <field name="VC1 Profile" start="75" end="75" type="uint">
4195      <value name="Simple/Main Profile" value="0"/>
4196      <value name="Advanced Profile" value="1"/>
4197    </field>
4198    <field name="DMV Surface Valid" start="79" end="79" type="bool"/>
4199    <field name="MV Mode" start="80" end="83" type="uint"/>
4200    <field name="Interpolation Rounder Control" start="87" end="87" type="bool"/>
4201    <field name="Bitplane Buffer Pitch" start="88" end="95" type="uint"/>
4202    <field name="variable-sized transform coding" start="96" end="96" type="bool"/>
4203    <field name="DQUANT" start="97" end="98" type="uint"/>
4204    <field name="EXTENDED_MV Present" start="99" end="99" type="bool"/>
4205    <field name="Fast UV Motion Compensation" start="100" end="100" type="uint">
4206      <value name="No Rounding" value="0"/>
4207      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
4208    </field>
4209    <field name="Loop Filter Enable" start="101" end="101" type="bool"/>
4210    <field name="REFDIST_FLAG" start="102" end="102" type="bool"/>
4211    <field name="PANSCAN Present" start="103" end="103" type="bool"/>
4212    <field name="MAXBFRAMES" start="104" end="106" type="uint"/>
4213    <field name="RANGERED Present" start="107" end="107" type="bool"/>
4214    <field name="SYNCMARKER Present" start="108" end="108" type="bool"/>
4215    <field name="MULTIRES Present" start="109" end="109" type="bool"/>
4216    <field name="QUANTIZER" start="110" end="111" type="uint"/>
4217    <field name="P-Pic Ref Distance" start="112" end="116" type="uint"/>
4218    <field name="Progressive Pic Type" start="118" end="119" type="uint"/>
4219    <field name="Range Reduction Enable" start="124" end="124" type="uint"/>
4220    <field name="Range Reduction Scale" start="125" end="125" type="uint"/>
4221    <field name="Overlap Smoothing Enable" start="126" end="126" type="bool"/>
4222    <field name="EXTENDED_DMV Present" start="128" end="128" type="bool"/>
4223    <field name="PSF" start="129" end="129" type="bool"/>
4224    <field name="REFPIC" start="130" end="130" type="bool"/>
4225    <field name="FINTERFLAG" start="131" end="131" type="bool"/>
4226    <field name="TFCNTRFLAG" start="132" end="132" type="bool"/>
4227    <field name="INTERLACE" start="133" end="133" type="bool"/>
4228    <field name="PULLDOWN" start="134" end="134" type="bool"/>
4229    <field name="POSTPROC" start="135" end="135" type="bool"/>
4230    <field name="4-MV Allowed" start="136" end="136" type="bool"/>
4231    <field name="BFraction Enumeration" start="152" end="156" type="uint"/>
4232  </instruction>
4233
4234  <instruction name="MFD_VP8_BSD_OBJECT" bias="2" length="22" engine="video">
4235    <field name="DWord Length" start="0" end="11" type="uint" default="20"/>
4236    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4237    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4238    <field name="Media Command OpCode" start="24" end="26" type="uint" default="4"/>
4239    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4240    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4241    <field name="Partition0 First MB Bit Offset from Frame Header" start="32" end="34" type="uint"/>
4242    <field name="Coded Num of Coeff Token Partitions" start="36" end="37" type="uint"/>
4243    <field name="Partition0 CPBAC Entropy Range" start="40" end="47" type="uint"/>
4244    <field name="Partition0 CPBAC Entropy Count" start="48" end="52" type="uint"/>
4245    <field name="Partition0 CPBAC Entropy Value" start="88" end="95" type="uint"/>
4246    <field name="Indirect Partition0 Data Length" start="96" end="119" type="uint"/>
4247    <field name="Indirect Partition0 Data Start Offset" start="128" end="159" type="uint"/>
4248    <field name="Indirect Partition1 Data Length" start="160" end="183" type="uint"/>
4249    <field name="Indirect Partition1 Data Start Offset" start="192" end="223" type="uint"/>
4250    <field name="Indirect Partition2 Data Length" start="224" end="247" type="uint"/>
4251    <field name="Indirect Partition2 Data Start Offset" start="256" end="287" type="uint"/>
4252    <field name="Indirect Partition3 Data Length" start="288" end="311" type="uint"/>
4253    <field name="Indirect Partition3 Data Start Offset" start="320" end="351" type="uint"/>
4254    <field name="Indirect Partition4 Data Length" start="352" end="375" type="uint"/>
4255    <field name="Indirect Partition4 Data Start Offset" start="384" end="415" type="uint"/>
4256    <field name="Indirect Partition5 Data Length" start="416" end="439" type="uint"/>
4257    <field name="Indirect Partition5 Data Start Offset" start="448" end="479" type="uint"/>
4258    <field name="Indirect Partition6 Data Length" start="480" end="503" type="uint"/>
4259    <field name="Indirect Partition6 Data Start Offset" start="512" end="543" type="uint"/>
4260    <field name="Indirect Partition7 Data Length" start="544" end="567" type="uint"/>
4261    <field name="Indirect Partition7 Data Start Offset" start="576" end="607" type="uint"/>
4262    <field name="Indirect Partition8 Data Length" start="608" end="631" type="uint"/>
4263    <field name="Indirect Partition8 Data Start Offset" start="640" end="671" type="uint"/>
4264    <field name="MB Header Error Handling" start="680" end="680" type="uint"/>
4265    <field name="Entropy Error Handling" start="682" end="682" type="uint"/>
4266    <field name="MPR Error (MV out of range) Handling" start="684" end="684" type="uint"/>
4267    <field name="BSD Premature Complete Error Handling" start="686" end="686" type="uint"/>
4268    <field name="Concealment Picture ID" start="688" end="689" type="uint"/>
4269    <field name="Concealment Method" start="703" end="703" type="uint">
4270      <value name="Intra 16x16 Prediction" value="0"/>
4271      <value name="Inter P Copy" value="1"/>
4272    </field>
4273  </instruction>
4274
4275  <instruction name="MFX_AVC_DIRECTMODE_STATE" bias="2" length="71" engine="video">
4276    <field name="DWord Length" start="0" end="11" type="uint" default="69"/>
4277    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
4278    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4279    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4280    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4281    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4282    <group count="16" start="32" size="64">
4283      <field name="Direct MV Buffer - Address" start="0" end="63" type="address"/>
4284    </group>
4285    <field name="Direct MV Buffer - Attributes" start="1056" end="1087" type="MEMORYADDRESSATTRIBUTES"/>
4286    <field name="Direct MV Buffer (Write) - Address" start="1088" end="1151" type="address"/>
4287    <field name="Direct MV Buffer (Write) - Attributes" start="1152" end="1183" type="MEMORYADDRESSATTRIBUTES"/>
4288    <group count="34" start="1184" size="32">
4289      <field name="POC List" start="0" end="31" type="uint"/>
4290    </group>
4291  </instruction>
4292
4293  <instruction name="MFX_AVC_IMG_STATE" bias="2" length="14" engine="video">
4294    <field name="DWord Length" start="0" end="11" type="uint" default="12"/>
4295    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4296    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4297    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4298    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4299    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4300    <field name="Frame Size" start="32" end="47" type="uint"/>
4301    <field name="Frame Width" start="64" end="71" type="uint"/>
4302    <field name="Frame Height" start="80" end="87" type="uint"/>
4303    <field name="Image Structure" start="104" end="105" type="uint">
4304      <value name="Frame Picture" value="0"/>
4305      <value name="Top Field Picture" value="1"/>
4306      <value name="Bottom Field Picture" value="3"/>
4307      <value name="Invalid, not allowed." value="2"/>
4308    </field>
4309    <field name="Weighted BiPrediction IDC" start="106" end="107" type="uint">
4310      <value name="DEFAULT" value="0"/>
4311      <value name="EXPLICIT" value="1"/>
4312      <value name="IMPLICIT" value="2"/>
4313    </field>
4314    <field name="Weighted Prediction Enable" start="108" end="108" type="bool"/>
4315    <field name="Rho Domain Rate Control Enable" start="109" end="109" type="bool"/>
4316    <field name="First Chroma QP Offset" start="112" end="116" type="uint"/>
4317    <field name="Second Chroma QP Offset" start="120" end="124" type="uint"/>
4318    <field name="Field Picure" start="128" end="128" type="bool"/>
4319    <field name="MBAFF Mode" start="129" end="129" type="bool"/>
4320    <field name="Frame MB Only" start="130" end="130" type="bool"/>
4321    <field name="8x8 IDCT Transform Mode" start="131" end="131" type="bool"/>
4322    <field name="Direct 8x8 Inference" start="132" end="132" type="bool"/>
4323    <field name="Constrained Intra Prediction" start="133" end="133" type="bool"/>
4324    <field name="Non-Reference Picture" start="134" end="134" type="bool"/>
4325    <field name="Entropy Coding Sync Enable" start="135" end="135" type="bool"/>
4326    <field name="MB MV Format" start="136" end="136" type="uint">
4327      <value name="IGNORE" value="0"/>
4328      <value name="FOLLOW" value="1"/>
4329    </field>
4330    <field name="Chroma Format IDC" start="138" end="139" type="uint">
4331      <value name="Monochrome picture" value="0"/>
4332      <value name="4:2:0 picture" value="1"/>
4333      <value name="4:2:2 picture (not supported)" value="2"/>
4334      <value name="4:4:4 picture (not supported)" value="3"/>
4335    </field>
4336    <field name="MV Unpacked Enable" start="140" end="140" type="bool"/>
4337    <field name="Load Bitstream Pointer Per Slice" start="142" end="142" type="bool"/>
4338    <field name="MB Status Read" start="143" end="143" type="bool"/>
4339    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
4340    <field name="Intra MB Max Bit Control" start="160" end="160" type="bool"/>
4341    <field name="Inter MB Max Bit Control" start="161" end="161" type="bool"/>
4342    <field name="Frame Bitrate Max Report" start="162" end="162" type="bool"/>
4343    <field name="Frame Bitrate Min Report" start="163" end="163" type="bool"/>
4344    <field name="Force IPCM Control" start="167" end="167" type="bool"/>
4345    <field name="MB Level Rate Control" start="169" end="169" type="bool"/>
4346    <field name="Minimum Frame Size Units" start="170" end="171" type="uint" prefix="AVC_MFSU">
4347      <value name="Compatibility mode" value="0"/>
4348      <value name="16 bytes" value="1"/>
4349      <value name="4Kb" value="2"/>
4350      <value name="16Kb" value="3"/>
4351    </field>
4352    <field name="Non First Pass" start="176" end="176" type="uint"/>
4353    <field name="Trellis Quantization Chroma Disable" start="187" end="187" type="bool"/>
4354    <field name="Trellis Quantization Rounding" start="188" end="190" type="uint"/>
4355    <field name="Trellis Quantization Enable" start="191" end="191" type="bool"/>
4356    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
4357    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
4358    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
4359    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
4360    <field name="Slice Delta QP Max[2]" start="272" end="279" type="uint"/>
4361    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
4362    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
4363    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
4364    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
4365    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
4366    <field name="Frame Bitrate Min" start="320" end="333" type="uint"/>
4367    <field name="Frame Bitrate Min Unit Mode" start="334" end="334" type="uint">
4368      <value name="Compatibility mode" value="0"/>
4369      <value name="New mode" value="1"/>
4370    </field>
4371    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
4372    <field name="Frame Bitrate Max" start="336" end="349" type="uint"/>
4373    <field name="Frame Bitrate Max Unit Mode" start="350" end="350" type="uint">
4374      <value name="Compatibility mode" value="0"/>
4375      <value name="New mode" value="1"/>
4376    </field>
4377    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
4378    <field name="Frame Bitrate Min Delta" start="352" end="366" type="uint"/>
4379    <field name="Frame Bitrate Max Delta" start="368" end="382" type="uint"/>
4380    <field name="Slice Stats Stream-Out Enable" start="383" end="383" type="bool"/>
4381    <field name="Initial QP Value" start="416" end="423" type="int"/>
4382    <field name="Number of Active Reference Pictures from L0" start="424" end="429" type="uint"/>
4383    <field name="Number of Active Reference Pictures from L1" start="432" end="437" type="uint"/>
4384    <field name="Number of Reference Frames" start="440" end="444" type="uint"/>
4385    <field name="Current Picture Has Performed MMCO5" start="445" end="445" type="bool"/>
4386    <field name="Pic Order Present" start="448" end="448" type="bool"/>
4387    <field name="Delta Pic Order Always Zero" start="449" end="449" type="bool"/>
4388    <field name="Pic Order Count Type" start="450" end="451" type="uint"/>
4389    <field name="Slice Group Map Type" start="456" end="458" type="uint"/>
4390    <field name="Redundant Pic Count Present" start="459" end="459" type="bool"/>
4391    <field name="Number of Slice Groups" start="460" end="462" type="uint"/>
4392    <field name="Deblocking Filter Control Present" start="463" end="463" type="bool"/>
4393    <field name="Log2 Max Frame Number" start="464" end="471" type="uint"/>
4394    <field name="Log2 Max Pic Order Count LSB" start="472" end="479" type="uint"/>
4395    <field name="Slice Group Change Rate" start="480" end="495" type="uint"/>
4396    <field name="Current Picture Frame Number" start="496" end="511" type="uint"/>
4397    <field name="Current Frame View ID" start="512" end="521" type="uint"/>
4398    <field name="Max View IDXL0" start="524" end="527" type="uint"/>
4399    <field name="Max View IDXL1" start="530" end="533" type="uint"/>
4400    <field name="Inter View Order Disable" start="543" end="543" type="bool"/>
4401    <field name="Rho Domain Average MB QP" start="560" end="565" type="uint"/>
4402    <field name="Threshold Size" start="608" end="639" type="uint"/>
4403    <field name="Target Slice Size" start="640" end="671" type="uint"/>
4404  </instruction>
4405
4406  <instruction name="MFX_AVC_REF_IDX_STATE" bias="2" length="10" engine="video">
4407    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4408    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
4409    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4410    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4411    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4412    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4413    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
4414    <group count="32" start="64" size="8">
4415      <field name="Reference List Entry" start="0" end="7" type="uint"/>
4416    </group>
4417  </instruction>
4418
4419  <instruction name="MFX_AVC_SLICE_STATE" bias="2" length="10" engine="video">
4420    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4421    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
4422    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4423    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4424    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4425    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4426    <field name="Slice Type" start="32" end="35" type="uint" prefix="AVC_ST">
4427      <value name="P Slice" value="0"/>
4428      <value name="B Slice" value="1"/>
4429      <value name="I Slice" value="2"/>
4430    </field>
4431    <field name="Log2 Weight Denominator Luma" start="64" end="66" type="uint"/>
4432    <field name="Log2 Weight Denominator Chroma" start="72" end="74" type="uint"/>
4433    <field name="Number of Reference Pictures in Inter-prediction List 0" start="80" end="85" type="uint"/>
4434    <field name="Number of Reference Pictures in Inter-prediction List 1" start="88" end="93" type="uint"/>
4435    <field name="Slice Alpha C0 Offset Div2" start="96" end="99" type="int"/>
4436    <field name="Slice Beta Offset Div2" start="104" end="107" type="int"/>
4437    <field name="Slice Quantization Parameter" start="112" end="117" type="uint"/>
4438    <field name="CABAC Init IDC" start="120" end="121" type="uint"/>
4439    <field name="Disable Deblocking Filter Indicator" start="123" end="124" type="uint"/>
4440    <field name="Direct Prediction Type" start="125" end="125" type="uint">
4441      <value name="Temporal" value="0"/>
4442      <value name="Spatial" value="1"/>
4443    </field>
4444    <field name="Weighted Prediction Indicator" start="126" end="127" type="uint"/>
4445    <field name="Slice Start MB Number" start="128" end="142" type="uint"/>
4446    <field name="Slice Horizontal Position" start="144" end="151" type="uint"/>
4447    <field name="Slice Vertical Position" start="152" end="159" type="uint"/>
4448    <field name="Next Slice Horizontal Position" start="160" end="167" type="uint"/>
4449    <field name="Next Slice Vertical Position" start="176" end="183" type="uint"/>
4450    <field name="Stream ID" start="192" end="193" type="uint"/>
4451    <field name="Slice ID" start="196" end="199" type="uint"/>
4452    <field name="CABAC Zero Word Insertion Enable" start="204" end="204" type="bool"/>
4453    <field name="Emulation Byte Slice Insert Enable" start="205" end="205" type="bool"/>
4454    <field name="Tail Insertion Present" start="207" end="207" type="bool"/>
4455    <field name="Slice Data Insertion Present" start="208" end="208" type="bool"/>
4456    <field name="Header Insertion Present" start="209" end="209" type="bool"/>
4457    <field name="Last Slice Group" start="211" end="211" type="bool"/>
4458    <field name="MB Type Skip Conversion Disable" start="212" end="212" type="bool"/>
4459    <field name="MB Type Direct Conversion Disable" start="213" end="213" type="bool"/>
4460    <field name="Rate Control Panic Type" start="214" end="214" type="uint">
4461      <value name="QP Panic" value="0"/>
4462      <value name="CBP Panic" value="1"/>
4463    </field>
4464    <field name="Rate Control Panic Enable" start="215" end="215" type="bool"/>
4465    <field name="Rate Control Stable Tolerance" start="216" end="219" type="uint"/>
4466    <field name="Rate Control Triggle Mode" start="220" end="221" type="uint">
4467      <value name="Always Rate Control" value="0"/>
4468      <value name="Gentle Rate Control" value="1"/>
4469      <value name="Loose Rate Control" value="2"/>
4470    </field>
4471    <field name="Reset Rate Control Counter" start="222" end="222" type="bool"/>
4472    <field name="Rate Control Counter Enable" start="223" end="223" type="uint"/>
4473    <field name="Indirect PAK-BSE Data Start Address" start="224" end="252" type="offset"/>
4474    <field name="Grow Init" start="256" end="259" type="uint"/>
4475    <field name="Grow Resistance" start="260" end="263" type="uint"/>
4476    <field name="Shrink Init" start="264" end="267" type="uint"/>
4477    <field name="Shrink Resistance" start="268" end="271" type="uint"/>
4478    <field name="QP Max Positive Modifier Magnitude" start="272" end="279" type="uint"/>
4479    <field name="QP Max Negative Modifier Magnitude" start="280" end="287" type="uint"/>
4480    <field name="Correct 1" start="288" end="291" type="uint"/>
4481    <field name="Correct 2" start="292" end="295" type="uint"/>
4482    <field name="Correct 3" start="296" end="299" type="uint"/>
4483    <field name="Correct 4" start="300" end="303" type="uint"/>
4484    <field name="Correct 5" start="304" end="307" type="uint"/>
4485    <field name="Correct 6" start="308" end="311" type="uint"/>
4486    <field name="Round Intra" start="312" end="314" type="uint">
4487      <value name="+1/16" value="0"/>
4488      <value name="+2/16" value="1"/>
4489      <value name="+3/16" value="2"/>
4490      <value name="+4/16" value="3"/>
4491      <value name="+5/16" value="4"/>
4492      <value name="+6/16" value="5"/>
4493      <value name="+7/16" value="6"/>
4494      <value name="+8/16" value="7"/>
4495    </field>
4496    <field name="Round Intra Enable" start="315" end="315" type="bool"/>
4497    <field name="Round Inter" start="316" end="318" type="uint">
4498      <value name="+1/16" value="0"/>
4499      <value name="+2/16" value="1"/>
4500      <value name="+3/16" value="2"/>
4501      <value name="+4/16" value="3"/>
4502      <value name="+5/16" value="4"/>
4503      <value name="+6/16" value="5"/>
4504      <value name="+7/16" value="6"/>
4505      <value name="+8/16" value="7"/>
4506    </field>
4507    <field name="Round Inter Enable" start="319" end="319" type="bool"/>
4508    <field name="CV0" start="320" end="323" type="uint"/>
4509    <field name="CV1" start="324" end="327" type="uint"/>
4510    <field name="CV2" start="328" end="331" type="uint"/>
4511    <field name="CV3" start="332" end="335" type="uint"/>
4512    <field name="CV4" start="336" end="339" type="uint"/>
4513    <field name="CV5" start="340" end="343" type="uint"/>
4514    <field name="CV6" start="344" end="347" type="uint"/>
4515    <field name="CV7" start="348" end="351" type="uint"/>
4516  </instruction>
4517
4518  <instruction name="MFX_AVC_WEIGHTOFFSET_STATE" bias="2" length="98" engine="video">
4519    <field name="DWord Length" start="0" end="11" type="uint" default="96"/>
4520    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
4521    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4522    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4523    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4524    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4525    <field name="Weight and Offset Select" start="32" end="32" type="uint">
4526      <value name="L0 table" value="0"/>
4527      <value name="L1 table" value="1"/>
4528    </field>
4529    <group count="96" start="64" size="32">
4530      <field name="Weight Offset" start="0" end="31" type="uint"/>
4531    </group>
4532  </instruction>
4533
4534  <instruction name="MFX_BSP_BUF_BASE_ADDR_STATE" bias="2" length="10" engine="video">
4535    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4536    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
4537    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4538    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4539    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4540    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4541    <field name="BSD/MPC Row Store Scratch Buffer - Address" start="38" end="79" type="address"/>
4542    <field name="BSD/MPC Row Store Scratch Buffer - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
4543    <field name="MPR Row Store Scratch Buffer - Address" start="134" end="175" type="address"/>
4544    <field name="MPR Row Store Scratch Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
4545    <field name="Bitplane Read Buffer - Address" start="230" end="271" type="address"/>
4546    <field name="Bitplane Read Buffer - Attributes" start="288" end="319" type="MEMORYADDRESSATTRIBUTES"/>
4547  </instruction>
4548
4549  <instruction name="MFX_DBK_OBJECT" bias="2" length="13" engine="video">
4550    <field name="DWord Length" start="0" end="11" type="uint" default="11"/>
4551    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
4552    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4553    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4554    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4555    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4556    <field name="Pre Deblocking Source - Address" start="38" end="79" type="address"/>
4557    <field name="Pre Deblocking Source - MOCS" start="97" end="102" type="uint"/>
4558    <field name="Pre Deblocking Source - Arbitration Priority Control" start="103" end="104" type="uint">
4559      <value name="Highest priority" value="0"/>
4560      <value name="Second highest priority" value="1"/>
4561      <value name="Third highest priority" value="2"/>
4562      <value name="Lowest priority" value="3"/>
4563    </field>
4564    <field name="Pre Deblocking Source - Memory Compression Enable" start="105" end="105" type="bool"/>
4565    <field name="Pre Deblocking Source - Memory Compression Mode" start="106" end="106" type="uint"/>
4566    <field name="Pre Deblocking Source - Tiled Resource Mode" start="109" end="110" type="uint">
4567      <value name="TRMODE_NONE" value="0"/>
4568      <value name="TRMODE_TILEYF" value="1"/>
4569      <value name="TRMODE_TILEYS" value="2"/>
4570    </field>
4571    <field name="Deblocking Control - Address" start="134" end="175" type="address"/>
4572    <field name="Deblocking Control - MOCS" start="193" end="198" type="uint"/>
4573    <field name="Deblocking Control - Arbitration Priority Control" start="199" end="200" type="uint">
4574      <value name="Highest priority" value="0"/>
4575      <value name="Second highest priority" value="1"/>
4576      <value name="Third highest priority" value="2"/>
4577      <value name="Lowest priority" value="3"/>
4578    </field>
4579    <field name="Deblocking Control - Memory Compression Enable" start="201" end="201" type="bool"/>
4580    <field name="Deblocking Control - Memory Compression Mode" start="202" end="202" type="uint"/>
4581    <field name="Deblocking Control - Tiled Resource Mode" start="205" end="206" type="uint">
4582      <value name="TRMODE_NONE" value="0"/>
4583      <value name="TRMODE_TILEYF" value="1"/>
4584      <value name="TRMODE_TILEYS" value="2"/>
4585    </field>
4586    <field name="Deblocking Destination - Address High" start="230" end="271" type="address"/>
4587    <field name="Deblocking Destination - MOCS" start="289" end="294" type="uint"/>
4588    <field name="Deblocking Destination - Arbitration Priority Control" start="295" end="296" type="uint">
4589      <value name="Highest priority" value="0"/>
4590      <value name="Second highest priority" value="1"/>
4591      <value name="Third highest priority" value="2"/>
4592      <value name="Lowest priority" value="3"/>
4593    </field>
4594    <field name="Deblocking Destination - Memory Compression Enable" start="297" end="297" type="bool"/>
4595    <field name="Deblocking Destination - Memory Compression Mode" start="298" end="298" type="uint"/>
4596    <field name="Deblocking Destination - Tiled Resource Mode" start="301" end="302" type="uint">
4597      <value name="TRMODE_NONE" value="0"/>
4598      <value name="TRMODE_TILEYF" value="1"/>
4599      <value name="TRMODE_TILEYS" value="2"/>
4600    </field>
4601    <field name="Deblock Row Store - Address" start="326" end="367" type="address"/>
4602    <field name="CoeffProbability Stream-In - MOCS" start="385" end="390" type="uint"/>
4603    <field name="Deblock Row Store - Arbitration Priority Control" start="391" end="392" type="uint">
4604      <value name="Highest priority" value="0"/>
4605      <value name="Second highest priority" value="1"/>
4606      <value name="Third highest priority" value="2"/>
4607      <value name="Lowest priority" value="3"/>
4608    </field>
4609    <field name="Deblock Row Store - Memory Compression Enable" start="393" end="393" type="bool"/>
4610    <field name="Deblock Row Store - Memory Compression Mode" start="394" end="394" type="uint"/>
4611    <field name="Deblock Row Store - Tiled Resource Mode" start="397" end="398" type="uint">
4612      <value name="TRMODE_NONE" value="0"/>
4613      <value name="TRMODE_TILEYF" value="1"/>
4614      <value name="TRMODE_TILEYS" value="2"/>
4615    </field>
4616  </instruction>
4617
4618  <instruction name="MFX_FQM_STATE" bias="2" length="34" engine="video">
4619    <field name="DWord Length" start="0" end="11" type="uint" default="32"/>
4620    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4621    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4622    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4623    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4624    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4625    <field name="AVC" start="32" end="33" type="uint">
4626      <value name="AVC_4x4_Intra_MATRIX" value="0"/>
4627      <value name="AVC_4x4_Inter_MATRIX" value="1"/>
4628      <value name="AVC_8x8_Intra_MATRIX" value="2"/>
4629      <value name="AVC_8x8_Inter_MATRIX" value="3"/>
4630    </field>
4631    <field name="MPEG2" start="32" end="33" type="uint">
4632      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
4633      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
4634    </field>
4635    <field name="JPEG" start="32" end="33" type="uint">
4636      <value name="JPEG_Luma_Y_QUANTIZER_MATRIX (or R)" value="0"/>
4637      <value name="JPEG_Chroma_Cb_QUANTIZER_MATRIX (or G)" value="1"/>
4638      <value name="JPEG_Chroma_Cr_QUANTIZER_MATRIX (or B)" value="2"/>
4639    </field>
4640    <group count="64" start="64" size="8">
4641      <field name="Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
4642    </group>
4643  </instruction>
4644
4645  <instruction name="MFX_IND_OBJ_BASE_ADDR_STATE" bias="2" length="26" engine="video">
4646    <field name="DWord Length" start="0" end="11" type="uint" default="24"/>
4647    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
4648    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4649    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4650    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4651    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4652    <field name="MFX Indirect Bitstream Object - Address" start="32" end="95" type="address"/>
4653    <field name="MFX Indirect Bitstream Object - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
4654    <field name="MFX Indirect Bitstream Object - Upper Bound" start="128" end="191" type="address"/>
4655    <field name="MFX Indirect MV Object - Address" start="192" end="255" type="address"/>
4656    <field name="MFX Indirect MV Object - Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
4657    <field name="MFX Indirect MV Object - Upper Bound" start="288" end="351" type="address"/>
4658    <field name="MFD Indirect IT-COEFF Object - Address" start="352" end="415" type="address"/>
4659    <field name="MFD Indirect IT-COEFF Object - Attributes" start="416" end="447" type="MEMORYADDRESSATTRIBUTES"/>
4660    <field name="MFD Indirect IT-COEFF Object - Upper Bound" start="448" end="511" type="address"/>
4661    <field name="MFD Indirect IT-DBLK Object - Address" start="512" end="575" type="address"/>
4662    <field name="MFD Indirect IT-DBLK Object - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
4663    <field name="MFD Indirect IT-DBLK Object - Upper Bound" start="608" end="671" type="address"/>
4664    <field name="MFC Indirect PAK-BSE Object - Address" start="672" end="735" type="address"/>
4665    <field name="MFC Indirect PAK-BSE Object - Attributes" start="736" end="767" type="MEMORYADDRESSATTRIBUTES"/>
4666    <field name="MFC Indirect PAK-BSE Object - Upper Bound" start="768" end="831" type="address"/>
4667  </instruction>
4668
4669  <instruction name="MFX_JPEG_HUFF_TABLE_STATE" bias="2" length="831" engine="video">
4670    <field name="DWord Length" start="0" end="11" type="uint" default="829"/>
4671    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
4672    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4673    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
4674    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4675    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4676    <field name="Huffman Table ID" start="32" end="32" type="uint"/>
4677    <group count="12" start="64" size="8">
4678      <field name="DC_BITS" start="0" end="7" type="uint"/>
4679    </group>
4680    <group count="12" start="160" size="8">
4681      <field name="DC_HUFFVAL" start="0" end="7" type="uint"/>
4682    </group>
4683    <group count="16" start="256" size="8">
4684      <field name="AC_BITS" start="0" end="15" type="uint"/>
4685    </group>
4686    <group count="160" start="384" size="8">
4687      <field name="AC_HUFFVAL" start="0" end="7" type="uint"/>
4688    </group>
4689    <group count="2" start="1664" size="8">
4690      <field name="AC_HUFFVAL2" start="0" end="7" type="uint"/>
4691    </group>
4692  </instruction>
4693
4694  <instruction name="MFX_JPEG_PIC_STATE" bias="2" length="3" engine="video">
4695    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
4696    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4697    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4698    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
4699    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4700    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4701    <field name="Input Format YUV" start="32" end="34" type="uint"/>
4702    <field name="Output MCU Structure" start="32" end="34" type="uint" prefix="MCU">
4703      <value name="YUV400" value="0"/>
4704      <value name="YUV420" value="1"/>
4705      <value name="YUV422H_2Y" value="2"/>
4706      <value name="RGB" value="3"/>
4707    </field>
4708    <field name="Rotation" start="36" end="37" type="uint"/>
4709    <field name="Output Format YUV" start="40" end="43" type="uint"/>
4710    <field name="Input Surface Format YUV" start="40" end="43" type="uint" prefix="IS">
4711      <value name="NV12" value="1"/>
4712      <value name="UYVY" value="2"/>
4713      <value name="YUY2" value="3"/>
4714      <value name="Y8" value="4"/>
4715      <value name="RGB" value="5"/>
4716    </field>
4717    <field name="Average Down Sampling" start="48" end="48" type="uint"/>
4718    <field name="Vertical Down-Sampling Enable" start="49" end="49" type="bool"/>
4719    <field name="Horizontal Down-Sampling Enable" start="50" end="50" type="bool"/>
4720    <field name="Vertical Up-Sampling Enable" start="52" end="52" type="bool"/>
4721    <field name="Pixels In Vertical Last MCU" start="53" end="57" type="uint"/>
4722    <field name="Pixels In Horizontal Last MCU" start="58" end="62" type="uint"/>
4723    <field name="Frame Width In Blocks" start="64" end="76" type="uint"/>
4724    <field name="Rounding Quant" start="77" end="79" type="uint"/>
4725    <field name="Frame Height In Blocks" start="80" end="92" type="uint"/>
4726    <field name="Output Pixel Normalize" start="93" end="93" type="uint"/>
4727  </instruction>
4728
4729  <instruction name="MFX_MPEG2_PIC_STATE" bias="2" length="2" engine="video">
4730    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
4731    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4732    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4733    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
4734    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4735    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4736    <field name="Scan Order" start="38" end="38" type="uint">
4737      <value name="MPEG_ZIGZAG_SCAN" value="0"/>
4738      <value name="MPEG_ALTERNATE_VERTICAL_SCAN" value="1"/>
4739    </field>
4740    <field name="Intra VLC Format" start="39" end="39" type="uint"/>
4741    <field name="Quantizer Scale Type" start="40" end="40" type="uint">
4742      <value name="MPEG_QSCALE_LINEAR" value="0"/>
4743      <value name="MPEG_QSCALE_NONLINEAR" value="1"/>
4744    </field>
4745    <field name="Concealment MV" start="41" end="41" type="bool"/>
4746    <field name="Frame Prediction Frame DCT" start="42" end="42" type="uint"/>
4747    <field name="Top Field First" start="43" end="43" type="bool"/>
4748    <field name="Picture Structure" start="44" end="45" type="uint">
4749      <value name="MPEG_TOP_FIELD" value="1"/>
4750      <value name="MPEG_BOTTOM_FIELD" value="2"/>
4751      <value name="MPEG_FRAME" value="3"/>
4752    </field>
4753    <field name="Intra DC Precision" start="46" end="47" type="uint"/>
4754    <field name="F_code[0][0]" start="48" end="51" type="uint"/>
4755    <field name="F_code[0][1]" start="52" end="55" type="uint"/>
4756    <field name="F_code[1][0]" start="56" end="59" type="uint"/>
4757    <field name="F_code[1][1]" start="60" end="63" type="uint"/>
4758    <field name="Disable Mismatch" start="64" end="64" type="bool"/>
4759    <field name="Mismatch Control Disable" start="65" end="65" type="bool"/>
4760    <field name="Picture Coding Type" start="73" end="74" type="uint">
4761      <value name="MPEG_I_PICTURE" value="1"/>
4762      <value name="MPEG_P_PICTURE" value="2"/>
4763      <value name="MPEG_B_PICTURE" value="3"/>
4764    </field>
4765    <field name="Load Bitstream Pointer Per Slice" start="78" end="78" type="bool"/>
4766    <field name="P/B Slice Predicted MV Override" start="88" end="88" type="uint">
4767      <value name="Predicted" value="0"/>
4768      <value name="ZERO" value="1"/>
4769    </field>
4770    <field name="P/B Slice Predicted Bi-direction MV Type Override" start="89" end="90" type="uint" prefix="MPEG2_MVTO">
4771      <value name="BID" value="0"/>
4772      <value name="RESERVED" value="1"/>
4773      <value name="FWD" value="2"/>
4774      <value name="BWD" value="3"/>
4775    </field>
4776    <field name="P/B Slice Concealment Mode" start="92" end="93" type="uint" prefix="MPEG2_CM">
4777      <value name="INTER" value="0"/>
4778      <value name="LEFT" value="1"/>
4779      <value name="ZERO" value="2"/>
4780      <value name="INTRA" value="3"/>
4781    </field>
4782    <field name="I Slice Concealment Mode" start="95" end="95" type="uint" prefix="MPEG2_CM">
4783      <value name="Intra Concealment" value="0"/>
4784      <value name="Inter Concealment" value="1"/>
4785    </field>
4786    <field name="Frame Width In MBs" start="96" end="103" type="uint"/>
4787    <field name="Frame Height In MBs" start="112" end="119" type="uint"/>
4788    <field name="Slice Concealment Disable" start="127" end="127" type="bool"/>
4789    <field name="Round Intra DC" start="129" end="130" type="uint"/>
4790    <field name="Round Inter DC" start="132" end="134" type="uint"/>
4791    <field name="Round Intra AC" start="136" end="138" type="uint"/>
4792    <field name="Round Inter AC," start="140" end="142" type="uint"/>
4793    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
4794    <field name="Intra MB Max Bit Control" start="160" end="160" type="uint"/>
4795    <field name="Inter MB Max Bit Control" start="161" end="161" type="uint"/>
4796    <field name="Frame Bitrate Max Report" start="162" end="162" type="uint"/>
4797    <field name="Frame Bitrate Min Report" start="163" end="163" type="uint"/>
4798    <field name="MBRateControlMask" start="169" end="169" type="uint"/>
4799    <field name="Minimum Frame Size Units" start="170" end="171" type="uint" prefix="MPEG2_MFSU">
4800      <value name="Compatibility mode" value="0"/>
4801      <value name="16 bytes" value="1"/>
4802      <value name="4Kb" value="2"/>
4803      <value name="16Kb" value="3"/>
4804    </field>
4805    <field name="Inter MB Force CBP to Zero Control" start="172" end="172" type="uint"/>
4806    <field name="Frame Size Control" start="176" end="176" type="uint"/>
4807    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
4808    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
4809    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
4810    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
4811    <field name="Slice Delta QP Max[2]" start="272" end="279" type="int"/>
4812    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
4813    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
4814    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
4815    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
4816    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
4817    <field name="Frame Bitrate Min" start="320" end="333" type="uint"/>
4818    <field name="Frame Bitrate Min Unit Mode" start="334" end="334" type="uint">
4819      <value name="Compatibility mode" value="0"/>
4820      <value name="New Mode" value="1"/>
4821    </field>
4822    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
4823    <field name="Frame Bitrate Max" start="336" end="349" type="uint"/>
4824    <field name="Frame Bitrate Max Unit Mode" start="350" end="350" type="uint">
4825      <value name="Compatibility mode" value="0"/>
4826      <value name="New mode" value="1"/>
4827    </field>
4828    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
4829    <field name="Frame Bitrate Min Delta" start="352" end="366" type="uint"/>
4830    <field name="Frame Bitrate Max Delta" start="368" end="382" type="uint"/>
4831  </instruction>
4832
4833  <instruction name="MFX_MPEG_TS_CONTROL command" bias="2" length="5" engine="video">
4834    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4835    <field name="SubOpcode B" start="16" end="20" type="uint" default="11"/>
4836    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4837    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4838    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4839    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4840    <field name="Video PacketID Header Parameter" start="32" end="44" type="uint"/>
4841    <field name="StreamID Lower Nibble" start="52" end="55" type="uint"/>
4842    <field name="Output TS Packet Grouping Select" start="56" end="56" type="uint"/>
4843    <field name="Copy Right Flag In PES Header" start="57" end="57" type="uint"/>
4844    <field name="Original Or Flag In PES Header" start="58" end="58" type="uint"/>
4845    <field name="DSM Trick Mode Flag In PES Header" start="59" end="59" type="uint"/>
4846    <field name="Additional Copy Info Flag In PES Header" start="60" end="60" type="bool"/>
4847    <field name="Payload Unit Start Indicator Control" start="61" end="61" type="uint"/>
4848    <field name="PCR 90 KHz Component Least Significant Bits" start="64" end="95" type="uint"/>
4849    <field name="90KHz counter MSB" start="96" end="96" type="uint"/>
4850    <field name="27MHz Counter" start="119" end="127" type="uint"/>
4851    <field name="PTS Delta" start="128" end="159" type="uint"/>
4852    <field name="MPEGTS Packet Count" start="160" end="175" type="uint"/>
4853    <field name="Continuity Counter" start="188" end="191" type="uint"/>
4854  </instruction>
4855
4856  <instruction name="MFX_PAK_INSERT_OBJECT" bias="2" engine="video">
4857    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
4858    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4859    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4860    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4861    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4862    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4863    <field name="Bitstream Start Reset" start="32" end="32" type="bool"/>
4864    <field name="End of Slice" start="33" end="33" type="bool"/>
4865    <field name="Last Header" start="34" end="34" type="bool"/>
4866    <field name="Emulation Byte Bits Insert Enable" start="35" end="35" type="bool"/>
4867    <field name="Skip Emulation Byte Count" start="36" end="39" type="uint"/>
4868    <field name="Data Bits In Last DW" start="40" end="45" type="uint"/>
4869    <field name="Slice Header Indicator" start="46" end="46" type="uint">
4870      <value name="SLICE_HEADER" value="1"/>
4871      <value name="LEGACY" value="0"/>
4872    </field>
4873    <field name="Header Length Excluded From Size" start="47" end="47" type="uint">
4874      <value name="NO_ACCUMULATION" value="1"/>
4875      <value name="ACCUMULATE" value="0"/>
4876    </field>
4877    <field name="Data Byte Offset" start="48" end="49" type="uint"/>
4878    <group count="0" start="64" size="32">
4879      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
4880    </group>
4881  </instruction>
4882
4883  <instruction name="MFX_PIPE_BUF_ADDR_STATE" bias="2" length="65" engine="video">
4884    <field name="DWord Length" start="0" end="11" type="uint" default="63"/>
4885    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
4886    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4887    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4888    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4889    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4890    <field name="Pre Deblocking Destination - Address" start="38" end="79" type="address"/>
4891    <field name="Pre Deblocking Destination - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
4892    <field name="Post Deblocking Destination - Address" start="134" end="175" type="address"/>
4893    <field name="Post Deblocking Destination - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
4894    <field name="Original Uncompressed Picture Source - Address" start="230" end="271" type="address"/>
4895    <field name="Original Uncompressed Picture Source - Attributes" start="288" end="319" type="MEMORYADDRESSATTRIBUTES"/>
4896    <field name="Stream-Out Data Destination - Address" start="326" end="367" type="address"/>
4897    <field name="Stream-Out Data Destination - Attributes" start="384" end="415" type="MEMORYADDRESSATTRIBUTES"/>
4898    <field name="Intra Row Store Scratch Buffer - Address" start="422" end="463" type="address"/>
4899    <field name="Intra Row Store Scratch Buffer - Attributes" start="480" end="511" type="MEMORYADDRESSATTRIBUTES"/>
4900    <field name="Deblocking Filter Row Store Scratch - Address" start="518" end="559" type="address"/>
4901    <field name="Deblocking Filter Row Store Scratch - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
4902    <group count="16" start="608" size="64">
4903      <field name="Reference Picture - Address" start="0" end="63" type="address"/>
4904    </group>
4905    <field name="Reference Picture - Attributes" start="1632" end="1663" type="MEMORYADDRESSATTRIBUTES"/>
4906    <field name="MB Status Buffer - Address" start="1670" end="1711" type="address"/>
4907    <field name="MB Status Buffer - Attributes" start="1728" end="1759" type="MEMORYADDRESSATTRIBUTES"/>
4908    <field name="MB ILDB Stream-Out Buffer - Address" start="1766" end="1807" type="address"/>
4909    <field name="MB ILDB Stream-Out Buffer - Attributes" start="1824" end="1855" type="MEMORYADDRESSATTRIBUTES"/>
4910    <field name="Second MB ILDB Stream-Out Buffer - Address" start="1862" end="1903" type="address"/>
4911    <field name="Second MB ILDB Stream-Out Buffer - Attributes" start="1920" end="1951" type="MEMORYADDRESSATTRIBUTES"/>
4912    <group count="16" start="1952" size="2">
4913      <field name="Reference Picture - Memory Compression Mode" start="1" end="1" type="uint"/>
4914      <field name="Reference Picture - Memory Compression Enable" start="0" end="0" type="bool"/>
4915    </group>
4916    <field name="Scaled Reference Surface - Address" start="1990" end="2031" type="address"/>
4917    <field name="Scaled Reference Surface - Attributes" start="2048" end="2079" type="MEMORYADDRESSATTRIBUTES"/>
4918    <field name="SliceSize Stream-Out Data Destination - Address" start="2086" end="2127" type="address"/>
4919    <field name="SliceSize Stream-Out Data Destination - Attributes" start="2144" end="2175" type="MEMORYADDRESSATTRIBUTES"/>
4920  </instruction>
4921
4922  <instruction name="MFX_PIPE_MODE_SELECT" bias="2" length="5" engine="video">
4923    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4924    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4925    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4926    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4927    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4928    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4929    <field name="Standard Select" start="32" end="35" type="uint" prefix="SS">
4930      <value name="MPEG2" value="0"/>
4931      <value name="VC1" value="1"/>
4932      <value name="AVC" value="2"/>
4933      <value name="JPEG" value="3"/>
4934      <value name="VP8" value="5"/>
4935      <value name="UVLD" value="15"/>
4936    </field>
4937    <field name="Codec Select" start="36" end="36" type="uint">
4938      <value name="Decode" value="0"/>
4939      <value name="Encode" value="1"/>
4940    </field>
4941    <field name="Stitch Mode" start="37" end="37" type="bool"/>
4942    <field name="Frame Statistics Stream-Out Enable" start="38" end="38" type="bool"/>
4943    <field name="Scaled Surface Enable" start="39" end="39" type="bool"/>
4944    <field name="Pre Deblocking Output Enable" start="40" end="40" type="bool"/>
4945    <field name="Post Deblocking Output Enable" start="41" end="41" type="bool"/>
4946    <field name="Stream-Out Enable" start="42" end="42" type="bool"/>
4947    <field name="Pic Error/Status Report Enable" start="43" end="43" type="bool"/>
4948    <field name="Deblocker Stream-Out Enable" start="44" end="44" type="bool"/>
4949    <field name="VDEnc Mode" start="45" end="45" type="uint" prefix="VM">
4950      <value name="MBEnc Mode" value="0"/>
4951      <value name="VDEnc Mode" value="1"/>
4952    </field>
4953    <field name="Standalone VDEnc Mode Enable" start="46" end="46" type="bool"/>
4954    <field name="Decoder Mode select" start="47" end="48" type="uint">
4955      <value name="VLD Mode" value="0"/>
4956      <value name="IT Mode" value="1"/>
4957      <value name="Deblocker Mode" value="2"/>
4958      <value name="Interlayer Mode" value="3"/>
4959    </field>
4960    <field name="Decoder Short Format Mode" start="49" end="49" type="uint">
4961      <value name="Short Format Driver Interface" value="0"/>
4962      <value name="Long Format Driver Interface" value="1"/>
4963    </field>
4964    <field name="Extended Stream-Out Enable" start="50" end="50" type="bool"/>
4965    <field name="Pic Status/Error Report ID" start="96" end="127" type="uint"/>
4966  </instruction>
4967
4968  <instruction name="MFX_QM_STATE" bias="2" length="34" engine="video">
4969    <field name="DWord Length" start="0" end="11" type="uint" default="32"/>
4970    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
4971    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4972    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4973    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4974    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4975    <field name="AVC" start="32" end="33" type="uint">
4976      <value name="AVC_4x4_Intra_MATRIX" value="0"/>
4977      <value name="AVC_4x4_Inter_MATRIX" value="1"/>
4978      <value name="AVC_8x8_Intra_MATRIX" value="2"/>
4979      <value name="AVC_8x8_Inter_MATRIX" value="3"/>
4980    </field>
4981    <field name="MPEG2" start="32" end="33" type="uint">
4982      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
4983      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
4984    </field>
4985    <field name="JPEG" start="32" end="33" type="uint">
4986      <value name="JPEG_Luma_Y_QUANTIZER_MATRIX (or R)" value="0"/>
4987      <value name="JPEG_Chroma_Cb_QUANTIZER_MATRIX (or G)" value="1"/>
4988      <value name="JPEG_Chroma_Cr_QUANTIZER_MATRIX (or B)" value="2"/>
4989    </field>
4990    <group count="64" start="64" size="8">
4991      <field name="Forward Quantizer 8x8" start="0" end="7" type="uint"/>
4992    </group>
4993  </instruction>
4994
4995  <instruction name="MFX_STATE_POINTER" bias="2" length="2" engine="video">
4996    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
4997    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
4998    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4999    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5000    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5001    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5002    <field name="State Pointer Index" start="32" end="33" type="uint"/>
5003    <field name="State Pointer" start="37" end="63" type="uint"/>
5004  </instruction>
5005
5006  <instruction name="MFX_STITCH_OBJECT" bias="2" engine="video">
5007    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5008    <field name="SubOpcode B" start="16" end="20" type="uint" default="10"/>
5009    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5010    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5011    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5012    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5013    <field name="End of Slice" start="33" end="33" type="bool"/>
5014    <field name="Last Header" start="34" end="34" type="bool"/>
5015    <field name="Source Data Ending Bit Inclusion" start="40" end="45" type="uint"/>
5016    <field name="Source Data Starting Byte Offset" start="48" end="49" type="uint"/>
5017    <field name="Indirect Data Length" start="64" end="82" type="uint"/>
5018    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
5019    <group count="0" start="128" size="32">
5020      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
5021    </group>
5022  </instruction>
5023
5024  <instruction name="MFX_SURFACE_STATE" bias="2" length="6" engine="video">
5025    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
5026    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5027    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5028    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5029    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5030    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5031    <field name="Surface ID" start="32" end="35" type="uint" prefix="MFX">
5032      <value name="Source Input Picture" value="4"/>
5033      <value name="Reconstructed Scaled Reference Picture" value="5"/>
5034    </field>
5035    <field name="Cr(V)/Cb(U) Pixel Offset V Direction" start="64" end="65" type="u0.2"/>
5036    <field name="Width" start="68" end="81" type="uint"/>
5037    <field name="Height" start="82" end="95" type="uint"/>
5038    <field name="Tile Walk" start="96" end="96" type="uint" prefix="TW">
5039      <value name="XMAJOR" value="0"/>
5040      <value name="YMAJOR" value="1"/>
5041    </field>
5042    <field name="Tiled Surface" start="97" end="97" type="bool"/>
5043    <field name="Half Pitch for Chroma" start="98" end="98" type="bool"/>
5044    <field name="Surface Pitch" start="99" end="115" type="uint"/>
5045    <field name="Interleave Chroma" start="123" end="123" type="bool"/>
5046    <field name="Surface Format" start="124" end="127" type="uint" prefix="MFX">
5047      <value name="YCRCB_NORMAL" value="0"/>
5048      <value name="YCRCB_SWAPUVY" value="1"/>
5049      <value name="YCRCB_SWAPUV" value="2"/>
5050      <value name="YCRCB_SWAPY" value="3"/>
5051      <value name="PLANAR_420_8" value="4"/>
5052      <value name="PLANAR_411_8" value="5"/>
5053      <value name="PLANAR_422_8" value="6"/>
5054      <value name="STMM_DN_STATISTICS" value="7"/>
5055      <value name="R10G10B10A2_UNORM" value="8"/>
5056      <value name="R8G8B8A8_UNORM" value="9"/>
5057      <value name="R8B8_UNORM (CrCb)" value="10"/>
5058      <value name="R8_UNORM (Cr/Cb)" value="11"/>
5059      <value name="Y8_UNORM" value="12"/>
5060    </field>
5061    <field name="Y Offset for U(Cb)" start="128" end="142" type="uint"/>
5062    <field name="X Offset for U(Cb)" start="144" end="158" type="uint"/>
5063    <field name="Y Offset for V(Cr)" start="160" end="175" type="uint"/>
5064    <field name="X Offset for V(Cr)" start="176" end="188" type="uint"/>
5065  </instruction>
5066
5067  <instruction name="MFX_VC1_DIRECTMODE_STATE" bias="2" length="7" engine="video">
5068    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
5069    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
5070    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5071    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
5072    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5073    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5074    <field name="Direct MV Write Buffer - Address" start="32" end="95" type="address"/>
5075    <field name="Direct MV Write Buffer - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5076    <field name="Direct MV Read Buffer - Address" start="128" end="191" type="address"/>
5077    <field name="Direct MV Read Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
5078  </instruction>
5079
5080  <instruction name="MFX_VC1_PRED_PIPE_STATE" bias="2" length="6" engine="video">
5081    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
5082    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5083    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5084    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
5085    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5086    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5087    <field name="Reference Frame Boundary Replication Mode" start="36" end="39" type="uint"/>
5088    <field name="Vin_intensitycomp_Single_BWDen" start="40" end="41" type="uint"/>
5089    <field name="Vin_intensitycomp_Single_FWDen" start="42" end="43" type="uint"/>
5090    <field name="Vin_intensitycomp_Double_BWDen" start="44" end="45" type="uint"/>
5091    <field name="Vin_intensitycomp_Double_FWDen" start="46" end="47" type="uint"/>
5092    <field name="LumScale1 - single - FWD" start="64" end="69" type="uint"/>
5093    <field name="LumScale2 - single - FWD" start="72" end="77" type="uint"/>
5094    <field name="LumShift1 - single - FWD" start="80" end="85" type="uint"/>
5095    <field name="LumShift2 - single - FWD" start="88" end="93" type="uint"/>
5096    <field name="LumScale1 - double - FWD" start="96" end="101" type="uint"/>
5097    <field name="LumScale2 - double - FWD" start="104" end="109" type="uint"/>
5098    <field name="LumShift1 - double - FWD" start="112" end="117" type="uint"/>
5099    <field name="LumShift2 - double - FWD" start="120" end="125" type="uint"/>
5100    <field name="LumScale1 - single - BWD" start="128" end="133" type="uint"/>
5101    <field name="LumScale2 - single - BWD" start="136" end="141" type="uint"/>
5102    <field name="LumShift1 - single - BWD" start="144" end="149" type="uint"/>
5103    <field name="LumShift2 - single - BWD" start="152" end="157" type="uint"/>
5104    <field name="LumScale1 - double - BWD" start="160" end="165" type="uint"/>
5105    <field name="LumScale2 - double - BWD" start="168" end="173" type="uint"/>
5106    <field name="LumShift1 - double - BWD" start="176" end="181" type="uint"/>
5107    <field name="LumShift2 - double - BWD" start="184" end="189" type="uint"/>
5108  </instruction>
5109
5110  <instruction name="MFX_VP8_BSP_BUF_BASE_ADDR_STATE" bias="2" length="2" engine="video">
5111    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5112    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
5113    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5114    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
5115    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5116    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5117    <field name="Frame Header - Address" start="32" end="95" type="address"/>
5118    <field name="Frame Header - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5119    <field name="Intermediate Buffer - Address" start="128" end="191" type="address"/>
5120    <field name="Intermediate Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
5121    <field name="Intermediate Buffer Partition Offset" start="224" end="479" type="uint"/>
5122    <field name="Intermediate Buffer Max Size" start="480" end="511" type="uint"/>
5123    <field name="Final Frame - Address" start="512" end="575" type="address"/>
5124    <field name="Final Frame - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
5125    <field name="Final Frame Byte Offset" start="608" end="613" type="uint"/>
5126    <field name="Stream-Out - Address" start="640" end="703" type="address"/>
5127    <field name="Stream-Out - Attributes" start="704" end="735" type="MEMORYADDRESSATTRIBUTES"/>
5128    <field name="Coeff Probs Stream-In Surface - Address" start="736" end="799" type="address"/>
5129    <field name="Coeff Probs Stream-In Surface - Attributes" start="800" end="831" type="MEMORYADDRESSATTRIBUTES"/>
5130    <field name="Token Statistics Surface - Address" start="832" end="895" type="address"/>
5131    <field name="Token Statistics Surface - Attributes" start="896" end="927" type="MEMORYADDRESSATTRIBUTES"/>
5132    <field name="MPC Row Store Surface - Address" start="928" end="991" type="address"/>
5133    <field name="MPC Row Store Surface - Attributes" start="992" end="1023" type="MEMORYADDRESSATTRIBUTES"/>
5134  </instruction>
5135
5136  <instruction name="MFX_VP8_ENCODER_CFG" bias="2" length="2" engine="video">
5137    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5138    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5139    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5140    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
5141    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5142    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5143    <field name="Performance Counter Enable" start="32" end="32" type="bool"/>
5144    <field name="Final Bitstream Output Disable" start="33" end="33" type="bool"/>
5145    <field name="Token Statistics Output Enable" start="34" end="34" type="bool"/>
5146    <field name="Bitstream Statistics Output Enable" start="35" end="35" type="bool"/>
5147    <field name="Update Segment Feature Data Flag" start="36" end="36" type="bool"/>
5148    <field name="Skip Final Bitstream when Over/Underflow" start="37" end="37" type="bool"/>
5149    <field name="Rate Control Initial Pass" start="38" end="38" type="bool"/>
5150    <field name="Per Segment Delta Qindex / LoopFilter Disable" start="39" end="39" type="bool"/>
5151    <field name="Finer BRC Enable" start="40" end="40" type="bool"/>
5152    <field name="Compressed Bitstream Output Disable" start="41" end="41" type="bool"/>
5153    <field name="VBSP Unit Power Clock Gating Disable" start="42" end="42" type="bool"/>
5154    <field name="Max Frame Bit count Rate Control Enable" start="64" end="64" type="bool"/>
5155    <field name="Min Frame Bit Count Rate Control Enable" start="65" end="65" type="bool"/>
5156    <field name="Max Inter MB Bit Count Check Enable" start="66" end="66" type="bool"/>
5157    <field name="Max Intra MB Bit Count Check Enable" start="67" end="67" type="bool"/>
5158    <field name="Intermediate Bit Buffer Overrun Enable" start="68" end="68" type="bool"/>
5159    <field name="Final Bistream Buffer Overrun Enable" start="69" end="69" type="bool"/>
5160    <field name="QIndex Clamp High for Underflow" start="70" end="70" type="bool"/>
5161    <field name="QIndex Clamp High for Overflow" start="71" end="71" type="bool"/>
5162    <field name="Max Inter MB Bit Count" start="96" end="107" type="uint"/>
5163    <field name="Max Intra MB Bit Count Limit" start="112" end="123" type="uint"/>
5164    <field name="Frame Bitrate Max" start="128" end="141" type="uint"/>
5165    <field name="Frame Bitrate Max Unit" start="142" end="142" type="uint"/>
5166    <field name="Frame Bitrate Max Unit Mode" start="143" end="143" type="uint">
5167      <value name="Compatibility Mode" value="0"/>
5168      <value name="New Mode" value="1"/>
5169    </field>
5170    <field name="Frame Bitrate Min" start="144" end="157" type="uint"/>
5171    <field name="Frame Bitrate Min Unit" start="158" end="158" type="uint"/>
5172    <field name="Frame Bitrate Min Unit Mode" start="159" end="159" type="uint">
5173      <value name="Compatibility Mode" value="0"/>
5174      <value name="New Mode" value="1"/>
5175    </field>
5176    <field name="Frame Delta QIndex Max[0]" start="160" end="167" type="uint"/>
5177    <field name="Frame Delta QIndex Max[1]" start="168" end="175" type="uint"/>
5178    <field name="Frame Delta QIndex Max[2]" start="176" end="183" type="uint"/>
5179    <field name="Frame Delta QIndex Max[3]" start="184" end="191" type="uint"/>
5180    <field name="Frame Delta QIndex Min[0]" start="192" end="199" type="uint"/>
5181    <field name="Frame Delta QIndex Min[1]" start="200" end="207" type="uint"/>
5182    <field name="Frame Delta QIndex Min[2]" start="208" end="215" type="uint"/>
5183    <field name="Frame Delta QIndex Min[3]" start="216" end="223" type="uint"/>
5184    <field name="Per Segment Frame Delta QIndex Max[1]" start="224" end="255" type="uint"/>
5185    <field name="Per Segment Frame Delta QIndex Min[1]" start="256" end="287" type="uint"/>
5186    <field name="Per Segment Frame Delta QIndex Max[2]" start="288" end="319" type="uint"/>
5187    <field name="Per Segment Frame Delta QIndex Min[2]" start="320" end="351" type="uint"/>
5188    <field name="Per Segment Frame Delta QIndex Max[3]" start="352" end="383" type="uint"/>
5189    <field name="Per Segment Frame Delta QIndex Min[3]" start="384" end="415" type="uint"/>
5190    <field name="Frame Delta Loop Filter Max[0]" start="416" end="423" type="uint"/>
5191    <field name="Frame Delta Loop Filter Max[1]" start="424" end="431" type="uint"/>
5192    <field name="Frame Delta Loop Filter Max[2]" start="432" end="439" type="uint"/>
5193    <field name="Frame Delta Loop Filter Max[3]" start="440" end="447" type="uint"/>
5194    <field name="Frame Delta Loop Filter Min[0]" start="448" end="455" type="uint"/>
5195    <field name="Frame Delta Loop Filter Min[1]" start="456" end="463" type="uint"/>
5196    <field name="Frame Delta Loop Filter Min[2]" start="464" end="471" type="uint"/>
5197    <field name="Frame Delta Loop Filter Min[3]" start="472" end="479" type="uint"/>
5198    <field name="Per Segment Frame Delta Loop Filter Max[1]" start="480" end="511" type="uint"/>
5199    <field name="Per Segment Frame Delta Loop Filter Min[1]" start="512" end="543" type="uint"/>
5200    <field name="Per Segment Frame Delta Loop Filter Max[2]" start="544" end="575" type="uint"/>
5201    <field name="Per Segment Frame Delta Loop Filter Min[2]" start="576" end="607" type="uint"/>
5202    <field name="Per Segment Frame Delta Loop Filter Max[3]" start="608" end="639" type="uint"/>
5203    <field name="Per Segment Frame Delta Loop Filter Min[3]" start="640" end="671" type="uint"/>
5204    <field name="Frame Bitrate Max Delta" start="672" end="686" type="uint"/>
5205    <field name="Frame Bitrate Min Delta" start="688" end="702" type="uint"/>
5206    <field name="Minimum Frame Size" start="704" end="719" type="uint"/>
5207    <field name="Minimum Frame Size Unit" start="720" end="721" type="uint">
5208      <value name="Compatibility Mode" value="0"/>
5209      <value name="New Mode" value="1"/>
5210    </field>
5211    <field name="Bitstream Format Version" start="724" end="726" type="uint"/>
5212    <field name="Show Frame" start="727" end="727" type="uint"/>
5213    <field name="Horizontal_Size_Code" start="736" end="751" type="uint"/>
5214    <field name="Vertical_Size_Code" start="752" end="767" type="uint"/>
5215    <field name="Frame Header Bit Count" start="768" end="799" type="uint"/>
5216    <field name="Frame Header Bin Buffer QIndex Update Pointer" start="800" end="831" type="uint"/>
5217    <field name="Frame Header Bin Buffer Loop Filter Update Pointer" start="832" end="863" type="uint"/>
5218    <field name="Frame Header Bin Buffer Token Update Pointer" start="864" end="895" type="uint"/>
5219    <field name="Frame Header Bin Buffer MV Update Pointer" start="896" end="927" type="uint"/>
5220    <field name="CV0" start="928" end="931" type="uint"/>
5221    <field name="CV1" start="932" end="935" type="uint"/>
5222    <field name="CV2" start="936" end="939" type="uint"/>
5223    <field name="CV3" start="940" end="943" type="uint"/>
5224    <field name="CV4" start="944" end="947" type="uint"/>
5225    <field name="CV5" start="948" end="951" type="uint"/>
5226    <field name="CV6" start="952" end="955" type="uint"/>
5227    <field name="CV7" start="956" end="959" type="uint"/>
5228  </instruction>
5229
5230  <instruction name="MFX_VP8_PAK_OBJECT" bias="2" length="7" engine="video">
5231    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
5232    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
5233    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5234    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
5235    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5236    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5237    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
5238    <field name="Enable Inline MV data" start="61" end="61" type="bool"/>
5239    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
5240    <field name="Inline Data" start="96" end="223" type="uint"/>
5241  </instruction>
5242
5243  <instruction name="MFX_VP8_PIC_STATE" bias="2" length="2" engine="video">
5244    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5245    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
5246    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5247    <field name="Media Command OpCode" start="24" end="26" type="uint" default="4"/>
5248    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5249    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5250    <field name="Frame Width" start="32" end="39" type="uint"/>
5251    <field name="Frame Height" start="48" end="55" type="uint"/>
5252    <field name="MC Filter Select" start="64" end="64" type="uint"/>
5253    <field name="Chroma Full Pixel MC Filter Mode" start="65" end="65" type="uint"/>
5254    <field name="DBLK Filter Type" start="68" end="68" type="uint"/>
5255    <field name="Key Frame" start="69" end="69" type="bool"/>
5256    <field name="Segmentation ID Stream-Out Enable" start="70" end="70" type="bool"/>
5257    <field name="Segmentation ID Stream-In Enable" start="71" end="71" type="bool"/>
5258    <field name="Segment Enable" start="72" end="72" type="bool"/>
5259    <field name="Update MB Segment Map" start="73" end="73" type="bool"/>
5260    <field name="MB NoCoeff Skip" start="74" end="74" type="bool"/>
5261    <field name="Mode Reference Loop Filter Delta Enable" start="75" end="75" type="bool"/>
5262    <field name="Golden Ref Picture MV Sign Bias" start="76" end="76" type="bool"/>
5263    <field name="Alternate Ref Pic MV Sign Bias" start="77" end="77" type="bool"/>
5264    <field name="Deblock Sharpness Level" start="80" end="82" type="uint"/>
5265    <field name="Log2 Num of Partition" start="88" end="89" type="uint">
5266      <value name="1 Token partition" value="0"/>
5267      <value name="2 Token partition" value="1"/>
5268      <value name="4 Token partition" value="2"/>
5269      <value name="8 Token partition" value="3"/>
5270    </field>
5271    <field name="DBLK Filter Level for Segment0" start="96" end="101" type="uint"/>
5272    <field name="DBLK Filter Level for Segment1" start="104" end="109" type="uint"/>
5273    <field name="DBLK Filter Level for Segment2" start="112" end="117" type="uint"/>
5274    <field name="DBLK Filter Level for Segment3" start="120" end="125" type="uint"/>
5275    <field name="Segment0 QIndex" start="128" end="134" type="uint"/>
5276    <field name="Segment1 QIndex" start="136" end="142" type="uint"/>
5277    <field name="Segment2 QIndex" start="144" end="150" type="uint"/>
5278    <field name="Segment3 QIndex" start="152" end="158" type="uint"/>
5279    <field name="Y2DC QIndex Delta" start="160" end="163" type="uint"/>
5280    <field name="Y2AC QIndex Delta Sign" start="164" end="164" type="uint"/>
5281    <field name="Y2AC QIndex Delta" start="168" end="171" type="uint"/>
5282    <field name="Y2AC QIndex Sign" start="172" end="172" type="uint"/>
5283    <field name="UVDC QIndex Delta" start="176" end="179" type="uint"/>
5284    <field name="UVDC QIndex Delta Sign" start="180" end="180" type="uint"/>
5285    <field name="UVAC QIndex Delta" start="184" end="187" type="uint"/>
5286    <field name="UVAC QIndex Delta Sign" start="188" end="188" type="uint"/>
5287    <field name="Y1DC QIndex Delta" start="192" end="195" type="uint"/>
5288    <field name="Y1DC QIndex Delta Sign" start="196" end="196" type="uint"/>
5289    <field name="Clamp QIndex Low" start="224" end="230" type="uint"/>
5290    <field name="Clamp QIndex High" start="232" end="238" type="uint"/>
5291    <field name="Quantizer Value [1][UVDC]" start="256" end="264" type="uint"/>
5292    <field name="Quantizer Value [1][UVAC]" start="272" end="280" type="uint"/>
5293    <field name="Quantizer Value [1][Y2DC]" start="288" end="296" type="uint"/>
5294    <field name="Quantizer Value [1][Y2AC]" start="304" end="312" type="uint"/>
5295    <field name="Quantizer Value [2][Y1DC]" start="320" end="328" type="uint"/>
5296    <field name="Quantizer Value [2][Y1AC]" start="336" end="344" type="uint"/>
5297    <field name="Quantizer Value [2][UVDC]" start="352" end="360" type="uint"/>
5298    <field name="Quantizer Value [2][UVAC]" start="368" end="376" type="uint"/>
5299    <field name="Quantizer Value [2][Y2DC]" start="384" end="392" type="uint"/>
5300    <field name="Quantizer Value [2][Y2AC]" start="400" end="408" type="uint"/>
5301    <field name="Quantizer Value [3][Y1DC]" start="416" end="424" type="uint"/>
5302    <field name="Quantizer Value [3][Y1AC]" start="432" end="440" type="uint"/>
5303    <field name="Quantizer Value [3][UVDC]" start="448" end="456" type="uint"/>
5304    <field name="Quantizer Value [3][UVAC]" start="464" end="472" type="uint"/>
5305    <field name="Quantizer Value [3][Y2DC]" start="480" end="488" type="uint"/>
5306    <field name="Quantizer Value [3][Y2AC]" start="496" end="504" type="uint"/>
5307    <field name="CoeffProbability Stream-In - Address" start="518" end="559" type="uint"/>
5308    <field name="CoeffProbability Stream-In - MOCS (Encoder only)" start="577" end="582" type="uint"/>
5309    <field name="CoeffProbability Stream-In - Arbitration Priority Control" start="583" end="584" type="uint">
5310      <value name="Highest priority" value="0"/>
5311      <value name="Second highest priority" value="1"/>
5312      <value name="Third highest priority" value="2"/>
5313      <value name="Lowest priority" value="3"/>
5314    </field>
5315    <field name="CoeffProbability Stream-In - Memory Compression Enable" start="585" end="585" type="bool"/>
5316    <field name="CoeffProbability Stream-In - Memory Compression Mode" start="586" end="586" type="uint"/>
5317    <field name="CoeffProbability Stream-In - Tiled Resource Mode" start="589" end="590" type="uint">
5318      <value name="TRMODE_NONE" value="0"/>
5319      <value name="TRMODE_TILEYF" value="1"/>
5320      <value name="TRMODE_TILEYS" value="2"/>
5321    </field>
5322    <field name="MBSegmentIDTreeProbs[0]" start="608" end="615" type="uint"/>
5323    <field name="MBSegmentIDTreeProbs[1]" start="616" end="623" type="uint"/>
5324    <field name="MBSegmentIDTreeProbs[2]" start="624" end="631" type="uint"/>
5325    <field name="InterPredFromGRefRefProb" start="640" end="647" type="uint"/>
5326    <field name="InterPredFromLastRefProb" start="648" end="655" type="uint"/>
5327    <field name="IntraMBProb" start="656" end="663" type="uint"/>
5328    <field name="MBNoCoeffSkipFalseProb" start="664" end="671" type="uint"/>
5329    <field name="YModeProb[0]" start="672" end="679" type="uint"/>
5330    <field name="YModeProb[1]" start="680" end="687" type="uint"/>
5331    <field name="YModeProb[2]" start="688" end="695" type="uint"/>
5332    <field name="YModeProb[3]" start="696" end="703" type="uint"/>
5333    <field name="UVModeProb[0]" start="704" end="711" type="uint"/>
5334    <field name="UVModeProb[1]" start="712" end="719" type="uint"/>
5335    <field name="UVModeProb[2]" start="720" end="727" type="uint"/>
5336    <field name="MVUpdateProbs[0][0]" start="736" end="743" type="uint"/>
5337    <field name="MVUpdateProbs[0][1]" start="744" end="751" type="uint"/>
5338    <field name="MVUpdateProbs[0][2]" start="752" end="759" type="uint"/>
5339    <field name="MVUpdateProbs[0][3]" start="760" end="767" type="uint"/>
5340    <field name="MVUpdateProbs[0][4]" start="768" end="775" type="uint"/>
5341    <field name="MVUpdateProbs[0][5]" start="776" end="783" type="uint"/>
5342    <field name="MVUpdateProbs[0][6]" start="784" end="791" type="uint"/>
5343    <field name="MVUpdateProbs[0][7]" start="792" end="799" type="uint"/>
5344    <field name="MVUpdateProbs[0][8]" start="800" end="807" type="uint"/>
5345    <field name="MVUpdateProbs[0][9]" start="808" end="815" type="uint"/>
5346    <field name="MVUpdateProbs[0][10]" start="816" end="823" type="uint"/>
5347    <field name="MVUpdateProbs[0][11]" start="824" end="831" type="uint"/>
5348    <field name="MVUpdateProbs[0][12]" start="832" end="839" type="uint"/>
5349    <field name="MVUpdateProbs[0][13]" start="840" end="847" type="uint"/>
5350    <field name="MVUpdateProbs[0][14]" start="848" end="855" type="uint"/>
5351    <field name="MVUpdateProbs[0][15]" start="856" end="863" type="uint"/>
5352    <field name="MVUpdateProbs[0][16]" start="864" end="871" type="uint"/>
5353    <field name="MVUpdateProbs[0][17]" start="872" end="879" type="uint"/>
5354    <field name="MVUpdateProbs[0][18]" start="880" end="887" type="uint"/>
5355    <field name="MVUpdateProbs[1][0]" start="896" end="903" type="uint"/>
5356    <field name="MVUpdateProbs[1][1]" start="904" end="911" type="uint"/>
5357    <field name="MVUpdateProbs[1][2]" start="912" end="919" type="uint"/>
5358    <field name="MVUpdateProbs[1][3]" start="920" end="927" type="uint"/>
5359    <field name="MVUpdateProbs[1][4]" start="928" end="935" type="uint"/>
5360    <field name="MVUpdateProbs[1][5]" start="936" end="943" type="uint"/>
5361    <field name="MVUpdateProbs[1][6]" start="944" end="951" type="uint"/>
5362    <field name="MVUpdateProbs[1][7]" start="952" end="959" type="uint"/>
5363    <field name="MVUpdateProbs[1][8]" start="960" end="967" type="uint"/>
5364    <field name="MVUpdateProbs[1][9]" start="968" end="975" type="uint"/>
5365    <field name="MVUpdateProbs[1][10]" start="976" end="983" type="uint"/>
5366    <field name="MVUpdateProbs[1][11]" start="984" end="991" type="uint"/>
5367    <field name="MVUpdateProbs[1][12]" start="992" end="999" type="uint"/>
5368    <field name="MVUpdateProbs[1][13]" start="1000" end="1007" type="uint"/>
5369    <field name="MVUpdateProbs[1][14]" start="1008" end="1015" type="uint"/>
5370    <field name="MVUpdateProbs[1][15]" start="1016" end="1023" type="uint"/>
5371    <field name="MVUpdateProbs[1][16]" start="1024" end="1031" type="uint"/>
5372    <field name="MVUpdateProbs[1][17]" start="1032" end="1039" type="uint"/>
5373    <field name="MVUpdateProbs[1][18]" start="1040" end="1047" type="uint"/>
5374    <field name="RefLFDelta0" start="1056" end="1062" type="int"/>
5375    <field name="RefLFDelta1" start="1064" end="1070" type="int"/>
5376    <field name="RefLFDelta2" start="1072" end="1078" type="int"/>
5377    <field name="RefLFDelta3" start="1080" end="1086" type="int"/>
5378    <field name="ModeLFDelta0" start="1088" end="1094" type="int"/>
5379    <field name="ModeLFDelta1" start="1096" end="1102" type="int"/>
5380    <field name="ModeLFDelta2" start="1104" end="1110" type="int"/>
5381    <field name="ModeLFDelta3" start="1112" end="1118" type="int"/>
5382    <field name="Segmentation ID Stream - Address" start="1120" end="1167" type="uint"/>
5383    <field name="CoeffProbability Stream-In - MOCS" start="1185" end="1190" type="uint"/>
5384    <field name="Segmentation ID Stream - Arbitration Priority Control" start="1191" end="1192" type="uint">
5385      <value name="Highest priority" value="0"/>
5386      <value name="Second highest priority" value="1"/>
5387      <value name="Third highest priority" value="2"/>
5388      <value name="Lowest priority" value="3"/>
5389    </field>
5390    <field name="Segmentation ID Stream - Memory Compression Enable" start="1193" end="1193" type="bool"/>
5391    <field name="Segmentation ID Stream - Memory Compression Mode" start="1194" end="1194" type="uint"/>
5392    <field name="Segmentation ID Stream - Tiled Resource Mode" start="1197" end="1198" type="uint">
5393      <value name="TRMODE_NONE" value="0"/>
5394      <value name="TRMODE_TILEYF" value="1"/>
5395      <value name="TRMODE_TILEYS" value="2"/>
5396    </field>
5397  </instruction>
5398
5399  <instruction name="MFX_WAIT" bias="1" length="1" engine="video">
5400    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
5401    <field name="MFX Sync Control Flag" start="8" end="8" type="uint"/>
5402    <field name="SubOpcode" start="16" end="26" type="uint" default="0"/>
5403    <field name="Command Subtype" start="27" end="28" type="uint" default="1"/>
5404    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5405  </instruction>
5406
5407  <instruction name="MI_ARB_CHECK" bias="1" length="1">
5408    <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
5409    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5410  </instruction>
5411
5412  <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
5413    <field name="Arbitration Enable" start="0" end="0" type="bool" default="1"/>
5414    <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
5415    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5416  </instruction>
5417
5418  <instruction name="MI_ATOMIC" bias="2" length="3">
5419    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5420    <field name="ATOMIC OPCODE" start="8" end="15" type="Atomic_OPCODE"/>
5421    <field name="Return Data Control" start="16" end="16" type="bool"/>
5422    <field name="CS STALL" start="17" end="17" type="bool"/>
5423    <field name="Inline Data" start="18" end="18" type="bool"/>
5424    <field name="Data Size" start="19" end="20" type="uint" prefix="MI_ATOMIC">
5425      <value name="DWORD" value="0"/>
5426      <value name="QWORD" value="1"/>
5427      <value name="OCTWORD" value="2"/>
5428      <value name="RESERVED" value="3"/>
5429    </field>
5430    <field name="Post-Sync Operation" start="21" end="21" type="bool"/>
5431    <field name="Memory Type" start="22" end="22" type="uint">
5432      <value name="Per Process Graphics Address" value="0"/>
5433      <value name="Global Graphics Address" value="1"/>
5434    </field>
5435    <field name="MI Command Opcode" start="23" end="28" type="uint" default="47"/>
5436    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5437    <field name="Memory Address" start="34" end="79" type="address"/>
5438    <field name="Operand1 Data Dword 0" start="96" end="127" type="uint"/>
5439    <field name="Operand2 Data Dword 0" start="128" end="159" type="uint"/>
5440    <field name="Operand1 Data Dword 1" start="160" end="191" type="uint"/>
5441    <field name="Operand2 Data Dword 1" start="192" end="223" type="uint"/>
5442    <field name="Operand1 Data Dword 2" start="224" end="255" type="uint"/>
5443    <field name="Operand2 Data Dword 2" start="256" end="287" type="uint"/>
5444    <field name="Operand1 Data Dword 3" start="288" end="319" type="uint"/>
5445    <field name="Operand2 Data Dword 3" start="320" end="351" type="uint"/>
5446  </instruction>
5447
5448  <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
5449    <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
5450    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5451  </instruction>
5452
5453  <instruction name="MI_BATCH_BUFFER_START" bias="2" length="3">
5454    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5455    <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
5456      <value name="GGTT" value="0"/>
5457      <value name="PPGTT" value="1"/>
5458    </field>
5459    <field name="Resource Streamer Enable" start="10" end="10" type="bool"/>
5460    <field name="Predication Enable" start="15" end="15" type="bool"/>
5461    <field name="Add Offset Enable" start="16" end="16" type="bool"/>
5462    <field name="Second Level Batch Buffer" start="22" end="22" type="uint">
5463      <value name="First level batch" value="0"/>
5464      <value name="Second level batch" value="1"/>
5465    </field>
5466    <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
5467    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5468    <field name="Batch Buffer Start Address" start="34" end="95" type="address"/>
5469  </instruction>
5470
5471  <instruction name="MI_CLFLUSH" bias="2" engine="render">
5472    <field name="DWord Length" start="0" end="9" type="uint" default="1"/>
5473    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5474    <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
5475    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5476    <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
5477    <field name="Page Base Address" start="44" end="79" type="address"/>
5478    <group count="0" start="96" size="32">
5479      <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
5480    </group>
5481  </instruction>
5482
5483  <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="4">
5484    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5485    <field name="Compare Mask Mode" start="19" end="19" type="uint">
5486      <value name="Compare Mask Mode Disabled" value="0"/>
5487      <value name="Compare Mask Mode Enabled" value="1"/>
5488    </field>
5489    <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
5490    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5491    <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
5492    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5493    <field name="Compare Data Dword" start="32" end="63" type="uint"/>
5494    <field name="Compare Address" start="67" end="127" type="address"/>
5495  </instruction>
5496
5497  <instruction name="MI_COPY_MEM_MEM" bias="2" length="5">
5498    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
5499    <field name="Use Global GTT Destination" start="21" end="21" type="bool"/>
5500    <field name="Use Global GTT Source" start="22" end="22" type="bool"/>
5501    <field name="MI Command Opcode" start="23" end="28" type="uint" default="46"/>
5502    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5503    <field name="Destination Memory Address" start="34" end="95" type="address"/>
5504    <field name="Source Memory Address" start="98" end="159" type="address"/>
5505  </instruction>
5506
5507  <instruction name="MI_DISPLAY_FLIP" bias="2" length="3" engine="render|blitter">
5508    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5509    <field name="Display Plane Select" start="8" end="12" type="uint">
5510      <value name="Display Plane 1" value="0"/>
5511      <value name="Display Plane 2" value="1"/>
5512      <value name="Display Plane 3" value="2"/>
5513      <value name="Display Plane 4" value="4"/>
5514      <value name="Display Plane 5" value="5"/>
5515      <value name="Display Plane 6" value="6"/>
5516      <value name="Display Plane 7" value="7"/>
5517      <value name="Display Plane 8" value="8"/>
5518      <value name="Display Plane 9" value="9"/>
5519      <value name="Display Plane 10" value="10"/>
5520      <value name="Display Plane 11" value="11"/>
5521      <value name="Display Plane 12" value="12"/>
5522    </field>
5523    <field name="Async Flip Indicator" start="22" end="22" type="bool"/>
5524    <field name="MI Command Opcode" start="23" end="28" type="uint" default="20"/>
5525    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5526    <field name="Tile Parameter" start="32" end="34" type="uint"/>
5527    <field name="Display Buffer Pitch" start="38" end="47" type="uint"/>
5528    <field name="Stereoscopic 3D Mode" start="63" end="63" type="bool"/>
5529    <field name="Flip Type" start="64" end="65" type="uint">
5530      <value name="Sync Flip" value="0"/>
5531      <value name="Async Flip" value="1"/>
5532      <value name="Stereo 3D Flip" value="2"/>
5533    </field>
5534    <field name="Display Buffer Base Address" start="76" end="95" type="address"/>
5535    <field name="Left Eye Display Buffer Base Address" start="108" end="127" type="address"/>
5536  </instruction>
5537
5538  <instruction name="MI_FLUSH_DW" bias="2" length="5" engine="video">
5539    <field name="DWord Length" start="0" end="5" type="uint" default="3"/>
5540    <field name="Video Pipeline Cache Invalidate" start="7" end="7" type="bool"/>
5541    <field name="Notify Enable" start="8" end="8" type="bool"/>
5542    <field name="Flush LLC" start="9" end="9" type="bool"/>
5543    <field name="Post-Sync Operation" start="14" end="15" type="uint"/>
5544    <field name="TLB Invalidate" start="18" end="18" type="bool"/>
5545    <field name="Store Data Index" start="21" end="21" type="uint"/>
5546    <field name="MI Command Opcode" start="23" end="28" type="uint" default="38"/>
5547    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5548    <field name="Destination Address Type" start="34" end="34" type="uint" prefix="DAT">
5549      <value name="PPGTT" value="0"/>
5550      <value name="GGTT" value="1"/>
5551    </field>
5552    <field name="Address" start="35" end="79" type="address"/>
5553    <field name="Immediate Data" start="96" end="159" type="uint"/>
5554  </instruction>
5555
5556  <instruction name="MI_FORCE_WAKEUP" bias="2" length="2">
5557    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
5558    <field name="MI Command Opcode" start="23" end="28" type="uint" default="29"/>
5559    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5560    <field name="Force Media Awake" start="32" end="32" type="uint"/>
5561    <field name="Force Render Awake" start="33" end="33" type="uint"/>
5562    <field name="Mask Bits" start="48" end="63" type="uint"/>
5563  </instruction>
5564
5565  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
5566    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5567    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
5568    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
5569    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5570    <field name="Register Offset" start="34" end="54" type="offset"/>
5571    <field name="Data DWord" start="64" end="95" type="uint"/>
5572    <group count="0" start="96" size="64">
5573      <field name="Register Offset" start="2" end="22" type="offset"/>
5574      <field name="Data DWord" start="32" end="63" type="uint"/>
5575    </group>
5576  </instruction>
5577
5578  <instruction name="MI_LOAD_REGISTER_MEM" bias="2" length="4">
5579    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5580    <field name="Async Mode Enable" start="21" end="21" type="bool"/>
5581    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5582    <field name="MI Command Opcode" start="23" end="28" type="uint" default="41"/>
5583    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5584    <field name="Register Address" start="34" end="54" type="offset"/>
5585    <field name="Memory Address" start="66" end="127" type="address"/>
5586  </instruction>
5587
5588  <instruction name="MI_LOAD_REGISTER_REG" bias="2" length="3">
5589    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5590    <field name="MI Command Opcode" start="23" end="28" type="uint" default="42"/>
5591    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5592    <field name="Source Register Address" start="34" end="54" type="offset"/>
5593    <field name="Destination Register Address" start="66" end="86" type="offset"/>
5594  </instruction>
5595
5596  <instruction name="MI_LOAD_SCAN_LINES_EXCL" bias="2" length="2" engine="render">
5597    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
5598    <field name="Display (Plane) Select" start="19" end="21" type="uint">
5599      <value name="Display Plane A" value="0"/>
5600      <value name="Display Plane B" value="1"/>
5601      <value name="Display Plane C" value="4"/>
5602    </field>
5603    <field name="MI Command Opcode" start="23" end="28" type="uint" default="19"/>
5604    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5605    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
5606    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
5607  </instruction>
5608
5609  <instruction name="MI_LOAD_SCAN_LINES_INCL" bias="2" length="2" engine="render">
5610    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
5611    <field name="Scan Line Event Done Forward" start="17" end="18" type="uint"/>
5612    <field name="Display (Plane) Select" start="19" end="21" type="uint">
5613      <value name="Display Plane 1 A" value="0"/>
5614      <value name="Display Plane 1 B" value="1"/>
5615      <value name="Display Plane 1 C" value="4"/>
5616    </field>
5617    <field name="MI Command Opcode" start="23" end="28" type="uint" default="18"/>
5618    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5619    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
5620    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
5621  </instruction>
5622
5623  <instruction name="MI_LOAD_URB_MEM" bias="2" length="4" engine="render">
5624    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5625    <field name="MI Command Opcode" start="23" end="28" type="uint" default="44"/>
5626    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5627    <field name="URB Address" start="34" end="46" type="uint"/>
5628    <field name="Memory Address" start="70" end="127" type="address"/>
5629  </instruction>
5630
5631  <instruction name="MI_MATH" bias="2">
5632    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
5633    <field name="MI Command Opcode" start="23" end="28" type="uint" default="26"/>
5634    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5635    <group count="0" start="32" size="32">
5636      <field name="Instruction" start="0" end="31" type="MI_MATH_ALU_INSTRUCTION"/>
5637    </group>
5638  </instruction>
5639
5640  <instruction name="MI_NOOP" bias="1" length="1">
5641    <field name="Identification Number" start="0" end="21" type="uint"/>
5642    <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
5643    <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
5644    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5645  </instruction>
5646
5647  <instruction name="MI_PREDICATE" bias="1" length="1">
5648    <field name="Compare Operation" start="0" end="1" type="uint" prefix="COMPARE">
5649      <value name="TRUE" value="0"/>
5650      <value name="FALSE" value="1"/>
5651      <value name="SRCS_EQUAL" value="2"/>
5652      <value name="DELTAS_EQUAL" value="3"/>
5653    </field>
5654    <field name="Combine Operation" start="3" end="4" type="uint" prefix="COMBINE">
5655      <value name="SET" value="0"/>
5656      <value name="AND" value="1"/>
5657      <value name="OR" value="2"/>
5658      <value name="XOR" value="3"/>
5659    </field>
5660    <field name="Load Operation" start="6" end="7" type="uint" prefix="LOAD">
5661      <value name="KEEP" value="0"/>
5662      <value name="LOAD" value="2"/>
5663      <value name="LOADINV" value="3"/>
5664    </field>
5665    <field name="MI Command Opcode" start="23" end="28" type="uint" default="12"/>
5666    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5667  </instruction>
5668
5669  <instruction name="MI_REPORT_HEAD" bias="1" length="1">
5670    <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
5671    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5672  </instruction>
5673
5674  <instruction name="MI_REPORT_PERF_COUNT" bias="2" length="4" engine="render">
5675    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
5676    <field name="MI Command Opcode" start="23" end="28" type="uint" default="40"/>
5677    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5678    <field name="Use Global GTT" start="32" end="32" type="bool"/>
5679    <field name="Core Mode Enable" start="36" end="36" type="uint"/>
5680    <field name="Memory Address" start="38" end="95" type="address"/>
5681    <field name="Report ID" start="96" end="127" type="uint"/>
5682  </instruction>
5683
5684  <instruction name="MI_RS_CONTEXT" bias="1" length="1" engine="render">
5685    <field name="Resource Streamer Save" start="0" end="0" type="uint" prefix="RS">
5686      <value name="Restore" value="0"/>
5687      <value name="Save" value="1"/>
5688    </field>
5689    <field name="MI Command Opcode" start="23" end="28" type="uint" default="15"/>
5690    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5691  </instruction>
5692
5693  <instruction name="MI_RS_CONTROL" bias="1" length="1" engine="render">
5694    <field name="Resource Streamer Control" start="0" end="0" type="uint" prefix="RS">
5695      <value name="Stop" value="0"/>
5696      <value name="Start" value="1"/>
5697    </field>
5698    <field name="MI Command Opcode" start="23" end="28" type="uint" default="6"/>
5699    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5700  </instruction>
5701
5702  <instruction name="MI_RS_STORE_DATA_IMM" bias="2" length="4" engine="render">
5703    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5704    <field name="MI Command Opcode" start="23" end="28" type="uint" default="43"/>
5705    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5706    <field name="Core Mode Enable" start="32" end="32" type="uint"/>
5707    <field name="Destination Address" start="34" end="95" type="address"/>
5708    <field name="Data DWord 0" start="96" end="127" type="uint"/>
5709  </instruction>
5710
5711  <instruction name="MI_SEMAPHORE_SIGNAL" bias="2" length="2">
5712    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
5713    <field name="Target Engine Select" start="15" end="17" type="uint">
5714      <value name="RCS" value="0"/>
5715      <value name="VCS0" value="1"/>
5716      <value name="BCS" value="2"/>
5717      <value name="VECS" value="3"/>
5718      <value name="VCS1" value="4"/>
5719    </field>
5720    <field name="Post-Sync Operation" start="21" end="21" type="bool"/>
5721    <field name="MI Command Opcode" start="23" end="28" type="uint" default="27"/>
5722    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5723    <field name="Target Context ID" start="32" end="63" type="uint"/>
5724  </instruction>
5725
5726  <instruction name="MI_SEMAPHORE_WAIT" bias="2" length="4">
5727    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5728    <field name="Compare Operation" start="12" end="14" type="uint" prefix="COMPARE">
5729      <value name="SAD_GREATER_THAN_SDD" value="0"/>
5730      <value name="SAD_GREATER_THAN_OR_EQUAL_SDD" value="1"/>
5731      <value name="SAD_LESS_THAN_SDD" value="2"/>
5732      <value name="SAD_LESS_THAN_OR_EQUAL_SDD" value="3"/>
5733      <value name="SAD_EQUAL_SDD" value="4"/>
5734      <value name="SAD_NOT_EQUAL_SDD" value="5"/>
5735    </field>
5736    <field name="Wait Mode" start="15" end="15" type="uint">
5737      <value name="Polling Mode" value="1"/>
5738      <value name="Signal Mode" value="0"/>
5739    </field>
5740    <field name="Register Poll Mode" start="16" end="16" type="bool"/>
5741    <field name="Memory Type" start="22" end="22" type="uint">
5742      <value name="Per Process Graphics Address" value="0"/>
5743      <value name="Global Graphics Address" value="1"/>
5744    </field>
5745    <field name="MI Command Opcode" start="23" end="28" type="uint" default="28"/>
5746    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5747    <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
5748    <field name="Semaphore Address" start="66" end="127" type="address"/>
5749  </instruction>
5750
5751  <instruction name="MI_SET_CONTEXT" bias="2" length="2">
5752    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
5753    <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
5754    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5755    <field name="Restore Inhibit" start="32" end="32" type="uint"/>
5756    <field name="Force Restore" start="33" end="33" type="uint"/>
5757    <field name="Resource Streamer State Restore Enable" start="34" end="34" type="bool"/>
5758    <field name="Resource Streamer State Save Enable" start="35" end="35" type="bool"/>
5759    <field name="Core Mode Enable" start="36" end="36" type="bool"/>
5760    <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
5761    <field name="Logical Context Address" start="44" end="63" type="address"/>
5762  </instruction>
5763
5764  <instruction name="MI_SET_PREDICATE" bias="1" length="1">
5765    <field name="PREDICATE ENABLE" start="0" end="3" type="uint">
5766      <value name="NOOP Never" value="0"/>
5767      <value name="NOOP on Result2 clear" value="1"/>
5768      <value name="NOOP on Result2 set" value="2"/>
5769      <value name="NOOP on Result clear" value="3"/>
5770      <value name="NOOP on Result set" value="4"/>
5771      <value name="Execute when one slice enabled." value="5"/>
5772      <value name="Execute when two slices are enabled." value="6"/>
5773      <value name="Execute when three slices are enabled." value="7"/>
5774      <value name="NOOP Always" value="15"/>
5775    </field>
5776    <field name="MI Command Opcode" start="23" end="28" type="uint" default="1"/>
5777    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5778  </instruction>
5779
5780  <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
5781    <field name="DWord Length" start="0" end="9" type="uint" default="2"/>
5782    <field name="Store Qword" start="21" end="21" type="uint"/>
5783    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5784    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
5785    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5786    <field name="Core Mode Enable" start="32" end="32" type="uint"/>
5787    <field name="Address" start="34" end="79" type="address"/>
5788    <field name="Immediate Data" start="96" end="159" type="uint"/>
5789  </instruction>
5790
5791  <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
5792    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5793    <field name="Use Per-Process Hardware Status Page" start="21" end="21" type="uint"/>
5794    <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
5795    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5796    <field name="Offset" start="34" end="43" type="uint"/>
5797    <field name="Data DWord 0" start="64" end="95" type="uint"/>
5798    <field name="Data DWord 1" start="96" end="127" type="uint"/>
5799  </instruction>
5800
5801  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="4">
5802    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5803    <field name="Predicate Enable" start="21" end="21" type="bool"/>
5804    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5805    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
5806    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5807    <field name="Register Address" start="34" end="54" type="offset"/>
5808    <field name="Memory Address" start="66" end="127" type="address"/>
5809  </instruction>
5810
5811  <instruction name="MI_STORE_URB_MEM" bias="2" length="4" engine="render">
5812    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5813    <field name="MI Command Opcode" start="23" end="28" type="uint" default="45"/>
5814    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5815    <field name="URB Address" start="34" end="46" type="uint"/>
5816    <field name="Memory Address" start="70" end="127" type="address"/>
5817  </instruction>
5818
5819  <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
5820    <field name="Suspend Flush" start="0" end="0" type="bool"/>
5821    <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
5822    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5823  </instruction>
5824
5825  <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1" engine="render">
5826    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
5827    <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
5828    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5829  </instruction>
5830
5831  <instruction name="MI_URB_ATOMIC_ALLOC" bias="1" length="1" engine="render">
5832    <field name="URB Atomic Storage Size" start="0" end="8" type="uint"/>
5833    <field name="URB Atomic Storage Offset" start="12" end="19" type="uint"/>
5834    <field name="MI Command Opcode" start="23" end="28" type="uint" default="9"/>
5835    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5836  </instruction>
5837
5838  <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
5839    <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
5840    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5841  </instruction>
5842
5843  <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1" engine="render|blitter">
5844    <field name="Display Plnae 1 A Scan Line Wait Enable" start="0" end="0" type="bool"/>
5845    <field name="Display Plane 1 Flip Pending Wait Enable" start="1" end="1" type="bool"/>
5846    <field name="Display Plane 4 Flip Pending Wait Enable" start="2" end="2" type="bool"/>
5847    <field name="Display Plane 1 A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
5848    <field name="Display Plane 7 Flip Pending Wait Enable" start="6" end="6" type="bool"/>
5849    <field name="Display Plane 8 Flip Pending Wait Enable" start="7" end="7" type="bool"/>
5850    <field name="Display Plane 1 B Scan Line Wait Enable" start="8" end="8" type="bool"/>
5851    <field name="Display Plane 2 Flip Pending Wait Enable" start="9" end="9" type="bool"/>
5852    <field name="Display Plane 5 Flip Pending Wait Enable" start="10" end="10" type="bool"/>
5853    <field name="Display Plane 1 B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
5854    <field name="Display Plane 1 C Scan Line Wait Enable" start="14" end="14" type="bool"/>
5855    <field name="Display Plane 3 Flip Pending Wait Enable" start="15" end="15" type="bool"/>
5856    <field name="Display Plane 9 Flip Pending Wait Enable" start="16" end="16" type="bool"/>
5857    <field name="Display Plane 10 Flip Pending Wait Enable" start="17" end="17" type="bool"/>
5858    <field name="Display Plane 11 Flip Pending Wait Enable" start="18" end="18" type="bool"/>
5859    <field name="Display Plane 12 Flip Pending Wait Enable" start="19" end="19" type="bool"/>
5860    <field name="Display Plane 6 Flip Pending Wait Enable" start="20" end="20" type="bool"/>
5861    <field name="Display Plane 1 C Vertical Blank Wait Enable" start="21" end="21" type="bool"/>
5862    <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
5863    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5864  </instruction>
5865
5866  <instruction name="PIPELINE_SELECT" bias="1" length="1" engine="render">
5867    <field name="Pipeline Selection" start="0" end="1" type="uint">
5868      <value name="3D" value="0"/>
5869      <value name="Media" value="1"/>
5870      <value name="GPGPU" value="2"/>
5871    </field>
5872    <field name="Media Sampler DOP Clock Gate Enable" start="4" end="4" type="bool"/>
5873    <field name="Force Media Awake" start="5" end="5" type="bool"/>
5874    <field name="Mask Bits" start="8" end="15" type="uint"/>
5875    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
5876    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
5877    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
5878    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5879  </instruction>
5880
5881  <instruction name="PIPE_CONTROL" bias="2" length="6" engine="render">
5882    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
5883    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
5884    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
5885    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
5886    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5887    <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
5888    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
5889    <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
5890    <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
5891    <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
5892    <field name="DC Flush Enable" start="37" end="37" type="bool"/>
5893    <field name="Pipe Control Flush Enable" start="39" end="39" type="bool"/>
5894    <field name="Notify Enable" start="40" end="40" type="bool"/>
5895    <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
5896    <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
5897    <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
5898    <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
5899    <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
5900    <field name="Post Sync Operation" start="46" end="47" type="uint">
5901      <value name="No Write" value="0"/>
5902      <value name="Write Immediate Data" value="1"/>
5903      <value name="Write PS Depth Count" value="2"/>
5904      <value name="Write Timestamp" value="3"/>
5905    </field>
5906    <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
5907    <field name="TLB Invalidate" start="50" end="50" type="bool"/>
5908    <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
5909    <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
5910    <field name="Store Data Index" start="53" end="53" type="uint"/>
5911    <field name="LRI Post Sync Operation" start="55" end="55" type="uint">
5912      <value name="No LRI Operation" value="0"/>
5913      <value name="MMIO Write Immediate Data" value="1"/>
5914    </field>
5915    <field name="Destination Address Type" start="56" end="56" type="uint" prefix="DAT">
5916      <value name="PPGTT" value="0"/>
5917      <value name="GGTT" value="1"/>
5918    </field>
5919    <field name="Flush LLC" start="58" end="58" type="bool"/>
5920    <field name="Address" start="66" end="111" type="address"/>
5921    <field name="Immediate Data" start="128" end="191" type="uint"/>
5922  </instruction>
5923
5924  <instruction name="SFC_AVS_CHROMA_COEFF_TABLE" bias="2" length="65" engine="video">
5925    <field name="DWord Length" start="0" end="11" type="uint" default="63"/>
5926    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
5927    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5928    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5929    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5930    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5931    <field name="AVS CHROMA Coefficient Table Body" start="32" end="2079" type="SFC_AVS_CHROMA_COEFF_TABLE_BODY"/>
5932  </instruction>
5933
5934  <instruction name="SFC_AVS_LUMA_COEFF_TABLE" bias="2" length="129" engine="video">
5935    <field name="DWord Length" start="0" end="11" type="uint" default="127"/>
5936    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
5937    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5938    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5939    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5940    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5941    <field name="AVS LUMA Coefficient Table Body" start="32" end="4255" type="SFC_AVS_LUMA_COEFF_TABLE_BODY"/>
5942  </instruction>
5943
5944  <instruction name="SFC_AVS_STATE" bias="2" length="3" engine="video">
5945    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
5946    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
5947    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5948    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5949    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5950    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5951    <field name="AVS State Body" start="32" end="1567" type="SFC_AVS_STATE_BODY"/>
5952  </instruction>
5953
5954  <instruction name="SFC_FRAME_START" bias="2" length="2" engine="video">
5955    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5956    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
5957    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5958    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5959    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5960    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5961    <field name="Frame Start Body" start="32" end="63" type="uint"/>
5962  </instruction>
5963
5964  <instruction name="SFC_IEF_STATE" bias="2" length="24" engine="video">
5965    <field name="DWord Length" start="0" end="11" type="uint" default="22"/>
5966    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
5967    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5968    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5969    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5970    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5971    <field name="SFC IEF State Body" start="32" end="767" type="SFC_IEF_STATE_BODY"/>
5972  </instruction>
5973
5974  <instruction name="SFC_LOCK" bias="2" length="2" engine="video">
5975    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5976    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
5977    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5978    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5979    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5980    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5981    <field name="SFC Lock Body" start="32" end="63" type="SFC_LOCK_BODY"/>
5982  </instruction>
5983
5984  <instruction name="SFC_STATE" bias="2" length="32" engine="video">
5985    <field name="DWord Length" start="0" end="11" type="uint" default="30"/>
5986    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5987    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
5988    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
5989    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5990    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5991    <field name="SFC Pipe Mode" start="32" end="35" type="uint"/>
5992    <field name="SFC Input Chroma Sub-Sampling" start="36" end="39" type="uint">
5993      <value name="4:0:0" value="0"/>
5994      <value name="4:2:0" value="1"/>
5995      <value name="4:2:2 Horizonatal" value="2"/>
5996      <value name="4:4:4 Progressive/Interleaved" value="4"/>
5997    </field>
5998    <field name="VD/VE Input Ordering Mode" start="40" end="42" type="uint"/>
5999    <field name="Input Frame Resolution Width" start="64" end="75" type="uint"/>
6000    <field name="Input Frame Resolution Height" start="80" end="91" type="uint"/>
6001    <field name="Output Surface Format Type" start="96" end="99" type="uint"/>
6002    <field name="RGBA Channel Swap Enable" start="101" end="101" type="bool"/>
6003    <field name="Pre-AVS Chroma Downsampling Enable" start="102" end="103" type="uint"/>
6004    <field name="Pre-AVS Chroma Downsampling Co-siting Position Vertical Direction" start="104" end="106" type="uint"/>
6005    <field name="Pre-AVS Chroma Downsampling Co-siting Position Horizontal Direction" start="108" end="110" type="uint"/>
6006    <field name="IEF Enable" start="128" end="128" type="bool"/>
6007    <field name="Skin Tone Tuned IEF_Enable" start="129" end="129" type="bool"/>
6008    <field name="IEF4 Smooth Enable" start="130" end="130" type="bool"/>
6009    <field name="AVS Filter Mode" start="132" end="133" type="uint">
6010      <value name="5x5 Poly-phase filter + Bilinear" value="0"/>
6011      <value name="8x8 poly-phase filter + Bilinear" value="1"/>
6012      <value name="Bilinear filter only" value="2"/>
6013    </field>
6014    <field name="Adaptive Filter for all Channels" start="134" end="134" type="bool"/>
6015    <field name="AVS Scaling Enable" start="135" end="135" type="bool"/>
6016    <field name="Bypass Y Adaptive Filtering" start="136" end="136" type="bool"/>
6017    <field name="Bypass X Adaptive Filtering" start="137" end="137" type="bool"/>
6018    <field name="Chroma Upsampling Enable" start="140" end="140" type="bool"/>
6019    <field name="Rotation Mode" start="144" end="145" type="uint">
6020      <value name="0" value="0"/>
6021      <value name="90 CW" value="1"/>
6022      <value name="180 CW" value="2"/>
6023      <value name="270 CW" value="3"/>
6024    </field>
6025    <field name="Color Fill Enable" start="146" end="146" type="bool"/>
6026    <field name="CSC Enable" start="147" end="147" type="bool"/>
6027    <field name="Source Region Width" start="160" end="171" type="uint"/>
6028    <field name="Source Region Height" start="176" end="187" type="uint"/>
6029    <field name="Source Region Horizontal Offset" start="192" end="203" type="uint"/>
6030    <field name="Source Region Vertical Offset" start="208" end="219" type="uint"/>
6031    <field name="Output Frame Width" start="224" end="235" type="uint"/>
6032    <field name="Output Frame Height" start="240" end="251" type="uint"/>
6033    <field name="Scaled Region Size Width" start="256" end="267" type="uint"/>
6034    <field name="Scaled Region Size Height" start="272" end="283" type="uint"/>
6035    <field name="Scaled Region Horizontal Offset" start="288" end="300" type="int"/>
6036    <field name="Scaled Region Vertical Offset" start="304" end="316" type="int"/>
6037    <field name="Gray Bar Pixel - U/G" start="320" end="329" type="uint"/>
6038    <field name="Gray Bar Pixel - Y/R" start="336" end="345" type="uint"/>
6039    <field name="Gray Bar Pixel - A" start="352" end="361" type="uint"/>
6040    <field name="Gray Bar Pixel - V/B" start="368" end="377" type="uint"/>
6041    <field name="UV Default value for U channel" start="384" end="393" type="uint"/>
6042    <field name="UV Default value for V channel" start="400" end="409" type="uint"/>
6043    <field name="Alpha Default Value" start="416" end="425" type="uint"/>
6044    <field name="Scaling Factor Height" start="448" end="468" type="u4.17"/>
6045    <field name="Scaling Factor Width" start="480" end="500" type="u4.17"/>
6046    <field name="Output Frame - Address" start="556" end="591" type="uint"/>
6047    <field name="Output Frame - MOCS" start="609" end="614" type="uint"/>
6048    <field name="Output Frame - Arbitration Priority Control" start="615" end="616" type="HEVC_ARBITRATION_PRIORITY"/>
6049    <field name="Output Frame - Memory Compression Enable" start="617" end="617" type="bool"/>
6050    <field name="Output Frame - Memory Compression Mode" start="618" end="618" type="uint"/>
6051    <field name="Output Frame - Cache Select" start="620" end="620" type="bool"/>
6052    <field name="Output Frame - Tiled Mode" start="621" end="622" type="uint">
6053      <value name="TRMODE_NONE" value="0"/>
6054      <value name="TRMODE_TILEYF" value="1"/>
6055      <value name="TRMODE_TILEYS" value="2"/>
6056    </field>
6057    <field name="AVS Line Buffer - Address" start="652" end="687" type="uint"/>
6058    <field name="AVS Line Buffer - MOCS" start="705" end="710" type="uint"/>
6059    <field name="AVS Line Buffer - Arbitration Priority Control" start="711" end="712" type="HEVC_ARBITRATION_PRIORITY"/>
6060    <field name="AVS Line Buffer - Memory Compression Enable" start="713" end="713" type="bool"/>
6061    <field name="AVS Line Buffer - Memory Compression Mode" start="714" end="714" type="uint">
6062      <value name="Horizontal Compression Mode" value="0"/>
6063    </field>
6064    <field name="AVS Line Buffer - Cache Select" start="716" end="716" type="uint">
6065      <value name="LLC" value="0"/>
6066    </field>
6067    <field name="AVS Line Buffer - Tiled Mode" start="717" end="718" type="uint">
6068      <value name="TRMODE_NONE" value="0"/>
6069      <value name="TRMODE_TILEYF" value="1"/>
6070      <value name="TRMODE_TILEYS" value="2"/>
6071    </field>
6072    <field name="IEF Line Buffer - Address" start="748" end="783" type="uint"/>
6073    <field name="IEF Line Buffer - MOCS" start="801" end="806" type="uint"/>
6074    <field name="IEF Line Buffer - Arbitration Priority Control" start="807" end="808" type="HEVC_ARBITRATION_PRIORITY"/>
6075    <field name="IEF Line Buffer - Memory Compression Enable" start="809" end="809" type="bool"/>
6076    <field name="IEF Line Buffer - Memory Compression Mode" start="810" end="810" type="uint"/>
6077    <field name="IEF Line Buffer - Cache Select" start="812" end="812" type="uint"/>
6078    <field name="IEF Line Buffer - Tiled Mode" start="813" end="814" type="uint">
6079      <value name="TRMODE_NONE" value="0"/>
6080      <value name="TRMODE_TILEYF" value="1"/>
6081      <value name="TRMODE_TILEYS" value="2"/>
6082    </field>
6083    <field name="Output Surface Tile Walk" start="928" end="928" type="uint" prefix="TW">
6084      <value name="XMAJOR" value="0"/>
6085      <value name="YMAJOR" value="1"/>
6086    </field>
6087    <field name="Output Surface Tiled" start="929" end="929" type="bool"/>
6088    <field name="Output Surface Half Pitch for Chroma" start="930" end="930" type="bool"/>
6089    <field name="Output Surface Pitch" start="931" end="947" type="uint"/>
6090    <field name="Output Surface Interleave Chroma Enable" start="955" end="955" type="bool"/>
6091    <field name="Output Surface Format" start="956" end="959" type="uint"/>
6092    <field name="Output Surface Y Offset for U" start="960" end="973" type="uint"/>
6093    <field name="Output Surface X Offset for U" start="976" end="989" type="uint"/>
6094    <field name="Output Surface Y Offset for V" start="992" end="1005" type="uint"/>
6095    <field name="Output Surface X Offset for V" start="1008" end="1021" type="uint"/>
6096  </instruction>
6097
6098  <instruction name="STATE_BASE_ADDRESS" bias="2" length="19" engine="render">
6099    <field name="DWord Length" start="0" end="7" type="uint" default="17"/>
6100    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
6101    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
6102    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
6103    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6104    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
6105    <field name="General State MOCS" start="36" end="42" type="uint"/>
6106    <field name="General State Base Address" start="44" end="95" type="address"/>
6107    <field name="Stateless Data Port Access MOCS" start="112" end="118" type="uint"/>
6108    <field name="Surface State Base Address Modify Enable" start="128" end="128" type="bool"/>
6109    <field name="Surface State MOCS" start="132" end="138" type="uint"/>
6110    <field name="Surface State Base Address" start="140" end="191" type="address"/>
6111    <field name="Dynamic State Base Address Modify Enable" start="192" end="192" type="bool"/>
6112    <field name="Dynamic State MOCS" start="196" end="202" type="uint"/>
6113    <field name="Dynamic State Base Address" start="204" end="255" type="address"/>
6114    <field name="Indirect Object Base Address Modify Enable" start="256" end="256" type="bool"/>
6115    <field name="Indirect Object MOCS" start="260" end="266" type="uint"/>
6116    <field name="Indirect Object Base Address" start="268" end="319" type="address"/>
6117    <field name="Instruction Base Address Modify Enable" start="320" end="320" type="bool"/>
6118    <field name="Instruction MOCS" start="324" end="330" type="uint"/>
6119    <field name="Instruction Base Address" start="332" end="383" type="address"/>
6120    <field name="General State Buffer Size Modify Enable" start="384" end="384" type="bool"/>
6121    <field name="General State Buffer Size" start="396" end="415" type="uint"/>
6122    <field name="Dynamic State Buffer Size Modify Enable" start="416" end="416" type="bool"/>
6123    <field name="Dynamic State Buffer Size" start="428" end="447" type="uint"/>
6124    <field name="Indirect Object Buffer Size Modify Enable" start="448" end="448" type="bool"/>
6125    <field name="Indirect Object Buffer Size" start="460" end="479" type="uint"/>
6126    <field name="Instruction Buffer size Modify Enable" start="480" end="480" type="bool"/>
6127    <field name="Instruction Buffer Size" start="492" end="511" type="uint"/>
6128    <field name="Bindless Surface State Base Address Modify Enable" start="512" end="512" type="bool"/>
6129    <field name="Bindless Surface State MOCS" start="516" end="522" type="uint"/>
6130    <field name="Bindless Surface State Base Address" start="524" end="575" type="address"/>
6131    <field name="Bindless Surface State Size" start="588" end="607" type="uint"/>
6132  </instruction>
6133
6134  <instruction name="STATE_PREFETCH" bias="2" length="2" engine="render">
6135    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
6136    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="3"/>
6137    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
6138    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
6139    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6140    <field name="Prefetch Count" start="32" end="34" type="uint"/>
6141    <field name="Prefetch Pointer" start="38" end="63" type="address"/>
6142  </instruction>
6143
6144  <instruction name="STATE_SIP" bias="2" length="3" engine="render">
6145    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
6146    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
6147    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
6148    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
6149    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6150    <field name="System Instruction Pointer" start="36" end="95" type="offset"/>
6151  </instruction>
6152
6153  <instruction name="VDENC_CONST_QPT_STATE" bias="2" length="62" engine="video">
6154    <field name="DWord Length" start="0" end="11" type="uint" default="60"/>
6155    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
6156    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6157    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6158    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6159    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6160    <field name="QP Lambda Array Index[n]" start="32" end="39" type="uint"/>
6161    <field name="Skip Threshold Array Index[n]" start="384" end="399" type="uint"/>
6162    <field name="SIC Forward Transform Coeff Threshold Matrix0 Array Index[n]" start="832" end="847" type="uint"/>
6163    <field name="SIC Forward Transform Coeff Threshold Matrix1/3/5 Array Index[n]" start="1280" end="1287" type="uint"/>
6164    <field name="SIC Forward Transform Coeff Threshold Matrix2 Array Index[n]" start="1504" end="1511" type="uint"/>
6165    <field name="SIC Forward Transform Coeff Threshold Matrix4/6 Array Index[n]" start="1728" end="1735" type="uint"/>
6166  </instruction>
6167
6168  <instruction name="VDENC_DS_REF_SURFACE_STATE" bias="2" length="6" engine="video">
6169    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
6170    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
6171    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6172    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6173    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6174    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6175    <field name="8X Surface State" start="64" end="191" type="VDENC_SURFACE_STATE_FIELDS"/>
6176  </instruction>
6177
6178  <instruction name="VDENC_IMG_STATE" bias="2" length="36" engine="video">
6179    <field name="DWord Length" start="0" end="11" type="uint" default="34"/>
6180    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
6181    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6182    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6183    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6184    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6185    <field name="Bidirectional Mix Disable" start="34" end="34" type="bool"/>
6186    <field name="VDEnc Extended PAK_OBJ_ Command Enable" start="38" end="38" type="bool"/>
6187    <field name="Transform 8x8" start="39" end="39" type="bool"/>
6188    <field name="VDEnc L1 Cache Priority" start="40" end="41" type="uint"/>
6189    <field name="Lambda Value for Trellis" start="48" end="63" type="uint"/>
6190    <field name="Unidirectional Mix Disable" start="92" end="92" type="bool"/>
6191    <field name="Picture Width" start="112" end="127" type="uint"/>
6192    <field name="Sub-Pel Mode" start="140" end="141" type="uint"/>
6193    <field name="Forward Transform Skip Check Enable" start="145" end="145" type="bool"/>
6194    <field name="Block-Based Skip Enable" start="147" end="147" type="bool"/>
6195    <field name="Inter SAD Measure Adjustment" start="148" end="149" type="uint">
6196      <value name="None" value="0"/>
6197      <value name="Haar Transform Adjusted" value="2"/>
6198    </field>
6199    <field name="Intra SAD Measure Adjustment" start="150" end="151" type="uint">
6200      <value name="None" value="0"/>
6201      <value name="Haar Transform Adjusted" value="2"/>
6202    </field>
6203    <field name="Sub-MB Sub-Partition Mask" start="152" end="158" type="uint"/>
6204    <field name="Block-Based Skip Type" start="159" end="159" type="uint"/>
6205    <field name="Picture Height" start="160" end="175" type="uint"/>
6206    <field name="CRE Prefetch Enable" start="176" end="176" type="bool"/>
6207    <field name="HME Ref1 Disable" start="177" end="177" type="bool"/>
6208    <field name="MB Slice Threshold Value" start="178" end="181" type="uint"/>
6209    <field name="Constrained Intra Prediction" start="186" end="186" type="bool"/>
6210    <field name="Picture Type" start="189" end="190" type="uint">
6211      <value name="I" value="0"/>
6212      <value name="P" value="1"/>
6213    </field>
6214    <field name="Slice MB Height" start="192" end="207" type="uint"/>
6215    <field name="HME1 Y Offset" start="248" end="255" type="int"/>
6216    <field name="Luma Intra Partition Mask" start="256" end="260" type="uint"/>
6217    <field name="Non Skip Zero MV Cost Added" start="261" end="261" type="uint"/>
6218    <field name="Non Skip MB Mode Cost Added" start="262" end="262" type="uint"/>
6219    <field name="MV Cost Scaling Factor" start="272" end="273" type="uint">
6220      <value name="Qpel" value="0"/>
6221      <value name="Hpel" value="1"/>
6222      <value name="Pel" value="2"/>
6223      <value name="2pel" value="3"/>
6224    </field>
6225    <field name="BiLinear Filter Enable" start="274" end="274" type="bool"/>
6226    <field name="RefID Cost Mode Select" start="278" end="278" type="uint"/>
6227    <field name="Mode 0 Cost" start="288" end="295" type="uint"/>
6228    <field name="Mode 1 Cost" start="296" end="303" type="uint"/>
6229    <field name="Mode 2 Cost" start="304" end="311" type="uint"/>
6230    <field name="Mode 3 Cost" start="312" end="319" type="uint"/>
6231    <field name="Mode 4 Cost" start="320" end="327" type="uint"/>
6232    <field name="Mode 5 Cost" start="328" end="335" type="uint"/>
6233    <field name="Mode 6 Cost" start="336" end="343" type="uint"/>
6234    <field name="Mode 7 Cost" start="344" end="351" type="uint"/>
6235    <field name="Mode 8 Cost" start="352" end="359" type="uint"/>
6236    <field name="Mode 9 Cost" start="360" end="367" type="uint"/>
6237    <field name="RefID Cost" start="368" end="375" type="uint"/>
6238    <field name="Chroma Intra Mode Cost" start="376" end="383" type="uint"/>
6239    <field name="MV Cost" start="384" end="447" type="uint"/>
6240    <field name="QpPrimeY" start="448" end="455" type="uint"/>
6241    <field name="TargetSizeInWord" start="472" end="479" type="uint"/>
6242    <field name="AVC Intra 4x4 Mode Mask" start="544" end="552" type="uint"/>
6243    <field name="AVC Intra 8x8 Mode Mask" start="560" end="568" type="uint"/>
6244    <field name="AVC Intra 16x16 Mode Mask" start="576" end="579" type="uint"/>
6245    <field name="AVC Intra Chroma Mode Mask" start="580" end="583" type="uint"/>
6246    <field name="Intra Compute Type" start="584" end="585" type="uint"/>
6247    <field name="Penalty for Intra 16x16 Non-DC Prediction" start="640" end="647" type="uint"/>
6248    <field name="Penalty for Intra 8x8 Non-DC Prediction" start="648" end="655" type="uint"/>
6249    <field name="Penalty for Intra 4x4 Non-DC Prediction" start="656" end="663" type="uint"/>
6250    <field name="Intra Refresh MB Position" start="672" end="679" type="uint"/>
6251    <field name="Intra Refresh MB Size" start="680" end="687" type="uint"/>
6252    <field name="Intra Refresh Enable (Rolling-I Enable)" start="688" end="688" type="bool"/>
6253    <field name="Intra Refresh Mode" start="689" end="689" type="uint">
6254      <value name="Row Based" value="0"/>
6255      <value name="Column Based" value="1"/>
6256    </field>
6257    <field name="QP Adjustment for Rolling-I" start="696" end="703" type="int"/>
6258    <field name="PanicModeMBThreshold" start="704" end="719" type="uint"/>
6259    <field name="SmallMbSizeInWord" start="720" end="727" type="uint"/>
6260    <field name="LargeMbSizeInWord" start="728" end="735" type="uint"/>
6261    <field name="L0 Number of References" start="736" end="743" type="int"/>
6262    <field name="L1 Number of References" start="752" end="759" type="int"/>
6263    <field name="HME Ref Windows Combining Threshold" start="840" end="847" type="uint"/>
6264    <field name="Max Horizontal MV Range" start="864" end="879" type="uint"/>
6265    <field name="Max Vertical MV Range" start="880" end="895" type="uint"/>
6266    <field name="HME MV Cost" start="896" end="959" type="uint"/>
6267    <field name="ROI QP Adjustment for Zone0" start="960" end="963" type="int"/>
6268    <field name="ROI QP Adjustment for Zone1" start="964" end="967" type="int"/>
6269    <field name="ROI QP Adjustment for Zone2" start="968" end="971" type="int"/>
6270    <field name="ROI QP Adjustment for Zone3" start="972" end="975" type="int"/>
6271    <field name="QP Adjustment for Shape Best Intra 4x4 Winner" start="976" end="979" type="int"/>
6272    <field name="QP Adjustment for Shape Best Intra 8x8 Winner" start="980" end="983" type="int"/>
6273    <field name="QP Adjustment for Shape Best Intra 16x16 Winner" start="984" end="987" type="int"/>
6274    <field name="Best Distortion QP Adjustment for Zone0" start="992" end="995" type="int"/>
6275    <field name="Best Distortion QP Adjustment for Zone1" start="996" end="999" type="int"/>
6276    <field name="Best Distortion QP Adjustment for Zone2" start="1000" end="1003" type="int"/>
6277    <field name="Best Distortion QP Adjustment for Zone3" start="1004" end="1007" type="int"/>
6278    <field name="Sad/Haar Threshold 0" start="1008" end="1023" type="uint"/>
6279    <field name="Sad/Haar Threshold 1" start="1024" end="1039" type="uint"/>
6280    <field name="Sad/Haar Threshold 2" start="1040" end="1055" type="uint"/>
6281    <field name="Min QP" start="1056" end="1063" type="uint"/>
6282    <field name="Max QP" start="1064" end="1071" type="uint"/>
6283    <field name="Max Delta QP" start="1080" end="1083" type="uint"/>
6284    <field name="ROI Enable" start="1088" end="1088" type="bool"/>
6285    <field name="Fwd/Predictor0 MV Enable" start="1089" end="1089" type="bool"/>
6286    <field name="Bwd/Predictor1 MV Enable" start="1090" end="1090" type="bool"/>
6287    <field name="MB Level QP Enable" start="1091" end="1091" type="bool"/>
6288    <field name="TargetSizeinWordsMB/MaxSizeinWordsMB Enable" start="1092" end="1092" type="bool"/>
6289    <field name="PPMV Disable" start="1096" end="1096" type="bool"/>
6290    <field name="Coefficient Clamp Enable" start="1097" end="1097" type="bool"/>
6291    <field name="Long Term Reference Frame Bwd Ref0 Indicator" start="1098" end="1098" type="bool"/>
6292    <field name="Long Term Reference Frame Fwd Ref2 Indicator" start="1099" end="1099" type="bool"/>
6293    <field name="Long Term Reference Frame Fwd Ref1 Indicator" start="1100" end="1100" type="bool"/>
6294    <field name="Long Term Reference Frame Fwd Ref0 Indicator" start="1101" end="1101" type="bool"/>
6295    <field name="Midpoint Sad/Haar" start="1104" end="1119" type="uint"/>
6296  </instruction>
6297
6298  <instruction name="VDENC_PIPE_BUF_ADDR_STATE" bias="2" length="38" engine="video">
6299    <field name="DWord Length" start="0" end="11" type="uint" default="36"/>
6300    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
6301    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6302    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6303    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6304    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6305    <field name="DS FWD REF0" start="32" end="127" type="VDENC_PICTURE"/>
6306    <field name="DS FWD REF1" start="128" end="223" type="VDENC_PICTURE"/>
6307    <field name="Original Uncompressed Picture" start="320" end="415" type="VDENC_PICTURE"/>
6308    <field name="Stream-In Data Picture" start="416" end="511" type="VDENC_PICTURE"/>
6309    <field name="Row Store Scratch Buffer" start="512" end="607" type="VDENC_PICTURE"/>
6310    <field name="Colocated MV Read Buffer" start="608" end="703" type="VDENC_PICTURE"/>
6311    <field name="FWD REF0" start="704" end="799" type="VDENC_PICTURE"/>
6312    <field name="FWD REF1" start="800" end="895" type="VDENC_PICTURE"/>
6313    <field name="FWD REF2" start="896" end="991" type="VDENC_PICTURE"/>
6314    <field name="BWD REF0" start="992" end="1087" type="VDENC_PICTURE"/>
6315    <field name="VDEnc Statistics Stream-Out" start="1088" end="1183" type="VDENC_PICTURE"/>
6316  </instruction>
6317
6318  <instruction name="VDENC_PIPE_MODE_SELECT" bias="2" length="2" engine="video">
6319    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6320    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
6321    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6322    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6323    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6324    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6325    <field name="Standard Select" start="32" end="35" type="uint">
6326      <value name="AVC" value="2"/>
6327    </field>
6328    <field name="Frame Statistics Stream-Out Enable" start="37" end="37" type="bool"/>
6329    <field name="TLB Prefetch Enable" start="39" end="39" type="bool"/>
6330    <field name="PAK Threshold Check Enable" start="40" end="40" type="bool"/>
6331    <field name="VDEnc Stream-In Enable" start="41" end="41" type="bool"/>
6332    <field name="PAK Chroma Sub-Sampling Type" start="47" end="48" type="uint">
6333      <value name="4:2:0" value="1"/>
6334      <value name="4:4:4" value="3"/>
6335    </field>
6336    <field name="Output Range Control After Color Space Conversion" start="49" end="49" type="bool"/>
6337  </instruction>
6338
6339  <instruction name="VDENC_REF_SURFACE_STATE" bias="2" length="6" engine="video">
6340    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
6341    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
6342    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6343    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6344    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6345    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6346    <field name="Surface State" start="64" end="191" type="VDENC_SURFACE_STATE_FIELDS"/>
6347  </instruction>
6348
6349  <instruction name="VDENC_SRC_SURFACE_STATE" bias="2" length="6" engine="video">
6350    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
6351    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
6352    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6353    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6354    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6355    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6356    <field name="Surface State" start="64" end="191" type="VDENC_SURFACE_STATE_FIELDS"/>
6357  </instruction>
6358
6359  <instruction name="VDENC_WALKER_STATE" bias="2" length="2" engine="video">
6360    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6361    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
6362    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6363    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6364    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6365    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6366    <field name="MB/LCU Start Y Position" start="32" end="40" type="uint"/>
6367    <field name="MB/LCU Start X Position" start="48" end="56" type="uint"/>
6368    <field name="First Super Slice" start="60" end="60" type="bool"/>
6369    <field name="Tile Stream-In Offset Enable" start="192" end="192" type="bool"/>
6370    <field name="Tile Stream-In Offset" start="198" end="223" type="uint"/>
6371    <field name="Tile Row Store Offset Enable" start="224" end="224" type="bool"/>
6372    <field name="Tile Row Store Offset" start="230" end="255" type="uint"/>
6373    <field name="Tile Stream-Out Offset Enable" start="256" end="256" type="bool"/>
6374    <field name="Tile Stream-Out Offset" start="262" end="287" type="uint"/>
6375    <field name="Tile LCU Stream-Out Offset Enable" start="288" end="288" type="bool"/>
6376    <field name="Tile LCU Stream-Out Offset" start="294" end="319" type="uint"/>
6377  </instruction>
6378
6379  <instruction name="VD_PIPELINE_FLUSH" bias="2" length="2" engine="video">
6380    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6381    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
6382    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6383    <field name="Media Command Opcode" start="23" end="26" type="uint" default="15"/>
6384    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6385    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6386    <field name="HEVC Pipeline Done" start="32" end="32" type="bool"/>
6387    <field name="VD-ENC Pipeline Done" start="33" end="33" type="bool"/>
6388    <field name="MFX Pipeline Done" start="35" end="35" type="bool"/>
6389    <field name="VD Command/Message Parser Done" start="36" end="36" type="bool"/>
6390    <field name="HEVC Pipeline Command Flush" start="48" end="48" type="bool"/>
6391    <field name="VD-ENC Pipeline Command Flush" start="49" end="49" type="bool"/>
6392    <field name="MFX Pipeline Command Flush" start="51" end="51" type="bool"/>
6393  </instruction>
6394
6395  <register name="ACTHD_UDW" length="1" num="0x205c">
6396    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
6397  </register>
6398
6399  <register name="BCS_ACTHD_UDW" length="1" num="0x2205c">
6400    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
6401  </register>
6402
6403  <register name="BCS_INSTDONE" length="1" num="0x2206c">
6404    <field name="Ring Enable" start="0" end="0" type="bool"/>
6405    <field name="Blitter IDLE" start="1" end="1" type="bool" default="1"/>
6406    <field name="GAB IDLE" start="2" end="2" type="bool" default="1"/>
6407    <field name="BCS Done" start="3" end="3" type="bool" default="1"/>
6408  </register>
6409
6410  <register name="BCS_RING_BUFFER_CTL" length="1" num="0x2203c">
6411    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
6412    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
6413      <value name="MI_AUTOREPORT_OFF" value="0"/>
6414      <value name="MI_AUTOREPORT_64KB" value="1"/>
6415      <value name="MI_AUTOREPORT_4KB" value="2"/>
6416      <value name="MI_AUTOREPORT_128KB" value="3"/>
6417    </field>
6418    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
6419    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
6420    <field name="RBWait" start="11" end="11" type="bool"/>
6421    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
6422  </register>
6423
6424  <register name="CACHE_MODE_0" length="1" num="0x7000">
6425    <field name="Null tile fix disable" start="0" end="0" type="bool"/>
6426    <field name="Disable clock gating in the pixel backend" start="1" end="1" type="bool"/>
6427    <field name="Hierarchical Z RAW Stall Optimization Disable" start="2" end="2" type="bool"/>
6428    <field name="RCC Eviction Policy" start="4" end="4" type="bool"/>
6429    <field name="STC PMA Optimization Enable" start="5" end="5" type="bool"/>
6430    <field name="Sampler L2 Request Arbitration" start="6" end="7" type="uint">
6431      <value name="Round Robin" value="0"/>
6432      <value name="Fetch are Highest Priority" value="1"/>
6433      <value name="Constants are Highest Priority" value="2"/>
6434    </field>
6435    <field name="Sampler L2 TLB Prefetch Enable" start="9" end="9" type="bool"/>
6436    <field name="Sampler Set Remapping for 3D Disable" start="11" end="11" type="bool"/>
6437    <field name="MSAA Compression Plane Number Threshold for eLLC" start="12" end="14" type="uint"/>
6438    <field name="Sampler L2 Disable" start="15" end="15" type="bool"/>
6439    <field name="Null tile fix disable Mask" start="16" end="16" type="bool"/>
6440    <field name="Disable clock gating in the pixel backend Mask" start="17" end="17" type="bool"/>
6441    <field name="Hierarchical Z RAW Stall Optimization Disable Mask" start="18" end="18" type="bool"/>
6442    <field name="RCC Eviction Policy Mask" start="20" end="20" type="bool"/>
6443    <field name="STC PMA Optimization Enable Mask" start="21" end="21" type="bool"/>
6444    <field name="Sampler L2 Request Arbitration Mask" start="22" end="23" type="uint"/>
6445    <field name="Sampler L2 TLB Prefetch Enable Mask" start="25" end="25" type="bool"/>
6446    <field name="Sampler Set Remapping for 3D Disable Mask" start="27" end="27" type="bool"/>
6447    <field name="MSAA Compression Plane Number Threshold for eLLC Mask" start="28" end="30" type="uint"/>
6448    <field name="Sampler L2 Disable Mask" start="31" end="31" type="bool"/>
6449  </register>
6450
6451  <register name="CACHE_MODE_1" length="1" num="0x7004">
6452    <field name="Partial Resolve Disable In VC" start="1" end="1" type="bool"/>
6453    <field name="RCZ Read after expansion control fix 2" start="2" end="2" type="bool"/>
6454    <field name="Depth Read Hit Write-Only Optimization Disable" start="3" end="3" type="bool"/>
6455    <field name="Float Blend Optimization Enable" start="4" end="4" type="bool"/>
6456    <field name="MCS Cache Disable" start="5" end="5" type="bool"/>
6457    <field name="4X4 RCPFE-STC Optimization Disable" start="6" end="6" type="bool"/>
6458    <field name="Sampler Cache Set XOR selection" start="7" end="8" type="uint"/>
6459    <field name="MSC RAW Hazard Avoidance Bit" start="9" end="9" type="bool"/>
6460    <field name="NP PMA Fix Enable" start="11" end="11" type="uint"/>
6461    <field name="HIZ Eviction Policy" start="12" end="12" type="uint"/>
6462    <field name="NP Early Z Fails Disable" start="13" end="13" type="uint"/>
6463    <field name="Blend Optimization Fix Disable" start="14" end="14" type="bool"/>
6464    <field name="Color Compression Disable" start="15" end="15" type="bool"/>
6465    <field name="Partial Resolve Disable In VC Mask" start="17" end="17" type="bool"/>
6466    <field name="RCZ Read after expansion control fix 2 Mask" start="18" end="18" type="bool"/>
6467    <field name="Depth Read Hit Write-Only Optimization Disable Mask" start="19" end="19" type="bool"/>
6468    <field name="Float Blend Optimization Enable Mask" start="20" end="20" type="bool"/>
6469    <field name="MCS Cache Disable Mask" start="21" end="21" type="bool"/>
6470    <field name="4X4 RCPFE-STC Optimization Disable Mask" start="22" end="22" type="bool"/>
6471    <field name="Sampler Cache Set XOR selection Mask" start="23" end="24" type="uint"/>
6472    <field name="MSC RAW Hazard Avoidance Bit Mask" start="25" end="25" type="bool"/>
6473    <field name="NP PMA Fix Enable Mask" start="27" end="27" type="bool"/>
6474    <field name="HIZ Eviction Policy Mask" start="28" end="28" type="bool"/>
6475    <field name="NP Early Z Fails Disable Mask" start="29" end="29" type="bool"/>
6476    <field name="Blend Optimization Fix Disable Mask" start="30" end="30" type="bool"/>
6477    <field name="Color Compression Disable Mask" start="31" end="31" type="bool"/>
6478  </register>
6479
6480  <register name="CL_INVOCATION_COUNT" length="2" num="0x2338">
6481    <field name="CL Invocation Count Report" start="0" end="63" type="uint"/>
6482  </register>
6483
6484  <register name="CL_PRIMITIVES_COUNT" length="2" num="0x2340">
6485    <field name="CL Primitives Count Report" start="0" end="63" type="uint"/>
6486  </register>
6487
6488  <register name="CS_CHICKEN1" length="1" num="0x2580">
6489    <field name="Replay Mode" start="0" end="0" type="uint">
6490      <value name="Mid-cmdbuffer Preemption" value="0"/>
6491      <value name="Object Level Preemption" value="1"/>
6492    </field>
6493    <field name="Replay Mode Mask" start="16" end="16" type="bool"/>
6494  </register>
6495
6496  <register name="CS_DEBUG_MODE2" length="1" num="0x20d8">
6497    <field name="3D Rendering Instruction Disable" start="0" end="0" type="bool"/>
6498    <field name="Media Instruction Disable" start="1" end="1" type="bool"/>
6499    <field name="CONSTANT_BUFFER Address Offset Disable" start="4" end="4" type="bool"/>
6500    <field name="3D Rendering Instruction Disable Mask" start="16" end="16" type="bool"/>
6501    <field name="Media Instruction Disable Mask" start="17" end="17" type="bool"/>
6502    <field name="CONSTANT_BUFFER Address Offset Disable Mask" start="20" end="20" type="bool"/>
6503  </register>
6504
6505  <register name="CS_INVOCATION_COUNT" length="2" num="0x2290">
6506    <field name="CS Invocation Count Report" start="0" end="63" type="uint"/>
6507  </register>
6508
6509  <register name="DS_INVOCATION_COUNT" length="2" num="0x2308">
6510    <field name="DS Invocation Count Report" start="0" end="63" type="uint"/>
6511  </register>
6512
6513  <register name="FAULT_REG" length="1" num="0x4094">
6514    <field name="Valid Bit" start="0" end="0" type="bool"/>
6515    <field name="Fault Type" start="1" end="2" type="uint">
6516      <value name="Invalid PTE Fault" value="0"/>
6517      <value name="Invalid PDE Fault" value="1"/>
6518      <value name="Invalid PDPE Fault" value="2"/>
6519      <value name="Invalid PML4E Fault" value="3"/>
6520    </field>
6521    <field name="SRCID of Fault" start="3" end="10" type="uint"/>
6522    <field name="GTTSEL" start="11" end="11" type="uint">
6523      <value name="PPGTT" value="0"/>
6524      <value name="GGTT" value="1"/>
6525    </field>
6526    <field name="Engine ID" start="12" end="14" type="uint">
6527      <value name="GFX" value="0"/>
6528      <value name="MFX0" value="1"/>
6529      <value name="MFX1" value="2"/>
6530      <value name="VEBX" value="3"/>
6531      <value name="BLT" value="4"/>
6532      <value name="GUC" value="5"/>
6533    </field>
6534  </register>
6535
6536  <register name="GFX_ARB_ERROR_RPT" length="1" num="0x40a0">
6537    <field name="TLB Page Fault Error" start="0" end="0" type="bool"/>
6538    <field name="RSTRM PAVP Read Invalid" start="1" end="1" type="bool"/>
6539    <field name="Invalid Page Directory Entry Error" start="2" end="2" type="bool"/>
6540    <field name="ROSTRM PAVP Invalid Physical Address" start="3" end="3" type="bool"/>
6541    <field name="TLB Page VTD Translation Error" start="4" end="4" type="bool"/>
6542    <field name="WRDP PAVP Invalid" start="5" end="5" type="bool"/>
6543    <field name="Page Directory Entry VTD Translation Error" start="6" end="6" type="bool"/>
6544    <field name="Unloaded PD Error" start="8" end="8" type="bool"/>
6545    <field name="GuC VTd translation Page Fault 2nd level (Undefined doorbell)" start="9" end="9" type="bool"/>
6546    <field name="Non WB memory type for Advanced Context" start="10" end="10" type="bool"/>
6547    <field name="PASID Not Enabled" start="11" end="11" type="bool"/>
6548    <field name="PASID Boundary Violation" start="12" end="12" type="bool"/>
6549    <field name="PASID Not Valid" start="13" end="13" type="bool"/>
6550    <field name="PASID Was Zero For Untranslated Request" start="14" end="14" type="bool"/>
6551    <field name="Context Was Not Marked As Present When Doing DMA" start="15" end="15" type="bool"/>
6552  </register>
6553
6554  <register name="GS_INVOCATION_COUNT" length="2" num="0x2328">
6555    <field name="GS Invocation Count Report" start="0" end="63" type="uint"/>
6556  </register>
6557
6558  <register name="GS_PRIMITIVES_COUNT" length="2" num="0x2330">
6559    <field name="GS Primitives Count Report" start="0" end="63" type="uint"/>
6560  </register>
6561
6562  <register name="GT_MODE" length="1" num="0x7008">
6563    <field name="Subslice Hashing" start="8" end="9" type="uint">
6564      <value name="8x8" value="0"/>
6565      <value name="16x4" value="1"/>
6566      <value name="8x4" value="2"/>
6567      <value name="16x16" value="3"/>
6568    </field>
6569    <field name="Slice Hashing" start="11" end="12" type="uint">
6570      <value name="NORMAL" value="0"/>
6571      <value name="DISABLED" value="1"/>
6572      <value name="32x16" value="2"/>
6573      <value name="32x32" value="3"/>
6574    </field>
6575    <field name="Subslice Hashing Mask" start="24" end="25" type="int"/>
6576    <field name="Slice Hashing Mask" start="27" end="28" type="int"/>
6577  </register>
6578
6579  <register name="HS_INVOCATION_COUNT" length="2" num="0x2300">
6580    <field name="HS Invocation Count Report" start="0" end="63" type="uint"/>
6581  </register>
6582
6583  <register name="IA_PRIMITIVES_COUNT" length="2" num="0x2318">
6584    <field name="IA Primitives Count Report" start="0" end="63" type="uint"/>
6585  </register>
6586
6587  <register name="IA_VERTICES_COUNT" length="2" num="0x2310">
6588    <field name="IA Vertices Count Report" start="0" end="63" type="uint"/>
6589  </register>
6590
6591  <register name="INSTDONE_1" length="1" num="0x206c">
6592    <field name="PRB0 Ring Enable" start="0" end="0" type="bool"/>
6593    <field name="VFG Done" start="1" end="1" type="bool"/>
6594    <field name="VS Done" start="2" end="2" type="bool"/>
6595    <field name="HS Done" start="3" end="3" type="bool"/>
6596    <field name="TE Done" start="4" end="4" type="bool"/>
6597    <field name="DS Done" start="5" end="5" type="bool"/>
6598    <field name="GS Done" start="6" end="6" type="bool"/>
6599    <field name="SOL Done" start="7" end="7" type="bool"/>
6600    <field name="CL Done" start="8" end="8" type="bool"/>
6601    <field name="SF Done" start="9" end="9" type="bool"/>
6602    <field name="TDG Done" start="12" end="12" type="bool"/>
6603    <field name="URBM Done" start="13" end="13" type="bool"/>
6604    <field name="SVG Done" start="14" end="14" type="bool"/>
6605    <field name="GAFS Done" start="15" end="15" type="bool"/>
6606    <field name="VFE Done" start="16" end="16" type="bool"/>
6607    <field name="TSG Done" start="17" end="17" type="bool"/>
6608    <field name="GAFM Done" start="18" end="18" type="bool"/>
6609    <field name="GAM Done" start="19" end="19" type="bool"/>
6610    <field name="RS Done" start="20" end="20" type="bool"/>
6611    <field name="CS Done" start="21" end="21" type="bool"/>
6612    <field name="SDE Done" start="22" end="22" type="bool"/>
6613    <field name="RCCFBC CS Done" start="23" end="23" type="bool"/>
6614  </register>
6615
6616  <register name="L3CNTLREG" length="1" num="0x7034">
6617    <field name="SLM Enable" start="0" end="0" type="bool"/>
6618    <field name="URB Allocation" start="1" end="7" type="uint"/>
6619    <field name="RO Allocation" start="11" end="17" type="uint"/>
6620    <field name="DC Allocation" start="18" end="24" type="uint"/>
6621    <field name="All Allocation" start="25" end="31" type="uint"/>
6622  </register>
6623
6624  <register name="PERFCNT1" length="2" num="0x91b8">
6625    <field name="Value" start="0" end="43" type="uint"/>
6626    <field name="Event Selection" start="52" end="59" type="uint"/>
6627    <field name="Counter Clear" start="60" end="60" type="bool"/>
6628    <field name="Edge Detect" start="61" end="61" type="bool"/>
6629    <field name="Overflow Enable" start="62" end="62" type="bool"/>
6630    <field name="Counter Enable" start="63" end="63" type="bool"/>
6631  </register>
6632
6633  <register name="PERFCNT2" length="2" num="0x91c0">
6634    <field name="Value" start="0" end="43" type="uint"/>
6635    <field name="Event Selection" start="52" end="59" type="uint"/>
6636    <field name="Counter Clear" start="60" end="60" type="bool"/>
6637    <field name="Edge Detect" start="61" end="61" type="bool"/>
6638    <field name="Overflow Enable" start="62" end="62" type="bool"/>
6639    <field name="Counter Enable" start="63" end="63" type="bool"/>
6640  </register>
6641
6642  <register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
6643    <field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
6644  </register>
6645
6646  <register name="RCS_RING_BUFFER_CTL" length="1" num="0x203c">
6647    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
6648    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
6649      <value name="MI_AUTOREPORT_OFF" value="0"/>
6650      <value name="MI_AUTOREPORT_64KB" value="1"/>
6651      <value name="MI_AUTOREPORT_4KB" value="2"/>
6652      <value name="MI_AUTOREPORT_128KB" value="3"/>
6653    </field>
6654    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
6655    <field name="RBWait" start="11" end="11" type="bool"/>
6656    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
6657  </register>
6658
6659  <register name="ROW_INSTDONE" length="1" num="0xe164">
6660    <field name="BC Done" start="0" end="0" type="bool"/>
6661    <field name="PSD Done" start="1" end="1" type="bool"/>
6662    <field name="DAPR Done" start="3" end="3" type="bool"/>
6663    <field name="TDL Done" start="6" end="6" type="bool"/>
6664    <field name="IC Done" start="12" end="12" type="bool"/>
6665    <field name="MA0 Done" start="15" end="15" type="bool"/>
6666    <field name="EU00 Done SS0" start="16" end="16" type="bool"/>
6667    <field name="EU01 Done SS0" start="17" end="17" type="bool"/>
6668    <field name="EU02 Done SS0" start="18" end="18" type="bool"/>
6669    <field name="EU03 Done SS0" start="19" end="19" type="bool"/>
6670    <field name="EU10 Done SS0" start="21" end="21" type="bool"/>
6671    <field name="EU11 Done SS0" start="22" end="22" type="bool"/>
6672    <field name="EU12 Done SS0" start="23" end="23" type="bool"/>
6673    <field name="EU13 Done SS0" start="24" end="24" type="bool"/>
6674    <field name="MA1 Done SS0" start="26" end="26" type="bool"/>
6675  </register>
6676
6677  <register name="RPSTAT0" length="1" num="0xa01c">
6678    <field name="Previous GT Frequency" start="0" end="8" type="uint"/>
6679    <field name="Current GT Frequency" start="23" end="31" type="uint"/>
6680  </register>
6681
6682  <register name="SAMPLER_INSTDONE" length="1" num="0xe160">
6683    <field name="IME Done" start="0" end="0" type="bool"/>
6684    <field name="PL0 Done" start="1" end="1" type="bool"/>
6685    <field name="SO0 Done" start="2" end="2" type="bool"/>
6686    <field name="DG0 Done" start="3" end="3" type="bool"/>
6687    <field name="FT0 Done" start="4" end="4" type="bool"/>
6688    <field name="DM0 Done" start="5" end="5" type="bool"/>
6689    <field name="SC Done" start="6" end="6" type="bool"/>
6690    <field name="FL0 Done" start="7" end="7" type="bool"/>
6691    <field name="QC Done" start="8" end="8" type="bool"/>
6692    <field name="SVSM Done" start="9" end="9" type="bool"/>
6693    <field name="SI0 Done" start="10" end="10" type="bool"/>
6694    <field name="MT0 Done" start="11" end="11" type="bool"/>
6695    <field name="AVS Done" start="12" end="12" type="bool"/>
6696    <field name="IEF Done" start="13" end="13" type="bool"/>
6697    <field name="CRE Done" start="14" end="14" type="bool"/>
6698    <field name="SVSM ARB3" start="15" end="15" type="bool"/>
6699    <field name="SVSM ARB2" start="16" end="16" type="bool"/>
6700    <field name="SVSM ARB1" start="17" end="17" type="bool"/>
6701    <field name="SVSM Adapter" start="18" end="18" type="bool"/>
6702    <field name="BDM Done" start="19" end="19" type="bool"/>
6703  </register>
6704
6705  <register name="SC_INSTDONE" length="1" num="0x7100">
6706    <field name="SVL Done" start="0" end="0" type="bool"/>
6707    <field name="WMFE Done" start="1" end="1" type="bool"/>
6708    <field name="WMBE Done" start="2" end="2" type="bool"/>
6709    <field name="HIZ Done" start="3" end="3" type="bool"/>
6710    <field name="STC Done" start="4" end="4" type="bool"/>
6711    <field name="IZ Done" start="5" end="5" type="bool"/>
6712    <field name="SBE Done" start="6" end="6" type="bool"/>
6713    <field name="RCZ Done" start="8" end="8" type="bool"/>
6714    <field name="RCC Done" start="9" end="9" type="bool"/>
6715    <field name="RCPBE Done" start="10" end="10" type="bool"/>
6716    <field name="RCPFE Done" start="11" end="11" type="bool"/>
6717    <field name="DAPB Done" start="12" end="12" type="bool"/>
6718    <field name="DAPRBE Done" start="13" end="13" type="bool"/>
6719    <field name="SARB Done" start="15" end="15" type="bool"/>
6720    <field name="DC0 Done" start="16" end="16" type="bool"/>
6721    <field name="DC1 Done" start="17" end="17" type="bool"/>
6722    <field name="DC2 Done" start="18" end="18" type="bool"/>
6723    <field name="DC3 Done" start="19" end="19" type="bool"/>
6724    <field name="GW0 Done" start="20" end="20" type="bool"/>
6725    <field name="GW1 Done" start="21" end="21" type="bool"/>
6726    <field name="GW2 Done" start="22" end="22" type="bool"/>
6727    <field name="GW3 Done" start="23" end="23" type="bool"/>
6728    <field name="TDC Done" start="24" end="24" type="bool"/>
6729  </register>
6730
6731  <register name="SLICE_COMMON_ECO_CHICKEN1" length="1" num="0x731c">
6732    <field name="GLK Barrier Mode" start="7" end="7" type="uint">
6733      <value name="GLK_BARRIER_MODE_GPGPU" value="0"/>
6734      <value name="GLK_BARRIER_MODE_3D_HULL" value="1"/>
6735    </field>
6736    <field name="GLK Barrier Mode Mask" start="23" end="23" type="bool"/>
6737  </register>
6738
6739  <register name="SO_NUM_PRIMS_WRITTEN0" length="2" num="0x5200">
6740    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
6741  </register>
6742
6743  <register name="SO_NUM_PRIMS_WRITTEN1" length="2" num="0x5208">
6744    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
6745  </register>
6746
6747  <register name="SO_NUM_PRIMS_WRITTEN2" length="2" num="0x5210">
6748    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
6749  </register>
6750
6751  <register name="SO_NUM_PRIMS_WRITTEN3" length="2" num="0x5218">
6752    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
6753  </register>
6754
6755  <register name="SO_PRIM_STORAGE_NEEDED0" length="2" num="0x5240">
6756    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
6757  </register>
6758
6759  <register name="SO_PRIM_STORAGE_NEEDED1" length="2" num="0x5248">
6760    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
6761  </register>
6762
6763  <register name="SO_PRIM_STORAGE_NEEDED2" length="2" num="0x5250">
6764    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
6765  </register>
6766
6767  <register name="SO_PRIM_STORAGE_NEEDED3" length="2" num="0x5258">
6768    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
6769  </register>
6770
6771  <register name="SO_WRITE_OFFSET0" length="1" num="0x5280">
6772    <field name="Write Offset" start="2" end="31" type="offset"/>
6773  </register>
6774
6775  <register name="SO_WRITE_OFFSET1" length="1" num="0x5284">
6776    <field name="Write Offset" start="2" end="31" type="offset"/>
6777  </register>
6778
6779  <register name="SO_WRITE_OFFSET2" length="1" num="0x5288">
6780    <field name="Write Offset" start="2" end="31" type="offset"/>
6781  </register>
6782
6783  <register name="SO_WRITE_OFFSET3" length="1" num="0x528c">
6784    <field name="Write Offset" start="2" end="31" type="offset"/>
6785  </register>
6786
6787  <register name="VCS2_RING_BUFFER_CTL" length="1" num="0x1203c">
6788    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
6789    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
6790      <value name="MI_AUTOREPORT_OFF" value="0"/>
6791      <value name="MI_AUTOREPORT_64KB" value="1"/>
6792      <value name="MI_AUTOREPORT_4KB" value="2"/>
6793      <value name="MI_AUTOREPORT_128KB" value="3"/>
6794    </field>
6795    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
6796    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
6797    <field name="RBWait" start="11" end="11" type="bool"/>
6798    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
6799  </register>
6800
6801  <register name="VCS_ACTHD_UDW" length="1" num="0x1205c">
6802    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
6803  </register>
6804
6805  <register name="VCS_INSTDONE" length="1" num="0x1206c">
6806    <field name="Ring Enable" start="0" end="0" type="bool"/>
6807    <field name="USB Done" start="1" end="1" type="bool"/>
6808    <field name="QRC Done" start="2" end="2" type="bool"/>
6809    <field name="SEC Done" start="3" end="3" type="bool"/>
6810    <field name="MPC Done" start="4" end="4" type="bool"/>
6811    <field name="VFT Done" start="5" end="5" type="bool"/>
6812    <field name="BSP Done" start="6" end="6" type="bool"/>
6813    <field name="VLF Done" start="7" end="7" type="bool"/>
6814    <field name="VOP Done" start="8" end="8" type="bool"/>
6815    <field name="VMC Done" start="9" end="9" type="bool"/>
6816    <field name="VIP Done" start="10" end="10" type="bool"/>
6817    <field name="VIT Done" start="11" end="11" type="bool"/>
6818    <field name="VDS Done" start="12" end="12" type="bool"/>
6819    <field name="VMX Done" start="13" end="13" type="bool"/>
6820    <field name="VCP Done" start="14" end="14" type="bool"/>
6821    <field name="VCD Done" start="15" end="15" type="bool"/>
6822    <field name="VAD Done" start="16" end="16" type="bool"/>
6823    <field name="VMD Done" start="17" end="17" type="bool"/>
6824    <field name="VIS Done" start="18" end="18" type="bool"/>
6825    <field name="VAC Done" start="19" end="19" type="bool"/>
6826    <field name="VAM Done" start="20" end="20" type="bool"/>
6827    <field name="JPG Done" start="21" end="21" type="bool"/>
6828    <field name="VBP Done" start="22" end="22" type="bool"/>
6829    <field name="VHR Done" start="23" end="23" type="bool"/>
6830    <field name="VCI Done" start="24" end="24" type="bool"/>
6831    <field name="VCR Done" start="25" end="25" type="bool"/>
6832    <field name="VIN Done" start="26" end="26" type="bool"/>
6833    <field name="VPR Done" start="27" end="27" type="bool"/>
6834    <field name="VTQ Done" start="28" end="28" type="bool"/>
6835    <field name="Reserved" start="29" end="29" type="bool"/>
6836    <field name="VCS Done" start="30" end="30" type="bool"/>
6837    <field name="GAC Done" start="31" end="31" type="bool"/>
6838  </register>
6839
6840  <register name="VCS_RING_BUFFER_CTL" length="1" num="0x1203c">
6841    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
6842    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
6843      <value name="MI_AUTOREPORT_OFF" value="0"/>
6844      <value name="MI_AUTOREPORT_64KB" value="1"/>
6845      <value name="MI_AUTOREPORT_4KB" value="2"/>
6846      <value name="MI_AUTOREPORT_128KB" value="3"/>
6847    </field>
6848    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
6849    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
6850    <field name="RBWait" start="11" end="11" type="bool"/>
6851    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
6852  </register>
6853
6854  <register name="VECS_ACTHD_UDW" length="1" num="0x1a05c">
6855    <field name="Head Pointer Upper DWORD" start="0" end="15" type="uint" default="0"/>
6856  </register>
6857
6858  <register name="VECS_INSTDONE" length="1" num="0x1a06c">
6859    <field name="Ring Enable" start="0" end="0" type="bool"/>
6860    <field name="VECS Done" start="30" end="30" type="bool"/>
6861    <field name="GAM Done" start="31" end="31" type="bool"/>
6862  </register>
6863
6864  <register name="VECS_RING_BUFFER_CTL" length="1" num="0x1A03c">
6865    <field name="Ring Buffer Enable" start="0" end="0" type="bool"/>
6866    <field name="Automatic Report Head Pointer" start="1" end="2" type="uint">
6867      <value name="MI_AUTOREPORT_OFF" value="0"/>
6868      <value name="MI_AUTOREPORT_64KB" value="1"/>
6869      <value name="MI_AUTOREPORT_4KB" value="2"/>
6870      <value name="MI_AUTOREPORT_128KB" value="3"/>
6871    </field>
6872    <field name="Disable Register Accesses" start="8" end="8" type="bool"/>
6873    <field name="Semaphore Wait" start="10" end="10" type="bool"/>
6874    <field name="RBWait" start="11" end="11" type="bool"/>
6875    <field name="Buffer Length (in pages - 1)" start="12" end="20" type="uint"/>
6876  </register>
6877
6878  <register name="VS_INVOCATION_COUNT" length="2" num="0x2320">
6879    <field name="VS Invocation Count Report" start="0" end="63" type="uint"/>
6880  </register>
6881</genxml>
6882