1<?xml version="1.0" ?>
2<genxml name="TGL" gen="12">
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    <value name="MIRROR_101" value="7"/>
218  </enum>
219
220  <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
221    <value name="X" value="1"/>
222    <value name="Y" value="2"/>
223    <value name="XY" value="3"/>
224    <value name="Z" value="4"/>
225    <value name="XZ" value="5"/>
226    <value name="YZ" value="6"/>
227    <value name="XYZ" value="7"/>
228    <value name="W" value="8"/>
229    <value name="XW" value="9"/>
230    <value name="YW" value="10"/>
231    <value name="XYW" value="11"/>
232    <value name="ZW" value="12"/>
233    <value name="XZW" value="13"/>
234    <value name="YZW" value="14"/>
235    <value name="XYZW" value="15"/>
236  </enum>
237
238  <struct name="3DSTATE_CONSTANT_ALL_DATA" length="2">
239    <field name="Constant Buffer Read Length" start="0" end="4" type="uint"/>
240    <field name="Pointer To Constant Buffer" start="5" end="63" type="address"/>
241  </struct>
242
243  <struct name="3DSTATE_CONSTANT_BODY" length="10">
244    <group count="4" start="0" size="16">
245      <field name="Read Length" start="0" end="15" type="uint"/>
246    </group>
247    <group count="4" start="64" size="64">
248      <field name="Buffer" start="5" end="63" type="address"/>
249    </group>
250  </struct>
251
252  <struct name="3DSTATE_SO_BUFFER_INDEX_BODY" length="7">
253    <field name="Stream Output Buffer Offset Address Enable" start="20" end="20" type="bool"/>
254    <field name="Stream Offset Write Enable" start="21" end="21" type="bool"/>
255    <field name="MOCS" start="22" end="28" type="uint"/>
256    <field name="SO Buffer Enable" start="31" end="31" type="bool"/>
257    <field name="Surface Base Address" start="34" end="79" type="address"/>
258    <field name="Surface Size" start="96" end="125" type="uint"/>
259    <field name="Stream Output Buffer Offset Address" start="130" end="175" type="address"/>
260    <field name="Stream Offset" start="192" end="223" type="uint"/>
261  </struct>
262
263  <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
264    <field name="Surface State Pointer" start="0" end="15" type="offset"/>
265    <field name="Binding Table Index" start="16" end="23" type="uint"/>
266  </struct>
267
268  <struct name="BINDING_TABLE_STATE" length="1">
269    <field name="Surface State Pointer" start="6" end="31" type="offset"/>
270  </struct>
271
272  <struct name="BLEND_STATE_ENTRY" length="2">
273    <field name="Write Disable Blue" start="0" end="0" type="bool"/>
274    <field name="Write Disable Green" start="1" end="1" type="bool"/>
275    <field name="Write Disable Red" start="2" end="2" type="bool"/>
276    <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
277    <field name="Alpha Blend Function" start="5" end="7" type="3D_Color_Buffer_Blend_Function"/>
278    <field name="Destination Alpha Blend Factor" start="8" end="12" type="3D_Color_Buffer_Blend_Factor"/>
279    <field name="Source Alpha Blend Factor" start="13" end="17" type="3D_Color_Buffer_Blend_Factor"/>
280    <field name="Color Blend Function" start="18" end="20" type="3D_Color_Buffer_Blend_Function"/>
281    <field name="Destination Blend Factor" start="21" end="25" type="3D_Color_Buffer_Blend_Factor"/>
282    <field name="Source Blend Factor" start="26" end="30" type="3D_Color_Buffer_Blend_Factor"/>
283    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
284    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
285    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
286    <field name="Color Clamp Range" start="34" end="35" type="uint">
287      <value name="COLORCLAMP_UNORM" value="0"/>
288      <value name="COLORCLAMP_SNORM" value="1"/>
289      <value name="COLORCLAMP_RTFORMAT" value="2"/>
290    </field>
291    <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
292    <field name="Logic Op Function" start="59" end="62" type="3D_Logic_Op_Function"/>
293    <field name="Logic Op Enable" start="63" end="63" type="bool"/>
294  </struct>
295
296  <struct name="BLEND_STATE" length="1">
297    <field name="Y Dither Offset" start="19" end="20" type="uint"/>
298    <field name="X Dither Offset" start="21" end="22" type="uint"/>
299    <field name="Color Dither Enable" start="23" end="23" type="bool"/>
300    <field name="Alpha Test Function" start="24" end="26" type="3D_Compare_Function"/>
301    <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
302    <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
303    <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
304    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
305    <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
306    <group count="0" start="32" size="64">
307      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
308    </group>
309  </struct>
310
311  <struct name="CC_VIEWPORT" length="2">
312    <field name="Minimum Depth" start="0" end="31" type="float"/>
313    <field name="Maximum Depth" start="32" end="63" type="float"/>
314  </struct>
315
316  <struct name="CHROMA_FILTER_COEFFICIENTS_ARRAY" length="2">
317    <field name="Table 1X Filter Coefficient[[n],2]" start="0" end="7" type="s1.6"/>
318    <field name="Table 1Y Filter Coefficient[[n],2]" start="8" end="15" type="s1.6"/>
319    <field name="Table 1X Filter Coefficient[[n],3]" start="16" end="23" type="s1.6"/>
320    <field name="Table 1Y Filter Coefficient[[n],3]" start="24" end="31" type="s1.6"/>
321    <field name="Table 1X Filter Coefficient[[n],4]" start="32" end="39" type="s1.6"/>
322    <field name="Table 1Y Filter Coefficient[[n],4]" start="40" end="47" type="s1.6"/>
323    <field name="Table 1X Filter Coefficient[[n],5]" start="48" end="55" type="s1.6"/>
324    <field name="Table 1Y Filter Coefficient[[n],5]" start="56" end="63" type="s1.6"/>
325  </struct>
326
327  <struct name="CLEAR_COLOR" length="8">
328    <field name="Raw Clear Color Red" start="0" end="31" type="int"/>
329    <field name="Raw Clear Color Green" start="32" end="63" type="int"/>
330    <field name="Raw Clear Color Blue" start="64" end="95" type="int"/>
331    <field name="Raw Clear Color Alpha" start="96" end="127" type="int"/>
332    <field name="Converted Clear Value Hi/Low" start="128" end="191" type="uint"/>
333  </struct>
334
335  <struct name="COLOR_CALC_STATE" length="6">
336    <field name="Alpha Test Format" start="0" end="0" type="uint">
337      <value name="ALPHATEST_UNORM8" value="0"/>
338      <value name="ALPHATEST_FLOAT32" value="1"/>
339    </field>
340    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
341    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
342    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
343    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
344    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
345    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
346    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
347  </struct>
348
349  <struct name="EXECUTION_UNIT_EXTENDED_MESSAGE_DESCRIPTOR" length="1">
350    <field name="Target Function ID" start="0" end="3" type="uint"/>
351    <field name="End Of Thread" start="5" end="5" type="uint">
352      <value name="No Termination" value="0"/>
353      <value name="EOT" value="1"/>
354    </field>
355    <field name="Extended Message Length" start="6" end="9" type="uint"/>
356  </struct>
357
358  <struct name="FILTER_COEFFICIENT" length="1">
359    <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
360  </struct>
361
362  <struct name="FRAMEDELTAQP" length="2">
363    <group count="8" start="0" size="8">
364      <field name="Frame Delta QP" start="0" end="7" type="int"/>
365    </group>
366  </struct>
367
368  <struct name="FRAMEDELTAQPRANGE" length="2">
369    <group count="8" start="0" size="8">
370      <field name="Frame Delta QP Range" start="0" end="7" type="uint"/>
371    </group>
372  </struct>
373
374  <struct name="GATHER_CONSTANT_ENTRY" length="1">
375    <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
376    <field name="Channel Mask" start="4" end="7" type="uint"/>
377    <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
378  </struct>
379
380  <struct name="HEVC_ARBITRATION_PRIORITY" length="1">
381    <field name="Priority" start="0" end="1" type="uint">
382      <value name="Highest priority" value="0"/>
383      <value name="Second highest priority" value="1"/>
384      <value name="Third highest priority" value="2"/>
385      <value name="Lowest priority" value="3"/>
386    </field>
387  </struct>
388
389  <struct name="MEMORYADDRESSATTRIBUTES" length="1">
390    <field name="MOCS" start="1" end="6" type="uint"/>
391    <field name="Arbitration Priority Control" start="7" end="8" type="HEVC_ARBITRATION_PRIORITY"/>
392    <field name="Memory Compression Enable" start="9" end="9" type="bool"/>
393    <field name="Memory Compression Mode" start="10" end="10" type="uint"/>
394    <field name="Row Store Scratch Buffer Cache Select" start="12" end="12" type="uint"/>
395    <field name="Tiled Resource Mode" start="13" end="14" type="uint">
396      <value name="TRMODE_NONE" value="0"/>
397      <value name="TRMODE_TILEYF" value="1"/>
398      <value name="TRMODE_TILEYS" value="2"/>
399    </field>
400  </struct>
401
402  <struct name="HCP_PAK_INSERT_OBJECT_INDIRECT_PAYLOAD" length="4">
403    <field name="Indirect Payload Data Size in bits" start="0" end="31" type="uint"/>
404    <field name="Indirect Payload Base Address" start="32" end="95" type="address"/>
405    <field name="Indirect Payload Base Address2" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
406  </struct>
407
408  <struct name="HCP_REF_LIST_ENTRY" length="1">
409    <field name="Reference Picture tb Value" start="0" end="7" type="uint"/>
410    <field name="List Entry" start="8" end="10" type="uint"/>
411    <field name="Chroma Weighted Prediction" start="11" end="11" type="uint">
412      <value name="Default" value="0"/>
413      <value name="Explicit" value="1"/>
414    </field>
415    <field name="Luma Weighted Prediction" start="12" end="12" type="uint">
416      <value name="Default" value="0"/>
417      <value name="Explicit" value="1"/>
418    </field>
419    <field name="Long Term Reference" start="13" end="13" type="bool"/>
420    <field name="Field Pic" start="14" end="14" type="bool"/>
421    <field name="Top Field" start="15" end="15" type="bool"/>
422  </struct>
423
424  <struct name="HCP_TILE_POSITION_IN_CTB" length="1">
425    <field name="CtbPos0+i" start="0" end="7" type="uint"/>
426    <field name="CtbPos1+i" start="8" end="15" type="uint"/>
427    <field name="CtbPos2+i" start="16" end="23" type="uint"/>
428    <field name="CtbPos3+i" start="24" end="31" type="uint"/>
429  </struct>
430
431  <struct name="HCP_TILE_POSITION_IN_CTB_MSB" length="2">
432    <group count="22" start="0" size="2">
433      <field name="Ctb Row Position of Tile Column" start="0" end="1" type="uint"/>
434    </group>
435  </struct>
436
437  <struct name="HCP_WEIGHTOFFSET_CHROMA_ENTRY" length="1">
438    <field name="Delta Chroma Weight LX[0]" start="0" end="7" type="int"/>
439    <field name="Chroma Offset LX[0]" start="8" end="15" type="uint"/>
440    <field name="Delta Chroma Weight LX[1]" start="16" end="23" type="int"/>
441    <field name="Chroma Offset LX[1]" start="24" end="31" type="uint"/>
442  </struct>
443
444  <struct name="HCP_WEIGHTOFFSET_CHROMA_EXT_ENTRY" length="1">
445    <field name="Chroma Offset LX[0] MSByte [i]" start="0" end="7" type="uint"/>
446    <field name="Chroma Offset LX[0] MSByte [i+1]" start="8" end="15" type="uint"/>
447    <field name="Chroma Offset LX[1] MSByte [i]" start="16" end="23" type="uint"/>
448    <field name="Chroma Offset LX[1] MSByte [i+1]" start="24" end="31" type="uint"/>
449  </struct>
450
451  <struct name="HCP_WEIGHTOFFSET_LUMA_ENTRY" length="1">
452    <field name="Delta Luma Weight LX" start="0" end="7" type="int"/>
453    <field name="Luma Offset LX" start="8" end="15" type="uint"/>
454    <field name="Luma Offset LX MSByte" start="24" end="31" type="uint"/>
455  </struct>
456
457  <struct name="HEVC_VP9_RDOQ_LAMBDA_FIELDS" length="1">
458    <field name="Lambda Value 0" start="0" end="15" type="uint"/>
459    <field name="Lambda Value 1" start="16" end="31" type="uint"/>
460  </struct>
461
462  <struct name="HUC_VIRTUAL_ADDR_REGION" length="3">
463    <field name="Address" start="0" end="63" type="address"/>
464    <field name="Memory Address Attributes" start="64" end="95" type="MEMORYADDRESSATTRIBUTES"/>
465  </struct>
466
467  <struct name="IMAGE_STATE_COST" length="2">
468    <field name="MV 0 Cost" start="0" end="7" type="uint"/>
469    <field name="MV 1 Cost" start="8" end="15" type="uint"/>
470    <field name="MV 2 Cost" start="16" end="23" type="uint"/>
471    <field name="MV 3 Cost" start="24" end="31" type="uint"/>
472    <field name="MV 4 Cost" start="32" end="39" type="uint"/>
473    <field name="MV 5 Cost" start="40" end="47" type="uint"/>
474    <field name="MV 6 Cost" start="48" end="55" type="uint"/>
475    <field name="MV 7 Cost" start="56" end="63" type="uint"/>
476  </struct>
477
478  <struct name="INLINE_DATA_DESCRIPTION_FOR_MFD_AVC_BSD_OBJECT" length="3">
479    <field name="MB Error Concealment P Slice Weight Prediction Disable" start="0" end="0" type="bool"/>
480    <field name="MB Error Concealment P Slice Motion Vectors Override Disable" start="1" end="1" type="bool"/>
481    <field name="MB Error Concealment B Spatial Weight Prediction Disable" start="3" end="3" type="bool"/>
482    <field name="MB Error Concealment B Spatial Motion Vectors Override Disable" start="4" end="4" type="bool"/>
483    <field name="MB Error Concealment B Spatial Prediction Mode" start="6" end="7" type="uint"/>
484    <field name="MB Header Error Handling" start="8" end="8" type="bool"/>
485    <field name="Entropy Error Handling" start="10" end="10" type="bool"/>
486    <field name="MPR Error Handling" start="12" end="12" type="bool"/>
487    <field name="BSD Premature Complete Error Handling" start="14" end="14" type="bool"/>
488    <field name="Concealment Picture ID" start="16" end="21" type="uint"/>
489    <field name="MB Error Concealment B Temporal Weight Prediction Disable" start="24" end="24" type="bool"/>
490    <field name="MB Error Concealment B Temporal Motion Vectors Override Enable" start="25" end="25" type="bool"/>
491    <field name="MB Error Concealment B Temporal Prediction Mode" start="27" end="28" type="uint"/>
492    <field name="Intra PredMode (4x4/8x8 Luma) Error Control" start="29" end="29" type="bool"/>
493    <field name="Init Current MB Number" start="30" end="30" type="bool"/>
494    <field name="Concealment Method" start="31" end="31" type="uint"/>
495    <field name="First MB Bit Offset" start="32" end="34" type="uint"/>
496    <field name="Last Slice" start="35" end="35" type="bool"/>
497    <field name="Emulation Prevention Byte Present" start="36" end="36" type="bool"/>
498    <field name="Fix Prev MB Skipped" start="39" end="39" type="bool"/>
499    <field name="First MB Byte Offset of Slice Data or Slice Header" start="48" end="63" type="uint"/>
500    <field name="Intra Prediction Error Control" start="64" end="64" type="bool"/>
501    <field name="Intra 8x8/4x4 Prediction Error Concealment Control" start="65" end="65" type="bool"/>
502    <field name="B Slice Temporal Inter Concealment Mode" start="68" end="70" type="uint"/>
503    <field name="B Slice Spatial Inter Concealment Mode" start="72" end="74" type="uint"/>
504    <field name="B Slice Inter Direct Type Concealment Mode" start="76" end="77" type="uint"/>
505    <field name="B Slice Concealment Mode" start="79" end="79" type="uint">
506      <value name="Intra Concealment" value="1"/>
507      <value name="Inter Concealment" value="0"/>
508    </field>
509    <field name="P Slice Inter Concealment Mode" start="80" end="82" type="uint"/>
510    <field name="P Slice Concealment Mode" start="87" end="87" type="uint">
511      <value name="Intra Concealment" value="1"/>
512      <value name="Inter Concealment" value="0"/>
513    </field>
514    <field name="Concealment Reference Picture + Field Bit" start="88" end="93" type="uint"/>
515    <field name="I Slice Concealment Mode" start="95" end="95" type="uint">
516      <value name="Intra Concealment" value="1"/>
517      <value name="Inter Concealment" value="0"/>
518    </field>
519  </struct>
520
521  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
522    <field name="Kernel Start Pointer" start="6" end="47" type="offset"/>
523    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
524    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
525    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
526    <field name="Floating Point Mode" start="80" end="80" type="uint">
527      <value name="IEEE-754" value="0"/>
528      <value name="Alternate" value="1"/>
529    </field>
530    <field name="Thread Priority" start="81" end="81" type="uint">
531      <value name="Normal Priority" value="0"/>
532      <value name="High Priority" value="1"/>
533    </field>
534    <field name="Single Program Flow" start="82" end="82" type="bool"/>
535    <field name="Denorm Mode" start="83" end="83" type="uint">
536      <value name="Ftz" value="0"/>
537      <value name="SetByKernel" value="1"/>
538    </field>
539    <field name="Thread Preemption Disable" start="84" end="84" type="bool"/>
540    <field name="Sampler Count" start="98" end="100" type="uint">
541      <value name="No samplers used" value="0"/>
542      <value name="Between 1 and 4 samplers used" value="1"/>
543      <value name="Between 5 and 8 samplers used" value="2"/>
544      <value name="Between 9 and 12 samplers used" value="3"/>
545      <value name="Between 13 and 16 samplers used" value="4"/>
546    </field>
547    <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
548    <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
549    <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
550    <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
551    <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
552    <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
553    <field name="Global Barrier Enable" start="207" end="207" type="bool"/>
554    <field name="Shared Local Memory Size" start="208" end="212" type="uint">
555      <value name="Encodes 0K" value="0"/>
556      <value name="Encodes 1K" value="1"/>
557      <value name="Encodes 2K" value="2"/>
558      <value name="Encodes 4K" value="3"/>
559      <value name="Encodes 8K" value="4"/>
560      <value name="Encodes 16K" value="5"/>
561      <value name="Encodes 32K" value="6"/>
562      <value name="Encodes 64K" value="7"/>
563    </field>
564    <field name="Barrier Enable" start="213" end="213" type="bool"/>
565    <field name="Rounding Mode" start="214" end="215" type="uint">
566      <value name="RTNE" value="0"/>
567      <value name="RU" value="1"/>
568      <value name="RD" value="2"/>
569      <value name="RTZ" value="3"/>
570    </field>
571    <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
572  </struct>
573
574  <struct name="LUMA_FILTER_COEFFICIENTS_ARRAY" length="4">
575    <field name="Table 0X Filter Coefficient[[n],0]" start="0" end="7" type="s1.6"/>
576    <field name="Table 0Y Filter Coefficient[[n],0]" start="8" end="15" type="s1.6"/>
577    <field name="Table 0X Filter Coefficient[[n],1]" start="16" end="23" type="s1.6"/>
578    <field name="Table 0Y Filter Coefficient[[n],1]" start="24" end="31" type="s1.6"/>
579    <field name="Table 0X Filter Coefficient[[n],2]" start="32" end="39" type="s1.6"/>
580    <field name="Table 0Y Filter Coefficient[[n],2]" start="40" end="47" type="s1.6"/>
581    <field name="Table 0X Filter Coefficient[[n],3]" start="48" end="55" type="s1.6"/>
582    <field name="Table 0Y Filter Coefficient[[n],3]" start="56" end="63" type="s1.6"/>
583    <field name="Table 0X Filter Coefficient[[n],4]" start="64" end="71" type="s1.6"/>
584    <field name="Table 0Y Filter Coefficient[[n],4]" start="72" end="79" type="s1.6"/>
585    <field name="Table 0X Filter Coefficient[[n],5]" start="80" end="87" type="s1.6"/>
586    <field name="Table 0Y Filter Coefficient[[n],5]" start="88" end="95" type="s1.6"/>
587    <field name="Table 0X Filter Coefficient[[n],6]" start="96" end="103" type="s1.6"/>
588    <field name="Table 0Y Filter Coefficient[[n],6]" start="104" end="111" type="s1.6"/>
589    <field name="Table 0X Filter Coefficient[[n],7]" start="112" end="119" type="s1.6"/>
590    <field name="Table 0Y Filter Coefficient[[n],7]" start="120" end="127" type="s1.6"/>
591  </struct>
592
593  <struct name="MFD_MPEG2_BSD_OBJECT_INLINE_DATA_DESCRIPTION" length="2">
594    <field name="First MB Bit Offset" start="0" end="2" type="uint"/>
595    <field name="Last MB" start="3" end="3" type="bool"/>
596    <field name="Last Pic Slice" start="5" end="5" type="bool"/>
597    <field name="Slice Concealment Type" start="6" end="6" type="uint"/>
598    <field name="Slice Concealment Override" start="7" end="7" type="uint"/>
599    <field name="MB Count" start="8" end="15" type="uint"/>
600    <field name="Slice Vertical Position" start="16" end="23" type="uint"/>
601    <field name="Slice Horizontal Position" start="24" end="31" type="uint"/>
602    <field name="Next Slice Horizontal Position" start="32" end="39" type="uint"/>
603    <field name="Next Slice Vertical Position" start="40" end="48" type="uint"/>
604    <field name="Quantizer Scale Code" start="56" end="60" type="uint"/>
605  </struct>
606
607  <struct name="MI_MATH_ALU_INSTRUCTION" length="1">
608    <field name="Operand 2" start="0" end="9" type="uint" prefix="MI_ALU">
609      <value name="REG0" value="0x00"/>
610      <value name="REG1" value="0x01"/>
611      <value name="REG2" value="0x02"/>
612      <value name="REG3" value="0x03"/>
613      <value name="REG4" value="0x04"/>
614      <value name="REG5" value="0x05"/>
615      <value name="REG6" value="0x06"/>
616      <value name="REG7" value="0x07"/>
617      <value name="REG8" value="0x08"/>
618      <value name="REG9" value="0x09"/>
619      <value name="REG10" value="0x0a"/>
620      <value name="REG11" value="0x0b"/>
621      <value name="REG12" value="0x0c"/>
622      <value name="REG13" value="0x0d"/>
623      <value name="REG14" value="0x0e"/>
624      <value name="REG15" value="0x0f"/>
625      <value name="SRCA" value="0x20"/>
626      <value name="SRCB" value="0x21"/>
627      <value name="ACCU" value="0x31"/>
628      <value name="ZF" value="0x32"/>
629      <value name="CF" value="0x33"/>
630    </field>
631    <field name="Operand 1" start="10" end="19" type="uint" prefix="MI_ALU">
632      <value name="REG0" value="0x00"/>
633      <value name="REG1" value="0x01"/>
634      <value name="REG2" value="0x02"/>
635      <value name="REG3" value="0x03"/>
636      <value name="REG4" value="0x04"/>
637      <value name="REG5" value="0x05"/>
638      <value name="REG6" value="0x06"/>
639      <value name="REG7" value="0x07"/>
640      <value name="REG8" value="0x08"/>
641      <value name="REG9" value="0x09"/>
642      <value name="REG10" value="0x0a"/>
643      <value name="REG11" value="0x0b"/>
644      <value name="REG12" value="0x0c"/>
645      <value name="REG13" value="0x0d"/>
646      <value name="REG14" value="0x0e"/>
647      <value name="REG15" value="0x0f"/>
648      <value name="SRCA" value="0x20"/>
649      <value name="SRCB" value="0x21"/>
650      <value name="ACCU" value="0x31"/>
651      <value name="ZF" value="0x32"/>
652      <value name="CF" value="0x33"/>
653    </field>
654    <field name="ALU Opcode" start="20" end="31" type="uint" prefix="MI_ALU">
655      <value name="NOOP" value="0x000"/>
656      <value name="LOAD" value="0x080"/>
657      <value name="LOADINV" value="0x480"/>
658      <value name="LOAD0" value="0x081"/>
659      <value name="LOAD1" value="0x481"/>
660      <value name="ADD" value="0x100"/>
661      <value name="SUB" value="0x101"/>
662      <value name="AND" value="0x102"/>
663      <value name="OR" value="0x103"/>
664      <value name="XOR" value="0x104"/>
665      <value name="STORE" value="0x180"/>
666      <value name="STOREINV" value="0x580"/>
667    </field>
668  </struct>
669
670  <struct name="PALETTE_ENTRY" length="1">
671    <field name="Blue" start="0" end="7" type="uint"/>
672    <field name="Green" start="8" end="15" type="uint"/>
673    <field name="Red" start="16" end="23" type="uint"/>
674    <field name="Alpha" start="24" end="31" type="uint"/>
675  </struct>
676
677  <struct name="RENDER_SURFACE_STATE" length="16">
678    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
679    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
680    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
681    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
682    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
683    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
684    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
685      <value name="NORMAL_MODE" value="0"/>
686      <value name="PROGRESSIVE_FRAME" value="2"/>
687      <value name="INTERLACED_FRAME" value="3"/>
688    </field>
689    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
690      <value name="Write-Only Cache" value="0"/>
691      <value name="Read-Write Cache" value="1"/>
692    </field>
693    <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
694    <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
695    <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
696    <field name="Tile Mode" start="12" end="13" type="uint">
697      <value name="LINEAR" value="0"/>
698      <value name="XMAJOR" value="2"/>
699      <value name="YMAJOR" value="3"/>
700    </field>
701    <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
702      <value name="HALIGN 4" value="1"/>
703      <value name="HALIGN 8" value="2"/>
704      <value name="HALIGN 16" value="3"/>
705    </field>
706    <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
707      <value name="VALIGN 4" value="1"/>
708      <value name="VALIGN 8" value="2"/>
709      <value name="VALIGN 16" value="3"/>
710    </field>
711    <field name="Surface Format" start="18" end="27" type="uint"/>
712    <field name="Surface Array" start="28" end="28" type="bool"/>
713    <field name="Surface Type" start="29" end="31" type="uint">
714      <value name="SURFTYPE_1D" value="0"/>
715      <value name="SURFTYPE_2D" value="1"/>
716      <value name="SURFTYPE_3D" value="2"/>
717      <value name="SURFTYPE_CUBE" value="3"/>
718      <value name="SURFTYPE_BUFFER" value="4"/>
719      <value name="SURFTYPE_STRBUF" value="5"/>
720      <value name="SURFTYPE_NULL" value="7"/>
721    </field>
722    <field name="Surface QPitch" start="32" end="46" type="uint"/>
723    <field name="Sample Tap Discard Disable" start="47" end="47" type="bool"/>
724    <field name="Double Fetch Disable" start="49" end="49" type="bool"/>
725    <field name="Corner Texel Mode" start="50" end="50" type="uint"/>
726    <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
727    <field name="MOCS" start="56" end="62" type="uint"/>
728    <field name="Enable Unorm Path In Color Pipe" start="63" end="63" type="bool"/>
729    <field name="Width" start="64" end="77" type="uint"/>
730    <field name="Height" start="80" end="93" type="uint"/>
731    <field name="Depth Stencil Resource" start="95" end="95" type="bool"/>
732    <field name="Surface Pitch" start="96" end="113" type="uint"/>
733    <field name="Null Probing Enable" start="114" end="114" type="uint"/>
734    <field name="Standard Tiling Mode Extensions" start="115" end="115" type="uint"/>
735    <field name="Tile Address Mapping Mode" start="116" end="116" type="uint">
736      <value name="Gen9" value="0"/>
737      <value name="Gen10+" value="1"/>
738    </field>
739    <field name="Depth" start="117" end="127" type="uint"/>
740    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
741    <field name="Number of Multisamples" start="131" end="133" type="uint">
742      <value name="MULTISAMPLECOUNT_1" value="0"/>
743      <value name="MULTISAMPLECOUNT_2" value="1"/>
744      <value name="MULTISAMPLECOUNT_4" value="2"/>
745      <value name="MULTISAMPLECOUNT_8" value="3"/>
746      <value name="MULTISAMPLECOUNT_16" value="4"/>
747    </field>
748    <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
749      <value name="MSFMT_MSS" value="0"/>
750      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
751    </field>
752    <field name="Render Target View Extent" start="135" end="145" type="uint"/>
753    <field name="Minimum Array Element" start="146" end="156" type="uint"/>
754    <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
755      <value name="0DEG" value="0"/>
756      <value name="90DEG" value="1"/>
757      <value name="180DEG" value="2"/>
758      <value name="270DEG" value="3"/>
759    </field>
760    <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
761    <field name="Surface Min LOD" start="164" end="167" type="uint"/>
762    <field name="Mip Tail Start LOD" start="168" end="171" type="uint"/>
763    <field name="Coherency Type" start="174" end="174" type="uint">
764      <value name="GPU coherent" value="0"/>
765      <value name="IA coherent" value="1"/>
766    </field>
767    <field name="Tiled Resource Mode" start="178" end="179" type="uint">
768      <value name="NONE" value="0"/>
769      <value name="4KB" value="1"/>
770      <value name="64KB" value="2"/>
771      <value name="TILEYF" value="1"/>
772      <value name="TILEYS" value="2"/>
773    </field>
774    <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
775    <field name="Y Offset" start="181" end="183" type="uint"/>
776    <field name="X Offset" start="185" end="191" type="uint"/>
777    <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
778      <value name="AUX_NONE" value="0"/>
779      <value name="AUX_CCS_D" value="1"/>
780      <value name="AUX_APPEND" value="2"/>
781      <value name="AUX_MCS_LCE" value="4"/>
782      <value name="AUX_CCS_E" value="5"/>
783    </field>
784    <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
785    <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
786    <field name="YUV Interpolation Enable" start="207" end="207" type="bool"/>
787    <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
788    <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
789    <field name="Half Pitch for Chroma" start="222" end="222" type="uint"/>
790    <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
791    <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
792    <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
793    <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
794    <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
795    <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
796    <field name="Memory Compression Enable" start="254" end="254" type="bool"/>
797    <field name="Memory Compression Mode" start="255" end="255" type="uint">
798      <value name="Horizontal" value="0"/>
799    </field>
800    <field name="Surface Base Address" start="256" end="319" type="address"/>
801    <field name="Quilt Width" start="320" end="324" type="uint"/>
802    <field name="Quilt Height" start="325" end="329" type="uint"/>
803    <field name="Clear Value Address Enable" start="330" end="330" type="bool"/>
804    <field name="Caching Expanded Formats" start="331" end="331" type="uint"/>
805    <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
806    <field name="Clear Value Address" start="390" end="431" type="address"/>
807  </struct>
808
809  <struct name="ROUNDINGPRECISIONTABLE_3_BITS" length="1">
810    <field name="Rounding Precision" start="0" end="2" type="uint">
811      <value name="+1/16" value="0"/>
812      <value name="+2/16" value="1"/>
813      <value name="+3/16" value="2"/>
814      <value name="+4/16" value="3"/>
815      <value name="+5/16" value="4"/>
816      <value name="+6/16" value="5"/>
817      <value name="+7/16" value="6"/>
818      <value name="+8/16" value="7"/>
819    </field>
820  </struct>
821
822  <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
823    <field name="Border Color Float Red" start="0" end="31" type="float"/>
824    <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
825    <field name="Border Color Float Green" start="32" end="63" type="float"/>
826    <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
827    <field name="Border Color Float Blue" start="64" end="95" type="float"/>
828    <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
829    <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
830    <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
831  </struct>
832
833  <struct name="SAMPLER_INDIRECT_STATE_BORDER_COLOR" length="4">
834    <field name="Border Color Red As S31" start="0" end="31" type="int"/>
835    <field name="Border Color Red As U32" start="0" end="31" type="uint"/>
836    <field name="Border Color Red As Float" start="0" end="31" type="float"/>
837    <field name="Border Color Red As U8" start="0" end="7" type="uint"/>
838    <field name="Border Color Green As U8" start="8" end="15" type="uint"/>
839    <field name="Border Color Blue As U8" start="16" end="23" type="uint"/>
840    <field name="Border Color Alpha As U8" start="24" end="31" type="uint"/>
841    <field name="Border Color Green As S31" start="32" end="63" type="int"/>
842    <field name="Border Color Green As U32" start="32" end="63" type="uint"/>
843    <field name="Border Color Green As Float" start="32" end="63" type="float"/>
844    <field name="Border Color Blue As S31" start="64" end="95" type="int"/>
845    <field name="Border Color Blue As U32" start="64" end="95" type="uint"/>
846    <field name="Border Color Blue As Float" start="64" end="95" type="float"/>
847    <field name="Border Color Alpha As S31" start="96" end="127" type="int"/>
848    <field name="Border Color Alpha As U32" start="96" end="127" type="uint"/>
849    <field name="Border Color Alpha As Float" start="96" end="127" type="float"/>
850  </struct>
851
852  <struct name="SAMPLER_STATE" length="4">
853    <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
854      <value name="LEGACY" value="0"/>
855      <value name="EWA Approximation" value="1"/>
856    </field>
857    <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
858    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
859      <value name="NEAREST" value="0"/>
860      <value name="LINEAR" value="1"/>
861      <value name="ANISOTROPIC" value="2"/>
862      <value name="MONO" value="6"/>
863    </field>
864    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
865      <value name="NEAREST" value="0"/>
866      <value name="LINEAR" value="1"/>
867      <value name="ANISOTROPIC" value="2"/>
868      <value name="MONO" value="6"/>
869    </field>
870    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
871      <value name="NONE" value="0"/>
872      <value name="NEAREST" value="1"/>
873      <value name="LINEAR" value="3"/>
874    </field>
875    <field name="Coarse LOD Quality Mode" start="22" end="26" type="uint"/>
876    <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
877      <value name="NONE" value="0"/>
878      <value name="OGL" value="2"/>
879    </field>
880    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
881      <value name="DX10/OGL" value="0"/>
882      <value name="DX9" value="1"/>
883    </field>
884    <field name="Sampler Disable" start="31" end="31" type="bool"/>
885    <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
886      <value name="PROGRAMMED" value="0"/>
887      <value name="OVERRIDE" value="1"/>
888    </field>
889    <field name="Shadow Function" start="33" end="35" type="uint">
890      <value name="PREFILTEROP ALWAYS" value="0"/>
891      <value name="PREFILTEROP NEVER" value="1"/>
892      <value name="PREFILTEROP LESS" value="2"/>
893      <value name="PREFILTEROP EQUAL" value="3"/>
894      <value name="PREFILTEROP LEQUAL" value="4"/>
895      <value name="PREFILTEROP GREATER" value="5"/>
896      <value name="PREFILTEROP NOTEQUAL" value="6"/>
897      <value name="PREFILTEROP GEQUAL" value="7"/>
898    </field>
899    <field name="ChromaKey Mode" start="36" end="36" type="uint">
900      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
901      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
902    </field>
903    <field name="ChromaKey Index" start="37" end="38" type="uint"/>
904    <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
905    <field name="Max LOD" start="40" end="51" type="u4.8"/>
906    <field name="Min LOD" start="52" end="63" type="u4.8"/>
907    <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
908      <value name="MIPNONE" value="0"/>
909      <value name="MIPFILTER" value="1"/>
910    </field>
911    <field name="SRGB DECODE" start="65" end="65" type="uint">
912      <value name="DECODE_EXT" value="0"/>
913      <value name="SKIP_DECODE_EXT" value="1"/>
914    </field>
915    <field name="Return Filter Weight for Null Texels" start="66" end="66" type="uint"/>
916    <field name="Return Filter Weight for Border Texels" start="67" end="67" type="uint"/>
917    <field name="Force gather4 Behavior" start="69" end="69" type="bool"/>
918    <field name="Border Color Pointer" start="70" end="87" type="offset"/>
919    <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
920    <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
921    <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
922    <field name="Reduction Type Enable" start="105" end="105" type="bool"/>
923    <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
924    <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
925      <value name="FULL" value="0"/>
926      <value name="HIGH" value="1"/>
927      <value name="MED" value="2"/>
928      <value name="LOW" value="3"/>
929    </field>
930    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
931    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
932    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
933    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
934    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
935    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
936    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
937      <value name="RATIO 2:1" value="0"/>
938      <value name="RATIO 4:1" value="1"/>
939      <value name="RATIO 6:1" value="2"/>
940      <value name="RATIO 8:1" value="3"/>
941      <value name="RATIO 10:1" value="4"/>
942      <value name="RATIO 12:1" value="5"/>
943      <value name="RATIO 14:1" value="6"/>
944      <value name="RATIO 16:1" value="7"/>
945    </field>
946    <field name="Reduction Type" start="118" end="119" type="uint">
947      <value name="STD_FILTER" value="0"/>
948      <value name="COMPARISON" value="1"/>
949      <value name="MINIMUM" value="2"/>
950      <value name="MAXIMUM" value="3"/>
951    </field>
952  </struct>
953
954  <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
955    <group count="4" start="0" size="8">
956      <field name="Table 0 Filter Coefficient" start="0" end="7" type="s1.6"/>
957    </group>
958    <group count="4" start="0" size="32">
959      <field name="Table 1 Filter Coefficient0" start="0" end="7" type="s1.6"/>
960      <field name="Table 1 Filter Coefficient1" start="8" end="15" type="s1.6"/>
961    </group>
962  </struct>
963
964  <struct name="SCISSOR_RECT" length="2">
965    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
966    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
967    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
968    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
969  </struct>
970
971  <struct name="SFC_AVS_CHROMA_COEFF_TABLE_BODY" length="64">
972    <field name="Table 1X Filter Coefficient[[n],2]" start="0" end="7" type="s1.6"/>
973    <field name="Table 1Y Filter Coefficient[[n],2]" start="8" end="15" type="s1.6"/>
974    <field name="Table 1X Filter Coefficient[[n],3]" start="16" end="23" type="s1.6"/>
975    <field name="Table 1Y Filter Coefficient[[n],3]" start="24" end="31" type="s1.6"/>
976    <field name="Table 1X Filter Coefficient[[n],4]" start="32" end="39" type="s1.6"/>
977    <field name="Table 1Y Filter Coefficient[[n],4]" start="40" end="47" type="s1.6"/>
978    <field name="Table 1X Filter Coefficient[[n],5]" start="48" end="55" type="s1.6"/>
979    <field name="Table 1Y Filter Coefficient[[n],5]" start="56" end="63" type="s1.6"/>
980    <group count="31" start="64" size="64">
981      <field name="Filter Coefficients" start="0" end="63" type="CHROMA_FILTER_COEFFICIENTS_ARRAY"/>
982    </group>
983  </struct>
984
985  <struct name="SFC_AVS_LUMA_COEFF_TABLE_BODY" length="128">
986    <field name="Table 0X Filter Coefficient[[n],0]" start="0" end="7" type="s1.6"/>
987    <field name="Table 0Y Filter Coefficient[[n],0]" start="8" end="15" type="s1.6"/>
988    <field name="Table 0X Filter Coefficient[[n],1]" start="16" end="23" type="s1.6"/>
989    <field name="Table 0Y Filter Coefficient[[n],1]" start="24" end="31" type="s1.6"/>
990    <field name="Table 0X Filter Coefficient[[n],2]" start="32" end="39" type="s1.6"/>
991    <field name="Table 0Y Filter Coefficient[[n],2]" start="40" end="47" type="s1.6"/>
992    <field name="Table 0X Filter Coefficient[[n],3]" start="48" end="55" type="s1.6"/>
993    <field name="Table 0Y Filter Coefficient[[n],3]" start="56" end="63" type="s1.6"/>
994    <field name="Table 0X Filter Coefficient[[n],4]" start="64" end="71" type="s1.6"/>
995    <field name="Table 0Y Filter Coefficient[[n],4]" start="72" end="79" type="s1.6"/>
996    <field name="Table 0X Filter Coefficient[[n],5]" start="80" end="87" type="s1.6"/>
997    <field name="Table 0Y Filter Coefficient[[n],5]" start="88" end="95" type="s1.6"/>
998    <field name="Table 0X Filter Coefficient[[n],6]" start="96" end="103" type="s1.6"/>
999    <field name="Table 0Y Filter Coefficient[[n],6]" start="104" end="111" type="s1.6"/>
1000    <field name="Table 0X Filter Coefficient[[n],7]" start="112" end="119" type="s1.6"/>
1001    <field name="Table 0Y Filter Coefficient[[n],7]" start="120" end="127" type="s1.6"/>
1002    <group count="31" start="128" size="128">
1003      <field name="Filter Coefficients" start="0" end="127" type="LUMA_FILTER_COEFFICIENTS_ARRAY"/>
1004    </group>
1005  </struct>
1006
1007  <struct name="SFC_AVS_STATE_BODY" length="3">
1008    <field name="Transition Area with 8 Pixels" start="0" end="2" type="uint"/>
1009    <field name="Transition Area with 4 Pixels" start="4" end="6" type="uint"/>
1010    <field name="Sharpness Level" start="24" end="31" type="uint"/>
1011    <field name="Max Derivative 8 Pixels" start="32" end="39" type="uint"/>
1012    <field name="Max Derivative 4 Pixels" start="48" end="55" type="uint"/>
1013    <field name="Input Vertical Siting" start="64" end="67" type="uint">
1014      <value name="1/8" value="1"/>
1015      <value name="2/8" value="2"/>
1016      <value name="3/8" value="3"/>
1017      <value name="4/8" value="4"/>
1018      <value name="5/8" value="5"/>
1019      <value name="6/8" value="6"/>
1020      <value name="7/8" value="7"/>
1021      <value name="8/8" value="8"/>
1022    </field>
1023  </struct>
1024
1025  <struct name="SFC_IEF_STATE_BODY" length="23">
1026    <field name="Gain Factor" start="0" end="5" type="uint" default="44"/>
1027    <field name="Weak Edge Threshold" start="6" end="11" type="uint" default="1"/>
1028    <field name="Strong Edge Threshold" start="12" end="17" type="uint" default="8"/>
1029    <field name="R3x Coefficient" start="18" end="22" type="u0.5" default="5"/>
1030    <field name="R3c Coefficient" start="23" end="27" type="u0.5" default="5"/>
1031    <field name="Global Noise Estimation" start="32" end="39" type="uint"/>
1032    <field name="Non Edge Weight" start="40" end="42" type="uint"/>
1033    <field name="Regular Weight" start="43" end="45" type="uint"/>
1034    <field name="Strong Edge Weight" start="46" end="48" type="uint"/>
1035    <field name="R5x Coefficient" start="49" end="53" type="u0.5"/>
1036    <field name="R5cx Coefficient" start="54" end="58" type="u0.5"/>
1037    <field name="R5c Coefficient" start="59" end="63" type="u0.5"/>
1038    <field name="STD Sin(alpha)" start="64" end="71" type="s0.7"/>
1039    <field name="STD Cos(alpha)" start="72" end="79" type="s0.7"/>
1040    <field name="Sat_Max" start="80" end="85" type="uint"/>
1041    <field name="Hue_Max" start="86" end="91" type="uint"/>
1042    <field name="S3U" start="96" end="106" type="s2.8"/>
1043    <field name="Diamond Margin" start="108" end="110" type="uint"/>
1044    <field name="VY_STD_Enable" start="111" end="111" type="bool"/>
1045    <field name="U_Mid" start="112" end="119" type="uint"/>
1046    <field name="V_Mid" start="120" end="127" type="uint"/>
1047    <field name="Diamond_dv" start="128" end="134" type="int"/>
1048    <field name="Diamond_Th" start="135" end="140" type="uint"/>
1049    <field name="Diamond_alpha" start="141" end="148" type="u2.6"/>
1050    <field name="HS_margin" start="149" end="151" type="uint"/>
1051    <field name="Diamond_du" start="152" end="158" type="int"/>
1052    <field name="Skin Detail Factor" start="159" end="159" type="uint">
1053      <value name="Detail Revealed" value="0"/>
1054      <value name="Not Detail Revealed" value="1"/>
1055    </field>
1056    <field name="Y_point_1" start="160" end="167" type="uint"/>
1057    <field name="Y_point_2" start="168" end="175" type="uint"/>
1058    <field name="Y_point_3" start="176" end="183" type="uint"/>
1059    <field name="Y_point_4" start="184" end="191" type="uint"/>
1060    <field name="INV_Margin_VYL" start="192" end="207" type="u0.16"/>
1061    <field name="INV_Margin_VYU" start="224" end="239" type="u0.16"/>
1062    <field name="P0L" start="240" end="247" type="uint"/>
1063    <field name="P1L" start="248" end="255" type="uint"/>
1064    <field name="P2L" start="256" end="263" type="uint"/>
1065    <field name="P3L" start="264" end="271" type="uint"/>
1066    <field name="B0L" start="272" end="279" type="uint"/>
1067    <field name="B1L" start="280" end="287" type="uint"/>
1068    <field name="B2L" start="288" end="295" type="uint"/>
1069    <field name="B3L" start="296" end="303" type="uint"/>
1070    <field name="S0L" start="304" end="314" type="s2.8"/>
1071    <field name="Y_Slope_2" start="315" end="319" type="u2.3"/>
1072    <field name="S1L" start="320" end="330" type="s2.8"/>
1073    <field name="S2L" start="331" end="341" type="s2.8"/>
1074    <field name="S3L" start="352" end="362" type="s2.8"/>
1075    <field name="P0U" start="363" end="370" type="uint"/>
1076    <field name="P1U" start="371" end="378" type="uint"/>
1077    <field name="Y_Slope1" start="379" end="383" type="u2.3"/>
1078    <field name="P2U" start="384" end="391" type="uint"/>
1079    <field name="P3U" start="392" end="399" type="uint"/>
1080    <field name="B0U" start="400" end="407" type="uint"/>
1081    <field name="B1U" start="408" end="415" type="uint"/>
1082    <field name="B2U" start="416" end="423" type="uint"/>
1083    <field name="B3U" start="424" end="431" type="uint"/>
1084    <field name="S0U" start="432" end="442" type="s2.8"/>
1085    <field name="S1U" start="448" end="458" type="s2.8"/>
1086    <field name="S2U" start="459" end="469" type="s2.8"/>
1087    <field name="Transform Enable" start="480" end="480" type="bool"/>
1088    <field name="YUV Channel Swap" start="481" end="481" type="bool"/>
1089    <field name="C0" start="483" end="495" type="s2.10"/>
1090    <field name="C1" start="496" end="508" type="s2.10"/>
1091    <field name="C2" start="512" end="524" type="s2.10"/>
1092    <field name="C3" start="525" end="537" type="s2.10"/>
1093    <field name="C4" start="544" end="556" type="s2.10"/>
1094    <field name="C5" start="557" end="569" type="s2.10"/>
1095    <field name="C6" start="576" end="588" type="s2.10"/>
1096    <field name="C7" start="589" end="601" type="s2.10"/>
1097    <field name="C8" start="608" end="620" type="s2.10"/>
1098    <field name="Offset In 1" start="640" end="650" type="s2.8"/>
1099    <field name="Offset Out 1" start="651" end="661" type="s2.8"/>
1100    <field name="Offset In 2" start="672" end="682" type="s2.8"/>
1101    <field name="Offset Out 2" start="683" end="693" type="s2.8"/>
1102    <field name="Offset In 3" start="704" end="714" type="s2.8"/>
1103    <field name="Offset Out 3" start="715" end="725" type="s2.8"/>
1104  </struct>
1105
1106  <struct name="SFC_LOCK_BODY" length="1">
1107    <field name="VE-SFC Pipe Select" start="0" end="0" type="uint"/>
1108    <field name="Pre-Scaled Output Surface Output Enable" start="1" end="1" type="bool"/>
1109  </struct>
1110
1111  <struct name="SF_CLIP_VIEWPORT" length="16">
1112    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
1113    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
1114    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
1115    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
1116    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
1117    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
1118    <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
1119    <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
1120    <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
1121    <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
1122    <field name="X Min ViewPort" start="384" end="415" type="float"/>
1123    <field name="X Max ViewPort" start="416" end="447" type="float"/>
1124    <field name="Y Min ViewPort" start="448" end="479" type="float"/>
1125    <field name="Y Max ViewPort" start="480" end="511" type="float"/>
1126  </struct>
1127
1128  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
1129    <field name="Source Attribute" start="0" end="4" type="uint"/>
1130    <field name="Swizzle Select" start="6" end="7" type="uint">
1131      <value name="INPUTATTR" value="0"/>
1132      <value name="INPUTATTR_FACING" value="1"/>
1133      <value name="INPUTATTR_W" value="2"/>
1134      <value name="INPUTATTR_FACING_W" value="3"/>
1135    </field>
1136    <field name="Constant Source" start="9" end="10" type="uint">
1137      <value name="CONST_0000" value="0"/>
1138      <value name="CONST_0001_FLOAT" value="1"/>
1139      <value name="CONST_1111_FLOAT" value="2"/>
1140      <value name="PRIM_ID" value="3"/>
1141    </field>
1142    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
1143    <field name="Component Override X" start="12" end="12" type="bool"/>
1144    <field name="Component Override Y" start="13" end="13" type="bool"/>
1145    <field name="Component Override Z" start="14" end="14" type="bool"/>
1146    <field name="Component Override W" start="15" end="15" type="bool"/>
1147  </struct>
1148
1149  <struct name="SLICE_HASH_TABLE" length="32">
1150    <group count="16" start="0" size="64">
1151      <group count="16" start="0" size="4">
1152        <field name="Entry" start="0" end="3" type="uint"/>
1153      </group>
1154    </group>
1155  </struct>
1156
1157  <struct name="SO_DECL" length="1">
1158    <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
1159    <field name="Register Index" start="4" end="9" type="uint"/>
1160    <field name="Hole Flag" start="11" end="11" type="bool"/>
1161    <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
1162  </struct>
1163
1164  <struct name="SO_DECL_ENTRY" length="2">
1165    <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
1166    <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
1167    <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
1168    <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
1169  </struct>
1170
1171  <struct name="VDENC_SURFACE_CONTROL_BITS" length="1">
1172    <field name="MOCS" start="1" end="6" type="uint"/>
1173    <field name="Arbitration Priority Control" start="7" end="8" type="uint">
1174      <value name="Highest priority" value="0"/>
1175      <value name="Second highest priority" value="1"/>
1176      <value name="Third highest priority" value="2"/>
1177      <value name="Lowest priority" value="3"/>
1178    </field>
1179    <field name="Memory Compression Enable" start="9" end="9" type="bool"/>
1180    <field name="Memory Compression Mode" start="10" end="10" type="uint"/>
1181    <field name="Cache Select" start="12" end="12" type="uint"/>
1182    <field name="Tiled Resource Mode" start="13" end="14" type="uint">
1183      <value name="TRMODE_NONE" value="0"/>
1184      <value name="TRMODE_TILEYF" value="1"/>
1185      <value name="TRMODE_TILEYS" value="2"/>
1186    </field>
1187  </struct>
1188
1189  <struct name="VDENC_PICTURE" length="3">
1190    <field name="Address" start="0" end="63" type="address"/>
1191    <field name="Picture Fields" start="64" end="95" type="VDENC_SURFACE_CONTROL_BITS"/>
1192  </struct>
1193
1194  <struct name="VDENC_SURFACE_STATE_FIELDS" length="4">
1195    <field name="Cr(V)/Cb(U) Pixel Offset V Direction" start="0" end="1" type="u0.2"/>
1196    <field name="Surface Format Byte Swizzle" start="2" end="2" type="bool"/>
1197    <field name="Color space selection" start="3" end="3" type="uint"/>
1198    <field name="Width" start="4" end="17" type="uint"/>
1199    <field name="Height" start="18" end="31" type="uint"/>
1200    <field name="Tile Walk" start="32" end="32" type="uint" prefix="TW">
1201      <value name="XMAJOR" value="0"/>
1202      <value name="YMAJOR" value="1"/>
1203    </field>
1204    <field name="Tiled Surface" start="33" end="33" type="uint"/>
1205    <field name="Half Pitch for Chroma" start="34" end="34" type="bool"/>
1206    <field name="Surface Pitch" start="35" end="51" type="uint"/>
1207    <field name="Chroma Downsample Filter Control" start="52" end="54" type="uint"/>
1208    <field name="Format" start="59" end="63" type="uint"/>
1209    <field name="Surface Format" start="60" end="63" type="uint" prefix="VDENC">
1210      <value name="YUV 4:2:2" value="0"/>
1211      <value name="RGBA 4:4:4:4" value="1"/>
1212      <value name="YUV 4:4:4" value="2"/>
1213      <value name="Y8_UNORM" value="3"/>
1214      <value name="PLANAR_420_8" value="4"/>
1215    </field>
1216    <field name="Y Offset for U(Cb)" start="64" end="78" type="uint"/>
1217    <field name="X Offset for U(Cb)" start="80" end="94" type="uint"/>
1218    <field name="Y Offset for V(Cr)" start="96" end="111" type="uint"/>
1219    <field name="X Offset for V(Cr)" start="112" end="124" type="uint"/>
1220  </struct>
1221
1222  <struct name="VERTEX_BUFFER_STATE" length="4">
1223    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
1224    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
1225    <field name="Address Modify Enable" start="14" end="14" type="bool"/>
1226    <field name="MOCS" start="16" end="22" type="uint"/>
1227    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
1228    <field name="Buffer Starting Address" start="32" end="95" type="address"/>
1229    <field name="Buffer Size" start="96" end="127" type="uint"/>
1230  </struct>
1231
1232  <struct name="VERTEX_ELEMENT_STATE" length="2">
1233    <field name="Source Element Offset" start="0" end="11" type="uint"/>
1234    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
1235    <field name="Source Element Format" start="16" end="24" type="uint"/>
1236    <field name="Valid" start="25" end="25" type="bool"/>
1237    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
1238    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
1239    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
1240    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
1241    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
1242  </struct>
1243
1244  <instruction name="3DPRIMITIVE" bias="2" length="7" engine="render">
1245    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1246    <field name="Predicate Enable" start="8" end="8" type="bool"/>
1247    <field name="UAV Coherency Required" start="9" end="9" type="bool"/>
1248    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
1249    <field name="Extended Parameters Present" start="11" end="11" type="uint"/>
1250    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1251    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
1252    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1253    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1254    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
1255    <field name="Vertex Access Type" start="40" end="40" type="uint">
1256      <value name="SEQUENTIAL" value="0"/>
1257      <value name="RANDOM" value="1"/>
1258    </field>
1259    <field name="End Offset Enable" start="41" end="41" type="bool"/>
1260    <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
1261    <field name="Start Vertex Location" start="96" end="127" type="uint"/>
1262    <field name="Instance Count" start="128" end="159" type="uint"/>
1263    <field name="Start Instance Location" start="160" end="191" type="uint"/>
1264    <field name="Base Vertex Location" start="192" end="223" type="int"/>
1265    <field name="Extended Parameter 0" start="224" end="255" type="uint"/>
1266    <field name="Extended Parameter 1" start="256" end="287" type="uint"/>
1267    <field name="Extended Parameter 2" start="288" end="319" type="uint"/>
1268  </instruction>
1269
1270  <instruction name="3DSTATE_3D_MODE" bias="2" length="2" engine="render">
1271    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1272    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="30"/>
1273    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1274    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1275    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1276    <field name="Cross Slice Hashing Mode" start="32" end="33" type="uint">
1277      <value name="Normal Mode" value="0"/>
1278      <value name="Disable" value="1"/>
1279      <value name="hashing 32x32" value="3"/>
1280    </field>
1281    <field name="Subslice Hashing Mode" start="34" end="35" type="uint">
1282      <value name="hashing 8x8" value="0"/>
1283      <value name="hashing 16x4" value="1"/>
1284      <value name="hashing 8x4" value="2"/>
1285      <value name="hashing 16x16" value="3"/>
1286    </field>
1287    <field name="Slice Hashing Table Enable" start="38" end="38" type="bool"/>
1288    <field name="Mask" start="48" end="63" type="mbo"/>
1289  </instruction>
1290
1291  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
1292    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1293    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1294    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1295    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1296    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1297    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
1298    <field name="AA Point Coverage Slope" start="40" end="47" type="u0.8"/>
1299    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
1300    <field name="AA Point Coverage Bias" start="56" end="63" type="u0.8"/>
1301    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
1302    <field name="AA Point Coverage EndCap Slope" start="72" end="79" type="u0.8"/>
1303    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
1304    <field name="AA Point Coverage EndCap Bias" start="88" end="95" type="u0.8"/>
1305  </instruction>
1306
1307  <instruction name="3DSTATE_BINDING_TABLE_EDIT_DS" bias="2" engine="render">
1308    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1309    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="70"/>
1310    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1311    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1312    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1313    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1314      <value name="All Cores" value="3"/>
1315      <value name="Core 1" value="2"/>
1316      <value name="Core 0" value="1"/>
1317    </field>
1318    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1319    <group count="0" start="64" size="32">
1320      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1321    </group>
1322  </instruction>
1323
1324  <instruction name="3DSTATE_BINDING_TABLE_EDIT_GS" bias="2" engine="render">
1325    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1326    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="68"/>
1327    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1328    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1329    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1330    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1331      <value name="All Cores" value="3"/>
1332      <value name="Core 1" value="2"/>
1333      <value name="Core 0" value="1"/>
1334    </field>
1335    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1336    <group count="0" start="64" size="32">
1337      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1338    </group>
1339  </instruction>
1340
1341  <instruction name="3DSTATE_BINDING_TABLE_EDIT_HS" bias="2" engine="render">
1342    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1343    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="69"/>
1344    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1345    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1346    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1347    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1348      <value name="All Cores" value="3"/>
1349      <value name="Core 1" value="2"/>
1350      <value name="Core 0" value="1"/>
1351    </field>
1352    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1353    <group count="0" start="64" size="32">
1354      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1355    </group>
1356  </instruction>
1357
1358  <instruction name="3DSTATE_BINDING_TABLE_EDIT_PS" bias="2" engine="render">
1359    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1360    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="71"/>
1361    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1362    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1363    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1364    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1365      <value name="All Cores" value="3"/>
1366      <value name="Core 1" value="2"/>
1367      <value name="Core 0" value="1"/>
1368    </field>
1369    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1370    <group count="0" start="64" size="32">
1371      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1372    </group>
1373  </instruction>
1374
1375  <instruction name="3DSTATE_BINDING_TABLE_EDIT_VS" bias="2" engine="render">
1376    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
1377    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="67"/>
1378    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1379    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1380    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1381    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
1382      <value name="All Cores" value="3"/>
1383      <value name="Core 1" value="2"/>
1384      <value name="Core 0" value="1"/>
1385    </field>
1386    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
1387    <group count="0" start="64" size="32">
1388      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
1389    </group>
1390  </instruction>
1391
1392  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2" engine="render">
1393    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1394    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="40"/>
1395    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1396    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1397    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1398    <field name="Pointer to DS Binding Table" start="37" end="47" type="offset"/>
1399  </instruction>
1400
1401  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2" engine="render">
1402    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1403    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="41"/>
1404    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1405    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1406    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1407    <field name="Pointer to GS Binding Table" start="37" end="47" type="offset"/>
1408  </instruction>
1409
1410  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2" engine="render">
1411    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1412    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="39"/>
1413    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1414    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1415    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1416    <field name="Pointer to HS Binding Table" start="37" end="47" type="offset"/>
1417  </instruction>
1418
1419  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2" engine="render">
1420    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1421    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="42"/>
1422    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1423    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1424    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1425    <field name="Pointer to PS Binding Table" start="37" end="47" type="offset"/>
1426  </instruction>
1427
1428  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2" engine="render">
1429    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1430    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="38"/>
1431    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1432    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1433    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1434    <field name="Pointer to VS Binding Table" start="37" end="47" type="offset"/>
1435  </instruction>
1436
1437  <instruction name="3DSTATE_BINDING_TABLE_POOL_ALLOC" bias="2" length="4" engine="render">
1438    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1439    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
1440    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1441    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1442    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1443    <field name="MOCS" start="32" end="38" type="uint"/>
1444    <field name="Binding Table Pool Enable" start="43" end="43" type="uint"/>
1445    <field name="Binding Table Pool Base Address" start="44" end="95" type="address"/>
1446    <field name="Binding Table Pool Buffer Size" start="108" end="127" type="uint">
1447      <value name="No Valid Data" value="0"/>
1448    </field>
1449  </instruction>
1450
1451  <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2" engine="render">
1452    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1453    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="36"/>
1454    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1455    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1456    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1457    <field name="Blend State Pointer Valid" start="32" end="32" type="bool"/>
1458    <field name="Blend State Pointer" start="38" end="63" type="offset"/>
1459  </instruction>
1460
1461  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2" engine="render">
1462    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1463    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
1464    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1465    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1466    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1467    <field name="Color Calc State Pointer Valid" start="32" end="32" type="bool"/>
1468    <field name="Color Calc State Pointer" start="38" end="63" type="offset"/>
1469  </instruction>
1470
1471  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4" engine="render">
1472    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1473    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1474    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1475    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1476    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1477    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
1478    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
1479    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
1480  </instruction>
1481
1482  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3" engine="render">
1483    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1484    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1485    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1486    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1487    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1488    <field name="Depth Clear Value" start="32" end="63" type="float"/>
1489    <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
1490  </instruction>
1491
1492  <instruction name="3DSTATE_CLIP" bias="2" length="4" engine="render">
1493    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1494    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
1495    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1496    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1497    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1498    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
1499    <field name="Statistics Enable" start="42" end="42" type="bool"/>
1500    <field name="Force Clip Mode" start="48" end="48" type="bool"/>
1501    <field name="Force User Clip Distance Clip Test Enable Bitmask" start="49" end="49" type="bool"/>
1502    <field name="Early Cull Enable" start="50" end="50" type="bool"/>
1503    <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint">
1504      <value name="8 Bit" value="0"/>
1505      <value name="4 Bit" value="1"/>
1506    </field>
1507    <field name="Force User Clip Distance Cull Test Enable Bitmask" start="52" end="52" type="bool"/>
1508    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint"/>
1509    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint"/>
1510    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint"/>
1511    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
1512    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
1513    <field name="Clip Mode" start="77" end="79" type="uint">
1514      <value name="CLIPMODE_NORMAL" value="0"/>
1515      <value name="CLIPMODE_REJECT_ALL" value="3"/>
1516      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
1517    </field>
1518    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
1519    <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
1520    <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
1521    <field name="API Mode" start="94" end="94" type="uint">
1522      <value name="APIMODE_OGL" value="0"/>
1523      <value name="APIMODE_D3D" value="1"/>
1524    </field>
1525    <field name="Clip Enable" start="95" end="95" type="bool"/>
1526    <field name="Maximum VP Index" start="96" end="99" type="uint"/>
1527    <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
1528    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
1529    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
1530  </instruction>
1531
1532  <instruction name="3DSTATE_CONSTANT_ALL" bias="2" length="2">
1533    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1534    <field name="Shader Update Enable" start="8" end="12" type="uint"/>
1535    <field name="Vertex Shader Update Enable" start="8" end="8" type="bool"/>
1536    <field name="Hull Shader Update Enable" start="9" end="9" type="bool"/>
1537    <field name="Domain Shader Update Enable" start="10" end="10" type="bool"/>
1538    <field name="Geometry Shader Update Enable" start="11" end="11" type="bool"/>
1539    <field name="Pixel Shader Update Enable" start="12" end="12" type="bool"/>
1540    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="109"/>
1541    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1542    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1543    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1544    <field name="MOCS" start="32" end="38" type="uint"/>
1545    <field name="Pointer Buffer Mask" start="48" end="51" type="uint"/>
1546    <field name="Update Mode" start="63" end="63" type="bool"/>
1547    <group count="0" start="64" size="64">
1548      <field name="Constant Body" start="0" end="63" type="3DSTATE_CONSTANT_ALL_DATA"/>
1549    </group>
1550  </instruction>
1551
1552  <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="11" engine="render">
1553    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1554    <field name="MOCS" start="8" end="14" type="uint"/>
1555    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
1556    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1557    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1558    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1559    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1560  </instruction>
1561
1562  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="11" engine="render">
1563    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1564    <field name="MOCS" start="8" end="14" type="uint"/>
1565    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
1566    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1567    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1568    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1569    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1570  </instruction>
1571
1572  <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="11" engine="render">
1573    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1574    <field name="MOCS" start="8" end="14" type="uint"/>
1575    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
1576    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1577    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1578    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1579    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1580  </instruction>
1581
1582  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="11" engine="render">
1583    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1584    <field name="MOCS" start="8" end="14" type="uint"/>
1585    <field name="Disable Gather at Set Shader Hint" start="15" end="15" type="uint"/>
1586    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
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="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1591  </instruction>
1592
1593  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="11" engine="render">
1594    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1595    <field name="MOCS" start="8" end="14" type="uint"/>
1596    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
1597    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1598    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1599    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1600    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
1601  </instruction>
1602
1603  <instruction name="3DSTATE_DEPTH_BOUNDS" bias="2" length="4">
1604    <field name="Length" start="0" end="7" type="uint" default="2"/>
1605    <field name="Depth Bounds Test Value Modify Disable" start="14" end="14" type="bool"/>
1606    <field name="Depth Bounds Test Enable Modify Disable" start="15" end="15" type="bool"/>
1607    <field name="3DSTATE Command Sub Opcode" start="16" end="23" type="uint" default="113"/>
1608    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1609    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1610    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1611    <field name="Depth Bounds Test Enable" start="32" end="32" type="uint"/>
1612    <field name="Depth Bounds Test Min Value" start="64" end="95" type="float"/>
1613    <field name="Depth Bounds Test Max Value" start="96" end="127" type="float"/>
1614  </instruction>
1615
1616  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="8" engine="render">
1617    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1618    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
1619    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1620    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1621    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1622    <field name="Surface Pitch" start="32" end="49" type="uint"/>
1623    <field name="Control Surface Enable" start="51" end="51" type="bool"/>
1624    <field name="Depth Buffer Compression Enable" start="53" end="53" type="bool"/>
1625    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
1626    <field name="Corner Texel Mode" start="55" end="55" type="bool"/>
1627    <field name="Surface Format" start="56" end="58" type="uint">
1628      <value name="D32_FLOAT" value="1"/>
1629      <value name="D24_UNORM_X8_UINT" value="3"/>
1630      <value name="D16_UNORM" value="5"/>
1631    </field>
1632    <field name="Null Page Coherency Enable" start="59" end="59" type="bool"/>
1633    <field name="Depth Write Enable" start="60" end="60" type="bool"/>
1634    <field name="Surface Type" start="61" end="63" type="uint">
1635      <value name="SURFTYPE_2D" value="1"/>
1636      <value name="SURFTYPE_CUBE" value="3"/>
1637      <value name="SURFTYPE_NULL" value="7"/>
1638    </field>
1639    <field name="Surface Base Address" start="64" end="127" type="address"/>
1640    <field name="Width" start="129" end="142" type="uint"/>
1641    <field name="Height" start="145" end="158" type="uint"/>
1642    <field name="MOCS" start="160" end="166" type="uint"/>
1643    <field name="Minimum Array Element" start="168" end="178" type="uint"/>
1644    <field name="Depth" start="180" end="190" type="uint"/>
1645    <field name="Mip Tail Start LOD" start="218" end="221" type="uint"/>
1646    <field name="Tiled Resource Mode" start="222" end="223" type="uint">
1647      <value name="NONE" value="0"/>
1648      <value name="TILEYF" value="1"/>
1649      <value name="TILEYS" value="2"/>
1650    </field>
1651    <field name="Surface QPitch" start="224" end="238" type="uint"/>
1652    <field name="LOD" start="240" end="243" type="uint"/>
1653    <field name="Render Target View Extent" start="245" end="255" type="uint"/>
1654  </instruction>
1655
1656  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
1657    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1658    <field name="Core Mode Select" start="14" end="15" type="uint">
1659      <value name="Legacy" value="0"/>
1660      <value name="Core 0 Enabled" value="1"/>
1661      <value name="Core 1 Enabled" value="2"/>
1662    </field>
1663    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1664    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1665    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1666    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1667    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
1668    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
1669    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
1670    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
1671    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
1672    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
1673  </instruction>
1674
1675  <instruction name="3DSTATE_DS" bias="2" length="11" engine="render">
1676    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
1677    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
1678    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1679    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1680    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1681    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
1682    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1683    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1684    <field name="Accesses UAV" start="110" end="110" type="bool"/>
1685    <field name="Floating Point Mode" start="112" end="112" type="uint">
1686      <value name="IEEE-754" value="0"/>
1687      <value name="Alternate" value="1"/>
1688    </field>
1689    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1690      <value name="High" value="1"/>
1691    </field>
1692    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1693    <field name="Sampler Count" start="123" end="125" type="uint">
1694      <value name="No Samplers" value="0"/>
1695      <value name="1-4 Samplers" value="1"/>
1696      <value name="5-8 Samplers" value="2"/>
1697      <value name="9-12 Samplers" value="3"/>
1698      <value name="13-16 Samplers" value="4"/>
1699    </field>
1700    <field name="Vector Mask Enable" start="126" end="126" 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="Patch URB Entry Read Offset" start="196" end="201" type="uint"/>
1704    <field name="Patch URB Entry Read Length" start="203" end="209" type="uint"/>
1705    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
1706    <field name="Enable" start="224" end="224" type="bool"/>
1707    <field name="Cache Disable" start="225" end="225" type="bool"/>
1708    <field name="Compute W Coordinate Enable" start="226" end="226" type="bool"/>
1709    <field name="Dispatch Mode" start="227" end="228" type="uint" prefix="DISPATCH_MODE">
1710      <value name="SIMD8_SINGLE_PATCH" value="1"/>
1711      <value name="SIMD8_SINGLE_OR_DUAL_PATCH" value="2"/>
1712    </field>
1713    <field name="Statistics Enable" start="234" end="234" type="bool"/>
1714    <field name="Maximum Number of Threads" start="245" end="254" type="uint"/>
1715    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
1716    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
1717    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
1718    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
1719    <field name="DUAL_PATCH Kernel Start Pointer" start="294" end="351" type="offset"/>
1720  </instruction>
1721
1722  <instruction name="3DSTATE_GATHER_CONSTANT_DS" bias="2" engine="render">
1723    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1724    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="55"/>
1725    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1726    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1727    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1728    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1729      <value name="Commit Gather" value="0"/>
1730      <value name="Non-Commit Gather" value="1"/>
1731    </field>
1732    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1733    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1734    <field name="On-Die Table" start="67" end="67" type="uint">
1735      <value name="Load" value="0"/>
1736      <value name="Read" value="1"/>
1737    </field>
1738    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1739    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1740    <group count="0" start="96" size="32">
1741      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1742      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1743    </group>
1744  </instruction>
1745
1746  <instruction name="3DSTATE_GATHER_CONSTANT_GS" bias="2" engine="render">
1747    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1748    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="53"/>
1749    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1750    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1751    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1752    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1753      <value name="Commit Gather" value="0"/>
1754      <value name="Non-Commit Gather" value="1"/>
1755    </field>
1756    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1757    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1758    <field name="On-Die Table" start="67" end="67" type="uint">
1759      <value name="Load" value="0"/>
1760      <value name="Read" value="1"/>
1761    </field>
1762    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1763    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1764    <group count="0" start="96" size="32">
1765      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1766      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1767    </group>
1768  </instruction>
1769
1770  <instruction name="3DSTATE_GATHER_CONSTANT_HS" bias="2" engine="render">
1771    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1772    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="54"/>
1773    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1774    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1775    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1776    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1777      <value name="Commit Gather" value="0"/>
1778      <value name="Non-Commit Gather" value="1"/>
1779    </field>
1780    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1781    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1782    <field name="On-Die Table" start="67" end="67" type="uint">
1783      <value name="Load" value="0"/>
1784      <value name="Read" value="1"/>
1785    </field>
1786    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1787    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1788    <group count="0" start="96" size="32">
1789      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1790      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1791    </group>
1792  </instruction>
1793
1794  <instruction name="3DSTATE_GATHER_CONSTANT_PS" bias="2" engine="render">
1795    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1796    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="56"/>
1797    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1798    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1799    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1800    <field name="DX9 On-Die Register Read Enable" start="32" end="32" type="bool"/>
1801    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1802      <value name="Commit Gather" value="0"/>
1803      <value name="Non-Commit Gather" value="1"/>
1804    </field>
1805    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1806    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1807    <field name="On-Die Table" start="67" end="67" type="uint">
1808      <value name="Load" value="0"/>
1809      <value name="Read" value="1"/>
1810    </field>
1811    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
1812    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1813    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1814    <group count="0" start="96" size="32">
1815      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1816      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1817    </group>
1818  </instruction>
1819
1820  <instruction name="3DSTATE_GATHER_CONSTANT_VS" bias="2" engine="render">
1821    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1822    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="52"/>
1823    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1824    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1825    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1826    <field name="DX9 On-Die Register Read Enable" start="32" end="32" type="bool"/>
1827    <field name="Update Gather Table Only" start="33" end="33" type="uint">
1828      <value name="Commit Gather" value="0"/>
1829      <value name="Non-Commit Gather" value="1"/>
1830    </field>
1831    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
1832    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
1833    <field name="On-Die Table" start="67" end="67" type="uint">
1834      <value name="Load" value="0"/>
1835      <value name="Read" value="1"/>
1836    </field>
1837    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
1838    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
1839    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
1840    <group count="0" start="96" size="32">
1841      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
1842      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
1843    </group>
1844  </instruction>
1845
1846  <instruction name="3DSTATE_GATHER_POOL_ALLOC" bias="2" length="4" engine="render">
1847    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1848    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
1849    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1850    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1851    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1852    <field name="MOCS" start="32" end="38" type="uint"/>
1853    <field name="Gather Pool Enable" start="43" end="43" type="bool"/>
1854    <field name="Gather Pool Base Address" start="44" end="95" type="address"/>
1855    <field name="Gather Pool Buffer Size" start="108" end="127" type="uint"/>
1856  </instruction>
1857
1858  <instruction name="3DSTATE_GS" bias="2" length="10" engine="render">
1859    <field name="DWord Length" start="0" end="7" type="uint" default="8"/>
1860    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
1861    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1862    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1863    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1864    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
1865    <field name="Expected Vertex Count" start="96" end="101" type="uint"/>
1866    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
1867    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
1868    <field name="Accesses UAV" start="108" end="108" type="bool"/>
1869    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
1870    <field name="Floating Point Mode" start="112" end="112" type="uint">
1871      <value name="IEEE-754" value="0"/>
1872      <value name="Alternate" value="1"/>
1873    </field>
1874    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
1875      <value name="High" value="1"/>
1876    </field>
1877    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
1878    <field name="Sampler Count" start="123" end="125" type="uint">
1879      <value name="No Samplers" value="0"/>
1880      <value name="1-4 Samplers" value="1"/>
1881      <value name="5-8 Samplers" value="2"/>
1882      <value name="9-12 Samplers" value="3"/>
1883      <value name="13-16 Samplers" value="4"/>
1884    </field>
1885    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
1886    <field name="Single Program Flow" start="127" end="127" type="bool"/>
1887    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
1888    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
1889    <field name="Dispatch GRF Start Register For URB Data" start="192" end="195" type="uint"/>
1890    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
1891    <field name="Include Vertex Handles" start="202" end="202" type="bool"/>
1892    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
1893    <field name="Output Topology" start="209" end="214" type="3D_Prim_Topo_Type"/>
1894    <field name="Output Vertex Size" start="215" end="220" type="uint"/>
1895    <field name="Dispatch GRF Start Register For URB Data [5:4]" start="221" end="222" type="uint"/>
1896    <field name="Enable" start="224" end="224" type="bool"/>
1897    <field name="Discard Adjacency" start="225" end="225" type="bool"/>
1898    <field name="Reorder Mode" start="226" end="226" type="uint">
1899      <value name="LEADING" value="0"/>
1900      <value name="TRAILING" value="1"/>
1901    </field>
1902    <field name="Hint" start="227" end="227" type="uint"/>
1903    <field name="Include Primitive ID" start="228" end="228" type="bool"/>
1904    <field name="Invocations Increment Value" start="229" end="233" type="uint"/>
1905    <field name="Statistics Enable" start="234" end="234" type="bool"/>
1906    <field name="Dispatch Mode" start="235" end="236" type="uint" prefix="DISPATCH_MODE">
1907      <value name="SIMD8" value="3"/>
1908    </field>
1909    <field name="Default Stream Id" start="237" end="238" type="uint"/>
1910    <field name="Instance Control" start="239" end="243" type="uint"/>
1911    <field name="Control Data Header Size" start="244" end="247" type="uint"/>
1912    <field name="Maximum Number of Threads" start="256" end="264" type="uint"/>
1913    <field name="Static Output Vertex Count" start="272" end="282" type="uint"/>
1914    <field name="Static Output" start="286" end="286" type="bool"/>
1915    <field name="Control Data Format" start="287" end="287" type="uint">
1916      <value name="CUT" value="0"/>
1917      <value name="SID" value="1"/>
1918    </field>
1919    <field name="User Clip Distance Cull Test Enable Bitmask" start="288" end="295" type="uint"/>
1920    <field name="User Clip Distance Clip Test Enable Bitmask" start="296" end="303" type="uint"/>
1921    <field name="Vertex URB Entry Output Length" start="304" end="308" type="uint"/>
1922    <field name="Vertex URB Entry Output Read Offset" start="309" end="314" type="uint"/>
1923  </instruction>
1924
1925  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="5" engine="render">
1926    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1927    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1928    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1929    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1930    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1931    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1932    <field name="Hierarchical Depth Buffer Write Thru Enable" start="52" end="52" type="bool"/>
1933    <field name="Tiled Resource Mode" start="54" end="55" type="uint">
1934      <value name="NONE" value="0"/>
1935      <value name="TILEYF" value="1"/>
1936      <value name="TILEYS" value="2"/>
1937    </field>
1938    <field name="MOCS" start="57" end="63" type="uint"/>
1939    <field name="Hierarchical Depth Buffer MOCS" start="57" end="63" type="uint"/>
1940    <field name="Surface Base Address" start="64" end="127" type="address"/>
1941    <field name="Surface QPitch" start="128" end="142" type="uint"/>
1942  </instruction>
1943
1944  <instruction name="3DSTATE_HS" bias="2" length="9" engine="render">
1945    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
1946    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27"/>
1947    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1948    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1949    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1950    <field name="Software Exception Enable" start="44" end="44" type="bool"/>
1951    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
1952    <field name="Floating Point Mode" start="48" end="48" type="uint">
1953      <value name="IEEE-754" value="0"/>
1954      <value name="alternate" value="1"/>
1955    </field>
1956    <field name="Thread Dispatch Priority" start="49" end="49" type="uint">
1957      <value name="High" value="1"/>
1958    </field>
1959    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
1960    <field name="Sampler Count" start="59" end="61" type="uint">
1961      <value name="No Samplers" value="0"/>
1962      <value name="1-4 Samplers" value="1"/>
1963      <value name="5-8 Samplers" value="2"/>
1964      <value name="9-12 Samplers" value="3"/>
1965      <value name="13-16 Samplers" value="4"/>
1966    </field>
1967    <field name="Instance Count" start="64" end="68" type="uint"/>
1968    <field name="Maximum Number of Threads" start="72" end="80" type="uint"/>
1969    <field name="Statistics Enable" start="93" end="93" type="bool"/>
1970    <field name="Enable" start="95" end="95" type="bool"/>
1971    <field name="Kernel Start Pointer" start="102" end="159" type="offset"/>
1972    <field name="Per-Thread Scratch Space" start="160" end="163" type="uint"/>
1973    <field name="Scratch Space Base Pointer" start="170" end="223" type="address"/>
1974    <field name="Include Primitive ID" start="224" end="224" type="bool"/>
1975    <field name="Patch Count Threshold" start="225" end="227" type="uint"/>
1976    <field name="Vertex URB Entry Read Offset" start="228" end="233" type="uint"/>
1977    <field name="Vertex URB Entry Read Length" start="235" end="240" type="uint"/>
1978    <field name="Dispatch Mode" start="241" end="242" type="uint" prefix="DISPATCH_MODE">
1979      <value name="SINGLE_PATCH" value="0"/>
1980      <value name="8_PATCH" value="2"/>
1981    </field>
1982    <field name="Dispatch GRF Start Register For URB Data" start="243" end="247" type="uint"/>
1983    <field name="Include Vertex Handles" start="248" end="248" type="bool"/>
1984    <field name="Accesses UAV" start="249" end="249" type="bool"/>
1985    <field name="Vector Mask Enable" start="250" end="250" type="bool"/>
1986    <field name="Single Program Flow" start="251" end="251" type="bool"/>
1987    <field name="Dispatch GRF Start Register For URB Data [5]" start="252" end="252" type="uint"/>
1988  </instruction>
1989
1990  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="5" engine="render">
1991    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1992    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1993    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1994    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1995    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1996    <field name="MOCS" start="32" end="38" type="uint"/>
1997    <field name="Index Format" start="40" end="41" type="uint" prefix="INDEX">
1998      <value name="BYTE" value="0"/>
1999      <value name="WORD" value="1"/>
2000      <value name="DWORD" value="2"/>
2001    </field>
2002    <field name="Buffer Starting Address" start="64" end="127" type="address"/>
2003    <field name="Buffer Size" start="128" end="159" type="uint"/>
2004  </instruction>
2005
2006  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
2007    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2008    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
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="Line Stipple Pattern" start="32" end="47" type="uint"/>
2013    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
2014    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
2015    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
2016    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
2017    <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
2018  </instruction>
2019
2020  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2" engine="render">
2021    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2022    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
2023    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2024    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2025    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2026    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
2027    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
2028  </instruction>
2029
2030  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="2" engine="render">
2031    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2032    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
2033    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2034    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2035    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2036    <field name="Number of Multisamples" start="33" end="35" type="uint"/>
2037    <field name="Pixel Location" start="36" end="36" type="uint">
2038      <value name="CENTER" value="0"/>
2039      <value name="UL_CORNER" value="1"/>
2040    </field>
2041    <field name="Pixel Position Offset Enable" start="37" end="37" type="bool"/>
2042  </instruction>
2043
2044  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2" engine="render">
2045    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2046    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
2047    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2048    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2049    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2050    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
2051    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
2052  </instruction>
2053
2054  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
2055    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
2056    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
2057    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2058    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2059    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2060    <group count="32" start="32" size="32">
2061      <field name="Pattern Row" start="0" end="31" type="uint"/>
2062    </group>
2063  </instruction>
2064
2065  <instruction name="3DSTATE_PRIMITIVE_REPLICATION" bias="2" length="6">
2066    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
2067    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="108"/>
2068    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2069    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2070    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2071    <field name="Replication Count" start="32" end="35" type="uint"/>
2072    <field name="Replica Mask" start="48" end="63" type="uint"/>
2073    <group count="16" start="64" size="4">
2074      <field name="Viewport Offset" start="0" end="3" type="uint"/>
2075    </group>
2076    <group count="16" start="128" size="4">
2077      <field name="RTAI Offset" start="0" end="3" type="uint"/>
2078    </group>
2079  </instruction>
2080
2081  <instruction name="3DSTATE_PS" bias="2" length="12" engine="render">
2082    <field name="DWord Length" start="0" end="7" type="uint" default="10"/>
2083    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
2084    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2085    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2086    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2087    <field name="Kernel Start Pointer 0" start="38" end="95" type="offset"/>
2088    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
2089    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
2090    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
2091    <field name="Rounding Mode" start="110" end="111" type="uint">
2092      <value name="RTNE" value="0"/>
2093      <value name="RU" value="1"/>
2094      <value name="RD" value="2"/>
2095      <value name="RTZ" value="3"/>
2096    </field>
2097    <field name="Floating Point Mode" start="112" end="112" type="uint">
2098      <value name="IEEE-754" value="0"/>
2099      <value name="Alternate" value="1"/>
2100    </field>
2101    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
2102      <value name="High" value="1"/>
2103    </field>
2104    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
2105    <field name="Single Precision Denormal Mode" start="122" end="122" type="uint">
2106      <value name="Flushed to Zero" value="0"/>
2107      <value name="Retained" value="1"/>
2108    </field>
2109    <field name="Sampler Count" start="123" end="125" type="uint">
2110      <value name="No Samplers" value="0"/>
2111      <value name="1-4 Samplers" value="1"/>
2112      <value name="5-8 Samplers" value="2"/>
2113      <value name="9-12 Samplers" value="3"/>
2114      <value name="13-16 Samplers" value="4"/>
2115    </field>
2116    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
2117    <field name="Single Program Flow" start="127" end="127" type="bool"/>
2118    <field name="Per Thread Scratch Space" start="128" end="131" type="uint"/>
2119    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
2120    <field name="8 Pixel Dispatch Enable" start="192" end="192" type="bool"/>
2121    <field name="16 Pixel Dispatch Enable" start="193" end="193" type="bool"/>
2122    <field name="32 Pixel Dispatch Enable" start="194" end="194" type="bool"/>
2123    <field name="Position XY Offset Select" start="195" end="196" type="uint">
2124      <value name="POSOFFSET_NONE" value="0"/>
2125      <value name="POSOFFSET_CENTROID" value="2"/>
2126      <value name="POSOFFSET_SAMPLE" value="3"/>
2127    </field>
2128    <field name="Render Target Resolve Type" start="198" end="199" type="uint">
2129      <value name="RESOLVE_DISABLED" value="0"/>
2130      <value name="RESOLVE_PARTIAL" value="1"/>
2131      <value name="FAST_CLEAR_0" value="2"/>
2132      <value name="RESOLVE_FULL" value="3"/>
2133    </field>
2134    <field name="Render Target Fast Clear Enable" start="200" end="200" type="bool"/>
2135    <field name="Push Constant Enable" start="203" end="203" type="bool"/>
2136    <field name="Maximum Number of Threads Per PSD" start="215" end="223" type="uint"/>
2137    <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="224" end="230" type="uint"/>
2138    <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="232" end="238" type="uint"/>
2139    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="240" end="246" type="uint"/>
2140    <field name="Kernel Start Pointer 1" start="262" end="319" type="offset"/>
2141    <field name="Kernel Start Pointer 2" start="326" end="383" type="offset"/>
2142  </instruction>
2143
2144  <instruction name="3DSTATE_PS_BLEND" bias="2" length="2" engine="render">
2145    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2146    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="77"/>
2147    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2148    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2149    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2150    <field name="Independent Alpha Blend Enable" start="39" end="39" type="bool"/>
2151    <field name="Alpha Test Enable" start="40" end="40" type="bool"/>
2152    <field name="Destination Blend Factor" start="41" end="45" type="3D_Color_Buffer_Blend_Factor"/>
2153    <field name="Source Blend Factor" start="46" end="50" type="3D_Color_Buffer_Blend_Factor"/>
2154    <field name="Destination Alpha Blend Factor" start="51" end="55" type="3D_Color_Buffer_Blend_Factor"/>
2155    <field name="Source Alpha Blend Factor" start="56" end="60" type="3D_Color_Buffer_Blend_Factor"/>
2156    <field name="Color Buffer Blend Enable" start="61" end="61" type="bool"/>
2157    <field name="Has Writeable RT" start="62" end="62" type="bool"/>
2158    <field name="Alpha To Coverage Enable" start="63" end="63" type="bool"/>
2159  </instruction>
2160
2161  <instruction name="3DSTATE_PS_EXTRA" bias="2" length="2" engine="render">
2162    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2163    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="79"/>
2164    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2165    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2166    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2167    <field name="Input Coverage Mask State" start="32" end="33" type="uint" prefix="ICMS">
2168      <value name="NONE" value="0"/>
2169      <value name="NORMAL" value="1"/>
2170      <value name="INNER_CONSERVATIVE" value="2"/>
2171      <value name="DEPTH_COVERAGE" value="3"/>
2172    </field>
2173    <field name="Pixel Shader Has UAV" start="34" end="34" type="bool"/>
2174    <field name="Pixel Shader Pulls Bary" start="35" end="35" type="bool"/>
2175    <field name="Pixel Shader Computes Stencil" start="37" end="37" type="bool"/>
2176    <field name="Pixel Shader Is Per Sample" start="38" end="38" type="bool"/>
2177    <field name="Pixel Shader Disables Alpha To Coverage" start="39" end="39" type="bool"/>
2178    <field name="Attribute Enable" start="40" end="40" type="bool"/>
2179    <field name="Simple PS Hint" start="41" end="41" type="bool"/>
2180    <field name="Pixel Shader Requires Subpixel Sample Offsets" start="50" end="50" type="bool"/>
2181    <field name="Pixel Shader Requires Non-Perspective Bary Plane Coefficients" start="51" end="51" type="bool"/>
2182    <field name="Pixel Shader Requires Perspective Bary Plane Coefficients" start="52" end="52" type="bool"/>
2183    <field name="Pixel Shader Requires Source Depth and/or W Plane Coefficients" start="53" end="53" type="bool"/>
2184    <field name="Pixel Shader Uses Source W" start="55" end="55" type="bool"/>
2185    <field name="Pixel Shader Uses Source Depth" start="56" end="56" type="bool"/>
2186    <field name="Force Computed Depth" start="57" end="57" type="bool"/>
2187    <field name="Pixel Shader Computed Depth Mode" start="58" end="59" type="uint">
2188      <value name="PSCDEPTH_OFF" value="0"/>
2189      <value name="PSCDEPTH_ON" value="1"/>
2190      <value name="PSCDEPTH_ON_GE" value="2"/>
2191      <value name="PSCDEPTH_ON_LE" value="3"/>
2192    </field>
2193    <field name="Pixel Shader Kills Pixel" start="60" end="60" type="bool"/>
2194    <field name="oMask Present to Render Target" start="61" end="61" type="bool"/>
2195    <field name="Pixel Shader Does not write to RT" start="62" end="62" type="bool"/>
2196    <field name="Pixel Shader Valid" start="63" end="63" type="bool"/>
2197  </instruction>
2198
2199  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2" engine="render">
2200    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2201    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
2202    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2203    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2204    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2205    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2206    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2207  </instruction>
2208
2209  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2" engine="render">
2210    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2211    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
2212    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2213    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2214    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2215    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2216    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2217  </instruction>
2218
2219  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2" engine="render">
2220    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2221    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
2222    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2223    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2224    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2225    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2226    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2227  </instruction>
2228
2229  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2" engine="render">
2230    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2231    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
2232    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2233    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2234    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2235    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2236    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2237  </instruction>
2238
2239  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2" engine="render">
2240    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2241    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
2242    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2243    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2244    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2245    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
2246    <field name="Constant Buffer Offset" start="48" end="52" type="uint"/>
2247  </instruction>
2248
2249  <instruction name="3DSTATE_RASTER" bias="2" length="5" engine="render">
2250    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2251    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="80"/>
2252    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2253    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2254    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2255    <field name="Viewport Z Near Clip Test Enable" start="32" end="32" type="bool"/>
2256    <field name="Scissor Rectangle Enable" start="33" end="33" type="bool"/>
2257    <field name="Antialiasing Enable" start="34" end="34" type="bool"/>
2258    <field name="Back Face Fill Mode" start="35" end="36" type="uint" prefix="FILL_MODE">
2259      <value name="SOLID" value="0"/>
2260      <value name="WIREFRAME" value="1"/>
2261      <value name="POINT" value="2"/>
2262    </field>
2263    <field name="Front Face Fill Mode" start="37" end="38" type="uint" prefix="FILL_MODE">
2264      <value name="SOLID" value="0"/>
2265      <value name="WIREFRAME" value="1"/>
2266      <value name="POINT" value="2"/>
2267    </field>
2268    <field name="Global Depth Offset Enable Point" start="39" end="39" type="bool"/>
2269    <field name="Global Depth Offset Enable Wireframe" start="40" end="40" type="bool"/>
2270    <field name="Global Depth Offset Enable Solid" start="41" end="41" type="bool"/>
2271    <field name="DX Multisample Rasterization Mode" start="42" end="43" type="uint">
2272      <value name="MSRASTMODE_ OFF_PIXEL" value="0"/>
2273      <value name="MSRASTMODE_ OFF_PATTERN" value="1"/>
2274      <value name="MSRASTMODE_ ON_PIXEL" value="2"/>
2275      <value name="MSRASTMODE_ ON_PATTERN" value="3"/>
2276    </field>
2277    <field name="DX Multisample Rasterization Enable" start="44" end="44" type="bool"/>
2278    <field name="Smooth Point Enable" start="45" end="45" type="bool"/>
2279    <field name="Force Multisampling" start="46" end="46" type="uint"/>
2280    <field name="Cull Mode" start="48" end="49" type="uint" prefix="CULLMODE">
2281      <value name="BOTH" value="0"/>
2282      <value name="NONE" value="1"/>
2283      <value name="FRONT" value="2"/>
2284      <value name="BACK" value="3"/>
2285    </field>
2286    <field name="Forced Sample Count" start="50" end="52" type="uint" prefix="FSC">
2287      <value name="NUMRASTSAMPLES_0" value="0"/>
2288      <value name="NUMRASTSAMPLES_1" value="1"/>
2289      <value name="NUMRASTSAMPLES_2" value="2"/>
2290      <value name="NUMRASTSAMPLES_4" value="3"/>
2291      <value name="NUMRASTSAMPLES_8" value="4"/>
2292      <value name="NUMRASTSAMPLES_16" value="5"/>
2293    </field>
2294    <field name="Front Winding" start="53" end="53" type="uint">
2295      <value name="Clockwise" value="0"/>
2296      <value name="Counter Clockwise" value="1"/>
2297    </field>
2298    <field name="API Mode" start="54" end="55" type="uint">
2299      <value name="DX9/OGL" value="0"/>
2300      <value name="DX10.0" value="1"/>
2301      <value name="DX10.1+" value="2"/>
2302    </field>
2303    <field name="Conservative Rasterization Enable" start="56" end="56" type="bool"/>
2304    <field name="Viewport Z Far Clip Test Enable" start="58" end="58" type="bool"/>
2305    <field name="Global Depth Offset Constant" start="64" end="95" type="float"/>
2306    <field name="Global Depth Offset Scale" start="96" end="127" type="float"/>
2307    <field name="Global Depth Offset Clamp" start="128" end="159" type="float"/>
2308  </instruction>
2309
2310  <instruction name="3DSTATE_RS_CONSTANT_POINTER" bias="2" length="4" engine="render">
2311    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2312    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="84"/>
2313    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2314    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2315    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2316    <field name="Operation Load or Store" start="44" end="44" type="uint" prefix="RS">
2317      <value name="Store" value="0"/>
2318      <value name="Load" value="1"/>
2319    </field>
2320    <field name="Shader Select" start="60" end="62" type="uint">
2321      <value name="VS" value="0"/>
2322      <value name="PS" value="4"/>
2323    </field>
2324    <field name="Global Constant Buffer Address" start="70" end="95" type="address"/>
2325    <field name="Global Constant Buffer Address High" start="96" end="127" type="address"/>
2326  </instruction>
2327
2328  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2" engine="render">
2329    <field name="DWord Length" start="0" end="7" type="uint"/>
2330    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
2331    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2332    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2333    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2334    <group count="0" start="32" size="32">
2335      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
2336    </group>
2337  </instruction>
2338
2339  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2" engine="render">
2340    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2341    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
2342    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2343    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2344    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2345    <group count="0" start="32" size="32">
2346      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
2347      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
2348      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
2349      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
2350    </group>
2351  </instruction>
2352
2353  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_DS" bias="2" length="2" engine="render">
2354    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2355    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="45"/>
2356    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2357    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2358    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2359    <field name="Pointer to DS Sampler State" start="37" end="63" type="offset"/>
2360  </instruction>
2361
2362  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_GS" bias="2" length="2" engine="render">
2363    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2364    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="46"/>
2365    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2366    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2367    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2368    <field name="Pointer to GS Sampler State" start="37" end="63" type="offset"/>
2369  </instruction>
2370
2371  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_HS" bias="2" length="2" engine="render">
2372    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2373    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="44"/>
2374    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2375    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2376    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2377    <field name="Pointer to HS Sampler State" start="37" end="63" type="offset"/>
2378  </instruction>
2379
2380  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_PS" bias="2" length="2" engine="render">
2381    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2382    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="47"/>
2383    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2384    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2385    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2386    <field name="Pointer to PS Sampler State" start="37" end="63" type="offset"/>
2387  </instruction>
2388
2389  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_VS" bias="2" length="2" engine="render">
2390    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2391    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="43"/>
2392    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2393    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2394    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2395    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
2396  </instruction>
2397
2398  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2" engine="render">
2399    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2400    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
2401    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2402    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2403    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2404    <field name="Sample Mask" start="32" end="47" type="uint"/>
2405  </instruction>
2406
2407  <instruction name="3DSTATE_SAMPLE_PATTERN" bias="2" length="9" engine="render">
2408    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
2409    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
2410    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2411    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2412    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2413    <field name="16x Sample0 Y Offset" start="32" end="35" type="u0.4"/>
2414    <field name="16x Sample0 X Offset" start="36" end="39" type="u0.4"/>
2415    <field name="16x Sample1 Y Offset" start="40" end="43" type="u0.4"/>
2416    <field name="16x Sample1 X Offset" start="44" end="47" type="u0.4"/>
2417    <field name="16x Sample2 Y Offset" start="48" end="51" type="u0.4"/>
2418    <field name="16x Sample2 X Offset" start="52" end="55" type="u0.4"/>
2419    <field name="16x Sample3 Y Offset" start="56" end="59" type="u0.4"/>
2420    <field name="16x Sample3 X Offset" start="60" end="63" type="u0.4"/>
2421    <field name="16x Sample4 Y Offset" start="64" end="67" type="u0.4"/>
2422    <field name="16x Sample4 X Offset" start="68" end="71" type="u0.4"/>
2423    <field name="16x Sample5 Y Offset" start="72" end="75" type="u0.4"/>
2424    <field name="16x Sample5 X Offset" start="76" end="79" type="u0.4"/>
2425    <field name="16x Sample6 Y Offset" start="80" end="83" type="u0.4"/>
2426    <field name="16x Sample6 X Offset" start="84" end="87" type="u0.4"/>
2427    <field name="16x Sample7 Y Offset" start="88" end="91" type="u0.4"/>
2428    <field name="16x Sample7 X Offset" start="92" end="95" type="u0.4"/>
2429    <field name="16x Sample8 Y Offset" start="96" end="99" type="u0.4"/>
2430    <field name="16x Sample8 X Offset" start="100" end="103" type="u0.4"/>
2431    <field name="16x Sample9 Y Offset" start="104" end="107" type="u0.4"/>
2432    <field name="16x Sample9 X Offset" start="108" end="111" type="u0.4"/>
2433    <field name="16x Sample10 Y Offset" start="112" end="115" type="u0.4"/>
2434    <field name="16x Sample10 X Offset" start="116" end="119" type="u0.4"/>
2435    <field name="16x Sample11 Y Offset" start="120" end="123" type="u0.4"/>
2436    <field name="16x Sample11 X Offset" start="124" end="127" type="u0.4"/>
2437    <field name="16x Sample12 Y Offset" start="128" end="131" type="u0.4"/>
2438    <field name="16x Sample12 X Offset" start="132" end="135" type="u0.4"/>
2439    <field name="16x Sample13 Y Offset" start="136" end="139" type="u0.4"/>
2440    <field name="16x Sample13 X Offset" start="140" end="143" type="u0.4"/>
2441    <field name="16x Sample14 Y Offset" start="144" end="147" type="u0.4"/>
2442    <field name="16x Sample14 X Offset" start="148" end="151" type="u0.4"/>
2443    <field name="16x Sample15 Y Offset" start="152" end="155" type="u0.4"/>
2444    <field name="16x Sample15 X Offset" start="156" end="159" type="u0.4"/>
2445    <field name="8x Sample4 Y Offset" start="160" end="163" type="u0.4"/>
2446    <field name="8x Sample4 X Offset" start="164" end="167" type="u0.4"/>
2447    <field name="8x Sample5 Y Offset" start="168" end="171" type="u0.4"/>
2448    <field name="8x Sample5 X Offset" start="172" end="175" type="u0.4"/>
2449    <field name="8x Sample6 Y Offset" start="176" end="179" type="u0.4"/>
2450    <field name="8x Sample6 X Offset" start="180" end="183" type="u0.4"/>
2451    <field name="8x Sample7 Y Offset" start="184" end="187" type="u0.4"/>
2452    <field name="8x Sample7 X Offset" start="188" end="191" type="u0.4"/>
2453    <field name="8x Sample0 Y Offset" start="192" end="195" type="u0.4"/>
2454    <field name="8x Sample0 X Offset" start="196" end="199" type="u0.4"/>
2455    <field name="8x Sample1 Y Offset" start="200" end="203" type="u0.4"/>
2456    <field name="8x Sample1 X Offset" start="204" end="207" type="u0.4"/>
2457    <field name="8x Sample2 Y Offset" start="208" end="211" type="u0.4"/>
2458    <field name="8x Sample2 X Offset" start="212" end="215" type="u0.4"/>
2459    <field name="8x Sample3 Y Offset" start="216" end="219" type="u0.4"/>
2460    <field name="8x Sample3 X Offset" start="220" end="223" type="u0.4"/>
2461    <field name="4x Sample0 Y Offset" start="224" end="227" type="u0.4"/>
2462    <field name="4x Sample0 X Offset" start="228" end="231" type="u0.4"/>
2463    <field name="4x Sample1 Y Offset" start="232" end="235" type="u0.4"/>
2464    <field name="4x Sample1 X Offset" start="236" end="239" type="u0.4"/>
2465    <field name="4x Sample2 Y Offset" start="240" end="243" type="u0.4"/>
2466    <field name="4x Sample2 X Offset" start="244" end="247" type="u0.4"/>
2467    <field name="4x Sample3 Y Offset" start="248" end="251" type="u0.4"/>
2468    <field name="4x Sample3 X Offset" start="252" end="255" type="u0.4"/>
2469    <field name="2x Sample0 Y Offset" start="256" end="259" type="u0.4"/>
2470    <field name="2x Sample0 X Offset" start="260" end="263" type="u0.4"/>
2471    <field name="2x Sample1 Y Offset" start="264" end="267" type="u0.4"/>
2472    <field name="2x Sample1 X Offset" start="268" end="271" type="u0.4"/>
2473    <field name="1x Sample0 Y Offset" start="272" end="275" type="u0.4"/>
2474    <field name="1x Sample0 X Offset" start="276" end="279" type="u0.4"/>
2475  </instruction>
2476
2477  <instruction name="3DSTATE_SBE" bias="2" length="6" engine="render">
2478    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
2479    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="31"/>
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="Primitive ID Override Attribute Select" start="32" end="36" type="uint"/>
2484    <field name="Vertex URB Entry Read Offset" start="37" end="42" type="uint"/>
2485    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
2486    <field name="Primitive ID Override Component X" start="48" end="48" type="bool"/>
2487    <field name="Primitive ID Override Component Y" start="49" end="49" type="bool"/>
2488    <field name="Primitive ID Override Component Z" start="50" end="50" type="bool"/>
2489    <field name="Primitive ID Override Component W" start="51" end="51" type="bool"/>
2490    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
2491      <value name="UPPERLEFT" value="0"/>
2492      <value name="LOWERLEFT" value="1"/>
2493    </field>
2494    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
2495    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
2496    <field name="Force Vertex URB Entry Read Offset" start="60" end="60" type="bool"/>
2497    <field name="Force Vertex URB Entry Read Length" start="61" end="61" type="bool"/>
2498    <field name="Point Sprite Texture Coordinate Enable" start="64" end="95" type="uint"/>
2499    <field name="Constant Interpolation Enable" start="96" end="127" type="uint"/>
2500    <group count="32" start="128" size="2">
2501      <field name="Attribute Active Component Format" start="0" end="1" type="uint" prefix="ACTIVE_COMPONENT">
2502        <value name="DISABLED" value="0"/>
2503        <value name="XY" value="1"/>
2504        <value name="XYZ" value="2"/>
2505        <value name="XYZW" value="3"/>
2506      </field>
2507    </group>
2508  </instruction>
2509
2510  <instruction name="3DSTATE_SBE_SWIZ" bias="2" length="11" engine="render">
2511    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
2512    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="81"/>
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    <group count="16" start="32" size="16">
2517      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
2518    </group>
2519    <group count="16" start="288" size="4">
2520      <field name="Attribute Wrap Shortest Enables" start="0" end="3" type="uint"/>
2521    </group>
2522  </instruction>
2523
2524  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2" engine="render">
2525    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2526    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
2527    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2528    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2529    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2530    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
2531  </instruction>
2532
2533  <instruction name="3DSTATE_SF" bias="2" length="4" engine="render">
2534    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2535    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
2536    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2537    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2538    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2539    <field name="Viewport Transform Enable" start="33" end="33" type="bool"/>
2540    <field name="Statistics Enable" start="42" end="42" type="bool"/>
2541    <field name="Legacy Global Depth Bias Enable" start="43" end="43" type="bool"/>
2542    <field name="Line Width" start="44" end="61" type="u11.7"/>
2543    <field name="Line End Cap Antialiasing Region Width" start="80" end="81" type="uint">
2544      <value name="0.5 pixels" value="0"/>
2545      <value name="1.0 pixels" value="1"/>
2546      <value name="2.0 pixels" value="2"/>
2547      <value name="4.0 pixels" value="3"/>
2548    </field>
2549    <field name="Deref Block Size" start="93" end="94" type="uint">
2550      <value name="Block Deref Size 32" value="0"/>
2551      <value name="Per Poly Deref Mode" value="1"/>
2552      <value name="Block Deref Size 8" value="2"/>
2553    </field>
2554    <field name="Point Width" start="96" end="106" type="u8.3"/>
2555    <field name="Point Width Source" start="107" end="107" type="uint">
2556      <value name="Vertex" value="0"/>
2557      <value name="State" value="1"/>
2558    </field>
2559    <field name="Vertex Sub Pixel Precision Select" start="108" end="108" type="uint">
2560      <value name="8 Bit" value="0"/>
2561      <value name="4 Bit" value="1"/>
2562    </field>
2563    <field name="Smooth Point Enable" start="109" end="109" type="bool"/>
2564    <field name="AA Line Distance Mode" start="110" end="110" type="uint">
2565      <value name="AALINEDISTANCE_TRUE" value="1"/>
2566    </field>
2567    <field name="Triangle Fan Provoking Vertex Select" start="121" end="122" type="uint"/>
2568    <field name="Line Strip/List Provoking Vertex Select" start="123" end="124" type="uint"/>
2569    <field name="Triangle Strip/List Provoking Vertex Select" start="125" end="126" type="uint"/>
2570    <field name="Last Pixel Enable" start="127" end="127" type="bool"/>
2571  </instruction>
2572
2573  <instruction name="3DSTATE_SLICE_TABLE_STATE_POINTERS" bias="2" length="2">
2574    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2575    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
2576    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2577    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2578    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2579    <field name="Slice Hash State Pointer Valid" start="32" end="32" type="bool"/>
2580    <field name="Slice Hash Table State Pointer" start="38" end="63" type="offset"/>
2581  </instruction>
2582
2583  <instruction name="3DSTATE_SO_BUFFER" bias="2" length="8" engine="render">
2584    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2585    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
2586    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2587    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2588    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2589    <field name="Stream Output Buffer Offset Address Enable" start="52" end="52" type="bool"/>
2590    <field name="Stream Offset Write Enable" start="53" end="53" type="bool"/>
2591    <field name="MOCS" start="54" end="60" type="uint"/>
2592    <field name="SO Buffer Index" start="61" end="62" type="uint"/>
2593    <field name="SO Buffer Enable" start="63" end="63" type="bool"/>
2594    <field name="Surface Base Address" start="66" end="111" type="address"/>
2595    <field name="Surface Size" start="128" end="157" type="uint"/>
2596    <field name="Stream Output Buffer Offset Address" start="162" end="207" type="address"/>
2597    <field name="Stream Offset" start="224" end="255" type="uint"/>
2598  </instruction>
2599
2600  <instruction name="3DSTATE_SO_BUFFER_INDEX_0" bias="2" length="8" engine="render">
2601    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2602    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="96"/>
2603    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2604    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2605    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2606    <field name="SO Buffer Index State Body" start="32" end="255" type="3DSTATE_SO_BUFFER_INDEX_BODY"/>
2607  </instruction>
2608
2609  <instruction name="3DSTATE_SO_BUFFER_INDEX_1" bias="2" length="8" engine="render">
2610    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2611    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="97"/>
2612    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2613    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2614    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2615    <field name="SO Buffer Index State Body" start="32" end="255" type="3DSTATE_SO_BUFFER_INDEX_BODY"/>
2616  </instruction>
2617
2618  <instruction name="3DSTATE_SO_BUFFER_INDEX_2" bias="2" length="8" engine="render">
2619    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2620    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="98"/>
2621    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2622    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2623    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2624    <field name="SO Buffer Index State Body" start="32" end="255" type="3DSTATE_SO_BUFFER_INDEX_BODY"/>
2625  </instruction>
2626
2627  <instruction name="3DSTATE_SO_BUFFER_INDEX_3" bias="2" length="8" engine="render">
2628    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2629    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="99"/>
2630    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2631    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2632    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2633    <field name="SO Buffer Index State Body" start="32" end="255" type="3DSTATE_SO_BUFFER_INDEX_BODY"/>
2634  </instruction>
2635
2636  <instruction name="3DSTATE_SO_DECL_LIST" bias="2" engine="render">
2637    <field name="DWord Length" start="0" end="8" type="uint"/>
2638    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
2639    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2640    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2641    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2642    <field name="Stream to Buffer Selects [0]" start="32" end="35" type="uint"/>
2643    <field name="Stream to Buffer Selects [1]" start="36" end="39" type="uint"/>
2644    <field name="Stream to Buffer Selects [2]" start="40" end="43" type="uint"/>
2645    <field name="Stream to Buffer Selects [3]" start="44" end="47" type="uint"/>
2646    <field name="Num Entries [0]" start="64" end="71" type="uint"/>
2647    <field name="Num Entries [1]" start="72" end="79" type="uint"/>
2648    <field name="Num Entries [2]" start="80" end="87" type="uint"/>
2649    <field name="Num Entries [3]" start="88" end="95" type="uint"/>
2650    <group count="0" start="96" size="64">
2651      <field name="Entry" start="0" end="63" type="SO_DECL_ENTRY"/>
2652    </group>
2653  </instruction>
2654
2655  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="8" engine="render">
2656    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
2657    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
2658    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2659    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2660    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2661    <field name="Surface Pitch" start="32" end="48" type="uint"/>
2662    <field name="Corner Texel Mode" start="55" end="55" type="bool"/>
2663    <field name="Control Surface Enable" start="56" end="56" type="bool"/>
2664    <field name="Stencil Compression Enable" start="57" end="57" type="bool"/>
2665    <field name="Null Page Coherency Enable" start="59" end="59" type="bool"/>
2666    <field name="Stencil Write Enable" start="60" end="60" type="bool"/>
2667    <field name="Surface Type" start="61" end="63" type="uint">
2668      <value name="SURFTYPE_2D" value="1"/>
2669      <value name="SURFTYPE_CUBE" value="3"/>
2670      <value name="SURFTYPE_NULL" value="7"/>
2671    </field>
2672    <field name="Surface Base Address" start="64" end="127" type="address"/>
2673    <field name="Width" start="129" end="142" type="uint"/>
2674    <field name="Height" start="145" end="158" type="uint"/>
2675    <field name="MOCS" start="160" end="166" type="uint"/>
2676    <field name="Minimum Array Element" start="168" end="178" type="uint"/>
2677    <field name="Depth" start="180" end="190" type="uint"/>
2678    <field name="Mip Tail Start LOD" start="218" end="221" type="uint"/>
2679    <field name="Tiled Mode" start="222" end="223" type="uint">
2680      <value name="NONE" value="0"/>
2681      <value name="TILEYF" value="1"/>
2682      <value name="TILEYS" value="2"/>
2683    </field>
2684    <field name="Surface QPitch" start="224" end="238" type="uint"/>
2685    <field name="Surf LOD" start="240" end="243" type="uint"/>
2686    <field name="Render Target View Extent" start="245" end="255" type="uint"/>
2687  </instruction>
2688
2689  <instruction name="3DSTATE_STREAMOUT" bias="2" length="5" engine="render">
2690    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2691    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="30"/>
2692    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2693    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2694    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2695    <field name="Force Rendering" start="55" end="56" type="uint">
2696      <value name="Resreved" value="1"/>
2697      <value name="Force_Off" value="2"/>
2698      <value name="Force_on" value="3"/>
2699    </field>
2700    <field name="SO Statistics Enable" start="57" end="57" type="bool"/>
2701    <field name="Reorder Mode" start="58" end="58" type="uint">
2702      <value name="LEADING" value="0"/>
2703      <value name="TRAILING" value="1"/>
2704    </field>
2705    <field name="Render Stream Select" start="59" end="60" type="uint"/>
2706    <field name="Rendering Disable" start="62" end="62" type="bool"/>
2707    <field name="SO Function Enable" start="63" end="63" type="bool"/>
2708    <field name="Stream 0 Vertex Read Length" start="64" end="68" type="uint"/>
2709    <field name="Stream 0 Vertex Read Offset" start="69" end="69" type="uint"/>
2710    <field name="Stream 1 Vertex Read Length" start="72" end="76" type="uint"/>
2711    <field name="Stream 1 Vertex Read Offset" start="77" end="77" type="uint"/>
2712    <field name="Stream 2 Vertex Read Length" start="80" end="84" type="uint"/>
2713    <field name="Stream 2 Vertex Read Offset" start="85" end="85" type="uint"/>
2714    <field name="Stream 3 Vertex Read Length" start="88" end="92" type="uint"/>
2715    <field name="Stream 3 Vertex Read Offset" start="93" end="93" type="uint"/>
2716    <field name="Buffer 0 Surface Pitch" start="96" end="107" type="uint"/>
2717    <field name="Buffer 1 Surface Pitch" start="112" end="123" type="uint"/>
2718    <field name="Buffer 2 Surface Pitch" start="128" end="139" type="uint"/>
2719    <field name="Buffer 3 Surface Pitch" start="144" end="155" type="uint"/>
2720  </instruction>
2721
2722  <instruction name="3DSTATE_TE" bias="2" length="4" engine="render">
2723    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
2724    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="28"/>
2725    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2726    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2727    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2728    <field name="TE Enable" start="32" end="32" type="bool"/>
2729    <field name="TE Mode" start="33" end="34" type="uint">
2730      <value name="HW_TESS" value="0"/>
2731    </field>
2732    <field name="TE Domain" start="36" end="37" type="uint">
2733      <value name="QUAD" value="0"/>
2734      <value name="TRI" value="1"/>
2735      <value name="ISOLINE" value="2"/>
2736    </field>
2737    <field name="Output Topology" start="40" end="41" type="uint" prefix="OUTPUT">
2738      <value name="POINT" value="0"/>
2739      <value name="LINE" value="1"/>
2740      <value name="TRI_CW" value="2"/>
2741      <value name="TRI_CCW" value="3"/>
2742    </field>
2743    <field name="Partitioning" start="44" end="45" type="uint">
2744      <value name="INTEGER" value="0"/>
2745      <value name="ODD_FRACTIONAL" value="1"/>
2746      <value name="EVEN_FRACTIONAL" value="2"/>
2747    </field>
2748    <field name="Maximum Tessellation Factor Odd" start="64" end="95" type="float"/>
2749    <field name="Maximum Tessellation Factor Not Odd" start="96" end="127" type="float"/>
2750  </instruction>
2751
2752  <instruction name="3DSTATE_URB_CLEAR" bias="2" length="2" engine="render">
2753    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2754    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
2755    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
2756    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2757    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2758    <field name="URB Address" start="32" end="46" type="offset"/>
2759    <field name="URB Clear Length" start="48" end="61" type="uint"/>
2760  </instruction>
2761
2762  <instruction name="3DSTATE_URB_DS" bias="2" length="2" engine="render">
2763    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2764    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="50"/>
2765    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2766    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2767    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2768    <field name="DS Number of URB Entries" start="32" end="47" type="uint"/>
2769    <field name="DS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2770    <field name="DS URB Starting Address" start="57" end="63" type="uint"/>
2771  </instruction>
2772
2773  <instruction name="3DSTATE_URB_GS" bias="2" length="2" engine="render">
2774    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2775    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="51"/>
2776    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2777    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2778    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2779    <field name="GS Number of URB Entries" start="32" end="47" type="uint"/>
2780    <field name="GS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2781    <field name="GS URB Starting Address" start="57" end="63" type="uint"/>
2782  </instruction>
2783
2784  <instruction name="3DSTATE_URB_HS" bias="2" length="2" engine="render">
2785    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2786    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="49"/>
2787    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2788    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2789    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2790    <field name="HS Number of URB Entries" start="32" end="47" type="uint"/>
2791    <field name="HS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2792    <field name="HS URB Starting Address" start="57" end="63" type="uint"/>
2793  </instruction>
2794
2795  <instruction name="3DSTATE_URB_VS" bias="2" length="2" engine="render">
2796    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2797    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="48"/>
2798    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2799    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2800    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2801    <field name="VS Number of URB Entries" start="32" end="47" type="uint"/>
2802    <field name="VS URB Entry Allocation Size" start="48" end="56" type="uint"/>
2803    <field name="VS URB Starting Address" start="57" end="63" type="uint"/>
2804  </instruction>
2805
2806  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2" engine="render">
2807    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2808    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
2809    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2810    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2811    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2812    <group count="0" start="32" size="128">
2813      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
2814    </group>
2815  </instruction>
2816
2817  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2" engine="render">
2818    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2819    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
2820    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2821    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2822    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2823    <group count="0" start="32" size="64">
2824      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
2825    </group>
2826  </instruction>
2827
2828  <instruction name="3DSTATE_VF" bias="2" length="2" engine="render">
2829    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2830    <field name="Indexed Draw Cut Index Enable" start="8" end="8" type="bool"/>
2831    <field name="Component Packing Enable" start="9" end="9" type="bool"/>
2832    <field name="Sequential Draw Cut Index Enable" start="10" end="10" type="bool"/>
2833    <field name="VertexID Offset Enable" start="11" end="11" type="bool"/>
2834    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
2835    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2836    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2837    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2838    <field name="Cut Index" start="32" end="63" type="uint"/>
2839  </instruction>
2840
2841  <instruction name="3DSTATE_VF_COMPONENT_PACKING" bias="2" length="5" engine="render">
2842    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
2843    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="85"/>
2844    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2845    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2846    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2847    <field name="Vertex Element 00 Enables" start="32" end="35" type="uint"/>
2848    <field name="Vertex Element 01 Enables" start="36" end="39" type="uint"/>
2849    <field name="Vertex Element 02 Enables" start="40" end="43" type="uint"/>
2850    <field name="Vertex Element 03 Enables" start="44" end="47" type="uint"/>
2851    <field name="Vertex Element 04 Enables" start="48" end="51" type="uint"/>
2852    <field name="Vertex Element 05 Enables" start="52" end="55" type="uint"/>
2853    <field name="Vertex Element 06 Enables" start="56" end="59" type="uint"/>
2854    <field name="Vertex Element 07 Enables" start="60" end="63" type="uint"/>
2855    <field name="Vertex Element 08 Enables" start="64" end="67" type="uint"/>
2856    <field name="Vertex Element 09 Enables" start="68" end="71" type="uint"/>
2857    <field name="Vertex Element 10 Enables" start="72" end="75" type="uint"/>
2858    <field name="Vertex Element 11 Enables" start="76" end="79" type="uint"/>
2859    <field name="Vertex Element 12 Enables" start="80" end="83" type="uint"/>
2860    <field name="Vertex Element 13 Enables" start="84" end="87" type="uint"/>
2861    <field name="Vertex Element 14 Enables" start="88" end="91" type="uint"/>
2862    <field name="Vertex Element 15 Enables" start="92" end="95" type="uint"/>
2863    <field name="Vertex Element 16 Enables" start="96" end="99" type="uint"/>
2864    <field name="Vertex Element 17 Enables" start="100" end="103" type="uint"/>
2865    <field name="Vertex Element 18 Enables" start="104" end="107" type="uint"/>
2866    <field name="Vertex Element 19 Enables" start="108" end="111" type="uint"/>
2867    <field name="Vertex Element 20 Enables" start="112" end="115" type="uint"/>
2868    <field name="Vertex Element 21 Enables" start="116" end="119" type="uint"/>
2869    <field name="Vertex Element 22 Enables" start="120" end="123" type="uint"/>
2870    <field name="Vertex Element 23 Enables" start="124" end="127" type="uint"/>
2871    <field name="Vertex Element 24 Enables" start="128" end="131" type="uint"/>
2872    <field name="Vertex Element 25 Enables" start="132" end="135" type="uint"/>
2873    <field name="Vertex Element 26 Enables" start="136" end="139" type="uint"/>
2874    <field name="Vertex Element 27 Enables" start="140" end="143" type="uint"/>
2875    <field name="Vertex Element 28 Enables" start="144" end="147" type="uint"/>
2876    <field name="Vertex Element 29 Enables" start="148" end="151" type="uint"/>
2877    <field name="Vertex Element 30 Enables" start="152" end="155" type="uint"/>
2878    <field name="Vertex Element 31 Enables" start="156" end="159" type="uint"/>
2879  </instruction>
2880
2881  <instruction name="3DSTATE_VF_INSTANCING" bias="2" length="3" engine="render">
2882    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2883    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="73"/>
2884    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2885    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2886    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2887    <field name="Vertex Element Index" start="32" end="37" type="uint"/>
2888    <field name="Instancing Enable" start="40" end="40" type="bool"/>
2889    <field name="Instance Data Step Rate" start="64" end="95" type="uint"/>
2890  </instruction>
2891
2892  <instruction name="3DSTATE_VF_SGVS" bias="2" length="2" engine="render">
2893    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2894    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="74"/>
2895    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2896    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2897    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2898    <field name="VertexID Element Offset" start="32" end="37" type="uint"/>
2899    <field name="VertexID Component Number" start="45" end="46" type="uint">
2900      <value name="COMP_0" value="0"/>
2901      <value name="COMP_1" value="1"/>
2902      <value name="COMP_2" value="2"/>
2903      <value name="COMP_3" value="3"/>
2904    </field>
2905    <field name="VertexID Enable" start="47" end="47" type="bool"/>
2906    <field name="InstanceID Element Offset" start="48" end="53" type="uint"/>
2907    <field name="InstanceID Component Number" start="61" end="62" type="uint">
2908      <value name="COMP_0" value="0"/>
2909      <value name="COMP_1" value="1"/>
2910      <value name="COMP_2" value="2"/>
2911      <value name="COMP_3" value="3"/>
2912    </field>
2913    <field name="InstanceID Enable" start="63" end="63" type="bool"/>
2914  </instruction>
2915
2916  <instruction name="3DSTATE_VF_SGVS_2" bias="2" length="3" engine="render">
2917    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
2918    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="86"/>
2919    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2920    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2921    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2922    <field name="XP0 Element Offset" start="32" end="37" type="uint"/>
2923    <field name="XP0 Source Select" start="44" end="44" type="uint">
2924      <value name="VERTEX_LOCATION" value="1"/>
2925      <value name="XP0_PARAMETER" value="0"/>
2926    </field>
2927    <field name="XP0 Component Number" start="45" end="46" type="uint">
2928      <value name="COMP_0" value="0"/>
2929      <value name="COMP_1" value="1"/>
2930      <value name="COMP_2" value="2"/>
2931      <value name="COMP_3" value="3"/>
2932    </field>
2933    <field name="XP0 Enable" start="47" end="47" type="uint"/>
2934    <field name="XP1 Element Offset" start="48" end="53" type="uint"/>
2935    <field name="XP1 Source Select" start="60" end="60" type="uint">
2936      <value name="Starting Instance Location" value="1"/>
2937      <value name="XP1_PARAMETER" value="0"/>
2938    </field>
2939    <field name="XP1 Component Number" start="61" end="62" type="uint">
2940      <value name="COMP_0" value="0"/>
2941      <value name="COMP_1" value="1"/>
2942      <value name="COMP_2" value="2"/>
2943      <value name="COMP_3" value="3"/>
2944    </field>
2945    <field name="XP1 Enable" start="63" end="63" type="uint"/>
2946    <field name="XP2 Element Offset" start="64" end="69" type="uint"/>
2947    <field name="XP2 Component Number" start="77" end="78" type="uint">
2948      <value name="COMP_0" value="0"/>
2949      <value name="COMP_1" value="1"/>
2950      <value name="COMP_2" value="2"/>
2951      <value name="COMP_3" value="3"/>
2952    </field>
2953    <field name="XP2 Enable" start="79" end="79" type="uint"/>
2954  </instruction>
2955
2956  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1" engine="render">
2957    <field name="Statistics Enable" start="0" end="0" type="bool"/>
2958    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
2959    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2960    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
2961    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2962  </instruction>
2963
2964  <instruction name="3DSTATE_VF_TOPOLOGY" bias="2" length="2" engine="render">
2965    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2966    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="75"/>
2967    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2968    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2969    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2970    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
2971  </instruction>
2972
2973  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_CC" bias="2" length="2" engine="render">
2974    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2975    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="35"/>
2976    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2977    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2978    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2979    <field name="CC Viewport Pointer" start="37" end="63" type="offset"/>
2980  </instruction>
2981
2982  <instruction name="3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP" bias="2" length="2" engine="render">
2983    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
2984    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="33"/>
2985    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2986    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2987    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2988    <field name="SF Clip Viewport Pointer" start="38" end="63" type="offset"/>
2989  </instruction>
2990
2991  <instruction name="3DSTATE_VS" bias="2" length="9" engine="render">
2992    <field name="DWord Length" start="0" end="7" type="uint" default="7"/>
2993    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
2994    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
2995    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
2996    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
2997    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
2998    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
2999    <field name="Accesses UAV" start="108" end="108" type="bool"/>
3000    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
3001    <field name="Floating Point Mode" start="112" end="112" type="uint">
3002      <value name="IEEE-754" value="0"/>
3003      <value name="Alternate" value="1"/>
3004    </field>
3005    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
3006      <value name="High" value="1"/>
3007    </field>
3008    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
3009    <field name="Sampler Count" start="123" end="125" type="uint">
3010      <value name="No Samplers" value="0"/>
3011      <value name="1-4 Samplers" value="1"/>
3012      <value name="5-8 Samplers" value="2"/>
3013      <value name="9-12 Samplers" value="3"/>
3014      <value name="13-16 Samplers" value="4"/>
3015    </field>
3016    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
3017    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
3018    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
3019    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
3020    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
3021    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
3022    <field name="Enable" start="224" end="224" type="bool"/>
3023    <field name="Vertex Cache Disable" start="225" end="225" type="bool"/>
3024    <field name="SIMD8 Dispatch Enable" start="226" end="226" type="bool"/>
3025    <field name="SIMD8 Single Instance Dispatch Enable" start="233" end="233" type="bool"/>
3026    <field name="Statistics Enable" start="234" end="234" type="bool"/>
3027    <field name="Maximum Number of Threads" start="246" end="255" type="uint"/>
3028    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
3029    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
3030    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
3031    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
3032  </instruction>
3033
3034  <instruction name="3DSTATE_WM" bias="2" length="2" engine="render">
3035    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
3036    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
3037    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
3038    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
3039    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3040    <field name="Force Kill Pixel Enable" start="32" end="33" type="uint">
3041      <value name="ForceOff" value="1"/>
3042      <value name="ForceON" value="2"/>
3043    </field>
3044    <field name="Point Rasterization Rule" start="34" end="34" type="uint">
3045      <value name="RASTRULE_UPPER_LEFT" value="0"/>
3046      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
3047    </field>
3048    <field name="Line Stipple Enable" start="35" end="35" type="bool"/>
3049    <field name="Polygon Stipple Enable" start="36" end="36" type="bool"/>
3050    <field name="Line Antialiasing Region Width" start="38" end="39" type="uint">
3051      <value name="0.5 pixels" value="0"/>
3052      <value name="1.0 pixels" value="1"/>
3053      <value name="2.0 pixels" value="2"/>
3054      <value name="4.0 pixels" value="3"/>
3055    </field>
3056    <field name="Line End Cap Antialiasing Region Width" start="40" end="41" type="uint">
3057      <value name="0.5 pixels" value="0"/>
3058      <value name="1.0 pixels" value="1"/>
3059      <value name="2.0 pixels" value="2"/>
3060      <value name="4.0 pixels" value="3"/>
3061    </field>
3062    <field name="Barycentric Interpolation Mode" start="43" end="48" type="uint">
3063      <value name="BIM_PERSPECTIVE_PIXEL" value="1"/>
3064      <value name="BIM_PERSPECTIVE_CENTROID" value="2"/>
3065      <value name="BIM_PERSPECTIVE_SAMPLE" value="4"/>
3066      <value name="BIM_LINEAR_PIXEL" value="8"/>
3067      <value name="BIM_LINEAR_CENTROID" value="16"/>
3068      <value name="BIM_LINEAR_SAMPLE" value="32"/>
3069    </field>
3070    <field name="Position ZW Interpolation Mode" start="49" end="50" type="uint">
3071      <value name="INTERP_PIXEL" value="0"/>
3072      <value name="INTERP_CENTROID" value="2"/>
3073      <value name="INTERP_SAMPLE" value="3"/>
3074    </field>
3075    <field name="Force Thread Dispatch Enable" start="51" end="52" type="uint">
3076      <value name="ForceOff" value="1"/>
3077      <value name="ForceON" value="2"/>
3078    </field>
3079    <field name="Early Depth/Stencil Control" start="53" end="54" type="uint">
3080      <value name="EDSC_NORMAL" value="0"/>
3081      <value name="EDSC_PSEXEC" value="1"/>
3082      <value name="EDSC_PREPS" value="2"/>
3083    </field>
3084    <field name="Legacy Diamond Line Rasterization" start="58" end="58" type="bool"/>
3085    <field name="Legacy Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
3086    <field name="Legacy Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
3087    <field name="Legacy Depth Buffer Clear Enable" start="62" end="62" type="bool"/>
3088    <field name="Statistics Enable" start="63" end="63" type="bool"/>
3089  </instruction>
3090
3091  <instruction name="3DSTATE_WM_CHROMAKEY" bias="2" length="2" engine="render">
3092    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
3093    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="76"/>
3094    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
3095    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
3096    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3097    <field name="ChromaKey Kill Enable" start="63" end="63" type="bool"/>
3098  </instruction>
3099
3100  <instruction name="3DSTATE_WM_DEPTH_STENCIL" bias="2" length="4" engine="render">
3101    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
3102    <field name="Stencil Reference Value Modify Disable" start="8" end="8" type="bool"/>
3103    <field name="Stencil Test Mask Modify Disable" start="9" end="9" type="bool"/>
3104    <field name="Stencil Write Mask Modify Disable" start="10" end="10" type="bool"/>
3105    <field name="Stencil State Modify Disable" start="11" end="11" type="bool"/>
3106    <field name="Depth State Modify Disable" start="12" end="12" type="bool"/>
3107    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="78"/>
3108    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
3109    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
3110    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3111    <field name="Depth Buffer Write Enable" start="32" end="32" type="bool"/>
3112    <field name="Depth Test Enable" start="33" end="33" type="bool"/>
3113    <field name="Stencil Buffer Write Enable" start="34" end="34" type="bool"/>
3114    <field name="Stencil Test Enable" start="35" end="35" type="bool"/>
3115    <field name="Double Sided Stencil Enable" start="36" end="36" type="bool"/>
3116    <field name="Depth Test Function" start="37" end="39" type="3D_Compare_Function"/>
3117    <field name="Stencil Test Function" start="40" end="42" type="3D_Compare_Function"/>
3118    <field name="Backface Stencil Pass Depth Pass Op" start="43" end="45" type="3D_Stencil_Operation"/>
3119    <field name="Backface Stencil Pass Depth Fail Op" start="46" end="48" type="3D_Stencil_Operation"/>
3120    <field name="Backface Stencil Fail Op" start="49" end="51" type="3D_Stencil_Operation"/>
3121    <field name="Backface Stencil Test Function" start="52" end="54" type="3D_Compare_Function"/>
3122    <field name="Stencil Pass Depth Pass Op" start="55" end="57" type="3D_Stencil_Operation"/>
3123    <field name="Stencil Pass Depth Fail Op" start="58" end="60" type="3D_Stencil_Operation"/>
3124    <field name="Stencil Fail Op" start="61" end="63" type="3D_Stencil_Operation"/>
3125    <field name="Backface Stencil Write Mask" start="64" end="71" type="uint"/>
3126    <field name="Backface Stencil Test Mask" start="72" end="79" type="uint"/>
3127    <field name="Stencil Write Mask" start="80" end="87" type="uint"/>
3128    <field name="Stencil Test Mask" start="88" end="95" type="uint"/>
3129    <field name="Backface Stencil Reference Value" start="96" end="103" type="uint"/>
3130    <field name="Stencil Reference Value" start="104" end="111" type="uint"/>
3131  </instruction>
3132
3133  <instruction name="3DSTATE_WM_HZ_OP" bias="2" length="5" engine="render">
3134    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
3135    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="82"/>
3136    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
3137    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
3138    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3139    <field name="Number of Multisamples" start="45" end="47" type="uint"/>
3140    <field name="Stencil Clear Value" start="48" end="55" type="uint"/>
3141    <field name="Stencil Buffer Resolve Enable" start="56" end="56" type="bool"/>
3142    <field name="Full Surface Depth and Stencil Clear" start="57" end="57" type="bool"/>
3143    <field name="Pixel Position Offset Enable" start="58" end="58" type="bool"/>
3144    <field name="Hierarchical Depth Buffer Resolve Enable" start="59" end="59" type="bool"/>
3145    <field name="Depth Buffer Resolve Enable" start="60" end="60" type="bool"/>
3146    <field name="Scissor Rectangle Enable" start="61" end="61" type="bool"/>
3147    <field name="Depth Buffer Clear Enable" start="62" end="62" type="bool"/>
3148    <field name="Stencil Buffer Clear Enable" start="63" end="63" type="bool"/>
3149    <field name="Clear Rectangle X Min" start="64" end="79" type="uint"/>
3150    <field name="Clear Rectangle Y Min" start="80" end="95" type="uint"/>
3151    <field name="Clear Rectangle X Max" start="96" end="111" type="uint"/>
3152    <field name="Clear Rectangle Y Max" start="112" end="127" type="uint"/>
3153    <field name="Sample Mask" start="128" end="143" type="uint"/>
3154  </instruction>
3155
3156  <instruction name="GPGPU_WALKER" bias="2" length="15" engine="render">
3157    <field name="DWord Length" start="0" end="7" type="uint" default="13"/>
3158    <field name="Predicate Enable" start="8" end="8" type="bool"/>
3159    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
3160    <field name="SubOpcode" start="16" end="23" type="uint" default="5"/>
3161    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
3162    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3163    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3164    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
3165    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
3166    <field name="Indirect Data Start Address" start="102" end="127" type="offset"/>
3167    <field name="Thread Width Counter Maximum" start="128" end="133" type="uint"/>
3168    <field name="Thread Height Counter Maximum" start="136" end="141" type="uint"/>
3169    <field name="Thread Depth Counter Maximum" start="144" end="149" type="uint"/>
3170    <field name="SIMD Size" start="158" end="159" type="uint">
3171      <value name="SIMD8" value="0"/>
3172      <value name="SIMD16" value="1"/>
3173      <value name="SIMD32" value="2"/>
3174    </field>
3175    <field name="Thread Group ID Starting X" start="160" end="191" type="uint"/>
3176    <field name="Thread Group ID X Dimension" start="224" end="255" type="uint"/>
3177    <field name="Thread Group ID Starting Y" start="256" end="287" type="uint"/>
3178    <field name="Thread Group ID Y Dimension" start="320" end="351" type="uint"/>
3179    <field name="Thread Group ID Starting/Resume Z" start="352" end="383" type="uint"/>
3180    <field name="Thread Group ID Z Dimension" start="384" end="415" type="uint"/>
3181    <field name="Right Execution Mask" start="416" end="447" type="uint"/>
3182    <field name="Bottom Execution Mask" start="448" end="479" type="uint"/>
3183  </instruction>
3184
3185  <instruction name="HCP_BSD_OBJECT" bias="2" length="3" engine="video">
3186    <field name="DWord Length" start="0" end="11" type="uint"/>
3187    <field name="SubOpcode" start="16" end="22" type="uint" default="32"/>
3188    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3189    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3190    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3191    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
3192    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
3193  </instruction>
3194
3195  <instruction name="HCP_FQM_STATE" bias="2" length="34" engine="video">
3196    <field name="DWord Length" start="0" end="11" type="uint"/>
3197    <field name="SubOpcode" start="16" end="22" type="uint" default="5"/>
3198    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3199    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3200    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3201    <field name="Intra/Inter" start="32" end="32" type="uint">
3202      <value name="Intra" value="0"/>
3203      <value name="Inter" value="1"/>
3204    </field>
3205    <field name="SizeID" start="33" end="34" type="uint">
3206      <value name="4x4" value="0"/>
3207      <value name="8x8" value="1"/>
3208      <value name="16x16" value="2"/>
3209      <value name="32x32" value="3"/>
3210    </field>
3211    <field name="Color Component" start="35" end="36" type="uint">
3212      <value name="Luma" value="0"/>
3213      <value name="Chroma Cb" value="1"/>
3214      <value name="Chroma Cr" value="2"/>
3215    </field>
3216    <field name="FQM DC Value" start="48" end="63" type="uint"/>
3217    <group count="64" start="64" size="8">
3218      <field name="Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
3219    </group>
3220  </instruction>
3221
3222  <instruction name="HCP_IND_OBJ_BASE_ADDR_STATE" bias="2" length="14" engine="video">
3223    <field name="DWord Length" start="0" end="11" type="uint"/>
3224    <field name="SubOpcode" start="16" end="22" type="uint" default="3"/>
3225    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3226    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3227    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3228    <field name="HCP Indirect Bitstream Object - Base Address" start="32" end="95" type="address"/>
3229    <field name="HCP Indirect Bitstream Object - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3230    <field name="HCP Indirect Bitstream Object - Access Upper Bound" start="128" end="191" type="address"/>
3231    <field name="HCP Indirect CU Object - Base Address" start="192" end="255" type="address"/>
3232    <field name="HCP Indirect CU Object - Memory Address Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
3233    <field name="HCP PAK-BSE Object - Base Address" start="288" end="351" type="address"/>
3234    <field name="HCP PAK-BSE Object - Memory Address Attributes" start="352" end="383" type="MEMORYADDRESSATTRIBUTES"/>
3235    <field name="HCP PAK-BSE Object - Access Upper Bound" start="384" end="447" type="address"/>
3236    <field name="HCP VP9 PAK Compressed Header Syntax Stream-In - Base Address" start="448" end="511" type="address"/>
3237    <field name="HCP VP9 PAK Compressed Header Syntax Stream-In - Memory Address Attributes" start="512" end="543" type="MEMORYADDRESSATTRIBUTES"/>
3238    <field name="HCP VP9 PAK Probability Counter Stream-Out - Base Address" start="544" end="607" type="address"/>
3239    <field name="HCP VP9 PAK Probability Counter Stream-Out - Memory Address Attributes" start="608" end="639" type="MEMORYADDRESSATTRIBUTES"/>
3240    <field name="HCP VP9 PAK Probability Deltas Stream-In - Base Address" start="640" end="703" type="address"/>
3241    <field name="HCP VP9 PAK Probability Deltas Stream-In - Memory Address Attributes" start="704" end="735" type="MEMORYADDRESSATTRIBUTES"/>
3242    <field name="HCP VP9 PAK Tile Record Stream-Out - Base Address" start="736" end="799" type="address"/>
3243    <field name="HCP VP9 PAK Tile Record Stream-Out - Memory Address Attributes" start="800" end="831" type="MEMORYADDRESSATTRIBUTES"/>
3244    <field name="HCP VP9 PAK CU Level Statistic Stream-Out - Base Address" start="832" end="895" type="address"/>
3245    <field name="HCP VP9 PAK CU Level Statistic Stream-Out - Memory Address Attributes" start="896" end="927" type="MEMORYADDRESSATTRIBUTES"/>
3246  </instruction>
3247
3248  <instruction name="HCP_PAK_INSERT_OBJECT" bias="2" engine="video">
3249    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
3250    <field name="SubOpcode" start="16" end="22" type="uint" default="34"/>
3251    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3252    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3253    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3254    <field name="End of Slice" start="33" end="33" type="bool"/>
3255    <field name="Last Header" start="34" end="34" type="bool"/>
3256    <field name="Emulation Byte Bits Insert Enable" start="35" end="35" type="bool"/>
3257    <field name="Skip Emulation Byte Count" start="36" end="39" type="uint"/>
3258    <field name="Data Bits In Last DW" start="40" end="45" type="uint"/>
3259    <field name="Slice Header Indicator" start="46" end="46" type="bool"/>
3260    <field name="Header Length Excluded From Size" start="47" end="47" type="uint">
3261      <value name="ACCUMULATE" value="0"/>
3262      <value name="NO_ACCUMULATION" value="1"/>
3263    </field>
3264    <field name="Data Byte Offset" start="48" end="49" type="uint"/>
3265    <field name="Indirect Payload Enable" start="63" end="63" type="bool"/>
3266    <group count="0" start="64" size="128">
3267      <field name="Indirect Payload" start="0" end="127" type="HCP_PAK_INSERT_OBJECT_INDIRECT_PAYLOAD"/>
3268      <field name="Inline PayLoad" start="0" end="31" type="uint"/>
3269    </group>
3270  </instruction>
3271
3272  <instruction name="HCP_PAK_OBJECT" bias="2" length="2" engine="video">
3273    <field name="DWord Length" start="0" end="11" type="uint"/>
3274    <field name="SubOpcode" start="16" end="22" type="uint" default="33"/>
3275    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3276    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3277    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3278    <field name="Split Level 2 Part 0" start="32" end="35" type="uint"/>
3279    <field name="Split Level 2 Part 1" start="36" end="39" type="uint"/>
3280    <field name="Split Level 2 Part 2" start="40" end="43" type="uint"/>
3281    <field name="Split Level 2 Part 3" start="44" end="47" type="uint"/>
3282    <field name="Split Level 1" start="48" end="51" type="uint"/>
3283    <field name="Split Level 0" start="52" end="52" type="uint"/>
3284    <field name="CU Count" start="56" end="61" type="uint"/>
3285    <field name="Last LCU of Tile" start="62" end="62" type="bool"/>
3286    <field name="Last LCU of Slice" start="63" end="63" type="bool"/>
3287    <field name="Current LCU X Address" start="64" end="79" type="uint"/>
3288    <field name="Current LCU Y Address" start="80" end="95" type="uint"/>
3289    <field name="Estimated LCU Size" start="96" end="127" type="uint"/>
3290    <field name="SSE ClassID 32x32_0" start="128" end="131" type="uint"/>
3291    <field name="SSE ClassID 32x32_1" start="132" end="135" type="uint"/>
3292    <field name="SSE ClassID 32x32_2" start="136" end="139" type="uint"/>
3293    <field name="SSE ClassID 32x32_3" start="140" end="143" type="uint"/>
3294    <field name="LCU Force Zero Coeff" start="144" end="144" type="bool"/>
3295  </instruction>
3296
3297  <instruction name="HCP_PIC_STATE" bias="2" length="31" engine="video">
3298    <field name="DWord Length" start="0" end="11" type="uint"/>
3299    <field name="SubOpcode" start="16" end="22" type="uint" default="16"/>
3300    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3301    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3302    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3303    <field name="Frame Width In Minimum Coding Block Size" start="32" end="42" type="uint"/>
3304    <field name="PAK Transform Skip Enable" start="47" end="47" type="bool"/>
3305    <field name="Frame Height In Minimum Coding Block Size" start="48" end="58" type="uint"/>
3306    <field name="Min CU Size" start="64" end="65" type="uint" prefix="LCU">
3307      <value name="64x64" value="3"/>
3308      <value name="32x32" value="2"/>
3309      <value name="16x16" value="1"/>
3310      <value name="8x8" value="0"/>
3311    </field>
3312    <field name="LCU Size" start="66" end="67" type="uint" prefix="LCU">
3313      <value name="64x64" value="3"/>
3314      <value name="32x32" value="2"/>
3315      <value name="16x16" value="1"/>
3316      <value name="Illegal/reserved" value="0"/>
3317    </field>
3318    <field name="Min TU Size" start="68" end="69" type="uint" prefix="TU">
3319      <value name="32x32" value="3"/>
3320      <value name="16x16" value="2"/>
3321      <value name="8x8" value="1"/>
3322      <value name="4x4" value="0"/>
3323    </field>
3324    <field name="Max TU Size" start="70" end="71" type="uint" prefix="TU">
3325      <value name="32x32" value="3"/>
3326      <value name="16x16" value="2"/>
3327      <value name="8x8" value="1"/>
3328      <value name="4x4" value="0"/>
3329    </field>
3330    <field name="Min PCM Size" start="72" end="73" type="uint" prefix="PCM">
3331      <value name="32x32" value="2"/>
3332      <value name="16x16" value="1"/>
3333      <value name="8x8" value="0"/>
3334    </field>
3335    <field name="Max PCM Size" start="74" end="75" type="uint" prefix="PCM">
3336      <value name="32x32" value="2"/>
3337      <value name="16x16" value="1"/>
3338      <value name="8x8" value="0"/>
3339    </field>
3340    <field name="Log2 SAO Offset Scale Luma" start="76" end="78" type="uint"/>
3341    <field name="Log2 SAO Offset Scale Chroma" start="80" end="82" type="uint"/>
3342    <field name="Chroma QP Offset List Length" start="84" end="86" type="uint"/>
3343    <field name="Diff CU Chroma QP Offset Depth" start="88" end="91" type="uint"/>
3344    <field name="Chroma QP Offset List Enable" start="92" end="92" type="bool"/>
3345    <field name="Chroma Subsampling" start="93" end="95" type="uint">
3346      <value name="4:2:0" value="1"/>
3347      <value name="4:2:2" value="2"/>
3348      <value name="4:4:4" value="3"/>
3349    </field>
3350    <field name="Collocated Picture Is I Slice" start="96" end="96" type="bool"/>
3351    <field name="Current Picture Is I Slice" start="97" end="97" type="bool"/>
3352    <field name="CABAC Zero Word Insertion Test Enable" start="98" end="98" type="bool"/>
3353    <field name="High Precision Offsets Enable" start="115" end="115" type="bool"/>
3354    <field name="Log2 Max Transform Skip Size" start="116" end="118" type="uint"/>
3355    <field name="Cross Component Prediction Enable" start="119" end="119" type="bool"/>
3356    <field name="CABAC Bypass Alignment Enable" start="120" end="120" type="bool"/>
3357    <field name="Persistent Rice Adaptation Enable" start="121" end="121" type="bool"/>
3358    <field name="Intra Smoothing Disable" start="122" end="122" type="bool"/>
3359    <field name="Explicit RDPCM Enable" start="123" end="123" type="bool"/>
3360    <field name="Implicit RDPCM Enable" start="124" end="124" type="bool"/>
3361    <field name="Transform Skip Context Enable" start="125" end="125" type="bool"/>
3362    <field name="Transform Skip Rotation Enable" start="126" end="126" type="bool"/>
3363    <field name="SPS Range Extension Enable" start="127" end="127" type="bool"/>
3364    <field name="Sample Adaptive Offset Enable" start="131" end="131" type="bool"/>
3365    <field name="PCM Enable" start="132" end="132" type="bool"/>
3366    <field name="CU QP Delta Enable" start="133" end="133" type="bool"/>
3367    <field name="Max DQP Depth" start="134" end="135" type="uint"/>
3368    <field name="PCM Loop Filter Disable" start="136" end="136" type="bool"/>
3369    <field name="Constrained Intra Prediction" start="137" end="137" type="bool"/>
3370    <field name="Log2 Parallel Merge Level" start="138" end="140" type="uint"/>
3371    <field name="Sign Data Hiding" start="141" end="141" type="bool"/>
3372    <field name="Loop Filter Enable" start="143" end="143" type="bool"/>
3373    <field name="Entropy Coding Sync Enable" start="144" end="144" type="bool"/>
3374    <field name="Tiling Enable" start="145" end="145" type="bool"/>
3375    <field name="Weighted BiPredication Enable" start="146" end="146" type="bool"/>
3376    <field name="Weighted Predication Enable" start="147" end="147" type="bool"/>
3377    <field name="Field Pic" start="148" end="148" type="bool"/>
3378    <field name="Top Field" start="149" end="149" type="bool"/>
3379    <field name="Transform Skip Enable" start="150" end="150" type="bool"/>
3380    <field name="AMP Enable" start="151" end="151" type="bool"/>
3381    <field name="Transquant Bypass Enable" start="153" end="153" type="bool"/>
3382    <field name="Strong Intra Smoothing Enable" start="154" end="154" type="bool"/>
3383    <field name="CU Packet Structure" start="155" end="155" type="uint">
3384      <value name="VME" value="0"/>
3385      <value name="ExtEnc" value="1"/>
3386    </field>
3387    <field name="Picture Cb QP Offset" start="160" end="164" type="int"/>
3388    <field name="Picture Cr QP Offset" start="165" end="169" type="int"/>
3389    <field name="Intra Max Transform Hierarchy Depth" start="170" end="172" type="uint"/>
3390    <field name="Inter Max Transform Hierarchy Depth" start="173" end="175" type="uint"/>
3391    <field name="Chroma PCM Sample Bit Depth" start="176" end="179" type="uint"/>
3392    <field name="Luma PCM Sample Bit Depth" start="180" end="183" type="uint"/>
3393    <field name="Chroma Bit Depth" start="184" end="186" type="uint">
3394      <value name="8-bit" value="0"/>
3395      <value name="9-bit" value="1"/>
3396      <value name="10-bit" value="2"/>
3397      <value name="11-bit" value="3"/>
3398      <value name="12-bit" value="4"/>
3399    </field>
3400    <field name="Luma Bit Depth" start="187" end="189" type="uint">
3401      <value name="8-bit" value="0"/>
3402      <value name="9-bit" value="1"/>
3403      <value name="10-bit" value="2"/>
3404      <value name="11-bit" value="3"/>
3405      <value name="12-bit" value="4"/>
3406    </field>
3407    <field name="LCU Max Bit Size Allowed" start="192" end="207" type="uint"/>
3408    <field name="Non First Pass" start="208" end="208" type="bool"/>
3409    <field name="LCU Max Size Report" start="216" end="216" type="bool"/>
3410    <field name="Frame Bitrate Max Report" start="217" end="217" type="bool"/>
3411    <field name="Frame Bitrate Min Report" start="218" end="218" type="bool"/>
3412    <field name="Load Bitstream Pointer Per Slice" start="221" end="221" type="bool"/>
3413    <field name="Frame Bitrate Max" start="224" end="237" type="uint"/>
3414    <field name="Frame Bitrate Max Unit" start="255" end="255" type="uint"/>
3415    <field name="Frame Bitrate Min" start="256" end="269" type="uint"/>
3416    <field name="Frame Bitrate Min Unit" start="287" end="287" type="uint"/>
3417    <field name="Frame Bitrate Min Delta" start="288" end="302" type="uint"/>
3418    <field name="Frame Bitrate Max Delta" start="304" end="318" type="uint"/>
3419    <field name="Frame Delta QP Max" start="320" end="383" type="FRAMEDELTAQP"/>
3420    <field name="Frame Delta QP Min" start="384" end="447" type="FRAMEDELTAQP"/>
3421    <field name="Frame Delta QP Max Range" start="448" end="511" type="FRAMEDELTAQPRANGE"/>
3422    <field name="Frame Delta QP Min Range" start="512" end="575" type="FRAMEDELTAQPRANGE"/>
3423    <field name="Minimum Frame Size" start="576" end="591" type="uint"/>
3424    <field name="Minimum Frame Size Units" start="606" end="607" type="uint" prefix="HCP_MFSU">
3425      <value name="4Kb" value="0"/>
3426      <value name="16Kb" value="1"/>
3427      <value name="Compatibility mode" value="2"/>
3428      <value name="16 bytes" value="3"/>
3429    </field>
3430    <field name="Fractional QP Input" start="608" end="610" type="uint"/>
3431    <field name="Fractional QP Offset" start="611" end="613" type="uint"/>
3432    <field name="Rho Domain Rate Control Enable" start="614" end="614" type="bool"/>
3433    <field name="Fractional QP Adjustment Enable" start="615" end="615" type="bool"/>
3434    <field name="Rho Domain Frame Level QP" start="616" end="621" type="uint"/>
3435    <field name="PAK Dynamic Slice Mode Enable" start="622" end="622" type="bool"/>
3436    <field name="No Output of Prior Pics" start="623" end="623" type="bool"/>
3437    <field name="First Slice Segment In Pic" start="624" end="624" type="bool"/>
3438    <field name="Nal Unit Type" start="625" end="625" type="uint"/>
3439    <field name="Slice_pic_parameter_set_id" start="626" end="631" type="uint"/>
3440    <field name="SSE Enable" start="632" end="632" type="bool"/>
3441    <field name="RDOQ Enable" start="633" end="633" type="bool"/>
3442    <field name="Number of LCUs InNormal Slice Size Conformance Mode" start="634" end="635" type="uint"/>
3443    <field name="Intra TU Count Based RDOQ Disable" start="646" end="646" type="bool"/>
3444    <field name="Slice Size Threshold" start="672" end="703" type="uint"/>
3445    <field name="Target Slice Size" start="704" end="735" type="uint"/>
3446    <field name="Class0_SSE_Threshold0" start="736" end="751" type="uint"/>
3447    <field name="Class0_SSE_Threshold1" start="752" end="767" type="uint"/>
3448    <field name="SSE Thresholds for Class1-8" start="768" end="1023" type="uint"/>
3449    <field name="Cb QP Offset List[0]" start="1024" end="1028" type="int"/>
3450    <field name="Cb QP Offset List[1]" start="1029" end="1033" type="int"/>
3451    <field name="Cb QP Offset List[2]" start="1034" end="1038" type="int"/>
3452    <field name="Cb QP Offset List[3]" start="1039" end="1043" type="int"/>
3453    <field name="Cb QP Offset List[4]" start="1044" end="1048" type="int"/>
3454    <field name="Cb QP Offset List[5]" start="1049" end="1053" type="int"/>
3455    <field name="Cr QP Offset List[0]" start="1056" end="1060" type="int"/>
3456    <field name="Cr QP Offset List[1]" start="1061" end="1065" type="int"/>
3457    <field name="Cr QP Offset List[2]" start="1066" end="1070" type="int"/>
3458    <field name="Cr QP Offset List[3]" start="1071" end="1075" type="int"/>
3459    <field name="Cr QP Offset List[4]" start="1076" end="1080" type="int"/>
3460    <field name="Cr QP Offset List[5]" start="1081" end="1085" type="int"/>
3461    <field name="RDOQ Intra TU Threshold" start="1184" end="1199" type="uint"/>
3462  </instruction>
3463
3464  <instruction name="HCP_PIPE_BUF_ADDR_STATE" bias="2" length="104" engine="video">
3465    <field name="DWord Length" start="0" end="11" type="uint"/>
3466    <field name="SubOpcode" start="16" end="22" type="uint" default="2"/>
3467    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3468    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3469    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3470    <field name="Decoded Picture - Address" start="32" end="95" type="address"/>
3471    <field name="Decoded Picture - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
3472    <field name="Deblocking Filter Line Buffer - Address" start="128" end="191" type="address"/>
3473    <field name="Deblocking Filter Line Buffer - Memory Address Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
3474    <field name="Deblocking Filter Tile Line Buffer - Address" start="224" end="287" type="address"/>
3475    <field name="Deblocking Filter Tile Line Buffer - Memory Address Attributes" start="288" end="319" type="MEMORYADDRESSATTRIBUTES"/>
3476    <field name="Deblocking Filter Tile Column Buffer - Address" start="320" end="383" type="address"/>
3477    <field name="Deblocking Filter Tile Column Buffer - Memory Address Attributes" start="384" end="415" type="MEMORYADDRESSATTRIBUTES"/>
3478    <field name="Metadata Line Buffer - Address" start="416" end="479" type="address"/>
3479    <field name="Metadata Line Buffer - Memory Address Attributes" start="480" end="511" type="MEMORYADDRESSATTRIBUTES"/>
3480    <field name="Metadata Tile Line Buffer - Address" start="512" end="575" type="address"/>
3481    <field name="Metadata Tile Line Buffer - Memory Address Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
3482    <field name="Metadata Tile Column Buffer - Address" start="608" end="671" type="address"/>
3483    <field name="Metadata Tile Column Buffer - Memory Address Attributes" start="672" end="703" type="MEMORYADDRESSATTRIBUTES"/>
3484    <field name="SAO Line Buffer - Address" start="704" end="767" type="address"/>
3485    <field name="SAO Line Buffer - Memory Address Attributes" start="768" end="799" type="MEMORYADDRESSATTRIBUTES"/>
3486    <field name="SAO Tile Line Buffer - Address" start="800" end="863" type="address"/>
3487    <field name="SAO Tile Line Buffer - Memory Address Attributes" start="864" end="895" type="MEMORYADDRESSATTRIBUTES"/>
3488    <field name="SAO Tile Column Buffer - Address" start="896" end="959" type="address"/>
3489    <field name="SAO Tile Column Buffer - Memory Address Attributes" start="960" end="991" type="MEMORYADDRESSATTRIBUTES"/>
3490    <field name="Current MV Temporal Buffer - Address" start="992" end="1055" type="address"/>
3491    <field name="Current MV Temporal Buffer - Memory Address Attributes" start="1056" end="1087" type="MEMORYADDRESSATTRIBUTES"/>
3492    <group count="8" start="1184" size="64">
3493      <field name="Reference Picture - Address" start="0" end="63" type="address"/>
3494    </group>
3495    <field name="Reference Picture - Memory Address Attributes" start="1696" end="1727" type="MEMORYADDRESSATTRIBUTES"/>
3496    <field name="Original Uncompressed Picture Source - Address" start="1728" end="1791" type="address"/>
3497    <field name="Original Uncompressed Picture Source - Memory Address Attributes" start="1792" end="1823" type="MEMORYADDRESSATTRIBUTES"/>
3498    <field name="SAO Row Store Buffer - Address" start="1824" end="1887" type="address"/>
3499    <field name="SAO Row Store Buffer - Memory Address Attributes" start="1888" end="1919" type="MEMORYADDRESSATTRIBUTES"/>
3500    <field name="Decoded Picture Status Buffer - Address" start="1920" end="1983" type="address"/>
3501    <field name="Decoded Picture Status Buffer - Memory Address Attributes" start="1984" end="2015" type="MEMORYADDRESSATTRIBUTES"/>
3502    <field name="LCU ILDB Stream-Out Buffer - Address" start="2016" end="2079" type="address"/>
3503    <field name="LCU ILDB Stream-Out Buffer - Memory Address Attributes" start="2080" end="2111" type="MEMORYADDRESSATTRIBUTES"/>
3504    <group count="8" start="2112" size="64">
3505      <field name="Collocated MV Temporal Buffer - Address" start="0" end="63" type="address"/>
3506    </group>
3507    <field name="Collocated MV Temporal Buffer - Memory Address Attributes" start="2624" end="2655" type="MEMORYADDRESSATTRIBUTES"/>
3508    <field name="VP9 Probability Buffer - Address" start="2656" end="2719" type="address"/>
3509    <field name="VP9 Probability Buffer - Memory Address Attributes" start="2720" end="2751" type="MEMORYADDRESSATTRIBUTES"/>
3510    <field name="VP9 Segment ID Buffer - Address" start="2752" end="2815" type="uint"/>
3511    <field name="VP9 Segment ID Buffer - Memory Address Attributes" start="2816" end="2847" type="MEMORYADDRESSATTRIBUTES"/>
3512    <field name="VP9 HVD Line Row Store Buffer - Address" start="2848" end="2911" type="address"/>
3513    <field name="VP9 HVD Line Row Store Buffer - Memory Address Attributes" start="2912" end="2943" type="MEMORYADDRESSATTRIBUTES"/>
3514    <field name="VP9 HVD Tile Row Store Buffer - Address" start="2944" end="3007" type="address"/>
3515    <field name="VP9 HVD Tile Row Store Buffer - Memory Address Attributes" start="3008" end="3039" type="MEMORYADDRESSATTRIBUTES"/>
3516    <field name="SAO Stream-Out Data Destination Buffer - Base Address" start="3040" end="3103" type="address"/>
3517    <field name="SAO Stream-Out Data Destination Buffer - Memory Address Attributes" start="3104" end="3135" type="MEMORYADDRESSATTRIBUTES"/>
3518    <field name="Frame Statistics Stream-Out Data Destination Buffer - Base Address" start="3136" end="3199" type="address"/>
3519    <field name="Frame Statistics Stream-Out Data Destination Buffer - Memory Address Attributes" start="3200" end="3231" type="MEMORYADDRESSATTRIBUTES"/>
3520    <field name="SSE Source Pixel Row Store Buffer - Base Address" start="3232" end="3295" type="address"/>
3521    <field name="SSE Source Pixel Row Store Buffer - Memory Address Attributes Read/Write" start="3296" end="3327" type="MEMORYADDRESSATTRIBUTES"/>
3522    <field name="HCP Scalability Slice State Buffer - Base Address" start="3328" end="3391" type="address"/>
3523    <field name="HCP Scalability Slice State Buffer - Memory Address Attributes" start="3392" end="3423" type="MEMORYADDRESSATTRIBUTES"/>
3524    <field name="HCP Scalability CABAC Decoded Syntax Elements Buffer - Base Address" start="3424" end="3487" type="address"/>
3525    <field name="HCP Scalability CABAC Decoded Syntax Elements Buffer - Memory Address Attributes" start="3488" end="3519" type="MEMORYADDRESSATTRIBUTES"/>
3526    <field name="MV Upper Right Column Store Buffer - Base Address" start="3520" end="3583" type="address"/>
3527    <field name="MV Upper Right Column Store Buffer - Memory Address Attributes" start="3584" end="3615" type="MEMORYADDRESSATTRIBUTES"/>
3528    <field name="Intra Prediction Upper Right Column Store Buffer - Base Address" start="3616" end="3679" type="address"/>
3529    <field name="Intra Prediction Upper Right Column Store Buffer - Memory Address Attributes" start="3680" end="3711" type="MEMORYADDRESSATTRIBUTES"/>
3530    <field name="Intra Prediction Left Recon Column Store Buffer - Base Address" start="3712" end="3775" type="address"/>
3531    <field name="Intra Prediction Left Recon Column Store Buffer - Memory Address Attributes" start="3776" end="3807" type="MEMORYADDRESSATTRIBUTES"/>
3532    <field name="HCP Scalability CABAC Decoded Syntax Elements Buffer Max Address" start="3808" end="3871" type="address"/>
3533  </instruction>
3534
3535  <instruction name="HCP_PIPE_MODE_SELECT" bias="2" length="6" engine="video">
3536    <field name="DWord Length" start="0" end="11" type="uint"/>
3537    <field name="SubOpcode" start="16" end="22" type="uint" default="0"/>
3538    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3539    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3540    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3541    <field name="Codec Select" start="32" end="32" type="uint">
3542      <value name="Decode" value="0"/>
3543      <value name="Encode" value="1"/>
3544    </field>
3545    <field name="Deblocker Stream-Out Enable" start="33" end="33" type="bool"/>
3546    <field name="PAK Pipeline Stream-Out Enable" start="34" end="34" type="bool"/>
3547    <field name="Pic Status/Error Report Enable" start="35" end="35" type="bool"/>
3548    <field name="Codec Standard Select" start="37" end="39" type="uint">
3549      <value name="HEVC" value="0"/>
3550      <value name="VP9" value="1"/>
3551    </field>
3552    <field name="Advanced Rate Control Enable" start="41" end="41" type="bool"/>
3553    <field name="VDEnc Mode" start="42" end="42" type="uint" prefix="VM">
3554      <value name="MBEnc Mode" value="0"/>
3555      <value name="VDEnc Mode" value="1"/>
3556    </field>
3557    <field name="RDOQ Enable" start="43" end="43" type="bool"/>
3558    <field name="PAK Frame Level Stream-Out Enable" start="44" end="44" type="bool"/>
3559    <field name="Multi-Engine Mode" start="45" end="46" type="uint"/>
3560    <field name="Pipe Working Mode" start="47" end="48" type="uint">
3561      <value name="Legacy Decoder/Encoder Mode" value="0"/>
3562      <value name="CABAC FE Only Decode Mode" value="1"/>
3563      <value name="Decoder BE Only or Encoder Mode" value="2"/>
3564    </field>
3565    <field name="Media Soft-Reset Counter" start="64" end="95" type="uint"/>
3566    <field name="Pic Status/Error Report ID" start="96" end="127" type="uint"/>
3567  </instruction>
3568
3569  <instruction name="HCP_QM_STATE" bias="2" length="34" engine="video">
3570    <field name="DWord Length" start="0" end="11" type="uint"/>
3571    <field name="SubOpcode" start="16" end="22" type="uint" default="4"/>
3572    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3573    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3574    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3575    <field name="Prediction Type" start="32" end="32" type="uint">
3576      <value name="Intra" value="0"/>
3577      <value name="Inter" value="1"/>
3578    </field>
3579    <field name="SizeID" start="33" end="34" type="uint">
3580      <value name="4x4" value="0"/>
3581      <value name="8x8" value="1"/>
3582      <value name="16x16" value="2"/>
3583      <value name="32x32" value="3"/>
3584    </field>
3585    <field name="Color Component" start="35" end="36" type="uint">
3586      <value name="Luma" value="0"/>
3587      <value name="Chroma Cb" value="1"/>
3588      <value name="Chroma Cr" value="2"/>
3589    </field>
3590    <field name="DC Coefficient" start="37" end="44" type="uint"/>
3591    <group count="64" start="64" size="8">
3592      <field name="Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
3593    </group>
3594  </instruction>
3595
3596  <instruction name="HCP_RDOQ_STATE" bias="2" length="9" engine="video">
3597    <field name="DWord Length" start="0" end="11" type="uint"/>
3598    <field name="SubOpcode" start="16" end="22" type="uint" default="21"/>
3599    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3600    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3601    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3602    <field name="Intra RDOQ" start="32" end="32" type="bool"/>
3603    <field name="Inter RDOQ" start="33" end="33" type="bool"/>
3604    <group count="26" start="64" size="16">
3605      <field name="Lambda Intra Luma" start="0" end="15" type="uint"/>
3606    </group>
3607    <group count="26" start="480" size="16">
3608      <field name="Lambda Intra Chroma" start="0" end="15" type="uint"/>
3609    </group>
3610    <group count="26" start="896" size="16">
3611      <field name="Lambda Inter Luma" start="0" end="15" type="uint"/>
3612    </group>
3613    <group count="26" start="1312" size="16">
3614      <field name="Lambda Inter Chroma" start="0" end="15" type="uint"/>
3615    </group>
3616  </instruction>
3617
3618  <instruction name="HCP_REF_IDX_STATE" bias="2" length="18" engine="video">
3619    <field name="DWord Length" start="0" end="11" type="uint"/>
3620    <field name="SubOpcode" start="16" end="22" type="uint" default="18"/>
3621    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3622    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3623    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3624    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
3625    <field name="Number of Reference Indexes Active" start="33" end="36" type="uint"/>
3626    <group count="16" start="64" size="32">
3627      <field name="Reference List Entry" start="0" end="31" type="HCP_REF_LIST_ENTRY"/>
3628    </group>
3629  </instruction>
3630
3631  <instruction name="HCP_SLICE_STATE" bias="2" length="2" engine="video">
3632    <field name="DWord Length" start="0" end="11" type="uint"/>
3633    <field name="SubOpcode" start="16" end="22" type="uint" default="20"/>
3634    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3635    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3636    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3637    <field name="Slice Horizontal Position" start="32" end="41" type="uint"/>
3638    <field name="Slice Vertical Position" start="48" end="57" type="uint"/>
3639    <field name="Next Slice Horizontal Position" start="64" end="73" type="uint"/>
3640    <field name="Next Slice Vertical Position" start="80" end="90" type="uint"/>
3641    <field name="Slice Type" start="96" end="97" type="uint" prefix="HCP_ST">
3642      <value name="B Slice" value="0"/>
3643      <value name="P Slice" value="1"/>
3644      <value name="I Slice" value="2"/>
3645    </field>
3646    <field name="Last Slice" start="98" end="98" type="bool"/>
3647    <field name="Slice QP Sign" start="99" end="99" type="uint"/>
3648    <field name="Dependent Slice" start="100" end="100" type="bool"/>
3649    <field name="Slice Temporal MVP Enable" start="101" end="101" type="bool"/>
3650    <field name="Slice QP" start="102" end="107" type="uint"/>
3651    <field name="Slice Cb QP Offset" start="108" end="112" type="int">
3652      <value name="-12" value="20"/>
3653      <value name="-11" value="21"/>
3654      <value name="-10" value="22"/>
3655      <value name="-9" value="23"/>
3656      <value name="-8" value="24"/>
3657      <value name="-7" value="25"/>
3658      <value name="-6" value="26"/>
3659      <value name="-5" value="27"/>
3660      <value name="-4" value="28"/>
3661      <value name="-3" value="29"/>
3662      <value name="-2" value="30"/>
3663      <value name="-1" value="31"/>
3664    </field>
3665    <field name="Slice Cr QP Offset" start="113" end="117" type="int">
3666      <value name="-12" value="20"/>
3667      <value name="-11" value="21"/>
3668      <value name="-10" value="22"/>
3669      <value name="-9" value="23"/>
3670      <value name="-8" value="24"/>
3671      <value name="-7" value="25"/>
3672      <value name="-6" value="26"/>
3673      <value name="-5" value="27"/>
3674      <value name="-4" value="28"/>
3675      <value name="-3" value="29"/>
3676      <value name="-2" value="30"/>
3677      <value name="-1" value="31"/>
3678    </field>
3679    <field name="Intra Ref Fetch Disable" start="118" end="118" type="bool"/>
3680    <field name="CU Chroma QP Offset Enable" start="119" end="119" type="bool"/>
3681    <field name="Last Slice of Tile" start="120" end="120" type="uint"/>
3682    <field name="Slice Header Disable Deblocking Filter" start="128" end="128" type="bool"/>
3683    <field name="Slice TC Offset Div2" start="129" end="132" type="int"/>
3684    <field name="Slice Beta Offset Div2" start="133" end="136" type="int"/>
3685    <field name="Slice Loop Filter Enable" start="138" end="138" type="bool"/>
3686    <field name="Slice SAO Chroma" start="139" end="139" type="bool"/>
3687    <field name="Slice SAO Luma" start="140" end="140" type="bool"/>
3688    <field name="MVD L1 Zero" start="141" end="141" type="bool"/>
3689    <field name="Low Delay" start="142" end="142" type="bool"/>
3690    <field name="Collocated From L0" start="143" end="143" type="bool"/>
3691    <field name="Log2 Weight Denominator Chroma" start="144" end="146" type="uint"/>
3692    <field name="Log2 Weight Denominator Luma" start="147" end="149" type="uint"/>
3693    <field name="CABAC Init" start="150" end="150" type="bool"/>
3694    <field name="Max Merge Index" start="151" end="153" type="uint"/>
3695    <field name="Collocated MV Temporal Buffer Index" start="154" end="156" type="uint"/>
3696    <field name="Slice Header Length" start="160" end="175" type="uint"/>
3697    <field name="Round Intra" start="212" end="215" type="uint">
3698      <value name="+1/32" value="0"/>
3699      <value name="+2/32" value="1"/>
3700      <value name="+3/32" value="2"/>
3701      <value name="+4/32" value="3"/>
3702      <value name="+5/32" value="4"/>
3703      <value name="+6/32" value="5"/>
3704      <value name="+7/32" value="6"/>
3705      <value name="+8/32" value="7"/>
3706      <value name="+9/32" value="8"/>
3707      <value name="+10/32" value="9"/>
3708      <value name="+11/32" value="10"/>
3709      <value name="+12/32" value="11"/>
3710      <value name="+13/32" value="12"/>
3711      <value name="+14/32" value="13"/>
3712      <value name="+15/32" value="14"/>
3713      <value name="+16/32" value="15"/>
3714    </field>
3715    <field name="Round Inter" start="218" end="221" type="uint">
3716      <value name="+1/32" value="0"/>
3717      <value name="+2/32" value="1"/>
3718      <value name="+3/32" value="2"/>
3719      <value name="+4/32" value="3"/>
3720      <value name="+5/32" value="4"/>
3721      <value name="+6/32" value="5"/>
3722      <value name="+7/32" value="6"/>
3723      <value name="+8/32" value="7"/>
3724      <value name="+9/32" value="8"/>
3725      <value name="+10/32" value="9"/>
3726      <value name="+11/32" value="10"/>
3727      <value name="+12/32" value="11"/>
3728      <value name="+13/32" value="12"/>
3729      <value name="+14/32" value="13"/>
3730      <value name="+15/32" value="14"/>
3731      <value name="+16/32" value="15"/>
3732    </field>
3733    <field name="CABAC Zero Word Insertion Enable" start="225" end="225" type="bool"/>
3734    <field name="Emulation Byte Slice Insert Enable" start="226" end="226" type="bool"/>
3735    <field name="Tail Insertion Present" start="232" end="232" type="bool"/>
3736    <field name="Slice Data Insertion Present" start="233" end="233" type="bool"/>
3737    <field name="Header Insertion Present" start="234" end="234" type="bool"/>
3738    <field name="Indirect PAK-BSE Data Start Offset" start="262" end="284" type="offset"/>
3739    <field name="Transform Skip Lambda" start="288" end="303" type="uint"/>
3740    <field name="Force SAO Parameters To Zero" start="319" end="319" type="bool"/>
3741    <field name="Transform Skip Number of Zero Coeffs Factor0" start="320" end="327" type="uint"/>
3742    <field name="Transform Skip Number of Non-Zero Coeffs Factor0" start="328" end="335" type="uint"/>
3743    <field name="Transform Skip Number of Zero Coeffs Factor1" start="336" end="343" type="uint"/>
3744    <field name="Transform Skip Number of Non-Zero Coeffs Factor1" start="344" end="351" type="uint"/>
3745  </instruction>
3746
3747  <instruction name="HCP_SURFACE_STATE" bias="2" length="3" engine="video">
3748    <field name="DWord Length" start="0" end="11" type="uint"/>
3749    <field name="SubOpcode" start="16" end="22" type="uint" default="1"/>
3750    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3751    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3752    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3753    <field name="Surface Pitch" start="32" end="48" type="uint"/>
3754    <field name="Surface ID" start="60" end="63" type="uint" prefix="HCP">
3755      <value name="Current Decoded Picture" value="0"/>
3756      <value name="Source Input Picture" value="1"/>
3757      <value name="Prev Reference Picture" value="2"/>
3758      <value name="Golden Reference Picture" value="3"/>
3759      <value name="AltRef Reference Picture" value="4"/>
3760    </field>
3761    <field name="Y Offset for U(Cb)" start="64" end="78" type="uint"/>
3762    <field name="Surface Format" start="91" end="95" type="uint">
3763      <value name="YUY2" value="0"/>
3764      <value name="RGB_8" value="1"/>
3765      <value name="AYUV4444" value="2"/>
3766      <value name="P010Variant" value="3"/>
3767      <value name="PLANAR_420_8" value="4"/>
3768      <value name="YCRCB_SwapY" value="5"/>
3769      <value name="YCRCB_SwapUV" value="6"/>
3770      <value name="YCRCB_SwapUVY" value="7"/>
3771      <value name="Y216/Y210" value="8"/>
3772      <value name="RGB_10" value="9"/>
3773      <value name="Y410" value="10"/>
3774      <value name="NV21 Planar_420_8" value="11"/>
3775      <value name="Y416" value="12"/>
3776      <value name="P010" value="13"/>
3777      <value name="P016" value="14"/>
3778      <value name="Y216Variant" value="17"/>
3779      <value name="Y416Variant" value="18"/>
3780      <value name="YUY2Variant" value="19"/>
3781      <value name="AYUV4444Variant" value="20"/>
3782    </field>
3783    <field name="Default Alpha Value" start="96" end="111" type="uint"/>
3784    <field name="Y Offset for V(Cr)" start="112" end="127" type="uint"/>
3785  </instruction>
3786
3787  <instruction name="HCP_TILE_CODING" bias="1" length="14" engine="video">
3788    <field name="DWord Length" start="0" end="11" type="uint" default="13"/>
3789    <field name="SubOpcode" start="16" end="22" type="uint" default="21"/>
3790    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3791    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3792    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3793    <field name="Tile Column Position" start="64" end="73" type="uint"/>
3794    <field name="Tile Row Position" start="80" end="89" type="uint"/>
3795    <field name="Last Tile of Column" start="95" end="95" type="bool"/>
3796    <field name="Tile Height In Minimum Coding Block Size" start="96" end="106" type="uint"/>
3797    <field name="Tile Width In Minimum Coding Block Size" start="112" end="122" type="uint"/>
3798    <field name="SAO Parameter Offset" start="128" end="159" type="uint"/>
3799    <field name="Bitstream Byte Offset" start="134" end="159" type="uint"/>
3800    <field name="PAK Frame Statistics Offset" start="166" end="191" type="uint"/>
3801    <field name="CU Level Stream-Out Offset" start="198" end="223" type="uint"/>
3802    <field name="Slice Size Stream-Out Offset" start="230" end="255" type="uint"/>
3803    <field name="CU Record Offset" start="262" end="287" type="uint"/>
3804    <field name="SSE Row Store Offset" start="294" end="319" type="uint"/>
3805    <field name="SAO Row Store Offset" start="326" end="351" type="uint"/>
3806    <field name="Tile Size Stream-Out Offset" start="358" end="383" type="uint"/>
3807    <field name="VP9 Probability Counter Stream-Out Offset" start="390" end="415" type="uint"/>
3808    <field name="HCP Scalability Synchronize Buffer - Base Address" start="416" end="479" type="address"/>
3809    <field name="HCP Scalability Synchronize Buffer - Attributes" start="480" end="511" type="MEMORYADDRESSATTRIBUTES"/>
3810  </instruction>
3811
3812  <instruction name="HCP_TILE_STATE" bias="2" length="17" engine="video">
3813    <field name="DWord Length" start="0" end="11" type="uint"/>
3814    <field name="Media Instruction Command" start="16" end="22" type="uint" default="17"/>
3815    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3816    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3817    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3818    <field name="Number of Tile Rows" start="32" end="36" type="uint"/>
3819    <field name="Number of Tile Columns" start="37" end="41" type="uint"/>
3820    <group count="5" start="64" size="32">
3821      <field name="Column Position" start="0" end="31" type="HCP_TILE_POSITION_IN_CTB"/>
3822    </group>
3823    <group count="6" start="224" size="32">
3824      <field name="Row position" start="0" end="31" type="HCP_TILE_POSITION_IN_CTB"/>
3825    </group>
3826    <field name="Ctb Column Position MSB" start="416" end="479" type="HCP_TILE_POSITION_IN_CTB_MSB"/>
3827    <field name="Ctb Row Position MSB" start="480" end="543" type="HCP_TILE_POSITION_IN_CTB_MSB"/>
3828  </instruction>
3829
3830  <instruction name="HCP_VP9_PAK_OBJECT" bias="2" length="2" engine="video">
3831    <field name="DWord Length" start="0" end="11" type="uint"/>
3832    <field name="SubOpcode" start="16" end="22" type="uint" default="53"/>
3833    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3834    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3835    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3836    <field name="Split_coding_unit_flag[x0][y0]" start="32" end="52" type="uint"/>
3837    <field name="CU Count" start="56" end="61" type="uint"/>
3838    <field name="Last SB of Tile" start="63" end="63" type="bool"/>
3839    <field name="Current SB X Address" start="64" end="79" type="uint"/>
3840    <field name="Current SB Y Address" start="80" end="95" type="uint"/>
3841    <field name="SSE ClassID 32x32_0" start="128" end="131" type="uint"/>
3842    <field name="SSE ClassID 32x32_1" start="132" end="135" type="uint"/>
3843    <field name="SSE ClassID 32x32_2" start="136" end="139" type="uint"/>
3844    <field name="SSE ClassID 32x32_3" start="140" end="143" type="uint"/>
3845    <field name="LCU Force Zero Coeff" start="144" end="144" type="bool"/>
3846  </instruction>
3847
3848  <instruction name="HCP_VP9_PIC_STATE" bias="2" length="2" engine="video">
3849    <field name="DWord Length" start="0" end="11" type="uint"/>
3850    <field name="SubOpcode" start="16" end="22" type="uint" default="48"/>
3851    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3852    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3853    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3854    <field name="Frame Width" start="32" end="45" type="uint"/>
3855    <field name="Frame Height" start="48" end="61" type="uint"/>
3856    <field name="Frame Type" start="64" end="64" type="uint" prefix="VP9">
3857      <value name="Key Frame" value="0"/>
3858      <value name="Inter Frame" value="1"/>
3859    </field>
3860    <field name="Adapt Probabilities" start="65" end="65" type="bool"/>
3861    <field name="Intra Only" start="66" end="66" type="bool"/>
3862    <field name="Allow Hi Precision MV" start="67" end="67" type="bool"/>
3863    <field name="Motion Compensation Filter Type" start="68" end="70" type="uint">
3864      <value name="Eight-tap" value="0"/>
3865      <value name="Eight-tap-Smooth" value="1"/>
3866      <value name="Eight-tap-Sharp" value="2"/>
3867      <value name="Bilinear" value="3"/>
3868      <value name="Switchable" value="4"/>
3869    </field>
3870    <field name="Reference Frame Sign Bias" start="71" end="73" type="uint"/>
3871    <field name="Use Prev in Find MV References" start="74" end="74" type="bool"/>
3872    <field name="Hybrid Prediction Mode" start="75" end="75" type="uint"/>
3873    <field name="Selectable TX Mode" start="76" end="76" type="uint"/>
3874    <field name="Last Frame Type" start="77" end="77" type="uint" prefix="VP9">
3875      <value name="Key Frame" value="0"/>
3876      <value name="Non Key Frame" value="1"/>
3877    </field>
3878    <field name="Refresh Frame Context Enable" start="78" end="78" type="bool"/>
3879    <field name="Error Resilient Mode Enable" start="79" end="79" type="bool"/>
3880    <field name="Frame Parallel Decoding Mode Enable" start="80" end="80" type="bool"/>
3881    <field name="Filter Level" start="81" end="86" type="uint"/>
3882    <field name="Sharpness Level" start="87" end="89" type="uint"/>
3883    <field name="Segmentation Enable" start="90" end="90" type="bool"/>
3884    <field name="Segmentation Update Map" start="91" end="91" type="bool"/>
3885    <field name="Segmentation Temporal Update" start="92" end="92" type="bool"/>
3886    <field name="Lossless Mode" start="93" end="93" type="bool"/>
3887    <field name="Segment ID Stream-Out Enable" start="94" end="94" type="bool"/>
3888    <field name="Segment ID Stream-In Enable" start="95" end="95" type="bool"/>
3889    <field name="Log2 Tile Column" start="96" end="99" type="uint">
3890      <value name="1 Tile Column" value="0"/>
3891      <value name="2 Tile Column" value="1"/>
3892      <value name="4 Tile Column" value="2"/>
3893      <value name="8 Tile Column" value="3"/>
3894      <value name="16 Tile Column" value="4"/>
3895      <value name="32 Tile Column" value="5"/>
3896      <value name="64 Tile Column" value="6"/>
3897    </field>
3898    <field name="Log2 Tile Row" start="104" end="105" type="uint">
3899      <value name="1 Tile Row" value="0"/>
3900      <value name="2 Tile Row" value="1"/>
3901      <value name="4 Tile Row" value="2"/>
3902    </field>
3903    <field name="SSE Enable" start="117" end="117" type="bool"/>
3904    <field name="Chroma Sampling Format" start="118" end="119" type="uint">
3905      <value name="Format_420" value="0"/>
3906      <value name="Format_444" value="2"/>
3907    </field>
3908    <field name="Bit Depth" start="120" end="123" type="uint">
3909      <value name="8-bit" value="0"/>
3910      <value name="10-bit" value="2"/>
3911      <value name="12-bit" value="4"/>
3912    </field>
3913    <field name="Profile Level" start="124" end="127" type="uint">
3914      <value name="Profile_0" value="0"/>
3915      <value name="Profile_1" value="1"/>
3916      <value name="Profile_2" value="2"/>
3917      <value name="Profile_3" value="3"/>
3918    </field>
3919    <field name="Vertical Scale Factor for LAST" start="128" end="143" type="u2.14"/>
3920    <field name="Horizontal Scale Factor for LAST" start="144" end="159" type="u2.14"/>
3921    <field name="Vertical Scale Factor for GOLDEN" start="160" end="175" type="u2.14"/>
3922    <field name="Horizontal Scale Factor for GOLDEN" start="176" end="191" type="u2.14"/>
3923    <field name="Vertical Scale Factor for ALTREF" start="192" end="207" type="u2.14"/>
3924    <field name="Horizontal Scale Factor for ALTREF" start="208" end="223" type="u2.14"/>
3925    <field name="Last Frame Width" start="224" end="237" type="uint"/>
3926    <field name="Last Frame Height" start="240" end="253" type="uint"/>
3927    <field name="Golden Frame Width" start="256" end="269" type="uint"/>
3928    <field name="Golden Frame Height" start="272" end="285" type="uint"/>
3929    <field name="Altref Frame Width" start="288" end="301" type="uint"/>
3930    <field name="Altref Frame Height" start="304" end="317" type="uint"/>
3931    <field name="Uncompressed Header Length" start="320" end="327" type="uint"/>
3932    <field name="First Partition Size" start="336" end="351" type="uint"/>
3933    <field name="Motion Comp Scaling Enable" start="353" end="353" type="bool"/>
3934    <field name="Compressed Header BIN count" start="416" end="431" type="uint"/>
3935    <field name="Luma AC Q Index Delta" start="432" end="439" type="uint"/>
3936    <field name="Tail Insertion Enable" start="440" end="440" type="bool"/>
3937    <field name="Header Insertion Enable" start="441" end="441" type="bool"/>
3938    <field name="Chroma AC Q Index Delta" start="448" end="452" type="int"/>
3939    <field name="Chroma DC Q Index Delta" start="456" end="460" type="int"/>
3940    <field name="Luma DC Q Index Delta" start="464" end="468" type="int"/>
3941    <field name="LF Ref Delta 0" start="480" end="486" type="int"/>
3942    <field name="LF Ref Delta 1" start="488" end="494" type="int"/>
3943    <field name="LF Ref Delta 2" start="496" end="502" type="int"/>
3944    <field name="LF Ref Delta 3" start="504" end="510" type="int"/>
3945    <field name="LF Mode Delta 0" start="512" end="518" type="int"/>
3946    <field name="LF Mode Delta 1" start="520" end="526" type="int"/>
3947    <field name="Bit Offset for LF Ref Delta" start="544" end="559" type="uint"/>
3948    <field name="Bit Offset for LF Mode Delta" start="560" end="575" type="uint"/>
3949    <field name="Bit Offset for QIndex" start="576" end="591" type="uint"/>
3950    <field name="Bit Offset for LF Level" start="592" end="607" type="uint"/>
3951    <field name="Non First Pass" start="624" end="624" type="bool"/>
3952    <field name="VDENC PAK_ONLY PASS" start="625" end="625" type="bool"/>
3953    <field name="Frame Bitrate Max Report" start="633" end="633" type="bool"/>
3954    <field name="Frame Bitrate Min Report" start="634" end="634" type="bool"/>
3955    <field name="Frame Bitrate Max" start="640" end="653" type="uint"/>
3956    <field name="Frame Bitrate Max Unit" start="671" end="671" type="uint"/>
3957    <field name="Frame Bitrate Min" start="672" end="685" type="uint"/>
3958    <field name="Frame Bitrate Min Unit" start="703" end="703" type="uint"/>
3959    <field name="Frame Delta QIndex Max" start="704" end="767" type="uint"/>
3960    <field name="Frame Delta QIndex Min" start="768" end="799" type="uint"/>
3961    <field name="Frame Delta LFMax" start="800" end="863" type="uint"/>
3962    <field name="Frame Delta LFMin" start="864" end="895" type="uint"/>
3963    <field name="Frame Delta QIndex LFMax Range" start="896" end="959" type="uint"/>
3964    <field name="Frame Delta QIndex LFMin Range" start="960" end="991" type="uint"/>
3965    <field name="Minimum Frame Size" start="992" end="1007" type="uint"/>
3966    <field name="Minimum Frame Size Units" start="1022" end="1023" type="uint" prefix="VP9_MFSU">
3967      <value name="4Kb" value="0"/>
3968      <value name="16Kb" value="1"/>
3969      <value name="Comaptibility mode" value="2"/>
3970      <value name="16 bytes" value="3"/>
3971    </field>
3972    <field name="Bit Offset for First Partition Size" start="1024" end="1039" type="uint"/>
3973    <field name="Class0_SSE_Threshold0" start="1056" end="1071" type="uint"/>
3974    <field name="Class0_SSE_Threshold1" start="1072" end="1087" type="uint"/>
3975    <field name="SSE Thresholds for Class1-8" start="1088" end="1343" type="uint"/>
3976  </instruction>
3977
3978  <instruction name="HCP_VP9_SEGMENT_STATE" bias="2" length="8" engine="video">
3979    <field name="DWord Length" start="0" end="11" type="uint"/>
3980    <field name="SubOpcode" start="16" end="22" type="uint" default="50"/>
3981    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
3982    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
3983    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
3984    <field name="Segment ID" start="32" end="34" type="uint"/>
3985    <field name="Segment Skipped" start="64" end="64" type="bool"/>
3986    <field name="Segment Reference" start="65" end="66" type="uint"/>
3987    <field name="Segment Reference Enable" start="67" end="67" type="bool"/>
3988    <field name="Filter Level Ref0 Mode 0" start="96" end="101" type="uint"/>
3989    <field name="Filter Level Ref0 Mode 1" start="104" end="109" type="uint"/>
3990    <field name="Filter Level Ref1 Mode 0" start="112" end="117" type="uint"/>
3991    <field name="Filter Level Ref1 Mode 1" start="120" end="125" type="uint"/>
3992    <field name="Filter Level Ref2 Mode 0" start="128" end="133" type="uint"/>
3993    <field name="Filter Level Ref2 Mode 1" start="136" end="141" type="uint"/>
3994    <field name="Filter Level Ref3 Mode 0" start="144" end="149" type="uint"/>
3995    <field name="Filter Level Ref3 Mode 1" start="152" end="157" type="uint"/>
3996    <field name="Luma DC Quant Scale" start="160" end="174" type="uint"/>
3997    <field name="Luma AC Quant Scale" start="176" end="190" type="uint"/>
3998    <field name="Chroma DC Quant Scale" start="192" end="206" type="uint"/>
3999    <field name="Chroma AC Quant Scale" start="208" end="222" type="uint"/>
4000    <field name="Segment QIndex Delta" start="224" end="232" type="int"/>
4001    <field name="Segment LF Level Delta" start="240" end="246" type="int"/>
4002  </instruction>
4003
4004  <instruction name="HCP_WEIGHTOFFSET_STATE" bias="2" length="42" engine="video">
4005    <field name="DWord Length" start="0" end="11" type="uint"/>
4006    <field name="SubOpcode" start="16" end="22" type="uint" default="19"/>
4007    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
4008    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4009    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4010    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
4011    <group count="16" start="64" size="32">
4012      <field name="Luma Offsets" start="0" end="31" type="HCP_WEIGHTOFFSET_LUMA_ENTRY"/>
4013    </group>
4014    <group count="16" start="576" size="32">
4015      <field name="Chroma Offsets" start="0" end="31" type="HCP_WEIGHTOFFSET_CHROMA_ENTRY"/>
4016    </group>
4017    <group count="8" start="1088" size="32">
4018      <field name="Chroma Offsets Ext" start="0" end="31" type="HCP_WEIGHTOFFSET_CHROMA_EXT_ENTRY"/>
4019    </group>
4020  </instruction>
4021
4022  <instruction name="HEVC_VP9_RDOQ_STATE" bias="2" length="62" engine="video">
4023    <field name="DWord Length" start="0" end="11" type="uint" default="60"/>
4024    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4025    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
4026    <field name="Media Command Opcode" start="23" end="26" type="uint" default="7"/>
4027    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4028    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4029    <field name="HTQ Performance Fix 1 Disable" start="62" end="62" type="bool"/>
4030    <field name="HTQ Performance Fix 0 Disable" start="63" end="63" type="bool"/>
4031    <group count="32" start="64" size="32">
4032      <field name="Intra Luma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
4033    </group>
4034    <group count="32" start="1088" size="32">
4035      <field name="Intra Chroma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
4036    </group>
4037    <group count="32" start="2112" size="32">
4038      <field name="Inter Luma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
4039    </group>
4040    <group count="32" start="3136" size="32">
4041      <field name="Inter Chroma Lambda" start="0" end="31" type="HEVC_VP9_RDOQ_LAMBDA_FIELDS"/>
4042    </group>
4043  </instruction>
4044
4045  <instruction name="HUC_CFG_STATE" bias="2" length="2" engine="video">
4046    <field name="DWord Length" start="0" end="11" type="uint"/>
4047    <field name="SubOpcode" start="16" end="22" type="uint" default="3"/>
4048    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4049    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4050    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4051    <field name="P24C" start="32" end="32" type="uint">
4052      <value name="Normal operation" value="0"/>
4053      <value name="Force reset" value="1"/>
4054    </field>
4055  </instruction>
4056
4057  <instruction name="HUC_DMEM_STATE" bias="2" length="6" engine="video">
4058    <field name="DWord Length" start="0" end="11" type="uint"/>
4059    <field name="SubOpcode" start="16" end="22" type="uint" default="2"/>
4060    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4061    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4062    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4063    <field name="HUC Data Source - Address" start="32" end="95" type="address"/>
4064    <field name="HUC Data Source - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
4065    <field name="HUC Data Destination - Address" start="134" end="144" type="address"/>
4066    <field name="HUC Data Length" start="166" end="176" type="uint"/>
4067  </instruction>
4068
4069  <instruction name="HUC_IMEM_STATE" bias="2" length="5" engine="video">
4070    <field name="DWord Length" start="0" end="11" type="uint"/>
4071    <field name="SubOpcode" start="16" end="22" type="uint" default="1"/>
4072    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4073    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4074    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4075    <field name="HUC Firmware Descriptor" start="128" end="135" type="uint"/>
4076  </instruction>
4077
4078  <instruction name="HUC_IND_OBJ_BASE_ADDR_STATE" bias="2" length="11" engine="video">
4079    <field name="DWord Length" start="0" end="11" type="uint"/>
4080    <field name="SubOpcode" start="16" end="22" type="uint" default="5"/>
4081    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4082    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4083    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4084    <field name="HUC Indirect Stream-In Object - Address" start="32" end="95" type="address"/>
4085    <field name="HUC Indirect Stream-In Object - Memory Address Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
4086    <field name="HUC Indirect Stream-In Object - Access Upper Bound" start="128" end="191" type="address"/>
4087    <field name="HUC Indirect Stream-Out Object - Address" start="192" end="255" type="address"/>
4088    <field name="HUC Indirect Stream-Out Object - Memory Address Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
4089    <field name="HUC Indirect Stream-Out Object - Access Upper Bound" start="288" end="351" type="address"/>
4090  </instruction>
4091
4092  <instruction name="HUC_PIPE_MODE_SELECT" bias="2" length="3" engine="video">
4093    <field name="DWord Length" start="0" end="11" type="uint"/>
4094    <field name="SubOpcode" start="16" end="22" type="uint" default="0"/>
4095    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
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="Indirect Stream-Out Enable" start="36" end="36" type="bool"/>
4099    <field name="Media Soft-Reset Counter" start="64" end="95" type="uint"/>
4100  </instruction>
4101
4102  <instruction name="HUC_START" bias="2" length="2" engine="video">
4103    <field name="DWord Length" start="0" end="11" type="uint"/>
4104    <field name="SubOpcode" start="16" end="22" type="uint" default="33"/>
4105    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4106    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4107    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4108    <field name="Last Stream Object" start="32" end="32" type="bool"/>
4109  </instruction>
4110
4111  <instruction name="HUC_STREAM_OBJECT" bias="2" length="5" engine="video">
4112    <field name="DWord Length" start="0" end="11" type="uint"/>
4113    <field name="SubOpcode" start="16" end="22" type="uint" default="32"/>
4114    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4115    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4116    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4117    <field name="Indirect Stream-In Data Length" start="32" end="63" type="uint"/>
4118    <field name="Indirect Stream-In - Address" start="64" end="92" type="address"/>
4119    <field name="HuC Processing" start="95" end="95" type="bool"/>
4120    <field name="Indirect Stream-Out - Address" start="96" end="124" type="address"/>
4121    <field name="Start Code Byte [0]" start="128" end="135" type="uint"/>
4122    <field name="Start Code Byte [1]" start="136" end="143" type="uint"/>
4123    <field name="Start Code Byte [2]" start="144" end="151" type="uint"/>
4124    <field name="Start Code Search Engine" start="152" end="152" type="bool"/>
4125    <field name="Emulation Prevention Byte Removal" start="153" end="153" type="bool"/>
4126    <field name="Stream-Out" start="154" end="154" type="bool"/>
4127    <field name="DRM Length Mode" start="155" end="156" type="uint">
4128      <value name="Start Code Mode" value="0"/>
4129      <value name="Length Mode" value="1"/>
4130    </field>
4131    <field name="HUC Bitstream Enable" start="157" end="157" type="bool"/>
4132  </instruction>
4133
4134  <instruction name="HUC_VIRTUAL_ADDR_STATE" bias="2" length="49" engine="video">
4135    <field name="DWord Length" start="0" end="11" type="uint"/>
4136    <field name="SubOpcode" start="16" end="22" type="uint" default="4"/>
4137    <field name="Media Command Opcode" start="23" end="26" type="uint" default="11"/>
4138    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4139    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4140    <group count="16" start="32" size="96">
4141      <field name="HUC Virtual Address Region" start="0" end="95" type="HUC_VIRTUAL_ADDR_REGION"/>
4142    </group>
4143  </instruction>
4144
4145  <instruction name="MEDIA_CURBE_LOAD" bias="2" length="4" engine="render">
4146    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
4147    <field name="SubOpcode" start="16" end="23" type="uint" default="1"/>
4148    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4149    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4150    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4151    <field name="CURBE Total Data Length" start="64" end="80" type="uint"/>
4152    <field name="CURBE Data Start Address" start="96" end="127" type="uint"/>
4153  </instruction>
4154
4155  <instruction name="MEDIA_INTERFACE_DESCRIPTOR_LOAD" bias="2" length="4" engine="render">
4156    <field name="DWord Length" start="0" end="15" type="uint" default="2"/>
4157    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
4158    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4159    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4160    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4161    <field name="Interface Descriptor Total Length" start="64" end="80" type="uint"/>
4162    <field name="Interface Descriptor Data Start Address" start="96" end="127" type="offset"/>
4163  </instruction>
4164
4165  <instruction name="MEDIA_OBJECT" bias="2" engine="render">
4166    <field name="DWord Length" start="0" end="14" type="uint" default="4"/>
4167    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="0"/>
4168    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4169    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
4170    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4171    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
4172    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
4173    <field name="SubSlice Destination Select" start="81" end="82" type="uint">
4174      <value name="Subslice 3" value="3"/>
4175      <value name="SubSlice 2" value="2"/>
4176      <value name="SubSlice 1" value="1"/>
4177      <value name="SubSlice 0" value="0"/>
4178    </field>
4179    <field name="Slice Destination Select" start="83" end="84" type="uint">
4180      <value name="Slice 0" value="0"/>
4181      <value name="Slice 1" value="1"/>
4182      <value name="Slice 2" value="2"/>
4183    </field>
4184    <field name="Force Destination" start="86" end="86" type="uint"/>
4185    <field name="Thread Synchronization" start="88" end="88" type="uint">
4186      <value name="No thread synchronization" value="0"/>
4187      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
4188    </field>
4189    <field name="Slice Destination Select MSBs" start="89" end="90" type="uint"/>
4190    <field name="Children Present" start="95" end="95" type="bool"/>
4191    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
4192    <field name="X Position" start="128" end="136" type="uint"/>
4193    <field name="Y Position" start="144" end="152" type="uint"/>
4194    <field name="Block Color" start="176" end="183" type="uint"/>
4195    <group count="0" start="192" size="32">
4196      <field name="Inline Data" start="0" end="31" type="uint"/>
4197    </group>
4198  </instruction>
4199
4200  <instruction name="MEDIA_OBJECT_GRPID" bias="2" engine="render">
4201    <field name="DWord Length" start="0" end="15" type="uint" default="5"/>
4202    <field name="Media Command Sub-Opcode" start="16" end="23" type="uint" default="6"/>
4203    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4204    <field name="Media Command Pipeline" start="27" end="28" type="uint" default="2"/>
4205    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4206    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
4207    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
4208    <field name="End of Thread Group" start="87" end="87" type="uint"/>
4209    <field name="Indirect Data Start Address" start="96" end="127" type="address"/>
4210    <field name="X Position" start="128" end="136" type="uint"/>
4211    <field name="Y Position" start="144" end="152" type="uint"/>
4212    <field name="Block Color" start="176" end="183" type="uint"/>
4213    <field name="GroupID" start="192" end="223" type="uint"/>
4214    <group count="0" start="224" size="32">
4215      <field name="Inline Data" start="0" end="31" type="uint"/>
4216    </group>
4217  </instruction>
4218
4219  <instruction name="MEDIA_OBJECT_PRT" bias="2" length="16" engine="render">
4220    <field name="DWord Length" start="0" end="14" type="uint" default="14"/>
4221    <field name="SubOpcode" start="16" end="23" type="uint" default="2"/>
4222    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4223    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4224    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4225    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
4226    <field name="PRT_FenceType" start="86" end="86" type="uint">
4227      <value name="Root thread queue" value="0"/>
4228      <value name="VFE state flush" value="1"/>
4229    </field>
4230    <field name="PRT_Fence Needed" start="87" end="87" type="bool"/>
4231    <field name="Children Present" start="95" end="95" type="bool"/>
4232    <group count="12" start="128" size="32">
4233      <field name="Inline Data" start="0" end="31" type="uint"/>
4234    </group>
4235  </instruction>
4236
4237  <instruction name="MEDIA_OBJECT_WALKER" bias="2" engine="render">
4238    <field name="DWord Length" start="0" end="14" type="uint" default="15"/>
4239    <field name="SubOpcode" start="16" end="23" type="uint" default="3"/>
4240    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4241    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4242    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4243    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
4244    <field name="Indirect Data Length" start="64" end="80" type="uint"/>
4245    <field name="Masked Dispatch" start="86" end="87" type="uint"/>
4246    <field name="Thread Synchronization" start="88" end="88" type="uint">
4247      <value name="No thread synchronization" value="0"/>
4248      <value name="Thread dispatch is synchronized by the 'spawn root thread' message" value="1"/>
4249    </field>
4250    <field name="Indirect Data Start Address" start="96" end="127" type="uint"/>
4251    <field name="Group ID Loop Select" start="168" end="191" type="uint">
4252      <value name="No_Groups" value="0"/>
4253      <value name="Color_Groups" value="1"/>
4254      <value name="InnerLocal_Groups" value="2"/>
4255      <value name="MidLocal_Groups" value="3"/>
4256      <value name="OuterLocal_Groups" value="4"/>
4257      <value name="InnerGlobal_Groups" value="5"/>
4258    </field>
4259    <field name="Mid-Loop Unit X" start="200" end="201" type="int"/>
4260    <field name="Local Mid-Loop Unit Y" start="204" end="205" type="int"/>
4261    <field name="Middle Loop Extra Steps" start="208" end="212" type="uint"/>
4262    <field name="Color Count Minus One" start="216" end="223" type="uint"/>
4263    <field name="Local Loop Exec Count" start="224" end="235" type="uint"/>
4264    <field name="Global Loop Exec Count" start="240" end="251" type="uint"/>
4265    <field name="Block Resolution X" start="256" end="266" type="uint"/>
4266    <field name="Block Resolution Y" start="272" end="282" type="uint"/>
4267    <field name="Local Start X" start="288" end="298" type="uint"/>
4268    <field name="Local Start Y" start="304" end="314" type="uint"/>
4269    <field name="Local Outer Loop Stride X" start="352" end="363" type="int"/>
4270    <field name="Local Outer Loop Stride Y" start="368" end="379" type="int"/>
4271    <field name="Local Inner Loop Unit X" start="384" end="395" type="int"/>
4272    <field name="Local Inner Loop Unit Y" start="400" end="411" type="int"/>
4273    <field name="Global Resolution X" start="416" end="426" type="uint"/>
4274    <field name="Global Resolution Y" start="432" end="442" type="uint"/>
4275    <field name="Global Start X" start="448" end="459" type="int"/>
4276    <field name="Global Start Y" start="464" end="475" type="int"/>
4277    <field name="Global Outer Loop Stride X" start="480" end="491" type="int"/>
4278    <field name="Global Outer Loop Stride Y" start="496" end="507" type="int"/>
4279    <field name="Global Inner Loop Unit X" start="512" end="523" type="int"/>
4280    <field name="Global Inner Loop Unit Y" start="528" end="539" type="int"/>
4281    <group count="0" start="544" size="32">
4282      <field name="Inline Data" start="0" end="31" type="uint"/>
4283    </group>
4284  </instruction>
4285
4286  <instruction name="MEDIA_STATE_FLUSH" bias="2" length="2" engine="render">
4287    <field name="DWord Length" start="0" end="15" type="uint" default="0"/>
4288    <field name="SubOpcode" start="16" end="23" type="uint" default="4"/>
4289    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4290    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4291    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4292    <field name="Interface Descriptor Offset" start="32" end="37" type="uint"/>
4293    <field name="Flush to GO" start="39" end="39" type="bool"/>
4294  </instruction>
4295
4296  <instruction name="MEDIA_VFE_STATE" bias="2" length="9" engine="render">
4297    <field name="DWord Length" start="0" end="15" type="uint" default="7"/>
4298    <field name="SubOpcode" start="16" end="23" type="uint" default="0"/>
4299    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4300    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4301    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4302    <field name="Per Thread Scratch Space" start="32" end="35" type="uint"/>
4303    <field name="Stack Size" start="36" end="39" type="uint"/>
4304    <field name="Scratch Space Base Pointer" start="42" end="79" type="address"/>
4305    <field name="Dispatch Load Balance" start="98" end="98" type="uint">
4306      <value name="Color LSB" value="1"/>
4307      <value name="Least Loaded" value="0"/>
4308    </field>
4309    <field name="Number of URB Entries" start="104" end="111" type="uint"/>
4310    <field name="Maximum Number of Threads" start="112" end="127" type="uint"/>
4311    <field name="Maximum Number of Dual-Subslices" start="128" end="135" type="uint"/>
4312    <field name="CURBE Allocation Size" start="160" end="175" type="uint"/>
4313    <field name="URB Entry Allocation Size" start="176" end="191" type="uint"/>
4314  </instruction>
4315
4316  <instruction name="MFC_AVC_PAK_OBJECT" bias="2" length="12" engine="video">
4317    <field name="DWord Length" start="0" end="11" type="uint" default="10"/>
4318    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
4319    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4320    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4321    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4322    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4323    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
4324    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
4325    <group count="8" start="96" size="32">
4326      <field name="Inline Data" start="0" end="31" type="uint"/>
4327    </group>
4328    <group count="12" start="384" size="32">
4329      <field name="VDEnc Mode Inline Data" start="0" end="31" type="uint"/>
4330    </group>
4331  </instruction>
4332
4333  <instruction name="MFC_JPEG_HUFF_TABLE_STATE" bias="2" length="176" engine="video">
4334    <field name="DWord Length" start="0" end="11" type="uint" default="174"/>
4335    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
4336    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4337    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
4338    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4339    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4340    <field name="Huff Table ID" start="32" end="32" type="uint"/>
4341    <field name="DC_TABLE" start="64" end="447" type="uint"/>
4342    <field name="AC_TABLE" start="448" end="5631" type="uint"/>
4343  </instruction>
4344
4345  <instruction name="MFC_JPEG_SCAN_OBJECT" bias="2" length="3" engine="video">
4346    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
4347    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
4348    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4349    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
4350    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4351    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4352    <field name="MCU Count" start="32" end="57" type="uint"/>
4353    <field name="Restart Interval" start="64" end="79" type="uint"/>
4354    <field name="Last Scan" start="80" end="80" type="bool"/>
4355    <field name="Head Present" start="81" end="81" type="bool"/>
4356    <field name="Huffman DC Table" start="82" end="84" type="uint"/>
4357    <field name="Huffman AC Table" start="86" end="88" type="uint"/>
4358  </instruction>
4359
4360  <instruction name="MFC_MPEG2_PAK_OBJECT" bias="2" length="9" engine="video">
4361    <field name="DWord Length" start="0" end="11" type="uint" default="7"/>
4362    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
4363    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4364    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
4365    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4366    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4367    <group count="8" start="32" size="32">
4368      <field name="Inline Data" start="0" end="31" type="uint"/>
4369    </group>
4370  </instruction>
4371
4372  <instruction name="MFC_MPEG2_SLICEGROUP_STATE" bias="2" length="8" engine="video">
4373    <field name="DWord Length" start="0" end="11" type="uint" default="6"/>
4374    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
4375    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
4376    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
4377    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4378    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4379    <field name="Stream ID" start="32" end="33" type="uint"/>
4380    <field name="Slice ID" start="36" end="39" type="uint"/>
4381    <field name="Intra Slice Flag" start="44" end="44" type="bool"/>
4382    <field name="Intra Slice" start="45" end="45" type="bool"/>
4383    <field name="First Slice Header Disable" start="46" end="46" type="bool"/>
4384    <field name="Tail Insertion Present" start="47" end="47" type="bool"/>
4385    <field name="Slice Data Insertion Present" start="48" end="48" type="bool"/>
4386    <field name="Header Insertion Present" start="49" end="49" type="bool"/>
4387    <field name="Compressed BitStream Output Disable" start="50" end="50" type="bool"/>
4388    <field name="Last Slice" start="51" end="51" type="bool"/>
4389    <field name="MB Type Skip Conversion Disable" start="52" end="52" type="bool"/>
4390    <field name="Rate Control Panic Type" start="54" end="54" type="uint">
4391      <value name="QP Panic" value="0"/>
4392      <value name="CBP Panic" value="1"/>
4393    </field>
4394    <field name="Rate Control Panic Enable" start="55" end="55" type="bool"/>
4395    <field name="Rate Control Stable Tolerance" start="56" end="59" type="uint"/>
4396    <field name="Rate Control Triggle Mode" start="60" end="61" type="uint">
4397      <value name="Always Rate Control" value="0"/>
4398      <value name="Gentle Rate Control" value="1"/>
4399      <value name="Loose Rate Control" value="2"/>
4400    </field>
4401    <field name="Reset Rate Control Counter" start="62" end="62" type="bool"/>
4402    <field name="Rate Control Counter Enable" start="63" end="63" type="bool"/>
4403    <field name="First MB X Count" start="64" end="71" type="uint"/>
4404    <field name="First MB Y Count" start="72" end="79" type="uint"/>
4405    <field name="Next Slice Group MB X Count" start="80" end="87" type="uint"/>
4406    <field name="Next Slice Group MB Y Count" start="88" end="95" type="uint"/>
4407    <field name="Slice Group QP" start="96" end="101" type="uint"/>
4408    <field name="Slice Group Skip" start="104" end="104" type="bool"/>
4409    <field name="Indirect PAK-BSE Data Start Address" start="128" end="156" type="offset"/>
4410    <field name="Grow Init" start="160" end="163" type="uint"/>
4411    <field name="Grow Resistance" start="164" end="167" type="uint"/>
4412    <field name="Shrink Init" start="168" end="171" type="uint"/>
4413    <field name="Shrink Resistance" start="172" end="175" type="uint"/>
4414    <field name="QP Max Positive Modifier Magnitude" start="176" end="183" type="uint"/>
4415    <field name="QP Max Negative Modifier Magnitude" start="184" end="191" type="uint"/>
4416    <field name="Correct 1" start="192" end="195" type="uint"/>
4417    <field name="Correct 2" start="196" end="199" type="uint"/>
4418    <field name="Correct 3" start="200" end="203" type="uint"/>
4419    <field name="Correct 4" start="204" end="207" type="uint"/>
4420    <field name="Correct 5" start="208" end="211" type="uint"/>
4421    <field name="Correct 6" start="212" end="215" type="uint"/>
4422    <field name="CV0" start="224" end="227" type="uint"/>
4423    <field name="CV1" start="228" end="231" type="uint"/>
4424    <field name="CV2" start="232" end="235" type="uint"/>
4425    <field name="CV3" start="236" end="239" type="uint"/>
4426    <field name="CV4" start="240" end="243" type="uint"/>
4427    <field name="CV5" start="244" end="247" type="uint"/>
4428    <field name="CV6" start="248" end="251" type="uint"/>
4429    <field name="CV7" start="252" end="255" type="uint"/>
4430  </instruction>
4431
4432  <instruction name="MFD_AVC_BSD_OBJECT" bias="2" length="7" engine="video">
4433    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
4434    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4435    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4436    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4437    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4438    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4439    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
4440    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
4441    <field name="Inline Data" start="96" end="191" type="INLINE_DATA_DESCRIPTION_FOR_MFD_AVC_BSD_OBJECT"/>
4442  </instruction>
4443
4444  <instruction name="MFD_AVC_DPB_STATE" bias="2" length="27" engine="video">
4445    <field name="DWord Length" start="0" end="11" type="uint" default="9"/>
4446    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
4447    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4448    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4449    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4450    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4451    <group count="16" start="32" size="1">
4452      <field name="Non-Existing Frame" start="0" end="0" type="uint">
4453        <value name="INVALID" value="1"/>
4454        <value name="VALID" value="0"/>
4455      </field>
4456    </group>
4457    <group count="16" start="48" size="1">
4458      <field name="Long Term Frame" start="0" end="0" type="uint"/>
4459    </group>
4460    <group count="16" start="64" size="2">
4461      <field name="Used for Reference" start="0" end="1" type="uint">
4462        <value name="NOT_REFERENCE" value="0"/>
4463        <value name="TOP_FIELD" value="1"/>
4464        <value name="BOTTOM_FIELD" value="2"/>
4465        <value name="FRAME" value="3"/>
4466      </field>
4467    </group>
4468    <group count="16" start="96" size="16">
4469      <field name="LTST Frame Number List" start="0" end="15" type="uint" prefix="LTST">
4470        <value name="Long Term Frame" value="1"/>
4471        <value name="Short Term Frame" value="0"/>
4472      </field>
4473    </group>
4474    <group count="16" start="352" size="16">
4475      <field name="View ID" start="0" end="15" type="uint"/>
4476    </group>
4477    <group count="16" start="608" size="8">
4478      <field name="L0 View Order" start="0" end="7" type="uint"/>
4479    </group>
4480    <group count="16" start="736" size="8">
4481      <field name="L1 View Order" start="0" end="7" type="uint"/>
4482    </group>
4483  </instruction>
4484
4485  <instruction name="MFD_AVC_PICID_STATE" bias="2" length="10" engine="video">
4486    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4487    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
4488    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4489    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4490    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4491    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4492    <field name="PictureID Remapping Disable" start="32" end="32" type="uint">
4493      <value name="Use 16 bits Picture ID" value="0"/>
4494      <value name="Use 4 bits FrameStoreID" value="1"/>
4495    </field>
4496    <group count="16" start="64" size="16">
4497      <field name="Picture ID" start="0" end="15" type="uint"/>
4498    </group>
4499  </instruction>
4500
4501  <instruction name="MFD_AVC_SLICEADDR" bias="2" length="4" engine="video">
4502    <field name="DWord Length" start="0" end="11" type="uint" default="2"/>
4503    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
4504    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4505    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4506    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4507    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4508    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
4509    <field name="Indirect BSD Data Start Address" start="64" end="92" type="address"/>
4510    <field name="Driver Provided NAL Type Value" start="96" end="103" type="uint"/>
4511    <field name="AVC NAL Type First Byte Override" start="104" end="104" type="uint">
4512      <value name="Use Bitstream Decoded NAL Type" value="0"/>
4513      <value name="Use Driver Programmed NAL Type" value="1"/>
4514    </field>
4515  </instruction>
4516
4517  <instruction name="MFD_IT_OBJECT" bias="2" engine="video">
4518    <field name="DWord Length" start="0" end="11" type="uint" default="6"/>
4519    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
4520    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4521    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
4522    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4523    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4524    <field name="Indirect IT-MV Data Length" start="32" end="41" type="uint"/>
4525    <field name="Indirect IT-MV Data Start Address Offset" start="64" end="92" type="offset"/>
4526    <field name="Indirect IT-COEFF Data Length" start="96" end="107" type="uint"/>
4527    <field name="Indirect IT-COEFF Data Start Address Offset" start="128" end="156" type="offset"/>
4528    <field name="Indirect IT-DBLK Control Data Length" start="160" end="165" type="uint"/>
4529    <field name="Indirect IT-DBLK Control Data Start Address Offset" start="192" end="220" type="offset"/>
4530    <group count="0" start="224" size="32">
4531      <field name="Inline Data" start="0" end="31" type="uint"/>
4532    </group>
4533  </instruction>
4534
4535  <instruction name="MFD_JPEG_BSD_OBJECT" bias="2" length="6" engine="video">
4536    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
4537    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4538    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4539    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
4540    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4541    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4542    <field name="Indirect Data Length" start="32" end="63" type="uint"/>
4543    <field name="Indirect Data Start Address" start="64" end="92" type="offset"/>
4544    <field name="Scan Vertical Position" start="96" end="108" type="uint"/>
4545    <field name="Scan Horizontal Position" start="112" end="124" type="uint"/>
4546    <field name="MCU Count" start="128" end="153" type="uint"/>
4547    <field name="Scan Components" start="155" end="157" type="uint"/>
4548    <field name="Interleaved" start="158" end="158" type="bool"/>
4549    <field name="Restart Interval" start="160" end="175" type="uint"/>
4550  </instruction>
4551
4552  <instruction name="MFD_MPEG2_BSD_OBJECT" bias="2" length="5" engine="video">
4553    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4554    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4555    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4556    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
4557    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4558    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4559    <field name="Indirect BSD Data Length" start="32" end="63" type="uint"/>
4560    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
4561    <field name="Inline Data" start="96" end="159" type="MFD_MPEG2_BSD_OBJECT_INLINE_DATA_DESCRIPTION"/>
4562  </instruction>
4563
4564  <instruction name="MFD_VC1_BSD_OBJECT" bias="2" length="5" engine="video">
4565    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4566    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4567    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4568    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
4569    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4570    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4571    <field name="Indirect BSD Data Length" start="32" end="55" type="uint"/>
4572    <field name="Indirect BSD Data Start Address" start="64" end="92" type="offset"/>
4573    <field name="Next Slice Vertical Position" start="96" end="104" type="uint"/>
4574    <field name="Slice Start Vertical Position" start="112" end="119" type="uint"/>
4575    <field name="First MB Bit Offset" start="128" end="130" type="uint"/>
4576    <field name="Emulation Prevention Byte Present" start="132" end="132" type="uint"/>
4577    <field name="First MB Byte Offset of Slice Data or Slice Header" start="144" end="159" type="uint"/>
4578  </instruction>
4579
4580  <instruction name="MFD_VC1_LONG_PIC_STATE" bias="2" length="6" engine="video">
4581    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
4582    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
4583    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4584    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
4585    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4586    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4587    <field name="Picture Width In MBs" start="32" end="39" type="uint"/>
4588    <field name="Picture Height In MBs" start="48" end="55" type="uint"/>
4589    <field name="VC1 Profile" start="64" end="64" type="uint">
4590      <value name="Simple/Main Profile" value="0"/>
4591      <value name="Advanced Profile" value="1"/>
4592    </field>
4593    <field name="Second Field" start="67" end="67" type="bool"/>
4594    <field name="Overlap Smoothing Enable" start="68" end="68" type="bool"/>
4595    <field name="Loop Filter Enable" start="69" end="69" type="bool"/>
4596    <field name="Range Reduction Enable" start="70" end="70" type="bool"/>
4597    <field name="Range Reduction Scale" start="71" end="71" type="uint"/>
4598    <field name="MV Mode" start="72" end="75" type="uint"/>
4599    <field name="Sync Marker" start="76" end="76" type="bool"/>
4600    <field name="Interpolation Rounder Control" start="77" end="77" type="bool"/>
4601    <field name="Implicit Quantizer" start="78" end="78" type="bool"/>
4602    <field name="DMV Surface Valid" start="79" end="79" type="bool"/>
4603    <field name="Bitplane Buffer Pitch" start="88" end="95" type="uint"/>
4604    <field name="B Scale Factor" start="96" end="103" type="uint"/>
4605    <field name="PQ Value" start="104" end="108" type="uint"/>
4606    <field name="Alternative PQ Value" start="112" end="116" type="uint"/>
4607    <field name="Frame Coding Mode" start="120" end="121" type="uint">
4608      <value name="Progressive Frame Picture" value="0"/>
4609      <value name="Interlaced Frame Picture" value="1"/>
4610      <value name="Field Picture with Top Field First" value="2"/>
4611      <value name="Field Picture with Bottom Field First" value="3"/>
4612    </field>
4613    <field name="Picure Type" start="122" end="124" type="uint"/>
4614    <field name="CONDOVER" start="125" end="126" type="uint"/>
4615    <field name="PQ Uniform" start="128" end="128" type="bool"/>
4616    <field name="Half QP" start="129" end="129" type="bool"/>
4617    <field name="Alternative PQ Configuration" start="130" end="131" type="uint"/>
4618    <field name="Alternative PQ Edge Mask" start="132" end="135" type="uint"/>
4619    <field name="Extended MV Range" start="136" end="137" type="uint"/>
4620    <field name="Extended DMV Range" start="138" end="139" type="uint"/>
4621    <field name="Forward Reference Distance" start="144" end="147" type="uint"/>
4622    <field name="Backward Reference Distance" start="148" end="151" type="uint"/>
4623    <field name="Number of References" start="152" end="152" type="uint">
4624      <value name="One field referenced" value="0"/>
4625      <value name="Two fields referenced" value="1"/>
4626    </field>
4627    <field name="Reference Field Picture Polarity" start="153" end="153" type="uint">
4628      <value name="Top (even) Field" value="0"/>
4629      <value name="Bottom (odd) Field" value="1"/>
4630    </field>
4631    <field name="Fast UV Motion Compensation" start="154" end="154" type="uint">
4632      <value name="No Rounding" value="0"/>
4633      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
4634    </field>
4635    <field name="Four MV Switch" start="155" end="155" type="uint">
4636      <value name="Only 1-MV" value="0"/>
4637      <value name="1, 2, or 4 MVs" value="1"/>
4638    </field>
4639    <field name="Unified MV Mode" start="156" end="157" type="uint">
4640      <value name="1-MV half-pel bilinear" value="3"/>
4641      <value name="1-MV" value="1"/>
4642      <value name="1-MV half-pel" value="2"/>
4643      <value name="Mixed MV" value="0"/>
4644    </field>
4645    <field name="Coded Block Pattern Table" start="160" end="162" type="uint"/>
4646    <field name="Intra Transform DC Table" start="163" end="163" type="uint"/>
4647    <field name="Picture-level Transform Chroma AC Coding Set Index" start="164" end="165" type="uint"/>
4648    <field name="Picture-level Transform Luma AC Coding Set Index" start="166" end="167" type="uint"/>
4649    <field name="MB Mode Table" start="168" end="170" type="uint"/>
4650    <field name="MB Transform Type" start="171" end="171" type="bool"/>
4651    <field name="Picture-level Transform Type" start="172" end="173" type="uint">
4652      <value name="8x8 Transform" value="0"/>
4653      <value name="8x4 Transform" value="1"/>
4654      <value name="4x8 Transform" value="2"/>
4655      <value name="4x4 Transform" value="3"/>
4656    </field>
4657    <field name="2-MV Block Pattern Table" start="176" end="177" type="uint"/>
4658    <field name="4-MV Block Pattern Table" start="178" end="179" type="uint"/>
4659    <field name="MV Table" start="180" end="182" type="uint"/>
4660    <field name="FIELDTX Raw" start="184" end="184" type="bool"/>
4661    <field name="ACPRED Raw" start="185" end="185" type="bool"/>
4662    <field name="OVERFLAGS Raw" start="186" end="186" type="bool"/>
4663    <field name="DIRECTMB Raw" start="187" end="187" type="bool"/>
4664    <field name="SKIPMB Raw" start="188" end="188" type="bool"/>
4665    <field name="MVTYPEMB Raw" start="189" end="189" type="bool"/>
4666    <field name="FORWARDMB Raw" start="190" end="190" type="bool"/>
4667    <field name="Bitplane Buffer Present" start="191" end="191" type="bool"/>
4668  </instruction>
4669
4670  <instruction name="MFD_VC1_SHORT_PIC_STATE" bias="2" length="5" engine="video">
4671    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
4672    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4673    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4674    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
4675    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4676    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4677    <field name="Picture Width" start="32" end="39" type="uint"/>
4678    <field name="Picture Height" start="48" end="55" type="uint"/>
4679    <field name="Picture Structure" start="64" end="65" type="uint"/>
4680    <field name="Second Field" start="67" end="67" type="bool"/>
4681    <field name="Intra Picture" start="68" end="68" type="bool"/>
4682    <field name="Backward Prediction Present" start="69" end="69" type="bool"/>
4683    <field name="VC1 Profile" start="75" end="75" type="uint">
4684      <value name="Simple/Main Profile" value="0"/>
4685      <value name="Advanced Profile" value="1"/>
4686    </field>
4687    <field name="DMV Surface Valid" start="79" end="79" type="bool"/>
4688    <field name="MV Mode" start="80" end="83" type="uint"/>
4689    <field name="Interpolation Rounder Control" start="87" end="87" type="bool"/>
4690    <field name="Bitplane Buffer Pitch" start="88" end="95" type="uint"/>
4691    <field name="variable-sized transform coding" start="96" end="96" type="bool"/>
4692    <field name="DQUANT" start="97" end="98" type="uint"/>
4693    <field name="EXTENDED_MV Present" start="99" end="99" type="bool"/>
4694    <field name="Fast UV Motion Compensation" start="100" end="100" type="uint">
4695      <value name="No Rounding" value="0"/>
4696      <value name="Quarter-Pel offsets to Half/Full pel positions" value="1"/>
4697    </field>
4698    <field name="Loop Filter Enable" start="101" end="101" type="bool"/>
4699    <field name="REFDIST_FLAG" start="102" end="102" type="bool"/>
4700    <field name="PANSCAN Present" start="103" end="103" type="bool"/>
4701    <field name="MAXBFRAMES" start="104" end="106" type="uint"/>
4702    <field name="RANGERED Present" start="107" end="107" type="bool"/>
4703    <field name="SYNCMARKER Present" start="108" end="108" type="bool"/>
4704    <field name="MULTIRES Present" start="109" end="109" type="bool"/>
4705    <field name="QUANTIZER" start="110" end="111" type="uint"/>
4706    <field name="P-Pic Ref Distance" start="112" end="116" type="uint"/>
4707    <field name="Progressive Pic Type" start="118" end="119" type="uint"/>
4708    <field name="Range Reduction Enable" start="124" end="124" type="uint"/>
4709    <field name="Range Reduction Scale" start="125" end="125" type="uint"/>
4710    <field name="Overlap Smoothing Enable" start="126" end="126" type="bool"/>
4711    <field name="EXTENDED_DMV Present" start="128" end="128" type="bool"/>
4712    <field name="PSF" start="129" end="129" type="bool"/>
4713    <field name="REFPIC" start="130" end="130" type="bool"/>
4714    <field name="FINTERFLAG" start="131" end="131" type="bool"/>
4715    <field name="TFCNTRFLAG" start="132" end="132" type="bool"/>
4716    <field name="INTERLACE" start="133" end="133" type="bool"/>
4717    <field name="PULLDOWN" start="134" end="134" type="bool"/>
4718    <field name="POSTPROC" start="135" end="135" type="bool"/>
4719    <field name="4-MV Allowed" start="136" end="136" type="bool"/>
4720    <field name="BFraction Enumeration" start="152" end="156" type="uint"/>
4721  </instruction>
4722
4723  <instruction name="MFD_VP8_BSD_OBJECT" bias="2" length="22" engine="video">
4724    <field name="DWord Length" start="0" end="11" type="uint" default="20"/>
4725    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
4726    <field name="SubOpcode A" start="21" end="23" type="uint" default="1"/>
4727    <field name="Media Command OpCode" start="24" end="26" type="uint" default="4"/>
4728    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4729    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4730    <field name="Partition0 First MB Bit Offset from Frame Header" start="32" end="34" type="uint"/>
4731    <field name="Coded Num of Coeff Token Partitions" start="36" end="37" type="uint"/>
4732    <field name="Partition0 CPBAC Entropy Range" start="40" end="47" type="uint"/>
4733    <field name="Partition0 CPBAC Entropy Count" start="48" end="52" type="uint"/>
4734    <field name="Partition0 CPBAC Entropy Value" start="88" end="95" type="uint"/>
4735    <field name="Indirect Partition0 Data Length" start="96" end="119" type="uint"/>
4736    <field name="Indirect Partition0 Data Start Offset" start="128" end="159" type="uint"/>
4737    <field name="Indirect Partition1 Data Length" start="160" end="183" type="uint"/>
4738    <field name="Indirect Partition1 Data Start Offset" start="192" end="223" type="uint"/>
4739    <field name="Indirect Partition2 Data Length" start="224" end="247" type="uint"/>
4740    <field name="Indirect Partition2 Data Start Offset" start="256" end="287" type="uint"/>
4741    <field name="Indirect Partition3 Data Length" start="288" end="311" type="uint"/>
4742    <field name="Indirect Partition3 Data Start Offset" start="320" end="351" type="uint"/>
4743    <field name="Indirect Partition4 Data Length" start="352" end="375" type="uint"/>
4744    <field name="Indirect Partition4 Data Start Offset" start="384" end="415" type="uint"/>
4745    <field name="Indirect Partition5 Data Length" start="416" end="439" type="uint"/>
4746    <field name="Indirect Partition5 Data Start Offset" start="448" end="479" type="uint"/>
4747    <field name="Indirect Partition6 Data Length" start="480" end="503" type="uint"/>
4748    <field name="Indirect Partition6 Data Start Offset" start="512" end="543" type="uint"/>
4749    <field name="Indirect Partition7 Data Length" start="544" end="567" type="uint"/>
4750    <field name="Indirect Partition7 Data Start Offset" start="576" end="607" type="uint"/>
4751    <field name="Indirect Partition8 Data Length" start="608" end="631" type="uint"/>
4752    <field name="Indirect Partition8 Data Start Offset" start="640" end="671" type="uint"/>
4753    <field name="MB Header Error Handling" start="680" end="680" type="uint"/>
4754    <field name="Entropy Error Handling" start="682" end="682" type="uint"/>
4755    <field name="MPR Error (MV out of range) Handling" start="684" end="684" type="uint"/>
4756    <field name="BSD Premature Complete Error Handling" start="686" end="686" type="uint"/>
4757    <field name="Concealment Picture ID" start="688" end="689" type="uint"/>
4758    <field name="Concealment Method" start="703" end="703" type="uint">
4759      <value name="Intra 16x16 Prediction" value="0"/>
4760      <value name="Inter P Copy" value="1"/>
4761    </field>
4762  </instruction>
4763
4764  <instruction name="MFX_AVC_DIRECTMODE_STATE" bias="2" length="71" engine="video">
4765    <field name="DWord Length" start="0" end="11" type="uint" default="69"/>
4766    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
4767    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4768    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4769    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4770    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4771    <group count="16" start="32" size="64">
4772      <field name="Direct MV Buffer - Address" start="0" end="63" type="address"/>
4773    </group>
4774    <field name="Direct MV Buffer - Attributes" start="1056" end="1087" type="MEMORYADDRESSATTRIBUTES"/>
4775    <field name="Direct MV Buffer (Write) - Address" start="1088" end="1151" type="address"/>
4776    <field name="Direct MV Buffer (Write) - Attributes" start="1152" end="1183" type="MEMORYADDRESSATTRIBUTES"/>
4777    <group count="34" start="1184" size="32">
4778      <field name="POC List" start="0" end="31" type="uint"/>
4779    </group>
4780  </instruction>
4781
4782  <instruction name="MFX_AVC_IMG_STATE" bias="2" length="14" engine="video">
4783    <field name="DWord Length" start="0" end="11" type="uint" default="12"/>
4784    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
4785    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4786    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4787    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4788    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4789    <field name="Frame Size" start="32" end="47" type="uint"/>
4790    <field name="Frame Width" start="64" end="71" type="uint"/>
4791    <field name="Frame Height" start="80" end="87" type="uint"/>
4792    <field name="Image Structure" start="104" end="105" type="uint">
4793      <value name="Frame Picture" value="0"/>
4794      <value name="Top Field Picture" value="1"/>
4795      <value name="Bottom Field Picture" value="3"/>
4796      <value name="Invalid, not allowed." value="2"/>
4797    </field>
4798    <field name="Weighted BiPrediction IDC" start="106" end="107" type="uint">
4799      <value name="DEFAULT" value="0"/>
4800      <value name="EXPLICIT" value="1"/>
4801      <value name="IMPLICIT" value="2"/>
4802    </field>
4803    <field name="Weighted Prediction Enable" start="108" end="108" type="bool"/>
4804    <field name="Rho Domain Rate Control Enable" start="109" end="109" type="bool"/>
4805    <field name="First Chroma QP Offset" start="112" end="116" type="uint"/>
4806    <field name="Second Chroma QP Offset" start="120" end="124" type="uint"/>
4807    <field name="Field Picure" start="128" end="128" type="bool"/>
4808    <field name="MBAFF Mode" start="129" end="129" type="bool"/>
4809    <field name="Frame MB Only" start="130" end="130" type="bool"/>
4810    <field name="8x8 IDCT Transform Mode" start="131" end="131" type="bool"/>
4811    <field name="Direct 8x8 Inference" start="132" end="132" type="bool"/>
4812    <field name="Constrained Intra Prediction" start="133" end="133" type="bool"/>
4813    <field name="Non-Reference Picture" start="134" end="134" type="bool"/>
4814    <field name="Entropy Coding Sync Enable" start="135" end="135" type="bool"/>
4815    <field name="MB MV Format" start="136" end="136" type="uint">
4816      <value name="IGNORE" value="0"/>
4817      <value name="FOLLOW" value="1"/>
4818    </field>
4819    <field name="Chroma Format IDC" start="138" end="139" type="uint">
4820      <value name="Monochrome picture" value="0"/>
4821      <value name="4:2:0 picture" value="1"/>
4822      <value name="4:2:2 picture (not supported)" value="2"/>
4823      <value name="4:4:4 picture (not supported)" value="3"/>
4824    </field>
4825    <field name="MV Unpacked Enable" start="140" end="140" type="bool"/>
4826    <field name="Load Bitstream Pointer Per Slice" start="142" end="142" type="bool"/>
4827    <field name="MB Status Read" start="143" end="143" type="bool"/>
4828    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
4829    <field name="Intra MB Max Bit Control" start="160" end="160" type="bool"/>
4830    <field name="Inter MB Max Bit Control" start="161" end="161" type="bool"/>
4831    <field name="Frame Bitrate Max Report" start="162" end="162" type="bool"/>
4832    <field name="Frame Bitrate Min Report" start="163" end="163" type="bool"/>
4833    <field name="Force IPCM Control" start="167" end="167" type="bool"/>
4834    <field name="MB Level Rate Control" start="169" end="169" type="bool"/>
4835    <field name="Minimum Frame Size Units" start="170" end="171" type="uint" prefix="AVC_MFSU">
4836      <value name="Compatibility mode" value="0"/>
4837      <value name="16 bytes" value="1"/>
4838      <value name="4Kb" value="2"/>
4839      <value name="16Kb" value="3"/>
4840    </field>
4841    <field name="Non First Pass" start="176" end="176" type="uint"/>
4842    <field name="Trellis Quantization Chroma Disable" start="187" end="187" type="bool"/>
4843    <field name="Trellis Quantization Rounding" start="188" end="190" type="uint"/>
4844    <field name="Trellis Quantization Enable" start="191" end="191" type="bool"/>
4845    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
4846    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
4847    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
4848    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
4849    <field name="Slice Delta QP Max[2]" start="272" end="279" type="uint"/>
4850    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
4851    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
4852    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
4853    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
4854    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
4855    <field name="Frame Bitrate Min" start="320" end="333" type="uint"/>
4856    <field name="Frame Bitrate Min Unit Mode" start="334" end="334" type="uint">
4857      <value name="Compatibility mode" value="0"/>
4858      <value name="New mode" value="1"/>
4859    </field>
4860    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
4861    <field name="Frame Bitrate Max" start="336" end="349" type="uint"/>
4862    <field name="Frame Bitrate Max Unit Mode" start="350" end="350" type="uint">
4863      <value name="Compatibility mode" value="0"/>
4864      <value name="New mode" value="1"/>
4865    </field>
4866    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
4867    <field name="Frame Bitrate Min Delta" start="352" end="366" type="uint"/>
4868    <field name="Frame Bitrate Max Delta" start="368" end="382" type="uint"/>
4869    <field name="Slice Stats Stream-Out Enable" start="383" end="383" type="bool"/>
4870    <field name="Initial QP Value" start="416" end="423" type="int"/>
4871    <field name="Number of Active Reference Pictures from L0" start="424" end="429" type="uint"/>
4872    <field name="Number of Active Reference Pictures from L1" start="432" end="437" type="uint"/>
4873    <field name="Number of Reference Frames" start="440" end="444" type="uint"/>
4874    <field name="Current Picture Has Performed MMCO5" start="445" end="445" type="bool"/>
4875    <field name="Pic Order Present" start="448" end="448" type="bool"/>
4876    <field name="Delta Pic Order Always Zero" start="449" end="449" type="bool"/>
4877    <field name="Pic Order Count Type" start="450" end="451" type="uint"/>
4878    <field name="Slice Group Map Type" start="456" end="458" type="uint"/>
4879    <field name="Redundant Pic Count Present" start="459" end="459" type="bool"/>
4880    <field name="Number of Slice Groups" start="460" end="462" type="uint"/>
4881    <field name="Deblocking Filter Control Present" start="463" end="463" type="bool"/>
4882    <field name="Log2 Max Frame Number" start="464" end="471" type="uint"/>
4883    <field name="Log2 Max Pic Order Count LSB" start="472" end="479" type="uint"/>
4884    <field name="Slice Group Change Rate" start="480" end="495" type="uint"/>
4885    <field name="Current Picture Frame Number" start="496" end="511" type="uint"/>
4886    <field name="Current Frame View ID" start="512" end="521" type="uint"/>
4887    <field name="Max View IDXL0" start="524" end="527" type="uint"/>
4888    <field name="Max View IDXL1" start="530" end="533" type="uint"/>
4889    <field name="Inter View Order Disable" start="543" end="543" type="bool"/>
4890    <field name="Fractional QP Input" start="544" end="546" type="uint"/>
4891    <field name="Fractional QP Offset" start="547" end="549" type="uint"/>
4892    <field name="Extended Rho Domain Statistics Enable" start="552" end="552" type="bool"/>
4893    <field name="Rho Domain Average MB QP" start="560" end="565" type="uint"/>
4894    <field name="Threshold Size" start="608" end="639" type="uint"/>
4895    <field name="Target Slice Size" start="640" end="671" type="uint"/>
4896  </instruction>
4897
4898  <instruction name="MFX_AVC_REF_IDX_STATE" bias="2" length="10" engine="video">
4899    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4900    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
4901    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4902    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4903    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4904    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4905    <field name="Reference Picture List Select" start="32" end="32" type="uint"/>
4906    <group count="32" start="64" size="8">
4907      <field name="Reference List Entry" start="0" end="7" type="uint"/>
4908    </group>
4909  </instruction>
4910
4911  <instruction name="MFX_AVC_SLICE_STATE" bias="2" length="10" engine="video">
4912    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
4913    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
4914    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
4915    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
4916    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
4917    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
4918    <field name="Slice Type" start="32" end="35" type="uint" prefix="AVC_ST">
4919      <value name="P Slice" value="0"/>
4920      <value name="B Slice" value="1"/>
4921      <value name="I Slice" value="2"/>
4922    </field>
4923    <field name="Log2 Weight Denominator Luma" start="64" end="66" type="uint"/>
4924    <field name="Log2 Weight Denominator Chroma" start="72" end="74" type="uint"/>
4925    <field name="Number of Reference Pictures in Inter-prediction List 0" start="80" end="85" type="uint"/>
4926    <field name="Number of Reference Pictures in Inter-prediction List 1" start="88" end="93" type="uint"/>
4927    <field name="Slice Alpha C0 Offset Div2" start="96" end="99" type="int"/>
4928    <field name="Slice Beta Offset Div2" start="104" end="107" type="int"/>
4929    <field name="Slice Quantization Parameter" start="112" end="117" type="uint"/>
4930    <field name="CABAC Init IDC" start="120" end="121" type="uint"/>
4931    <field name="Disable Deblocking Filter Indicator" start="123" end="124" type="uint"/>
4932    <field name="Direct Prediction Type" start="125" end="125" type="uint">
4933      <value name="Temporal" value="0"/>
4934      <value name="Spatial" value="1"/>
4935    </field>
4936    <field name="Weighted Prediction Indicator" start="126" end="127" type="uint"/>
4937    <field name="Slice Start MB Number" start="128" end="142" type="uint"/>
4938    <field name="Slice Horizontal Position" start="144" end="151" type="uint"/>
4939    <field name="Slice Vertical Position" start="152" end="159" type="uint"/>
4940    <field name="Next Slice Horizontal Position" start="160" end="167" type="uint"/>
4941    <field name="Next Slice Vertical Position" start="176" end="183" type="uint"/>
4942    <field name="Stream ID" start="192" end="193" type="uint"/>
4943    <field name="Slice ID" start="196" end="199" type="uint"/>
4944    <field name="CABAC Zero Word Insertion Enable" start="204" end="204" type="bool"/>
4945    <field name="Emulation Byte Slice Insert Enable" start="205" end="205" type="bool"/>
4946    <field name="Tail Insertion Present" start="207" end="207" type="bool"/>
4947    <field name="Slice Data Insertion Present" start="208" end="208" type="bool"/>
4948    <field name="Header Insertion Present" start="209" end="209" type="bool"/>
4949    <field name="Last Slice Group" start="211" end="211" type="bool"/>
4950    <field name="MB Type Skip Conversion Disable" start="212" end="212" type="bool"/>
4951    <field name="MB Type Direct Conversion Disable" start="213" end="213" type="bool"/>
4952    <field name="Rate Control Panic Type" start="214" end="214" type="uint">
4953      <value name="QP Panic" value="0"/>
4954      <value name="CBP Panic" value="1"/>
4955    </field>
4956    <field name="Rate Control Panic Enable" start="215" end="215" type="bool"/>
4957    <field name="Rate Control Stable Tolerance" start="216" end="219" type="uint"/>
4958    <field name="Rate Control Triggle Mode" start="220" end="221" type="uint">
4959      <value name="Always Rate Control" value="0"/>
4960      <value name="Gentle Rate Control" value="1"/>
4961      <value name="Loose Rate Control" value="2"/>
4962    </field>
4963    <field name="Reset Rate Control Counter" start="222" end="222" type="bool"/>
4964    <field name="Rate Control Counter Enable" start="223" end="223" type="uint"/>
4965    <field name="Indirect PAK-BSE Data Start Address" start="224" end="252" type="offset"/>
4966    <field name="Grow Init" start="256" end="259" type="uint"/>
4967    <field name="Grow Resistance" start="260" end="263" type="uint"/>
4968    <field name="Shrink Init" start="264" end="267" type="uint"/>
4969    <field name="Shrink Resistance" start="268" end="271" type="uint"/>
4970    <field name="QP Max Positive Modifier Magnitude" start="272" end="279" type="uint"/>
4971    <field name="QP Max Negative Modifier Magnitude" start="280" end="287" type="uint"/>
4972    <field name="Correct 1" start="288" end="291" type="uint"/>
4973    <field name="Correct 2" start="292" end="295" type="uint"/>
4974    <field name="Correct 3" start="296" end="299" type="uint"/>
4975    <field name="Correct 4" start="300" end="303" type="uint"/>
4976    <field name="Correct 5" start="304" end="307" type="uint"/>
4977    <field name="Correct 6" start="308" end="311" type="uint"/>
4978    <field name="Round Intra" start="312" end="314" type="uint">
4979      <value name="+1/16" value="0"/>
4980      <value name="+2/16" value="1"/>
4981      <value name="+3/16" value="2"/>
4982      <value name="+4/16" value="3"/>
4983      <value name="+5/16" value="4"/>
4984      <value name="+6/16" value="5"/>
4985      <value name="+7/16" value="6"/>
4986      <value name="+8/16" value="7"/>
4987    </field>
4988    <field name="Round Intra Enable" start="315" end="315" type="bool"/>
4989    <field name="Round Inter" start="316" end="318" type="uint">
4990      <value name="+1/16" value="0"/>
4991      <value name="+2/16" value="1"/>
4992      <value name="+3/16" value="2"/>
4993      <value name="+4/16" value="3"/>
4994      <value name="+5/16" value="4"/>
4995      <value name="+6/16" value="5"/>
4996      <value name="+7/16" value="6"/>
4997      <value name="+8/16" value="7"/>
4998    </field>
4999    <field name="Round Inter Enable" start="319" end="319" type="bool"/>
5000    <field name="CV0" start="320" end="323" type="uint"/>
5001    <field name="CV1" start="324" end="327" type="uint"/>
5002    <field name="CV2" start="328" end="331" type="uint"/>
5003    <field name="CV3" start="332" end="335" type="uint"/>
5004    <field name="CV4" start="336" end="339" type="uint"/>
5005    <field name="CV5" start="340" end="343" type="uint"/>
5006    <field name="CV6" start="344" end="347" type="uint"/>
5007    <field name="CV7" start="348" end="351" type="uint"/>
5008  </instruction>
5009
5010  <instruction name="MFX_AVC_WEIGHTOFFSET_STATE" bias="2" length="98" engine="video">
5011    <field name="DWord Length" start="0" end="11" type="uint" default="96"/>
5012    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
5013    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5014    <field name="Media Command Opcode" start="24" end="26" type="uint" default="1"/>
5015    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5016    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5017    <field name="Weight and Offset Select" start="32" end="32" type="uint">
5018      <value name="L0 table" value="0"/>
5019      <value name="L1 table" value="1"/>
5020    </field>
5021    <group count="96" start="64" size="32">
5022      <field name="Weight Offset" start="0" end="31" type="uint"/>
5023    </group>
5024  </instruction>
5025
5026  <instruction name="MFX_BSP_BUF_BASE_ADDR_STATE" bias="2" length="10" engine="video">
5027    <field name="DWord Length" start="0" end="11" type="uint" default="8"/>
5028    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
5029    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5030    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5031    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5032    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5033    <field name="BSD/MPC Row Store Scratch Buffer - Address" start="38" end="79" type="address"/>
5034    <field name="BSD/MPC Row Store Scratch Buffer - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5035    <field name="MPR Row Store Scratch Buffer - Address" start="134" end="175" type="address"/>
5036    <field name="MPR Row Store Scratch Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
5037    <field name="Bitplane Read Buffer - Address" start="230" end="271" type="address"/>
5038    <field name="Bitplane Read Buffer - Attributes" start="288" end="319" type="MEMORYADDRESSATTRIBUTES"/>
5039  </instruction>
5040
5041  <instruction name="MFX_DBK_OBJECT" bias="2" length="13" engine="video">
5042    <field name="DWord Length" start="0" end="11" type="uint" default="11"/>
5043    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
5044    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5045    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5046    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5047    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5048    <field name="Pre Deblocking Source - Address" start="38" end="79" type="address"/>
5049    <field name="Pre Deblocking Source - MOCS" start="97" end="102" type="uint"/>
5050    <field name="Pre Deblocking Source - Arbitration Priority Control" start="103" end="104" type="uint">
5051      <value name="Highest priority" value="0"/>
5052      <value name="Second highest priority" value="1"/>
5053      <value name="Third highest priority" value="2"/>
5054      <value name="Lowest priority" value="3"/>
5055    </field>
5056    <field name="Pre Deblocking Source - Memory Compression Enable" start="105" end="105" type="bool"/>
5057    <field name="Pre Deblocking Source - Memory Compression Mode" start="106" end="106" type="uint"/>
5058    <field name="Pre Deblocking Source - Tiled Resource Mode" start="109" end="110" type="uint">
5059      <value name="TRMODE_NONE" value="0"/>
5060      <value name="TRMODE_TILEYF" value="1"/>
5061      <value name="TRMODE_TILEYS" value="2"/>
5062    </field>
5063    <field name="Deblocking Control - Address" start="134" end="175" type="address"/>
5064    <field name="Deblocking Control - MOCS" start="193" end="198" type="uint"/>
5065    <field name="Deblocking Control - Arbitration Priority Control" start="199" end="200" type="uint">
5066      <value name="Highest priority" value="0"/>
5067      <value name="Second highest priority" value="1"/>
5068      <value name="Third highest priority" value="2"/>
5069      <value name="Lowest priority" value="3"/>
5070    </field>
5071    <field name="Deblocking Control - Memory Compression Enable" start="201" end="201" type="bool"/>
5072    <field name="Deblocking Control - Memory Compression Mode" start="202" end="202" type="uint"/>
5073    <field name="Deblocking Control - Tiled Resource Mode" start="205" end="206" type="uint">
5074      <value name="TRMODE_NONE" value="0"/>
5075      <value name="TRMODE_TILEYF" value="1"/>
5076      <value name="TRMODE_TILEYS" value="2"/>
5077    </field>
5078    <field name="Deblocking Destination - Address High" start="230" end="271" type="address"/>
5079    <field name="Deblocking Destination - MOCS" start="289" end="294" type="uint"/>
5080    <field name="Deblocking Destination - Arbitration Priority Control" start="295" end="296" type="uint">
5081      <value name="Highest priority" value="0"/>
5082      <value name="Second highest priority" value="1"/>
5083      <value name="Third highest priority" value="2"/>
5084      <value name="Lowest priority" value="3"/>
5085    </field>
5086    <field name="Deblocking Destination - Memory Compression Enable" start="297" end="297" type="bool"/>
5087    <field name="Deblocking Destination - Memory Compression Mode" start="298" end="298" type="uint"/>
5088    <field name="Deblocking Destination - Tiled Resource Mode" start="301" end="302" type="uint">
5089      <value name="TRMODE_NONE" value="0"/>
5090      <value name="TRMODE_TILEYF" value="1"/>
5091      <value name="TRMODE_TILEYS" value="2"/>
5092    </field>
5093    <field name="Deblock Row Store - Address" start="326" end="367" type="address"/>
5094    <field name="CoeffProbability Stream-In - MOCS" start="385" end="390" type="uint"/>
5095    <field name="Deblock Row Store - Arbitration Priority Control" start="391" end="392" type="uint">
5096      <value name="Highest priority" value="0"/>
5097      <value name="Second highest priority" value="1"/>
5098      <value name="Third highest priority" value="2"/>
5099      <value name="Lowest priority" value="3"/>
5100    </field>
5101    <field name="Deblock Row Store - Memory Compression Enable" start="393" end="393" type="bool"/>
5102    <field name="Deblock Row Store - Memory Compression Mode" start="394" end="394" type="uint"/>
5103    <field name="Deblock Row Store - Tiled Resource Mode" start="397" end="398" type="uint">
5104      <value name="TRMODE_NONE" value="0"/>
5105      <value name="TRMODE_TILEYF" value="1"/>
5106      <value name="TRMODE_TILEYS" value="2"/>
5107    </field>
5108  </instruction>
5109
5110  <instruction name="MFX_FQM_STATE" bias="2" length="34" engine="video">
5111    <field name="DWord Length" start="0" end="11" type="uint" default="32"/>
5112    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
5113    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5114    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
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="AVC" start="32" end="33" type="uint">
5118      <value name="AVC_4x4_Intra_MATRIX" value="0"/>
5119      <value name="AVC_4x4_Inter_MATRIX" value="1"/>
5120      <value name="AVC_8x8_Intra_MATRIX" value="2"/>
5121      <value name="AVC_8x8_Inter_MATRIX" value="3"/>
5122    </field>
5123    <field name="MPEG2" start="32" end="33" type="uint">
5124      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
5125      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
5126    </field>
5127    <field name="JPEG" start="32" end="33" type="uint">
5128      <value name="JPEG_Luma_Y_QUANTIZER_MATRIX (or R)" value="0"/>
5129      <value name="JPEG_Chroma_Cb_QUANTIZER_MATRIX (or G)" value="1"/>
5130      <value name="JPEG_Chroma_Cr_QUANTIZER_MATRIX (or B)" value="2"/>
5131    </field>
5132    <group count="64" start="64" size="8">
5133      <field name="Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
5134    </group>
5135  </instruction>
5136
5137  <instruction name="MFX_IND_OBJ_BASE_ADDR_STATE" bias="2" length="26" engine="video">
5138    <field name="DWord Length" start="0" end="11" type="uint" default="24"/>
5139    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
5140    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5141    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5142    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5143    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5144    <field name="MFX Indirect Bitstream Object - Address" start="32" end="95" type="address"/>
5145    <field name="MFX Indirect Bitstream Object - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5146    <field name="MFX Indirect Bitstream Object - Upper Bound" start="128" end="191" type="address"/>
5147    <field name="MFX Indirect MV Object - Address" start="192" end="255" type="address"/>
5148    <field name="MFX Indirect MV Object - Attributes" start="256" end="287" type="MEMORYADDRESSATTRIBUTES"/>
5149    <field name="MFX Indirect MV Object - Upper Bound" start="288" end="351" type="address"/>
5150    <field name="MFD Indirect IT-COEFF Object - Address" start="352" end="415" type="address"/>
5151    <field name="MFD Indirect IT-COEFF Object - Attributes" start="416" end="447" type="MEMORYADDRESSATTRIBUTES"/>
5152    <field name="MFD Indirect IT-COEFF Object - Upper Bound" start="448" end="511" type="address"/>
5153    <field name="MFD Indirect IT-DBLK Object - Address" start="512" end="575" type="address"/>
5154    <field name="MFD Indirect IT-DBLK Object - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
5155    <field name="MFD Indirect IT-DBLK Object - Upper Bound" start="608" end="671" type="address"/>
5156    <field name="MFC Indirect PAK-BSE Object - Address" start="672" end="735" type="address"/>
5157    <field name="MFC Indirect PAK-BSE Object - Attributes" start="736" end="767" type="MEMORYADDRESSATTRIBUTES"/>
5158    <field name="MFC Indirect PAK-BSE Object - Upper Bound" start="768" end="831" type="address"/>
5159  </instruction>
5160
5161  <instruction name="MFX_JPEG_HUFF_TABLE_STATE" bias="2" length="831" engine="video">
5162    <field name="DWord Length" start="0" end="11" type="uint" default="829"/>
5163    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
5164    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5165    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
5166    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5167    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5168    <field name="Huffman Table ID" start="32" end="32" type="uint"/>
5169    <group count="12" start="64" size="8">
5170      <field name="DC_BITS" start="0" end="7" type="uint"/>
5171    </group>
5172    <group count="12" start="160" size="8">
5173      <field name="DC_HUFFVAL" start="0" end="7" type="uint"/>
5174    </group>
5175    <group count="16" start="256" size="8">
5176      <field name="AC_BITS" start="0" end="15" type="uint"/>
5177    </group>
5178    <group count="160" start="384" size="8">
5179      <field name="AC_HUFFVAL" start="0" end="7" type="uint"/>
5180    </group>
5181    <group count="2" start="1664" size="8">
5182      <field name="AC_HUFFVAL2" start="0" end="7" type="uint"/>
5183    </group>
5184  </instruction>
5185
5186  <instruction name="MFX_JPEG_PIC_STATE" bias="2" length="3" engine="video">
5187    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
5188    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
5189    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5190    <field name="Media Command Opcode" start="24" end="26" type="uint" default="7"/>
5191    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5192    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5193    <field name="Input Format YUV" start="32" end="34" type="uint"/>
5194    <field name="Output MCU Structure" start="32" end="34" type="uint" prefix="MCU">
5195      <value name="YUV400" value="0"/>
5196      <value name="YUV420" value="1"/>
5197      <value name="YUV422H_2Y" value="2"/>
5198      <value name="RGB" value="3"/>
5199    </field>
5200    <field name="Rotation" start="36" end="37" type="uint"/>
5201    <field name="Output Format YUV" start="40" end="43" type="uint"/>
5202    <field name="Input Surface Format YUV" start="40" end="43" type="uint" prefix="IS">
5203      <value name="NV12" value="1"/>
5204      <value name="UYVY" value="2"/>
5205      <value name="YUY2" value="3"/>
5206      <value name="Y8" value="4"/>
5207      <value name="RGB" value="5"/>
5208    </field>
5209    <field name="Average Down Sampling" start="48" end="48" type="uint"/>
5210    <field name="Vertical Down-Sampling Enable" start="49" end="49" type="bool"/>
5211    <field name="Horizontal Down-Sampling Enable" start="50" end="50" type="bool"/>
5212    <field name="Vertical Up-Sampling Enable" start="52" end="52" type="bool"/>
5213    <field name="Pixels In Vertical Last MCU" start="53" end="57" type="uint"/>
5214    <field name="Pixels In Horizontal Last MCU" start="58" end="62" type="uint"/>
5215    <field name="Frame Width In Blocks" start="64" end="76" type="uint"/>
5216    <field name="Rounding Quant" start="77" end="79" type="uint"/>
5217    <field name="Frame Height In Blocks" start="80" end="92" type="uint"/>
5218    <field name="Output Pixel Normalize" start="93" end="93" type="uint"/>
5219  </instruction>
5220
5221  <instruction name="MFX_MPEG2_PIC_STATE" bias="2" length="2" engine="video">
5222    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5223    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
5224    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5225    <field name="Media Command Opcode" start="24" end="26" type="uint" default="3"/>
5226    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5227    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5228    <field name="Scan Order" start="38" end="38" type="uint">
5229      <value name="MPEG_ZIGZAG_SCAN" value="0"/>
5230      <value name="MPEG_ALTERNATE_VERTICAL_SCAN" value="1"/>
5231    </field>
5232    <field name="Intra VLC Format" start="39" end="39" type="uint"/>
5233    <field name="Quantizer Scale Type" start="40" end="40" type="uint">
5234      <value name="MPEG_QSCALE_LINEAR" value="0"/>
5235      <value name="MPEG_QSCALE_NONLINEAR" value="1"/>
5236    </field>
5237    <field name="Concealment MV" start="41" end="41" type="bool"/>
5238    <field name="Frame Prediction Frame DCT" start="42" end="42" type="uint"/>
5239    <field name="Top Field First" start="43" end="43" type="bool"/>
5240    <field name="Picture Structure" start="44" end="45" type="uint">
5241      <value name="MPEG_TOP_FIELD" value="1"/>
5242      <value name="MPEG_BOTTOM_FIELD" value="2"/>
5243      <value name="MPEG_FRAME" value="3"/>
5244    </field>
5245    <field name="Intra DC Precision" start="46" end="47" type="uint"/>
5246    <field name="F_code[0][0]" start="48" end="51" type="uint"/>
5247    <field name="F_code[0][1]" start="52" end="55" type="uint"/>
5248    <field name="F_code[1][0]" start="56" end="59" type="uint"/>
5249    <field name="F_code[1][1]" start="60" end="63" type="uint"/>
5250    <field name="Disable Mismatch" start="64" end="64" type="bool"/>
5251    <field name="Mismatch Control Disable" start="65" end="65" type="bool"/>
5252    <field name="Picture Coding Type" start="73" end="74" type="uint">
5253      <value name="MPEG_I_PICTURE" value="1"/>
5254      <value name="MPEG_P_PICTURE" value="2"/>
5255      <value name="MPEG_B_PICTURE" value="3"/>
5256    </field>
5257    <field name="Load Bitstream Pointer Per Slice" start="78" end="78" type="bool"/>
5258    <field name="P/B Slice Predicted MV Override" start="88" end="88" type="uint">
5259      <value name="Predicted" value="0"/>
5260      <value name="ZERO" value="1"/>
5261    </field>
5262    <field name="P/B Slice Predicted Bi-direction MV Type Override" start="89" end="90" type="uint" prefix="MPEG2_MVTO">
5263      <value name="BID" value="0"/>
5264      <value name="RESERVED" value="1"/>
5265      <value name="FWD" value="2"/>
5266      <value name="BWD" value="3"/>
5267    </field>
5268    <field name="P/B Slice Concealment Mode" start="92" end="93" type="uint" prefix="MPEG2_CM">
5269      <value name="INTER" value="0"/>
5270      <value name="LEFT" value="1"/>
5271      <value name="ZERO" value="2"/>
5272      <value name="INTRA" value="3"/>
5273    </field>
5274    <field name="I Slice Concealment Mode" start="95" end="95" type="uint" prefix="MPEG2_CM">
5275      <value name="Intra Concealment" value="0"/>
5276      <value name="Inter Concealment" value="1"/>
5277    </field>
5278    <field name="Frame Width In MBs" start="96" end="103" type="uint"/>
5279    <field name="Frame Height In MBs" start="112" end="119" type="uint"/>
5280    <field name="Slice Concealment Disable" start="127" end="127" type="bool"/>
5281    <field name="Round Intra DC" start="129" end="130" type="uint"/>
5282    <field name="Round Inter DC" start="132" end="134" type="uint"/>
5283    <field name="Round Intra AC" start="136" end="138" type="uint"/>
5284    <field name="Round Inter AC," start="140" end="142" type="uint"/>
5285    <field name="Minimum Frame Size" start="144" end="159" type="uint"/>
5286    <field name="Intra MB Max Bit Control" start="160" end="160" type="uint"/>
5287    <field name="Inter MB Max Bit Control" start="161" end="161" type="uint"/>
5288    <field name="Frame Bitrate Max Report" start="162" end="162" type="uint"/>
5289    <field name="Frame Bitrate Min Report" start="163" end="163" type="uint"/>
5290    <field name="MBRateControlMask" start="169" end="169" type="uint"/>
5291    <field name="Minimum Frame Size Units" start="170" end="171" type="uint" prefix="MPEG2_MFSU">
5292      <value name="Compatibility mode" value="0"/>
5293      <value name="16 bytes" value="1"/>
5294      <value name="4Kb" value="2"/>
5295      <value name="16Kb" value="3"/>
5296    </field>
5297    <field name="Inter MB Force CBP to Zero Control" start="172" end="172" type="uint"/>
5298    <field name="Frame Size Control" start="176" end="176" type="uint"/>
5299    <field name="Intra MB Conformance Max Size" start="192" end="203" type="uint"/>
5300    <field name="Inter MB Conformance Max Size" start="208" end="219" type="uint"/>
5301    <field name="Slice Delta QP Max[0]" start="256" end="263" type="int"/>
5302    <field name="Slice Delta QP Max[1]" start="264" end="271" type="int"/>
5303    <field name="Slice Delta QP Max[2]" start="272" end="279" type="int"/>
5304    <field name="Slice Delta QP Max[3]" start="280" end="287" type="int"/>
5305    <field name="Slice Delta QP Min[0]" start="288" end="295" type="int"/>
5306    <field name="Slice Delta QP Min[1]" start="296" end="303" type="int"/>
5307    <field name="Slice Delta QP Min[2]" start="304" end="311" type="int"/>
5308    <field name="Slice Delta QP Min[3]" start="312" end="319" type="int"/>
5309    <field name="Frame Bitrate Min" start="320" end="333" type="uint"/>
5310    <field name="Frame Bitrate Min Unit Mode" start="334" end="334" type="uint">
5311      <value name="Compatibility mode" value="0"/>
5312      <value name="New mode" value="1"/>
5313    </field>
5314    <field name="Frame Bitrate Min Unit" start="335" end="335" type="uint"/>
5315    <field name="Frame Bitrate Max" start="336" end="349" type="uint"/>
5316    <field name="Frame Bitrate Max Unit Mode" start="350" end="350" type="uint">
5317      <value name="Compatibility mode" value="0"/>
5318      <value name="New mode" value="1"/>
5319    </field>
5320    <field name="Frame Bitrate Max Unit" start="351" end="351" type="uint"/>
5321    <field name="Frame Bitrate Min Delta" start="352" end="366" type="uint"/>
5322    <field name="Frame Bitrate Max Delta" start="368" end="382" type="uint"/>
5323  </instruction>
5324
5325  <instruction name="MFX_PAK_INSERT_OBJECT" bias="2" engine="video">
5326    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5327    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
5328    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5329    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5330    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5331    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5332    <field name="Bitstream Start Reset" start="32" end="32" type="bool"/>
5333    <field name="End of Slice" start="33" end="33" type="bool"/>
5334    <field name="Last Header" start="34" end="34" type="bool"/>
5335    <field name="Emulation Byte Bits Insert Enable" start="35" end="35" type="bool"/>
5336    <field name="Skip Emulation Byte Count" start="36" end="39" type="uint"/>
5337    <field name="Data Bits In Last DW" start="40" end="45" type="uint"/>
5338    <field name="Slice Header Indicator" start="46" end="46" type="uint">
5339      <value name="SLICE_HEADER" value="1"/>
5340      <value name="LEGACY" value="0"/>
5341    </field>
5342    <field name="Header Length Excluded From Size" start="47" end="47" type="uint">
5343      <value name="NO_ACCUMULATION" value="1"/>
5344      <value name="ACCUMULATE" value="0"/>
5345    </field>
5346    <field name="Data Byte Offset" start="48" end="49" type="uint"/>
5347    <group count="0" start="64" size="32">
5348      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
5349    </group>
5350  </instruction>
5351
5352  <instruction name="MFX_PIPE_BUF_ADDR_STATE" bias="2" length="65" engine="video">
5353    <field name="DWord Length" start="0" end="11" type="uint" default="63"/>
5354    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
5355    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5356    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5357    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5358    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5359    <field name="Pre Deblocking Destination - Address" start="38" end="79" type="address"/>
5360    <field name="Pre Deblocking Destination - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5361    <field name="Post Deblocking Destination - Address" start="134" end="175" type="address"/>
5362    <field name="Post Deblocking Destination - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
5363    <field name="Original Uncompressed Picture Source - Address" start="230" end="271" type="address"/>
5364    <field name="Original Uncompressed Picture Source - Attributes" start="288" end="319" type="MEMORYADDRESSATTRIBUTES"/>
5365    <field name="Stream-Out Data Destination - Address" start="326" end="367" type="address"/>
5366    <field name="Stream-Out Data Destination - Attributes" start="384" end="415" type="MEMORYADDRESSATTRIBUTES"/>
5367    <field name="Intra Row Store Scratch Buffer - Address" start="422" end="463" type="address"/>
5368    <field name="Intra Row Store Scratch Buffer - Attributes" start="480" end="511" type="MEMORYADDRESSATTRIBUTES"/>
5369    <field name="Deblocking Filter Row Store Scratch - Address" start="518" end="559" type="address"/>
5370    <field name="Deblocking Filter Row Store Scratch - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
5371    <group count="16" start="608" size="64">
5372      <field name="Reference Picture - Address" start="0" end="63" type="address"/>
5373    </group>
5374    <field name="Reference Picture - Attributes" start="1632" end="1663" type="MEMORYADDRESSATTRIBUTES"/>
5375    <field name="MB Status Buffer - Address" start="1670" end="1711" type="address"/>
5376    <field name="MB Status Buffer - Attributes" start="1728" end="1759" type="MEMORYADDRESSATTRIBUTES"/>
5377    <field name="MB ILDB Stream-Out Buffer - Address" start="1766" end="1807" type="address"/>
5378    <field name="MB ILDB Stream-Out Buffer - Attributes" start="1824" end="1855" type="MEMORYADDRESSATTRIBUTES"/>
5379    <field name="Second MB ILDB Stream-Out Buffer - Address" start="1862" end="1903" type="address"/>
5380    <field name="Second MB ILDB Stream-Out Buffer - Attributes" start="1920" end="1951" type="MEMORYADDRESSATTRIBUTES"/>
5381    <group count="16" start="1952" size="2">
5382      <field name="Reference Picture - Memory Compression Mode" start="1" end="1" type="uint"/>
5383      <field name="Reference Picture - Memory Compression Enable" start="0" end="0" type="bool"/>
5384    </group>
5385    <field name="Scaled Reference Surface - Address" start="1990" end="2031" type="address"/>
5386    <field name="Scaled Reference Surface - Attributes" start="2048" end="2079" type="MEMORYADDRESSATTRIBUTES"/>
5387  </instruction>
5388
5389  <instruction name="MFX_PIPE_MODE_SELECT" bias="2" length="5" engine="video">
5390    <field name="DWord Length" start="0" end="11" type="uint" default="3"/>
5391    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
5392    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5393    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5394    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5395    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5396    <field name="Standard Select" start="32" end="35" type="uint" prefix="SS">
5397      <value name="MPEG2" value="0"/>
5398      <value name="VC1" value="1"/>
5399      <value name="AVC" value="2"/>
5400      <value name="JPEG" value="3"/>
5401      <value name="VP8" value="5"/>
5402      <value name="UVLD" value="15"/>
5403    </field>
5404    <field name="Codec Select" start="36" end="36" type="uint">
5405      <value name="Decode" value="0"/>
5406      <value name="Encode" value="1"/>
5407    </field>
5408    <field name="Stitch Mode" start="37" end="37" type="bool"/>
5409    <field name="Frame Statistics Stream-Out Enable" start="38" end="38" type="bool"/>
5410    <field name="Scaled Surface Enable" start="39" end="39" type="bool"/>
5411    <field name="Pre Deblocking Output Enable" start="40" end="40" type="bool"/>
5412    <field name="Post Deblocking Output Enable" start="41" end="41" type="bool"/>
5413    <field name="Stream-Out Enable" start="42" end="42" type="bool"/>
5414    <field name="Pic Error/Status Report Enable" start="43" end="43" type="bool"/>
5415    <field name="Deblocker Stream-Out Enable" start="44" end="44" type="bool"/>
5416    <field name="VDEnc Mode" start="45" end="45" type="uint" prefix="VM">
5417      <value name="MBEnc Mode" value="0"/>
5418      <value name="VDEnc Mode" value="1"/>
5419    </field>
5420    <field name="Standalone VDEnc Mode Enable" start="46" end="46" type="bool"/>
5421    <field name="Decoder Mode select" start="47" end="48" type="uint">
5422      <value name="VLD Mode" value="0"/>
5423      <value name="IT Mode" value="1"/>
5424      <value name="Deblocker Mode" value="2"/>
5425      <value name="Interlayer Mode" value="3"/>
5426    </field>
5427    <field name="Decoder Short Format Mode" start="49" end="49" type="uint">
5428      <value name="Short Format Driver Interface" value="0"/>
5429      <value name="Long Format Driver Interface" value="1"/>
5430    </field>
5431    <field name="Extended Stream-Out Enable" start="50" end="50" type="bool"/>
5432    <field name="AES Control" start="56" end="63" type="uint"/>
5433    <field name="Pic Status/Error Report ID" start="96" end="127" type="uint"/>
5434  </instruction>
5435
5436  <instruction name="MFX_QM_STATE" bias="2" length="34" engine="video">
5437    <field name="DWord Length" start="0" end="11" type="uint" default="32"/>
5438    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
5439    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5440    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5441    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5442    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5443    <field name="AVC" start="32" end="33" type="uint">
5444      <value name="AVC_4x4_Intra_MATRIX" value="0"/>
5445      <value name="AVC_4x4_Inter_MATRIX" value="1"/>
5446      <value name="AVC_8x8_Intra_MATRIX" value="2"/>
5447      <value name="AVC_8x8_Inter_MATRIX" value="3"/>
5448    </field>
5449    <field name="MPEG2" start="32" end="33" type="uint">
5450      <value name="MPEG_INTRA_QUANTIZER_MATRIX" value="0"/>
5451      <value name="MPEG_NON_INTRA_QUANTIZER_MATRIX" value="1"/>
5452    </field>
5453    <field name="JPEG" start="32" end="33" type="uint">
5454      <value name="JPEG_Luma_Y_QUANTIZER_MATRIX (or R)" value="0"/>
5455      <value name="JPEG_Chroma_Cb_QUANTIZER_MATRIX (or G)" value="1"/>
5456      <value name="JPEG_Chroma_Cr_QUANTIZER_MATRIX (or B)" value="2"/>
5457    </field>
5458    <group count="64" start="64" size="8">
5459      <field name="Forward Quantizer Matrix 8x8" start="0" end="7" type="uint"/>
5460    </group>
5461  </instruction>
5462
5463  <instruction name="MFX_STATE_POINTER" bias="2" length="2" engine="video">
5464    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5465    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
5466    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5467    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5468    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5469    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5470    <field name="State Pointer Index" start="32" end="33" type="uint"/>
5471    <field name="State Pointer" start="37" end="63" type="uint"/>
5472  </instruction>
5473
5474  <instruction name="MFX_STITCH_OBJECT" bias="2" engine="video">
5475    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5476    <field name="SubOpcode B" start="16" end="20" type="uint" default="10"/>
5477    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5478    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5479    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5480    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5481    <field name="End of Slice" start="33" end="33" type="bool"/>
5482    <field name="Last Header" start="34" end="34" type="bool"/>
5483    <field name="Source Data Ending Bit Inclusion" start="40" end="45" type="uint"/>
5484    <field name="Source Data Starting Byte Offset" start="48" end="49" type="uint"/>
5485    <field name="Indirect Data Length" start="64" end="82" type="uint"/>
5486    <field name="Indirect Data Start Address" start="96" end="127" type="offset"/>
5487    <group count="0" start="128" size="32">
5488      <field name="Insert Data PayLoad" start="0" end="31" type="uint"/>
5489    </group>
5490  </instruction>
5491
5492  <instruction name="MFX_SURFACE_STATE" bias="2" length="6" engine="video">
5493    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
5494    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5495    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5496    <field name="Media Command Opcode" start="24" end="26" type="uint" default="0"/>
5497    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5498    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5499    <field name="Surface ID" start="32" end="35" type="uint" prefix="MFX">
5500      <value name="Source Input Picture" value="4"/>
5501      <value name="Reconstructed Scaled Reference Picture" value="5"/>
5502    </field>
5503    <field name="Cr(V)/Cb(U) Pixel Offset V Direction" start="64" end="65" type="u0.2"/>
5504    <field name="Width" start="68" end="81" type="uint"/>
5505    <field name="Height" start="82" end="95" type="uint"/>
5506    <field name="Tile Walk" start="96" end="96" type="uint" prefix="TW">
5507      <value name="XMAJOR" value="0"/>
5508      <value name="YMAJOR" value="1"/>
5509    </field>
5510    <field name="Tiled Surface" start="97" end="97" type="bool"/>
5511    <field name="Half Pitch for Chroma" start="98" end="98" type="bool"/>
5512    <field name="Surface Pitch" start="99" end="115" type="uint"/>
5513    <field name="Interleave Chroma" start="123" end="123" type="bool"/>
5514    <field name="Surface Format" start="124" end="127" type="uint" prefix="MFX">
5515      <value name="YCRCB_NORMAL" value="0"/>
5516      <value name="YCRCB_SWAPUVY" value="1"/>
5517      <value name="YCRCB_SWAPUV" value="2"/>
5518      <value name="YCRCB_SWAPY" value="3"/>
5519      <value name="PLANAR_420_8" value="4"/>
5520      <value name="PLANAR_411_8" value="5"/>
5521      <value name="PLANAR_422_8" value="6"/>
5522      <value name="STMM_DN_STATISTICS" value="7"/>
5523      <value name="R10G10B10A2_UNORM" value="8"/>
5524      <value name="R8G8B8A8_UNORM" value="9"/>
5525      <value name="R8B8_UNORM (CrCb)" value="10"/>
5526      <value name="R8_UNORM (Cr/Cb)" value="11"/>
5527      <value name="Y8_UNORM" value="12"/>
5528    </field>
5529    <field name="Y Offset for U(Cb)" start="128" end="142" type="uint"/>
5530    <field name="X Offset for U(Cb)" start="144" end="158" type="uint"/>
5531    <field name="Y Offset for V(Cr)" start="160" end="175" type="uint"/>
5532    <field name="X Offset for V(Cr)" start="176" end="188" type="uint"/>
5533  </instruction>
5534
5535  <instruction name="MFX_VC1_DIRECTMODE_STATE" bias="2" length="7" engine="video">
5536    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
5537    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
5538    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5539    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
5540    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5541    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5542    <field name="Direct MV Write Buffer - Address" start="32" end="95" type="address"/>
5543    <field name="Direct MV Write Buffer - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5544    <field name="Direct MV Read Buffer - Address" start="128" end="191" type="address"/>
5545    <field name="Direct MV Read Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
5546  </instruction>
5547
5548  <instruction name="MFX_VC1_PRED_PIPE_STATE" bias="2" length="6" engine="video">
5549    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
5550    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5551    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5552    <field name="Media Command Opcode" start="24" end="26" type="uint" default="2"/>
5553    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5554    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5555    <field name="Reference Frame Boundary Replication Mode" start="36" end="39" type="uint"/>
5556    <field name="Vin_intensitycomp_Single_BWDen" start="40" end="41" type="uint"/>
5557    <field name="Vin_intensitycomp_Single_FWDen" start="42" end="43" type="uint"/>
5558    <field name="Vin_intensitycomp_Double_BWDen" start="44" end="45" type="uint"/>
5559    <field name="Vin_intensitycomp_Double_FWDen" start="46" end="47" type="uint"/>
5560    <field name="LumScale1 - single - FWD" start="64" end="69" type="uint"/>
5561    <field name="LumScale2 - single - FWD" start="72" end="77" type="uint"/>
5562    <field name="LumShift1 - single - FWD" start="80" end="85" type="uint"/>
5563    <field name="LumShift2 - single - FWD" start="88" end="93" type="uint"/>
5564    <field name="LumScale1 - double - FWD" start="96" end="101" type="uint"/>
5565    <field name="LumScale2 - double - FWD" start="104" end="109" type="uint"/>
5566    <field name="LumShift1 - double - FWD" start="112" end="117" type="uint"/>
5567    <field name="LumShift2 - double - FWD" start="120" end="125" type="uint"/>
5568    <field name="LumScale1 - single - BWD" start="128" end="133" type="uint"/>
5569    <field name="LumScale2 - single - BWD" start="136" end="141" type="uint"/>
5570    <field name="LumShift1 - single - BWD" start="144" end="149" type="uint"/>
5571    <field name="LumShift2 - single - BWD" start="152" end="157" type="uint"/>
5572    <field name="LumScale1 - double - BWD" start="160" end="165" type="uint"/>
5573    <field name="LumScale2 - double - BWD" start="168" end="173" type="uint"/>
5574    <field name="LumShift1 - double - BWD" start="176" end="181" type="uint"/>
5575    <field name="LumShift2 - double - BWD" start="184" end="189" type="uint"/>
5576  </instruction>
5577
5578  <instruction name="MFX_VP8_BSP_BUF_BASE_ADDR_STATE" bias="2" length="2" engine="video">
5579    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5580    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
5581    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5582    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
5583    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5584    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5585    <field name="Frame Header - Address" start="32" end="95" type="address"/>
5586    <field name="Frame Header - Attributes" start="96" end="127" type="MEMORYADDRESSATTRIBUTES"/>
5587    <field name="Intermediate Buffer - Address" start="128" end="191" type="address"/>
5588    <field name="Intermediate Buffer - Attributes" start="192" end="223" type="MEMORYADDRESSATTRIBUTES"/>
5589    <field name="Intermediate Buffer Partition Offset" start="224" end="479" type="uint"/>
5590    <field name="Intermediate Buffer Max Size" start="480" end="511" type="uint"/>
5591    <field name="Final Frame - Address" start="512" end="575" type="address"/>
5592    <field name="Final Frame - Attributes" start="576" end="607" type="MEMORYADDRESSATTRIBUTES"/>
5593    <field name="Final Frame Byte Offset" start="608" end="613" type="uint"/>
5594    <field name="Stream-Out - Address" start="640" end="703" type="address"/>
5595    <field name="Stream-Out - Attributes" start="704" end="735" type="MEMORYADDRESSATTRIBUTES"/>
5596    <field name="Coeff Probs Stream-In Surface - Address" start="736" end="799" type="address"/>
5597    <field name="Coeff Probs Stream-In Surface - Attributes" start="800" end="831" type="MEMORYADDRESSATTRIBUTES"/>
5598    <field name="Token Statistics Surface - Address" start="832" end="895" type="address"/>
5599    <field name="Token Statistics Surface - Attributes" start="896" end="927" type="MEMORYADDRESSATTRIBUTES"/>
5600    <field name="MPC Row Store Surface - Address" start="928" end="991" type="address"/>
5601    <field name="MPC Row Store Surface - Attributes" start="992" end="1023" type="MEMORYADDRESSATTRIBUTES"/>
5602  </instruction>
5603
5604  <instruction name="MFX_VP8_ENCODER_CFG" bias="2" length="2" engine="video">
5605    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5606    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
5607    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5608    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
5609    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5610    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5611    <field name="Performance Counter Enable" start="32" end="32" type="bool"/>
5612    <field name="Final Bitstream Output Disable" start="33" end="33" type="bool"/>
5613    <field name="Token Statistics Output Enable" start="34" end="34" type="bool"/>
5614    <field name="Bitstream Statistics Output Enable" start="35" end="35" type="bool"/>
5615    <field name="Update Segment Feature Data Flag" start="36" end="36" type="bool"/>
5616    <field name="Skip Final Bitstream when Over/Underflow" start="37" end="37" type="bool"/>
5617    <field name="Rate Control Initial Pass" start="38" end="38" type="bool"/>
5618    <field name="Per Segment Delta Qindex / LoopFilter Disable" start="39" end="39" type="bool"/>
5619    <field name="Finer BRC Enable" start="40" end="40" type="bool"/>
5620    <field name="Compressed Bitstream Output Disable" start="41" end="41" type="bool"/>
5621    <field name="VBSP Unit Power Clock Gating Disable" start="42" end="42" type="bool"/>
5622    <field name="Max Frame Bit count Rate Control Enable" start="64" end="64" type="bool"/>
5623    <field name="Min Frame Bit Count Rate Control Enable" start="65" end="65" type="bool"/>
5624    <field name="Max Inter MB Bit Count Check Enable" start="66" end="66" type="bool"/>
5625    <field name="Max Intra MB Bit Count Check Enable" start="67" end="67" type="bool"/>
5626    <field name="Intermediate Bit Buffer Overrun Enable" start="68" end="68" type="bool"/>
5627    <field name="Final Bistream Buffer Overrun Enable" start="69" end="69" type="bool"/>
5628    <field name="QIndex Clamp High for Underflow" start="70" end="70" type="bool"/>
5629    <field name="QIndex Clamp High for Overflow" start="71" end="71" type="bool"/>
5630    <field name="Max Inter MB Bit Count" start="96" end="107" type="uint"/>
5631    <field name="Max Intra MB Bit Count Limit" start="112" end="123" type="uint"/>
5632    <field name="Frame Bitrate Max" start="128" end="141" type="uint"/>
5633    <field name="Frame Bitrate Max Unit" start="142" end="142" type="uint"/>
5634    <field name="Frame Bitrate Max Unit Mode" start="143" end="143" type="uint">
5635      <value name="Compatibility mode" value="0"/>
5636      <value name="New mode" value="1"/>
5637    </field>
5638    <field name="Frame Bitrate Min" start="144" end="157" type="uint"/>
5639    <field name="Frame Bitrate Min Unit" start="158" end="158" type="uint"/>
5640    <field name="Frame Bitrate Min Unit Mode" start="159" end="159" type="uint">
5641      <value name="Compatibility mode" value="0"/>
5642      <value name="New mode" value="1"/>
5643    </field>
5644    <field name="Frame Delta QIndex Max[0]" start="160" end="167" type="uint"/>
5645    <field name="Frame Delta QIndex Max[1]" start="168" end="175" type="uint"/>
5646    <field name="Frame Delta QIndex Max[2]" start="176" end="183" type="uint"/>
5647    <field name="Frame Delta QIndex Max[3]" start="184" end="191" type="uint"/>
5648    <field name="Frame Delta QIndex Min[0]" start="192" end="199" type="uint"/>
5649    <field name="Frame Delta QIndex Min[1]" start="200" end="207" type="uint"/>
5650    <field name="Frame Delta QIndex Min[2]" start="208" end="215" type="uint"/>
5651    <field name="Frame Delta QIndex Min[3]" start="216" end="223" type="uint"/>
5652    <field name="Per Segment Frame Delta QIndex Max[1]" start="224" end="255" type="uint"/>
5653    <field name="Per Segment Frame Delta QIndex Min[1]" start="256" end="287" type="uint"/>
5654    <field name="Per Segment Frame Delta QIndex Max[2]" start="288" end="319" type="uint"/>
5655    <field name="Per Segment Frame Delta QIndex Min[2]" start="320" end="351" type="uint"/>
5656    <field name="Per Segment Frame Delta QIndex Max[3]" start="352" end="383" type="uint"/>
5657    <field name="Per Segment Frame Delta QIndex Min[3]" start="384" end="415" type="uint"/>
5658    <field name="Frame Delta Loop Filter Max[0]" start="416" end="423" type="uint"/>
5659    <field name="Frame Delta Loop Filter Max[1]" start="424" end="431" type="uint"/>
5660    <field name="Frame Delta Loop Filter Max[2]" start="432" end="439" type="uint"/>
5661    <field name="Frame Delta Loop Filter Max[3]" start="440" end="447" type="uint"/>
5662    <field name="Frame Delta Loop Filter Min[0]" start="448" end="455" type="uint"/>
5663    <field name="Frame Delta Loop Filter Min[1]" start="456" end="463" type="uint"/>
5664    <field name="Frame Delta Loop Filter Min[2]" start="464" end="471" type="uint"/>
5665    <field name="Frame Delta Loop Filter Min[3]" start="472" end="479" type="uint"/>
5666    <field name="Per Segment Frame Delta Loop Filter Max[1]" start="480" end="511" type="uint"/>
5667    <field name="Per Segment Frame Delta Loop Filter Min[1]" start="512" end="543" type="uint"/>
5668    <field name="Per Segment Frame Delta Loop Filter Max[2]" start="544" end="575" type="uint"/>
5669    <field name="Per Segment Frame Delta Loop Filter Min[2]" start="576" end="607" type="uint"/>
5670    <field name="Per Segment Frame Delta Loop Filter Max[3]" start="608" end="639" type="uint"/>
5671    <field name="Per Segment Frame Delta Loop Filter Min[3]" start="640" end="671" type="uint"/>
5672    <field name="Frame Bitrate Max Delta" start="672" end="686" type="uint"/>
5673    <field name="Frame Bitrate Min Delta" start="688" end="702" type="uint"/>
5674    <field name="Minimum Frame Size" start="704" end="719" type="uint"/>
5675    <field name="Minimum Frame Size Unit" start="720" end="721" type="uint">
5676      <value name="Compatibility mode" value="0"/>
5677      <value name="New mode" value="1"/>
5678    </field>
5679    <field name="Bitstream Format Version" start="724" end="726" type="uint"/>
5680    <field name="Show Frame" start="727" end="727" type="uint"/>
5681    <field name="Horizontal_Size_Code" start="736" end="751" type="uint"/>
5682    <field name="Vertical_Size_Code" start="752" end="767" type="uint"/>
5683    <field name="Frame Header Bit Count" start="768" end="799" type="uint"/>
5684    <field name="Frame Header Bin Buffer QIndex Update Pointer" start="800" end="831" type="uint"/>
5685    <field name="Frame Header Bin Buffer Loop Filter Update Pointer" start="832" end="863" type="uint"/>
5686    <field name="Frame Header Bin Buffer Token Update Pointer" start="864" end="895" type="uint"/>
5687    <field name="Frame Header Bin Buffer MV Update Pointer" start="896" end="927" type="uint"/>
5688    <field name="CV0" start="928" end="931" type="uint"/>
5689    <field name="CV1" start="932" end="935" type="uint"/>
5690    <field name="CV2" start="936" end="939" type="uint"/>
5691    <field name="CV3" start="940" end="943" type="uint"/>
5692    <field name="CV4" start="944" end="947" type="uint"/>
5693    <field name="CV5" start="948" end="951" type="uint"/>
5694    <field name="CV6" start="952" end="955" type="uint"/>
5695    <field name="CV7" start="956" end="959" type="uint"/>
5696  </instruction>
5697
5698  <instruction name="MFX_VP8_PAK_OBJECT" bias="2" length="7" engine="video">
5699    <field name="DWord Length" start="0" end="11" type="uint" default="5"/>
5700    <field name="SubOpcode B" start="16" end="20" type="uint" default="9"/>
5701    <field name="SubOpcode A" start="21" end="23" type="uint" default="2"/>
5702    <field name="Media Command Opcode" start="24" end="26" type="uint" default="4"/>
5703    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5704    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5705    <field name="Indirect PAK-MV Data Length" start="32" end="41" type="uint"/>
5706    <field name="Enable Inline MV data" start="61" end="61" type="bool"/>
5707    <field name="Indirect PAK-MV Data Start Address Offset" start="64" end="92" type="offset"/>
5708    <field name="Inline Data" start="96" end="223" type="uint"/>
5709  </instruction>
5710
5711  <instruction name="MFX_VP8_PIC_STATE" bias="2" length="2" engine="video">
5712    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
5713    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
5714    <field name="SubOpcode A" start="21" end="23" type="uint" default="0"/>
5715    <field name="Media Command OpCode" start="24" end="26" type="uint" default="4"/>
5716    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
5717    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5718    <field name="Frame Width" start="32" end="39" type="uint"/>
5719    <field name="Frame Height" start="48" end="55" type="uint"/>
5720    <field name="MC Filter Select" start="64" end="64" type="uint"/>
5721    <field name="Chroma Full Pixel MC Filter Mode" start="65" end="65" type="uint"/>
5722    <field name="DBLK Filter Type" start="68" end="68" type="uint"/>
5723    <field name="Key Frame" start="69" end="69" type="bool"/>
5724    <field name="Segmentation ID Stream-Out Enable" start="70" end="70" type="bool"/>
5725    <field name="Segmentation ID Stream-In Enable" start="71" end="71" type="bool"/>
5726    <field name="Segment Enable" start="72" end="72" type="bool"/>
5727    <field name="Update MB Segment Map" start="73" end="73" type="bool"/>
5728    <field name="MB NoCoeff Skip" start="74" end="74" type="bool"/>
5729    <field name="Mode Reference Loop Filter Delta Enable" start="75" end="75" type="bool"/>
5730    <field name="Golden Ref Picture MV Sign Bias" start="76" end="76" type="bool"/>
5731    <field name="Alternate Ref Pic MV Sign Bias" start="77" end="77" type="bool"/>
5732    <field name="Deblock Sharpness Level" start="80" end="82" type="uint"/>
5733    <field name="Log2 Num of Partition" start="88" end="89" type="uint">
5734      <value name="1 Token partition" value="0"/>
5735      <value name="2 Token partition" value="1"/>
5736      <value name="4 Token partition" value="2"/>
5737      <value name="8 Token partition" value="3"/>
5738    </field>
5739    <field name="DBLK Filter Level for Segment0" start="96" end="101" type="uint"/>
5740    <field name="DBLK Filter Level for Segment1" start="104" end="109" type="uint"/>
5741    <field name="DBLK Filter Level for Segment2" start="112" end="117" type="uint"/>
5742    <field name="DBLK Filter Level for Segment3" start="120" end="125" type="uint"/>
5743    <field name="Segment0 QIndex" start="128" end="134" type="uint"/>
5744    <field name="Segment1 QIndex" start="136" end="142" type="uint"/>
5745    <field name="Segment2 QIndex" start="144" end="150" type="uint"/>
5746    <field name="Segment3 QIndex" start="152" end="158" type="uint"/>
5747    <field name="Y2DC QIndex Delta" start="160" end="163" type="uint"/>
5748    <field name="Y2AC QIndex Delta Sign" start="164" end="164" type="uint"/>
5749    <field name="Y2AC QIndex Delta" start="168" end="171" type="uint"/>
5750    <field name="Y2AC QIndex Sign" start="172" end="172" type="uint"/>
5751    <field name="UVDC QIndex Delta" start="176" end="179" type="uint"/>
5752    <field name="UVDC QIndex Delta Sign" start="180" end="180" type="uint"/>
5753    <field name="UVAC QIndex Delta" start="184" end="187" type="uint"/>
5754    <field name="UVAC QIndex Delta Sign" start="188" end="188" type="uint"/>
5755    <field name="Y1DC QIndex Delta" start="192" end="195" type="uint"/>
5756    <field name="Y1DC QIndex Delta Sign" start="196" end="196" type="uint"/>
5757    <field name="Clamp QIndex Low" start="224" end="230" type="uint"/>
5758    <field name="Clamp QIndex High" start="232" end="238" type="uint"/>
5759    <field name="Quantizer Value [1][UVDC]" start="256" end="264" type="uint"/>
5760    <field name="Quantizer Value [1][UVAC]" start="272" end="280" type="uint"/>
5761    <field name="Quantizer Value [1][Y2DC]" start="288" end="296" type="uint"/>
5762    <field name="Quantizer Value [1][Y2AC]" start="304" end="312" type="uint"/>
5763    <field name="Quantizer Value [2][Y1DC]" start="320" end="328" type="uint"/>
5764    <field name="Quantizer Value [2][Y1AC]" start="336" end="344" type="uint"/>
5765    <field name="Quantizer Value [2][UVDC]" start="352" end="360" type="uint"/>
5766    <field name="Quantizer Value [2][UVAC]" start="368" end="376" type="uint"/>
5767    <field name="Quantizer Value [2][Y2DC]" start="384" end="392" type="uint"/>
5768    <field name="Quantizer Value [2][Y2AC]" start="400" end="408" type="uint"/>
5769    <field name="Quantizer Value [3][Y1DC]" start="416" end="424" type="uint"/>
5770    <field name="Quantizer Value [3][Y1AC]" start="432" end="440" type="uint"/>
5771    <field name="Quantizer Value [3][UVDC]" start="448" end="456" type="uint"/>
5772    <field name="Quantizer Value [3][UVAC]" start="464" end="472" type="uint"/>
5773    <field name="Quantizer Value [3][Y2DC]" start="480" end="488" type="uint"/>
5774    <field name="Quantizer Value [3][Y2AC]" start="496" end="504" type="uint"/>
5775    <field name="CoeffProbability Stream-In - Address" start="518" end="559" type="uint"/>
5776    <field name="CoeffProbability Stream-In - MOCS (Encoder Only)" start="577" end="582" type="uint"/>
5777    <field name="CoeffProbability Stream-In - Arbitration Priority Control" start="583" end="584" type="uint">
5778      <value name="Highest priority" value="0"/>
5779      <value name="Second highest priority" value="1"/>
5780      <value name="Third highest priority" value="2"/>
5781      <value name="Lowest priority" value="3"/>
5782    </field>
5783    <field name="CoeffProbability Stream-In - Memory Compression Enable" start="585" end="585" type="bool"/>
5784    <field name="CoeffProbability Stream-In - Memory Compression Mode" start="586" end="586" type="uint"/>
5785    <field name="CoeffProbability Stream-In - Tiled Resource Mode" start="589" end="590" type="uint">
5786      <value name="TRMODE_NONE" value="0"/>
5787      <value name="TRMODE_TILEYF" value="1"/>
5788      <value name="TRMODE_TILEYS" value="2"/>
5789    </field>
5790    <field name="MBSegmentIDTreeProbs[0]" start="608" end="615" type="uint"/>
5791    <field name="MBSegmentIDTreeProbs[1]" start="616" end="623" type="uint"/>
5792    <field name="MBSegmentIDTreeProbs[2]" start="624" end="631" type="uint"/>
5793    <field name="InterPredFromGRefRefProb" start="640" end="647" type="uint"/>
5794    <field name="InterPredFromLastRefProb" start="648" end="655" type="uint"/>
5795    <field name="IntraMBProb" start="656" end="663" type="uint"/>
5796    <field name="MBNoCoeffSkipFalseProb" start="664" end="671" type="uint"/>
5797    <field name="YModeProb[0]" start="672" end="679" type="uint"/>
5798    <field name="YModeProb[1]" start="680" end="687" type="uint"/>
5799    <field name="YModeProb[2]" start="688" end="695" type="uint"/>
5800    <field name="YModeProb[3]" start="696" end="703" type="uint"/>
5801    <field name="UVModeProb[0]" start="704" end="711" type="uint"/>
5802    <field name="UVModeProb[1]" start="712" end="719" type="uint"/>
5803    <field name="UVModeProb[2]" start="720" end="727" type="uint"/>
5804    <field name="MVUpdateProbs[0][0]" start="736" end="743" type="uint"/>
5805    <field name="MVUpdateProbs[0][1]" start="744" end="751" type="uint"/>
5806    <field name="MVUpdateProbs[0][2]" start="752" end="759" type="uint"/>
5807    <field name="MVUpdateProbs[0][3]" start="760" end="767" type="uint"/>
5808    <field name="MVUpdateProbs[0][4]" start="768" end="775" type="uint"/>
5809    <field name="MVUpdateProbs[0][5]" start="776" end="783" type="uint"/>
5810    <field name="MVUpdateProbs[0][6]" start="784" end="791" type="uint"/>
5811    <field name="MVUpdateProbs[0][7]" start="792" end="799" type="uint"/>
5812    <field name="MVUpdateProbs[0][8]" start="800" end="807" type="uint"/>
5813    <field name="MVUpdateProbs[0][9]" start="808" end="815" type="uint"/>
5814    <field name="MVUpdateProbs[0][10]" start="816" end="823" type="uint"/>
5815    <field name="MVUpdateProbs[0][11]" start="824" end="831" type="uint"/>
5816    <field name="MVUpdateProbs[0][12]" start="832" end="839" type="uint"/>
5817    <field name="MVUpdateProbs[0][13]" start="840" end="847" type="uint"/>
5818    <field name="MVUpdateProbs[0][14]" start="848" end="855" type="uint"/>
5819    <field name="MVUpdateProbs[0][15]" start="856" end="863" type="uint"/>
5820    <field name="MVUpdateProbs[0][16]" start="864" end="871" type="uint"/>
5821    <field name="MVUpdateProbs[0][17]" start="872" end="879" type="uint"/>
5822    <field name="MVUpdateProbs[0][18]" start="880" end="887" type="uint"/>
5823    <field name="MVUpdateProbs[1][0]" start="896" end="903" type="uint"/>
5824    <field name="MVUpdateProbs[1][1]" start="904" end="911" type="uint"/>
5825    <field name="MVUpdateProbs[1][2]" start="912" end="919" type="uint"/>
5826    <field name="MVUpdateProbs[1][3]" start="920" end="927" type="uint"/>
5827    <field name="MVUpdateProbs[1][4]" start="928" end="935" type="uint"/>
5828    <field name="MVUpdateProbs[1][5]" start="936" end="943" type="uint"/>
5829    <field name="MVUpdateProbs[1][6]" start="944" end="951" type="uint"/>
5830    <field name="MVUpdateProbs[1][7]" start="952" end="959" type="uint"/>
5831    <field name="MVUpdateProbs[1][8]" start="960" end="967" type="uint"/>
5832    <field name="MVUpdateProbs[1][9]" start="968" end="975" type="uint"/>
5833    <field name="MVUpdateProbs[1][10]" start="976" end="983" type="uint"/>
5834    <field name="MVUpdateProbs[1][11]" start="984" end="991" type="uint"/>
5835    <field name="MVUpdateProbs[1][12]" start="992" end="999" type="uint"/>
5836    <field name="MVUpdateProbs[1][13]" start="1000" end="1007" type="uint"/>
5837    <field name="MVUpdateProbs[1][14]" start="1008" end="1015" type="uint"/>
5838    <field name="MVUpdateProbs[1][15]" start="1016" end="1023" type="uint"/>
5839    <field name="MVUpdateProbs[1][16]" start="1024" end="1031" type="uint"/>
5840    <field name="MVUpdateProbs[1][17]" start="1032" end="1039" type="uint"/>
5841    <field name="MVUpdateProbs[1][18]" start="1040" end="1047" type="uint"/>
5842    <field name="RefLFDelta0" start="1056" end="1062" type="int"/>
5843    <field name="RefLFDelta1" start="1064" end="1070" type="int"/>
5844    <field name="RefLFDelta2" start="1072" end="1078" type="int"/>
5845    <field name="RefLFDelta3" start="1080" end="1086" type="int"/>
5846    <field name="ModeLFDelta0" start="1088" end="1094" type="int"/>
5847    <field name="ModeLFDelta1" start="1096" end="1102" type="int"/>
5848    <field name="ModeLFDelta2" start="1104" end="1110" type="int"/>
5849    <field name="ModeLFDelta3" start="1112" end="1118" type="int"/>
5850    <field name="Segmentation ID Stream - Address" start="1120" end="1167" type="uint"/>
5851    <field name="CoeffProbability Stream-In - MOCS" start="1185" end="1190" type="uint"/>
5852    <field name="Segmentation ID Stream - Arbitration Priority Control" start="1191" end="1192" type="uint">
5853      <value name="Highest priority" value="0"/>
5854      <value name="Second highest priority" value="1"/>
5855      <value name="Third highest priority" value="2"/>
5856      <value name="Lowest priority" value="3"/>
5857    </field>
5858    <field name="Segmentation ID Stream - Memory Compression Enable" start="1193" end="1193" type="bool"/>
5859    <field name="Segmentation ID Stream - Memory Compression Mode" start="1194" end="1194" type="uint"/>
5860    <field name="Segmentation ID Stream - Tiled Resource Mode" start="1197" end="1198" type="uint">
5861      <value name="TRMODE_NONE" value="0"/>
5862      <value name="TRMODE_TILEYF" value="1"/>
5863      <value name="TRMODE_TILEYS" value="2"/>
5864    </field>
5865  </instruction>
5866
5867  <instruction name="MFX_WAIT" bias="1" length="1" engine="video">
5868    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
5869    <field name="MFX Sync Control Flag" start="8" end="8" type="uint"/>
5870    <field name="SubOpcode" start="16" end="26" type="uint" default="0"/>
5871    <field name="Command Subtype" start="27" end="28" type="uint" default="1"/>
5872    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
5873  </instruction>
5874
5875  <instruction name="MI_ARB_CHECK" bias="1" length="1">
5876    <field name="MI Command Opcode" start="23" end="28" type="uint" default="5"/>
5877    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5878  </instruction>
5879
5880  <instruction name="MI_ARB_ON_OFF" bias="1" length="1">
5881    <field name="Arbitration Enable" start="0" end="0" type="bool" default="1"/>
5882    <field name="Allow Lite Restore" start="1" end="1" type="bool"/>
5883    <field name="MI Command Opcode" start="23" end="28" type="uint" default="8"/>
5884    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5885  </instruction>
5886
5887  <instruction name="MI_ATOMIC" bias="2" length="3">
5888    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5889    <field name="ATOMIC OPCODE" start="8" end="15" type="Atomic_OPCODE"/>
5890    <field name="Return Data Control" start="16" end="16" type="bool"/>
5891    <field name="CS STALL" start="17" end="17" type="bool"/>
5892    <field name="Inline Data" start="18" end="18" type="bool"/>
5893    <field name="Data Size" start="19" end="20" type="uint" prefix="MI_ATOMIC">
5894      <value name="DWORD" value="0"/>
5895      <value name="QWORD" value="1"/>
5896      <value name="OCTWORD" value="2"/>
5897      <value name="RESERVED" value="3"/>
5898    </field>
5899    <field name="Post-Sync Operation" start="21" end="21" type="bool"/>
5900    <field name="Memory Type" start="22" end="22" type="uint">
5901      <value name="Per Process Graphics Address" value="0"/>
5902      <value name="Global Graphics Address" value="1"/>
5903    </field>
5904    <field name="MI Command Opcode" start="23" end="28" type="uint" default="47"/>
5905    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5906    <field name="Memory Address" start="34" end="79" type="address"/>
5907    <field name="Operand1 Data Dword 0" start="96" end="127" type="uint"/>
5908    <field name="Operand2 Data Dword 0" start="128" end="159" type="uint"/>
5909    <field name="Operand1 Data Dword 1" start="160" end="191" type="uint"/>
5910    <field name="Operand2 Data Dword 1" start="192" end="223" type="uint"/>
5911    <field name="Operand1 Data Dword 2" start="224" end="255" type="uint"/>
5912    <field name="Operand2 Data Dword 2" start="256" end="287" type="uint"/>
5913    <field name="Operand1 Data Dword 3" start="288" end="319" type="uint"/>
5914    <field name="Operand2 Data Dword 3" start="320" end="351" type="uint"/>
5915  </instruction>
5916
5917  <instruction name="MI_BATCH_BUFFER_END" bias="1" length="1">
5918    <field name="End Context" start="0" end="0" type="bool"/>
5919    <field name="MI Command Opcode" start="23" end="28" type="uint" default="10"/>
5920    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5921  </instruction>
5922
5923  <instruction name="MI_BATCH_BUFFER_START" bias="2" length="3">
5924    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5925    <field name="Address Space Indicator" start="8" end="8" type="uint" prefix="ASI">
5926      <value name="GGTT" value="0"/>
5927      <value name="PPGTT" value="1"/>
5928    </field>
5929    <field name="Resource Streamer Enable" start="10" end="10" type="bool"/>
5930    <field name="Predication Enable" start="15" end="15" type="bool"/>
5931    <field name="Second Level Batch Buffer" start="22" end="22" type="uint">
5932      <value name="First level batch" value="0"/>
5933      <value name="Second level batch" value="1"/>
5934    </field>
5935    <field name="MI Command Opcode" start="23" end="28" type="uint" default="49"/>
5936    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5937    <field name="Batch Buffer Start Address" start="34" end="95" type="address"/>
5938  </instruction>
5939
5940  <instruction name="MI_CLFLUSH" bias="2" engine="render">
5941    <field name="DWord Length" start="0" end="9" type="uint" default="1"/>
5942    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5943    <field name="MI Command Opcode" start="23" end="28" type="uint" default="39"/>
5944    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5945    <field name="Starting Cacheline Offset" start="38" end="43" type="uint"/>
5946    <field name="Page Base Address" start="44" end="79" type="address"/>
5947    <group count="0" start="96" size="32">
5948      <field name="DW Representing a Half Cache Line" start="0" end="31" type="uint"/>
5949    </group>
5950  </instruction>
5951
5952  <instruction name="MI_CONDITIONAL_BATCH_BUFFER_END" bias="2" length="4">
5953    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
5954    <field name="Compare Mask Mode" start="19" end="19" type="uint">
5955      <value name="Compare Mask Mode Disabled" value="0"/>
5956      <value name="Compare Mask Mode Enabled" value="1"/>
5957    </field>
5958    <field name="Compare Semaphore" start="21" end="21" type="uint" default="0"/>
5959    <field name="Use Global GTT" start="22" end="22" type="bool"/>
5960    <field name="MI Command Opcode" start="23" end="28" type="uint" default="54"/>
5961    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5962    <field name="Compare Data Dword" start="32" end="63" type="uint"/>
5963    <field name="Compare Address" start="67" end="127" type="address"/>
5964  </instruction>
5965
5966  <instruction name="MI_COPY_MEM_MEM" bias="2" length="5">
5967    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
5968    <field name="Use Global GTT Destination" start="21" end="21" type="bool"/>
5969    <field name="Use Global GTT Source" start="22" end="22" type="bool"/>
5970    <field name="MI Command Opcode" start="23" end="28" type="uint" default="46"/>
5971    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
5972    <field name="Destination Memory Address" start="34" end="95" type="address"/>
5973    <field name="Source Memory Address" start="98" end="159" type="address"/>
5974  </instruction>
5975
5976  <instruction name="MI_DISPLAY_FLIP" bias="2" length="3" engine="render|blitter">
5977    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
5978    <field name="Display Plane Select" start="8" end="13" type="uint">
5979      <value name="Display Plane 1" value="0"/>
5980      <value name="Display Plane 2" value="1"/>
5981      <value name="Display Plane 3" value="2"/>
5982      <value name="Display Plane 4" value="4"/>
5983      <value name="Display Plane 5" value="5"/>
5984      <value name="Display Plane 6" value="6"/>
5985      <value name="Display Plane 7" value="7"/>
5986      <value name="Display Plane 8" value="8"/>
5987      <value name="Display Plane 9" value="9"/>
5988      <value name="Display Plane 10" value="10"/>
5989      <value name="Display Plane 11" value="11"/>
5990      <value name="Display Plane 12" value="12"/>
5991      <value name="Display Plane 13" value="13"/>
5992      <value name="Display Plane 14" value="14"/>
5993      <value name="Display Plane 15" value="15"/>
5994      <value name="Display Plane 16" value="16"/>
5995      <value name="Display Plane 17" value="17"/>
5996      <value name="Display Plane 18" value="18"/>
5997      <value name="Display Plane 19" value="19"/>
5998      <value name="Display Plane 20" value="20"/>
5999      <value name="Display Plane 21" value="21"/>
6000      <value name="Display Plane 22" value="22"/>
6001      <value name="Display Plane 23" value="23"/>
6002      <value name="Display Plane 24" value="24"/>
6003      <value name="Display Plane 25" value="25"/>
6004      <value name="Display Plane 26" value="26"/>
6005      <value name="Display Plane 27" value="27"/>
6006      <value name="Display Plane 28" value="28"/>
6007      <value name="Display Plane 29" value="29"/>
6008      <value name="Display Plane 30" value="30"/>
6009      <value name="Display Plane 31" value="31"/>
6010      <value name="Display Plane 32" value="32"/>
6011    </field>
6012    <field name="Async Flip Indicator" start="22" end="22" type="bool"/>
6013    <field name="MI Command Opcode" start="23" end="28" type="uint" default="20"/>
6014    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6015    <field name="Tile Parameter" start="32" end="34" type="uint"/>
6016    <field name="Display Buffer Pitch" start="38" end="47" type="uint"/>
6017    <field name="Stereoscopic 3D Mode" start="63" end="63" type="bool"/>
6018    <field name="Flip Type" start="64" end="65" type="uint">
6019      <value name="Sync Flip" value="0"/>
6020      <value name="Async Flip" value="1"/>
6021      <value name="Stereo 3D Flip" value="2"/>
6022    </field>
6023    <field name="VRR Master Flip" start="75" end="75" type="uint"/>
6024    <field name="Display Buffer Base Address" start="76" end="95" type="address"/>
6025    <field name="Left Eye Display Buffer Base Address" start="108" end="127" type="address"/>
6026  </instruction>
6027
6028  <instruction name="MI_FLUSH_DW" bias="2" length="5" engine="video">
6029    <field name="DWord Length" start="0" end="5" type="uint"/>
6030    <field name="Video Pipeline Cache Invalidate" start="7" end="7" type="bool"/>
6031    <field name="Notify Enable" start="8" end="8" type="bool"/>
6032    <field name="Flush LLC" start="9" end="9" type="bool"/>
6033    <field name="Post-Sync Operation" start="14" end="15" type="uint"/>
6034    <field name="TLB Invalidate" start="18" end="18" type="bool"/>
6035    <field name="Store Data Index" start="21" end="21" type="uint"/>
6036    <field name="MI Command Opcode" start="23" end="28" type="uint" default="38"/>
6037    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6038    <field name="Destination Address Type" start="34" end="34" type="uint" prefix="DAT">
6039      <value name="PPGTT" value="0"/>
6040      <value name="GGTT" value="1"/>
6041    </field>
6042    <field name="Address" start="35" end="79" type="address"/>
6043    <field name="Immediate Data" start="96" end="159" type="uint"/>
6044  </instruction>
6045
6046  <instruction name="MI_FORCE_WAKEUP" bias="2" length="2">
6047    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
6048    <field name="MI Command Opcode" start="23" end="28" type="uint" default="29"/>
6049    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6050    <field name="Force Media-Slice0 Awake" start="32" end="32" type="uint"/>
6051    <field name="Force Render Awake" start="33" end="33" type="uint"/>
6052    <field name="Force Media-Slice1 Awake" start="34" end="34" type="uint"/>
6053    <field name="Force Media-Slice2 Awake" start="35" end="35" type="uint"/>
6054    <field name="Force Media-Slice3 Awake" start="36" end="36" type="uint"/>
6055    <field name="Mask Bits" start="48" end="63" type="uint"/>
6056  </instruction>
6057
6058  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
6059    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
6060    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
6061    <field name="Add CS MMIO Start Offset" start="19" end="19" type="uint"/>
6062    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
6063    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6064    <field name="Register Offset" start="34" end="54" type="offset"/>
6065    <field name="Data DWord" start="64" end="95" type="uint"/>
6066    <group count="0" start="96" size="64">
6067      <field name="Register Offset" start="2" end="22" type="offset"/>
6068      <field name="Data DWord" start="32" end="63" type="uint"/>
6069    </group>
6070  </instruction>
6071
6072  <instruction name="MI_LOAD_REGISTER_MEM" bias="2" length="4">
6073    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
6074    <field name="Add CS MMIO Start Offset" start="19" end="19" type="uint"/>
6075    <field name="Add Loop Variable" start="20" end="20" type="uint"/>
6076    <field name="Async Mode Enable" start="21" end="21" type="bool"/>
6077    <field name="Use Global GTT" start="22" end="22" type="bool"/>
6078    <field name="MI Command Opcode" start="23" end="28" type="uint" default="41"/>
6079    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6080    <field name="Register Address" start="34" end="54" type="offset"/>
6081    <field name="Memory Address" start="66" end="127" type="address"/>
6082  </instruction>
6083
6084  <instruction name="MI_LOAD_REGISTER_REG" bias="2" length="3">
6085    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
6086    <field name="Add CS MMIO Start Offset Source" start="18" end="18" type="uint"/>
6087    <field name="Add CS MMIO Start Offset Destination" start="19" end="19" type="uint"/>
6088    <field name="MI Command Opcode" start="23" end="28" type="uint" default="42"/>
6089    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6090    <field name="Source Register Address" start="34" end="54" type="offset"/>
6091    <field name="Destination Register Address" start="66" end="86" type="offset"/>
6092  </instruction>
6093
6094  <instruction name="MI_LOAD_SCAN_LINES_EXCL" bias="2" length="2" engine="render">
6095    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
6096    <field name="Display (Plane) Select" start="19" end="21" type="uint">
6097      <value name="Display Plane A" value="0"/>
6098      <value name="Display Plane B" value="1"/>
6099      <value name="Display Plane C" value="4"/>
6100      <value name="Display Plane D" value="5"/>
6101    </field>
6102    <field name="MI Command Opcode" start="23" end="28" type="uint" default="19"/>
6103    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6104    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
6105    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
6106  </instruction>
6107
6108  <instruction name="MI_LOAD_SCAN_LINES_INCL" bias="2" length="2" engine="render">
6109    <field name="DWord Length" start="0" end="5" type="uint" default="0"/>
6110    <field name="Scan Line Event Done Forward" start="17" end="18" type="uint"/>
6111    <field name="Display (Plane) Select" start="19" end="21" type="uint">
6112      <value name="Display Plane 1 A" value="0"/>
6113      <value name="Display Plane 1 B" value="1"/>
6114      <value name="Display Plane 1 C" value="4"/>
6115      <value name="Display Plane 1 D" value="5"/>
6116    </field>
6117    <field name="MI Command Opcode" start="23" end="28" type="uint" default="18"/>
6118    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6119    <field name="End Scan Line Number" start="32" end="44" type="uint"/>
6120    <field name="Start Scan Line Number" start="48" end="60" type="uint"/>
6121  </instruction>
6122
6123  <instruction name="MI_MATH" bias="2">
6124    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
6125    <field name="MI Command Opcode" start="23" end="28" type="uint" default="26"/>
6126    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6127    <group count="0" start="32" size="32">
6128      <field name="Instruction" start="0" end="31" type="MI_MATH_ALU_INSTRUCTION"/>
6129    </group>
6130  </instruction>
6131
6132  <instruction name="MI_NOOP" bias="1" length="1">
6133    <field name="Identification Number" start="0" end="21" type="uint"/>
6134    <field name="Identification Number Register Write Enable" start="22" end="22" type="bool"/>
6135    <field name="MI Command Opcode" start="23" end="28" type="uint" default="0"/>
6136    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6137  </instruction>
6138
6139  <instruction name="MI_PREDICATE" bias="1" length="1">
6140    <field name="Compare Operation" start="0" end="1" type="uint" prefix="COMPARE">
6141      <value name="TRUE" value="0"/>
6142      <value name="FALSE" value="1"/>
6143      <value name="SRCS_EQUAL" value="2"/>
6144      <value name="DELTAS_EQUAL" value="3"/>
6145    </field>
6146    <field name="Combine Operation" start="3" end="4" type="uint" prefix="COMBINE">
6147      <value name="SET" value="0"/>
6148      <value name="AND" value="1"/>
6149      <value name="OR" value="2"/>
6150      <value name="XOR" value="3"/>
6151    </field>
6152    <field name="Load Operation" start="6" end="7" type="uint" prefix="LOAD">
6153      <value name="KEEP" value="0"/>
6154      <value name="LOAD" value="2"/>
6155      <value name="LOADINV" value="3"/>
6156    </field>
6157    <field name="MI Command Opcode" start="23" end="28" type="uint" default="12"/>
6158    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6159  </instruction>
6160
6161  <instruction name="MI_REPORT_HEAD" bias="1" length="1">
6162    <field name="MI Command Opcode" start="23" end="28" type="uint" default="7"/>
6163    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6164  </instruction>
6165
6166  <instruction name="MI_REPORT_PERF_COUNT" bias="2" length="4" engine="render">
6167    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
6168    <field name="MI Command Opcode" start="23" end="28" type="uint" default="40"/>
6169    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6170    <field name="Use Global GTT" start="32" end="32" type="bool"/>
6171    <field name="Core Mode Enable" start="36" end="36" type="uint"/>
6172    <field name="Memory Address" start="38" end="95" type="address"/>
6173    <field name="Report ID" start="96" end="127" type="uint"/>
6174  </instruction>
6175
6176  <instruction name="MI_RS_CONTEXT" bias="1" length="1" engine="render">
6177    <field name="Resource Streamer Save" start="0" end="0" type="uint" prefix="RS">
6178      <value name="Restore" value="0"/>
6179      <value name="Save" value="1"/>
6180    </field>
6181    <field name="MI Command Opcode" start="23" end="28" type="uint" default="15"/>
6182    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6183  </instruction>
6184
6185  <instruction name="MI_RS_CONTROL" bias="1" length="1" engine="render">
6186    <field name="Resource Streamer Control" start="0" end="0" type="uint" prefix="RS">
6187      <value name="Stop" value="0"/>
6188      <value name="Start" value="1"/>
6189    </field>
6190    <field name="MI Command Opcode" start="23" end="28" type="uint" default="6"/>
6191    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6192  </instruction>
6193
6194  <instruction name="MI_RS_STORE_DATA_IMM" bias="2" length="4" engine="render">
6195    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
6196    <field name="MI Command Opcode" start="23" end="28" type="uint" default="43"/>
6197    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6198    <field name="Core Mode Enable" start="32" end="32" type="uint"/>
6199    <field name="Destination Address" start="34" end="95" type="address"/>
6200    <field name="Data DWord 0" start="96" end="127" type="uint"/>
6201  </instruction>
6202
6203  <instruction name="MI_SEMAPHORE_SIGNAL" bias="2" length="2">
6204    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
6205    <field name="Target Engine Select" start="15" end="18" type="uint">
6206      <value name="RCS" value="0"/>
6207      <value name="VCS0" value="1"/>
6208      <value name="BCS" value="2"/>
6209      <value name="VECS" value="3"/>
6210      <value name="VCS1" value="4"/>
6211      <value name="VCS2" value="6"/>
6212      <value name="VCS3" value="7"/>
6213      <value name="VCS4" value="8"/>
6214      <value name="VCS5" value="9"/>
6215      <value name="VCS6" value="10"/>
6216      <value name="VCS7" value="11"/>
6217      <value name="VECS1" value="12"/>
6218      <value name="VECS2" value="13"/>
6219      <value name="VECS3" value="14"/>
6220    </field>
6221    <field name="Post-Sync Operation" start="21" end="21" type="bool"/>
6222    <field name="MI Command Opcode" start="23" end="28" type="uint" default="27"/>
6223    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6224    <field name="Target Context ID" start="32" end="63" type="uint"/>
6225  </instruction>
6226
6227  <instruction name="MI_SEMAPHORE_WAIT" bias="2" length="4">
6228    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
6229    <field name="Compare Operation" start="12" end="14" type="uint" prefix="COMPARE">
6230      <value name="SAD_GREATER_THAN_SDD" value="0"/>
6231      <value name="SAD_GREATER_THAN_OR_EQUAL_SDD" value="1"/>
6232      <value name="SAD_LESS_THAN_SDD" value="2"/>
6233      <value name="SAD_LESS_THAN_OR_EQUAL_SDD" value="3"/>
6234      <value name="SAD_EQUAL_SDD" value="4"/>
6235      <value name="SAD_NOT_EQUAL_SDD" value="5"/>
6236    </field>
6237    <field name="Wait Mode" start="15" end="15" type="uint">
6238      <value name="Polling Mode" value="1"/>
6239      <value name="Signal Mode" value="0"/>
6240    </field>
6241    <field name="Register Poll Mode" start="16" end="16" type="bool"/>
6242    <field name="Memory Type" start="22" end="22" type="uint">
6243      <value name="Per Process Graphics Address" value="0"/>
6244      <value name="Global Graphics Address" value="1"/>
6245    </field>
6246    <field name="MI Command Opcode" start="23" end="28" type="uint" default="28"/>
6247    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6248    <field name="Semaphore Data Dword" start="32" end="63" type="uint"/>
6249    <field name="Semaphore Address" start="66" end="127" type="address"/>
6250  </instruction>
6251
6252  <instruction name="MI_SET_CONTEXT" bias="2" length="2" engine="render">
6253    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
6254    <field name="MI Command Opcode" start="23" end="28" type="uint" default="24"/>
6255    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6256    <field name="Restore Inhibit" start="32" end="32" type="uint"/>
6257    <field name="Force Restore" start="33" end="33" type="uint"/>
6258    <field name="Resource Streamer State Restore Enable" start="34" end="34" type="bool"/>
6259    <field name="Resource Streamer State Save Enable" start="35" end="35" type="bool"/>
6260    <field name="Core Mode Enable" start="36" end="36" type="bool"/>
6261    <field name="Reserved, Must be 1" start="40" end="40" type="uint"/>
6262    <field name="Logical Context Address" start="44" end="63" type="address"/>
6263  </instruction>
6264
6265  <instruction name="MI_SET_PREDICATE" bias="1" length="1">
6266    <field name="PREDICATE ENABLE" start="0" end="3" type="uint">
6267      <value name="NOOP Never" value="0"/>
6268      <value name="NOOP on Result2 clear" value="1"/>
6269      <value name="NOOP on Result2 set" value="2"/>
6270      <value name="NOOP on Result clear" value="3"/>
6271      <value name="NOOP on Result set" value="4"/>
6272      <value name="NOOP Always" value="15"/>
6273    </field>
6274    <field name="MI Command Opcode" start="23" end="28" type="uint" default="1"/>
6275    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6276  </instruction>
6277
6278  <instruction name="MI_STORE_DATA_IMM" bias="2" length="4">
6279    <field name="DWord Length" start="0" end="9" type="uint" default="2"/>
6280    <field name="Force Write Completion Check " start="10" end="10" type="bool"/>
6281    <field name="Store Qword" start="21" end="21" type="uint"/>
6282    <field name="Use Global GTT" start="22" end="22" type="bool"/>
6283    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
6284    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6285    <field name="Core Mode Enable" start="32" end="32" type="uint"/>
6286    <field name="Address" start="34" end="79" type="address"/>
6287    <field name="Immediate Data" start="96" end="159" type="uint"/>
6288  </instruction>
6289
6290  <instruction name="MI_STORE_DATA_INDEX" bias="2" length="3">
6291    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
6292    <field name="Use Per-Process Hardware Status Page" start="21" end="21" type="uint"/>
6293    <field name="MI Command Opcode" start="23" end="28" type="uint" default="33"/>
6294    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6295    <field name="Offset" start="34" end="43" type="uint"/>
6296    <field name="Data DWord 0" start="64" end="95" type="uint"/>
6297    <field name="Data DWord 1" start="96" end="127" type="uint"/>
6298  </instruction>
6299
6300  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="4">
6301    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
6302    <field name="Add CS MMIO Start Offset" start="19" end="19" type="uint"/>
6303    <field name="Predicate Enable" start="21" end="21" type="bool"/>
6304    <field name="Use Global GTT" start="22" end="22" type="bool"/>
6305    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
6306    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6307    <field name="Register Address" start="34" end="54" type="offset"/>
6308    <field name="Memory Address" start="66" end="127" type="address"/>
6309  </instruction>
6310
6311  <instruction name="MI_SUSPEND_FLUSH" bias="1" length="1">
6312    <field name="Suspend Flush" start="0" end="0" type="bool"/>
6313    <field name="MI Command Opcode" start="23" end="28" type="uint" default="11"/>
6314    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6315  </instruction>
6316
6317  <instruction name="MI_TOPOLOGY_FILTER" bias="1" length="1" engine="render">
6318    <field name="Topology Filter Value" start="0" end="5" type="3D_Prim_Topo_Type"/>
6319    <field name="MI Command Opcode" start="23" end="28" type="uint" default="13"/>
6320    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6321  </instruction>
6322
6323  <instruction name="MI_USER_INTERRUPT" bias="1" length="1">
6324    <field name="MI Command Opcode" start="23" end="28" type="uint" default="2"/>
6325    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6326  </instruction>
6327
6328  <instruction name="MI_WAIT_FOR_EVENT" bias="1" length="1" engine="render|blitter">
6329    <field name="Display Plnae 1 A Scan Line Wait Enable" start="0" end="0" type="bool"/>
6330    <field name="Display Plane 1 Flip Pending Wait Enable" start="1" end="1" type="bool"/>
6331    <field name="Display Plane 4 Flip Pending Wait Enable" start="2" end="2" type="bool"/>
6332    <field name="Display Plane 1 A Vertical Blank Wait Enable" start="3" end="3" type="bool"/>
6333    <field name="Display Plane 7 Flip Pending Wait Enable" start="6" end="6" type="bool"/>
6334    <field name="Display Plane 8 Flip Pending Wait Enable" start="7" end="7" type="bool"/>
6335    <field name="Display Plane 1 B Scan Line Wait Enable" start="8" end="8" type="bool"/>
6336    <field name="Display Plane 2 Flip Pending Wait Enable" start="9" end="9" type="bool"/>
6337    <field name="Display Plane 5 Flip Pending Wait Enable" start="10" end="10" type="bool"/>
6338    <field name="Display Plane 1 B Vertical Blank Wait Enable" start="11" end="11" type="bool"/>
6339    <field name="Display Plane 1 C Scan Line Wait Enable" start="14" end="14" type="bool"/>
6340    <field name="Display Plane 3 Flip Pending Wait Enable" start="15" end="15" type="bool"/>
6341    <field name="Display Plane 9 Flip Pending Wait Enable" start="16" end="16" type="bool"/>
6342    <field name="Display Plane 10 Flip Pending Wait Enable" start="17" end="17" type="bool"/>
6343    <field name="Display Plane 11 Flip Pending Wait Enable" start="18" end="18" type="bool"/>
6344    <field name="Display Plane 12 Flip Pending Wait Enable" start="19" end="19" type="bool"/>
6345    <field name="Display Plane 6 Flip Pending Wait Enable" start="20" end="20" type="bool"/>
6346    <field name="Display Plane 1 C Vertical Blank Wait Enable" start="21" end="21" type="bool"/>
6347    <field name="MI Command Opcode" start="23" end="28" type="uint" default="3"/>
6348    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6349  </instruction>
6350
6351  <instruction name="MI_WAIT_FOR_EVENT_2" bias="1" length="1" engine="render|blitter">
6352    <field name="Display Plane Flip Pending Wait Enable" start="0" end="5" type="uint"/>
6353    <field name="Display Pipe Vertical Blank Wait Enable" start="8" end="10" type="uint"/>
6354    <field name="Display Pipe Scan Line Wait Enable" start="12" end="14" type="uint"/>
6355    <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
6356    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
6357  </instruction>
6358
6359  <instruction name="PIPELINE_SELECT" bias="1" length="1" engine="render">
6360    <field name="Pipeline Selection" start="0" end="1" type="uint">
6361      <value name="3D" value="0"/>
6362      <value name="Media" value="1"/>
6363      <value name="GPGPU" value="2"/>
6364    </field>
6365    <field name="Media Sampler DOP Clock Gate Enable" start="4" end="4" type="bool"/>
6366    <field name="Force Media Awake" start="5" end="5" type="bool"/>
6367    <field name="Mask Bits" start="8" end="15" type="uint"/>
6368    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
6369    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
6370    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
6371    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6372  </instruction>
6373
6374  <instruction name="PIPE_CONTROL" bias="2" length="6" engine="render">
6375    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
6376    <field name="HDC Pipeline Flush Enable" start="9" end="9" type="bool"/>
6377    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
6378    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
6379    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
6380    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6381    <field name="Depth Cache Flush Enable" start="32" end="32" type="bool"/>
6382    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
6383    <field name="State Cache Invalidation Enable" start="34" end="34" type="bool"/>
6384    <field name="Constant Cache Invalidation Enable" start="35" end="35" type="bool"/>
6385    <field name="VF Cache Invalidation Enable" start="36" end="36" type="bool"/>
6386    <field name="DC Flush Enable" start="37" end="37" type="bool"/>
6387    <field name="Pipe Control Flush Enable" start="39" end="39" type="bool"/>
6388    <field name="Notify Enable" start="40" end="40" type="bool"/>
6389    <field name="Indirect State Pointers Disable" start="41" end="41" type="bool"/>
6390    <field name="Texture Cache Invalidation Enable" start="42" end="42" type="bool"/>
6391    <field name="Instruction Cache Invalidate Enable" start="43" end="43" type="bool"/>
6392    <field name="Render Target Cache Flush Enable" start="44" end="44" type="bool"/>
6393    <field name="Depth Stall Enable" start="45" end="45" type="bool"/>
6394    <field name="Post Sync Operation" start="46" end="47" type="uint">
6395      <value name="No Write" value="0"/>
6396      <value name="Write Immediate Data" value="1"/>
6397      <value name="Write PS Depth Count" value="2"/>
6398      <value name="Write Timestamp" value="3"/>
6399    </field>
6400    <field name="Generic Media State Clear" start="48" end="48" type="bool"/>
6401    <field name="PSD Sync Enable" start="49" end="49" type="bool"/>
6402    <field name="TLB Invalidate" start="50" end="50" type="bool"/>
6403    <field name="Global Snapshot Count Reset" start="51" end="51" type="bool"/>
6404    <field name="Command Streamer Stall Enable" start="52" end="52" type="bool"/>
6405    <field name="Store Data Index" start="53" end="53" type="uint"/>
6406    <field name="LRI Post Sync Operation" start="55" end="55" type="uint">
6407      <value name="No LRI Operation" value="0"/>
6408      <value name="MMIO Write Immediate Data" value="1"/>
6409    </field>
6410    <field name="Destination Address Type" start="56" end="56" type="uint" prefix="DAT">
6411      <value name="PPGTT" value="0"/>
6412      <value name="GGTT" value="1"/>
6413    </field>
6414    <field name="Flush LLC" start="58" end="58" type="bool"/>
6415    <field name="Tile Cache Flush Enable" start="60" end="60" type="bool"/>
6416    <field name="Command Cache Invalidate Enable" start="61" end="61" type="bool"/>
6417    <field name="Address" start="66" end="111" type="address"/>
6418    <field name="Immediate Data" start="128" end="191" type="uint"/>
6419  </instruction>
6420
6421  <instruction name="SFC_AVS_CHROMA_COEFF_TABLE" bias="2" length="65" engine="video">
6422    <field name="DWord Length" start="0" end="11" type="uint" default="63"/>
6423    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
6424    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6425    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6426    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6427    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6428    <field name="AVS CHROMA Coefficient Table Body" start="32" end="2079" type="SFC_AVS_CHROMA_COEFF_TABLE_BODY"/>
6429  </instruction>
6430
6431  <instruction name="SFC_AVS_LUMA_COEFF_TABLE" bias="2" length="129" engine="video">
6432    <field name="DWord Length" start="0" end="11" type="uint" default="127"/>
6433    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
6434    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6435    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6436    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6437    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6438    <field name="AVS LUMA Coefficient Table Body" start="32" end="4255" type="SFC_AVS_LUMA_COEFF_TABLE_BODY"/>
6439  </instruction>
6440
6441  <instruction name="SFC_AVS_STATE" bias="2" length="4" engine="video">
6442    <field name="DWord Length" start="0" end="11" type="uint" default="2"/>
6443    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
6444    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6445    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6446    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6447    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6448    <field name="AVS State Body" start="32" end="1567" type="SFC_AVS_STATE_BODY"/>
6449  </instruction>
6450
6451  <instruction name="SFC_FRAME_START" bias="2" length="2" engine="video">
6452    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6453    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
6454    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6455    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6456    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6457    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6458    <field name="Frame Start Body" start="32" end="63" type="uint"/>
6459  </instruction>
6460
6461  <instruction name="SFC_IEF_STATE" bias="2" length="24" engine="video">
6462    <field name="DWord Length" start="0" end="11" type="uint" default="22"/>
6463    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
6464    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6465    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6466    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6467    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6468    <field name="SFC IEF State Body" start="32" end="767" type="SFC_IEF_STATE_BODY"/>
6469  </instruction>
6470
6471  <instruction name="SFC_LOCK" bias="2" length="2" engine="video">
6472    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6473    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
6474    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6475    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6476    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6477    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6478    <field name="SFC Lock Body" start="32" end="63" type="SFC_LOCK_BODY"/>
6479  </instruction>
6480
6481  <instruction name="SFC_STATE" bias="2" length="32" engine="video">
6482    <field name="DWord Length" start="0" end="11" type="uint" default="30"/>
6483    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
6484    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6485    <field name="Media Command Opcode" start="23" end="26" type="uint" default="10"/>
6486    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6487    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6488    <field name="SFC Pipe Mode" start="32" end="35" type="uint"/>
6489    <field name="SFC Input Chroma Sub-Sampling" start="36" end="39" type="uint">
6490      <value name="4:0:0" value="0"/>
6491      <value name="4:2:0" value="1"/>
6492      <value name="4:2:2 Horizonatal" value="2"/>
6493      <value name="4:4:4 Progressive/Interleaved" value="4"/>
6494    </field>
6495    <field name="VD/VE Input Ordering Mode" start="40" end="42" type="uint"/>
6496    <field name="Input Frame Resolution Width" start="64" end="75" type="uint"/>
6497    <field name="Input Frame Resolution Height" start="80" end="91" type="uint"/>
6498    <field name="Output Surface Format Type" start="96" end="99" type="uint"/>
6499    <field name="RGBA Channel Swap Enable" start="101" end="101" type="bool"/>
6500    <field name="Output Chroma Downsampling Co-siting position Vertical Direction" start="104" end="107" type="uint">
6501      <value name="0/8 (Left Full Pixel)" value="0"/>
6502      <value name="1/8" value="1"/>
6503      <value name="1/4 (2/8)" value="2"/>
6504      <value name="3/8" value="3"/>
6505      <value name="1/2 (4/8)" value="4"/>
6506      <value name="5/8" value="5"/>
6507      <value name="3/4 (6/8)" value="6"/>
6508      <value name="7/8" value="7"/>
6509      <value name="8/8" value="8"/>
6510    </field>
6511    <field name="Output Chroma Downsampling Co-siting position Horizontal Direction" start="108" end="111" type="uint">
6512      <value name="0/8 (Left Full Pixel)" value="0"/>
6513      <value name="1/8" value="1"/>
6514      <value name="1/4 (2/8)" value="2"/>
6515      <value name="3/8" value="3"/>
6516      <value name="1/2 (4/8)" value="4"/>
6517      <value name="5/8" value="5"/>
6518      <value name="3/4 (6/8)" value="6"/>
6519      <value name="7/8" value="7"/>
6520      <value name="8/8" value="8"/>
6521    </field>
6522    <field name="IEF Enable" start="128" end="128" type="bool"/>
6523    <field name="Skin Tone Tuned IEF_Enable" start="129" end="129" type="bool"/>
6524    <field name="IEF4 Smooth Enable" start="130" end="130" type="bool"/>
6525    <field name="AVS Filter Mode" start="132" end="133" type="uint">
6526      <value name="5x5 Poly-phase filter + Bilinear" value="0"/>
6527      <value name="8x8 poly-phase filter + Bilinear" value="1"/>
6528      <value name="Bilinear filter only" value="2"/>
6529    </field>
6530    <field name="Adaptive Filter for all Channels" start="134" end="134" type="bool"/>
6531    <field name="AVS Scaling Enable" start="135" end="135" type="bool"/>
6532    <field name="Bypass Y Adaptive Filtering" start="136" end="136" type="bool"/>
6533    <field name="Bypass X Adaptive Filtering" start="137" end="137" type="bool"/>
6534    <field name="RGB Adaptive" start="138" end="138" type="bool"/>
6535    <field name="Chroma Upsampling Enable" start="140" end="140" type="bool"/>
6536    <field name="Mirror Type" start="141" end="141" type="uint">
6537      <value name="Horizontal Flip" value="0"/>
6538      <value name="Vertical Flip" value="1"/>
6539    </field>
6540    <field name="Mirror Mode" start="142" end="142" type="bool"/>
6541    <field name="Rotation Mode" start="144" end="145" type="uint">
6542      <value name="0" value="0"/>
6543      <value name="90 CW" value="1"/>
6544      <value name="180 CW" value="2"/>
6545      <value name="270 CW" value="3"/>
6546    </field>
6547    <field name="Color Fill Enable" start="146" end="146" type="bool"/>
6548    <field name="CSC Enable" start="147" end="147" type="bool"/>
6549    <field name="Bit Depth" start="148" end="149" type="uint" prefix="SFC">
6550      <value name="10-bit" value="0"/>
6551      <value name="16-bit" value="1"/>
6552    </field>
6553    <field name="Source Region Width" start="160" end="171" type="uint"/>
6554    <field name="Source Region Height" start="176" end="187" type="uint"/>
6555    <field name="Source Region Horizontal Offset" start="192" end="203" type="uint"/>
6556    <field name="Source Region Vertical Offset" start="208" end="219" type="uint"/>
6557    <field name="Output Frame Width" start="224" end="235" type="uint"/>
6558    <field name="Output Frame Height" start="240" end="251" type="uint"/>
6559    <field name="Scaled Region Size Width" start="256" end="267" type="uint"/>
6560    <field name="Scaled Region Size Height" start="272" end="283" type="uint"/>
6561    <field name="Scaled Region Horizontal Offset" start="288" end="300" type="int"/>
6562    <field name="Scaled Region Vertical Offset" start="304" end="316" type="int"/>
6563    <field name="Gray Bar Pixel - U/G" start="320" end="329" type="uint"/>
6564    <field name="Gray Bar Pixel - Y/R" start="336" end="345" type="uint"/>
6565    <field name="Gray Bar Pixel - A" start="352" end="361" type="uint"/>
6566    <field name="Gray Bar Pixel - V/B" start="368" end="377" type="uint"/>
6567    <field name="UV Default value for U channel" start="384" end="393" type="uint"/>
6568    <field name="UV Default value for V channel" start="400" end="409" type="uint"/>
6569    <field name="Alpha Default Value" start="416" end="425" type="uint"/>
6570    <field name="Scaling Factor Height" start="448" end="468" type="u4.17"/>
6571    <field name="Scaling Factor Width" start="480" end="500" type="u4.17"/>
6572    <field name="Output Frame - Address" start="556" end="591" type="uint"/>
6573    <field name="Output Frame - MOCS" start="609" end="614" type="uint"/>
6574    <field name="Output Frame - Arbitration Priority Control" start="615" end="616" type="HEVC_ARBITRATION_PRIORITY"/>
6575    <field name="Output Frame - Memory Compression Enable" start="617" end="617" type="bool"/>
6576    <field name="Output Frame - Memory Compression Mode" start="618" end="618" type="uint"/>
6577    <field name="Output Frame - Cache Select" start="620" end="620" type="bool"/>
6578    <field name="Output Frame - Tiled Mode" start="621" end="622" type="uint">
6579      <value name="TRMODE_NONE" value="0"/>
6580      <value name="TRMODE_TILEYF" value="1"/>
6581      <value name="TRMODE_TILEYS" value="2"/>
6582    </field>
6583    <field name="AVS Line Buffer - Address" start="652" end="687" type="uint"/>
6584    <field name="AVS Line Buffer - MOCS" start="705" end="710" type="uint"/>
6585    <field name="AVS Line Buffer - Arbitration Priority Control" start="711" end="712" type="HEVC_ARBITRATION_PRIORITY"/>
6586    <field name="AVS Line Buffer - Memory Compression Enable" start="713" end="713" type="bool"/>
6587    <field name="AVS Line Buffer - Memory Compression Mode" start="714" end="714" type="uint">
6588      <value name="Horizontal Compression Mode" value="0"/>
6589    </field>
6590    <field name="AVS Line Buffer - Cache Select" start="716" end="716" type="uint">
6591      <value name="LLC" value="0"/>
6592    </field>
6593    <field name="AVS Line Buffer - Tiled Mode" start="717" end="718" type="uint">
6594      <value name="TRMODE_NONE" value="0"/>
6595      <value name="TRMODE_TILEYF" value="1"/>
6596      <value name="TRMODE_TILEYS" value="2"/>
6597    </field>
6598    <field name="IEF Line Buffer - Address" start="748" end="783" type="uint"/>
6599    <field name="IEF Line Buffer - MOCS" start="801" end="806" type="uint"/>
6600    <field name="IEF Line Buffer - Arbitration Priority Control" start="807" end="808" type="HEVC_ARBITRATION_PRIORITY"/>
6601    <field name="IEF Line Buffer - Memory Compression Enable" start="809" end="809" type="bool"/>
6602    <field name="IEF Line Buffer - Memory Compression Mode" start="810" end="810" type="uint"/>
6603    <field name="IEF Line Buffer - Cache Select" start="812" end="812" type="uint"/>
6604    <field name="IEF Line Buffer - Tiled Mode" start="813" end="814" type="uint">
6605      <value name="TRMODE_NONE" value="0"/>
6606      <value name="TRMODE_TILEYF" value="1"/>
6607      <value name="TRMODE_TILEYS" value="2"/>
6608    </field>
6609    <field name="Output Surface Tile Walk" start="928" end="928" type="uint" prefix="TW">
6610      <value name="XMAJOR" value="0"/>
6611      <value name="YMAJOR" value="1"/>
6612    </field>
6613    <field name="Output Surface Tiled" start="929" end="929" type="bool"/>
6614    <field name="Output Surface Half Pitch for Chroma" start="930" end="930" type="bool"/>
6615    <field name="Output Surface Pitch" start="931" end="947" type="uint"/>
6616    <field name="Output Surface Interleave Chroma Enable" start="955" end="955" type="bool"/>
6617    <field name="Output Surface Format" start="956" end="959" type="uint"/>
6618    <field name="Output Surface Y Offset for U" start="960" end="973" type="uint"/>
6619    <field name="Output Surface X Offset for U" start="976" end="989" type="uint"/>
6620    <field name="Output Surface Y Offset for V" start="992" end="1005" type="uint"/>
6621    <field name="Output Surface X Offset for V" start="1008" end="1021" type="uint"/>
6622  </instruction>
6623
6624  <instruction name="STATE_BASE_ADDRESS" bias="2" length="22" engine="render">
6625    <field name="DWord Length" start="0" end="7" type="uint" default="20"/>
6626    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
6627    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
6628    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
6629    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6630    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
6631    <field name="General State MOCS" start="36" end="42" type="uint"/>
6632    <field name="General State Base Address" start="44" end="95" type="address"/>
6633    <field name="Stateless Data Port Access MOCS" start="112" end="118" type="uint"/>
6634    <field name="Surface State Base Address Modify Enable" start="128" end="128" type="bool"/>
6635    <field name="Surface State MOCS" start="132" end="138" type="uint"/>
6636    <field name="Surface State Base Address" start="140" end="191" type="address"/>
6637    <field name="Dynamic State Base Address Modify Enable" start="192" end="192" type="bool"/>
6638    <field name="Dynamic State MOCS" start="196" end="202" type="uint"/>
6639    <field name="Dynamic State Base Address" start="204" end="255" type="address"/>
6640    <field name="Indirect Object Base Address Modify Enable" start="256" end="256" type="bool"/>
6641    <field name="Indirect Object MOCS" start="260" end="266" type="uint"/>
6642    <field name="Indirect Object Base Address" start="268" end="319" type="address"/>
6643    <field name="Instruction Base Address Modify Enable" start="320" end="320" type="bool"/>
6644    <field name="Instruction MOCS" start="324" end="330" type="uint"/>
6645    <field name="Instruction Base Address" start="332" end="383" type="address"/>
6646    <field name="General State Buffer Size Modify Enable" start="384" end="384" type="bool"/>
6647    <field name="General State Buffer Size" start="396" end="415" type="uint"/>
6648    <field name="Dynamic State Buffer Size Modify Enable" start="416" end="416" type="bool"/>
6649    <field name="Dynamic State Buffer Size" start="428" end="447" type="uint"/>
6650    <field name="Indirect Object Buffer Size Modify Enable" start="448" end="448" type="bool"/>
6651    <field name="Indirect Object Buffer Size" start="460" end="479" type="uint"/>
6652    <field name="Instruction Buffer size Modify Enable" start="480" end="480" type="bool"/>
6653    <field name="Instruction Buffer Size" start="492" end="511" type="uint"/>
6654    <field name="Bindless Surface State Base Address Modify Enable" start="512" end="512" type="bool"/>
6655    <field name="Bindless Surface State MOCS" start="516" end="522" type="uint"/>
6656    <field name="Bindless Surface State Base Address" start="524" end="575" type="address"/>
6657    <field name="Bindless Surface State Size" start="588" end="607" type="uint"/>
6658    <field name="Bindless Sampler State Base Address Modify Enable" start="608" end="608" type="bool"/>
6659    <field name="Bindless Sampler State MOCS" start="612" end="618" type="uint"/>
6660    <field name="Bindless Sampler State Base Address" start="620" end="671" type="address"/>
6661    <field name="Bindless Sampler State Buffer Size" start="684" end="703" type="uint"/>
6662  </instruction>
6663
6664  <instruction name="STATE_SIP" bias="2" length="3" engine="render">
6665    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
6666    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
6667    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
6668    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
6669    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6670    <field name="System Instruction Pointer" start="36" end="95" type="offset"/>
6671  </instruction>
6672
6673  <instruction name="VDENC_CONST_QPT_STATE" bias="2" length="62" engine="video">
6674    <field name="DWord Length" start="0" end="11" type="uint" default="60"/>
6675    <field name="SubOpcode B" start="16" end="20" type="uint" default="6"/>
6676    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6677    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6678    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6679    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6680    <field name="QP Lambda Array Index[n]" start="32" end="39" type="uint"/>
6681    <field name="Skip Threshold Array Index[n]" start="384" end="399" type="uint"/>
6682    <field name="SIC Forward Transform Coeff Threshold Matrix0 Array Index[n]" start="832" end="847" type="uint"/>
6683    <field name="SIC Forward Transform Coeff Threshold Matrix1/3/5 Array Index[n]" start="1280" end="1287" type="uint"/>
6684    <field name="SIC Forward Transform Coeff Threshold Matrix2 Array Index[n]" start="1504" end="1511" type="uint"/>
6685    <field name="SIC Forward Transform Coeff Threshold Matrix4/6 Array Index[n]" start="1728" end="1735" type="uint"/>
6686  </instruction>
6687
6688  <instruction name="VDENC_DS_REF_SURFACE_STATE" bias="2" length="6" engine="video">
6689    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
6690    <field name="SubOpcode B" start="16" end="20" type="uint" default="3"/>
6691    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6692    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6693    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6694    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6695    <field name="8X Surface State" start="64" end="191" type="VDENC_SURFACE_STATE_FIELDS"/>
6696    <field name="4X Surface State" start="192" end="319" type="VDENC_SURFACE_STATE_FIELDS"/>
6697  </instruction>
6698
6699  <instruction name="VDENC_IMG_STATE" bias="2" length="36" engine="video">
6700    <field name="DWord Length" start="0" end="11" type="uint" default="34"/>
6701    <field name="SubOpcode B" start="16" end="20" type="uint" default="5"/>
6702    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6703    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6704    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6705    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6706    <field name="Bidirectional Mix Disable" start="34" end="34" type="bool"/>
6707    <field name="VDENC PerfMode" start="35" end="35" type="uint">
6708      <value name="Speed" value="1"/>
6709    </field>
6710    <field name="Time Budget Overflow Check" start="36" end="36" type="bool"/>
6711    <field name="VDEnc Extended PAK_OBJ_CMD Enable" start="38" end="38" type="bool"/>
6712    <field name="Transform 8x8" start="39" end="39" type="bool"/>
6713    <field name="VDEnc L1 Cache Priority" start="40" end="41" type="uint"/>
6714    <field name="Lambda Value for Trellis" start="48" end="63" type="uint"/>
6715    <field name="Unidirectional Mix Disable" start="92" end="92" type="bool"/>
6716    <field name="Picture Width" start="112" end="127" type="uint"/>
6717    <field name="Sub-Pel Mode" start="140" end="141" type="uint"/>
6718    <field name="Forward Transform Skip Check Enable" start="145" end="145" type="bool"/>
6719    <field name="Block-Based Skip Enable" start="147" end="147" type="bool"/>
6720    <field name="Inter SAD Measure Adjustment" start="148" end="149" type="uint">
6721      <value name="None" value="0"/>
6722      <value name="Haar Transform Adjusted" value="2"/>
6723    </field>
6724    <field name="Intra SAD Measure Adjustment" start="150" end="151" type="uint">
6725      <value name="None" value="0"/>
6726      <value name="Haar Transform Adjusted" value="2"/>
6727    </field>
6728    <field name="Sub-MB Sub-Partition Mask" start="152" end="158" type="uint"/>
6729    <field name="Block-Based Skip Type" start="159" end="159" type="uint"/>
6730    <field name="Picture Height" start="160" end="175" type="uint"/>
6731    <field name="CRE Prefetch Enable" start="176" end="176" type="bool"/>
6732    <field name="HME Ref1 Disable" start="177" end="177" type="bool"/>
6733    <field name="MB Slice Threshold Value" start="178" end="181" type="uint"/>
6734    <field name="Constrained Intra Prediction" start="186" end="186" type="bool"/>
6735    <field name="Picture Type" start="189" end="190" type="uint">
6736      <value name="I" value="0"/>
6737      <value name="P" value="1"/>
6738    </field>
6739    <field name="Slice MB Height" start="192" end="207" type="uint"/>
6740    <field name="HME0 X Offset" start="224" end="231" type="int"/>
6741    <field name="HME0 Y Offset" start="232" end="239" type="int"/>
6742    <field name="HME1 X Offset" start="240" end="247" type="int"/>
6743    <field name="HME1 Y Offset" start="248" end="255" type="int"/>
6744    <field name="Luma Intra Partition Mask" start="256" end="260" type="uint"/>
6745    <field name="Non Skip Zero MV Cost Added" start="261" end="261" type="uint"/>
6746    <field name="Non Skip MB Mode Cost Added" start="262" end="262" type="uint"/>
6747    <field name="MV Cost Scaling Factor" start="272" end="273" type="uint">
6748      <value name="Qpel" value="0"/>
6749      <value name="Hpel" value="1"/>
6750      <value name="Pel" value="2"/>
6751      <value name="2pel" value="3"/>
6752    </field>
6753    <field name="BiLinear Filter Enable" start="274" end="274" type="bool"/>
6754    <field name="RefID Cost Mode Select" start="278" end="278" type="uint"/>
6755    <field name="Mode 0 Cost" start="288" end="295" type="uint"/>
6756    <field name="Mode 1 Cost" start="296" end="303" type="uint"/>
6757    <field name="Mode 2 Cost" start="304" end="311" type="uint"/>
6758    <field name="Mode 3 Cost" start="312" end="319" type="uint"/>
6759    <field name="Mode 4 Cost" start="320" end="327" type="uint"/>
6760    <field name="Mode 5 Cost" start="328" end="335" type="uint"/>
6761    <field name="Mode 6 Cost" start="336" end="343" type="uint"/>
6762    <field name="Mode 7 Cost" start="344" end="351" type="uint"/>
6763    <field name="Mode 8 Cost" start="352" end="359" type="uint"/>
6764    <field name="Mode 9 Cost" start="360" end="367" type="uint"/>
6765    <field name="RefID Cost" start="368" end="375" type="uint"/>
6766    <field name="Chroma Intra Mode Cost" start="376" end="383" type="uint"/>
6767    <field name="MV Cost" start="384" end="447" type="IMAGE_STATE_COST"/>
6768    <field name="QpPrimeY" start="448" end="455" type="uint"/>
6769    <field name="TargetSizeInWord" start="472" end="479" type="uint"/>
6770    <field name="AVC Intra 4x4 Mode Mask" start="544" end="552" type="uint"/>
6771    <field name="AVC Intra 8x8 Mode Mask" start="560" end="568" type="uint"/>
6772    <field name="AVC Intra 16x16 Mode Mask" start="576" end="579" type="uint"/>
6773    <field name="AVC Intra Chroma Mode Mask" start="580" end="583" type="uint"/>
6774    <field name="Intra Compute Type" start="584" end="585" type="uint"/>
6775    <field name="Penalty for Intra 16x16 Non-DC Prediction" start="640" end="647" type="uint"/>
6776    <field name="Penalty for Intra 8x8 Non-DC Prediction" start="648" end="655" type="uint"/>
6777    <field name="Penalty for Intra 4x4 Non-DC Prediction" start="656" end="663" type="uint"/>
6778    <field name="Intra Refresh MB Position" start="672" end="679" type="uint"/>
6779    <field name="Intra Refresh MB Size" start="680" end="687" type="uint"/>
6780    <field name="Intra Refresh Enable (Rolling-I Enable)" start="688" end="688" type="bool"/>
6781    <field name="Intra Refresh Mode" start="689" end="689" type="uint">
6782      <value name="Row Based" value="0"/>
6783      <value name="Column Based" value="1"/>
6784    </field>
6785    <field name="QP Adjustment for Rolling-I" start="696" end="703" type="int"/>
6786    <field name="PanicModeMBThreshold" start="704" end="719" type="uint"/>
6787    <field name="SmallMbSizeInWord" start="720" end="727" type="uint"/>
6788    <field name="LargeMbSizeInWord" start="728" end="735" type="uint"/>
6789    <field name="L0 Number of References" start="736" end="743" type="int"/>
6790    <field name="L1 Number of References" start="752" end="759" type="int"/>
6791    <field name="Macroblock Budget" start="768" end="783" type="uint"/>
6792    <field name="Initial Time" start="784" end="799" type="uint"/>
6793    <field name="HME Ref Windows Combining Threshold" start="840" end="847" type="uint"/>
6794    <field name="Max Horizontal MV Range" start="864" end="879" type="uint"/>
6795    <field name="Max Vertical MV Range" start="880" end="895" type="uint"/>
6796    <field name="HME MV Cost" start="896" end="959" type="IMAGE_STATE_COST"/>
6797    <field name="ROI QP Adjustment for Zone0" start="960" end="963" type="int"/>
6798    <field name="ROI QP Adjustment for Zone1" start="964" end="967" type="int"/>
6799    <field name="ROI QP Adjustment for Zone2" start="968" end="971" type="int"/>
6800    <field name="ROI QP Adjustment for Zone3" start="972" end="975" type="int"/>
6801    <field name="QP Adjustment for Shape Best Intra 4x4 Winner" start="976" end="979" type="int"/>
6802    <field name="QP Adjustment for Shape Best Intra 8x8 Winner" start="980" end="983" type="int"/>
6803    <field name="QP Adjustment for Shape Best Intra 16x16 Winner" start="984" end="987" type="int"/>
6804    <field name="Best Distortion QP Adjustment for Zone0" start="992" end="995" type="int"/>
6805    <field name="Best Distortion QP Adjustment for Zone1" start="996" end="999" type="int"/>
6806    <field name="Best Distortion QP Adjustment for Zone2" start="1000" end="1003" type="int"/>
6807    <field name="Best Distortion QP Adjustment for Zone3" start="1004" end="1007" type="int"/>
6808    <field name="Sad/Haar Threshold 0" start="1008" end="1023" type="uint"/>
6809    <field name="Sad/Haar Threshold 1" start="1024" end="1039" type="uint"/>
6810    <field name="Sad/Haar Threshold 2" start="1040" end="1055" type="uint"/>
6811    <field name="Min QP" start="1056" end="1063" type="uint"/>
6812    <field name="Max QP" start="1064" end="1071" type="uint"/>
6813    <field name="Max Delta QP" start="1080" end="1083" type="uint"/>
6814    <field name="ROI Enable" start="1088" end="1088" type="bool"/>
6815    <field name="Fwd/Predictor0 MV Enable" start="1089" end="1089" type="bool"/>
6816    <field name="Bwd/Predictor1 MV Enable" start="1090" end="1090" type="bool"/>
6817    <field name="MB Level QP Enable" start="1091" end="1091" type="bool"/>
6818    <field name="TargetSizeinWordsMB/MaxSizeinWordsMB Enable" start="1092" end="1092" type="bool"/>
6819    <field name="PPMV Disable" start="1096" end="1096" type="bool"/>
6820    <field name="Coefficient Clamp Enable" start="1097" end="1097" type="bool"/>
6821    <field name="Long Term Reference Frame Bwd Ref0 Indicator" start="1098" end="1098" type="bool"/>
6822    <field name="Long Term Reference Frame Fwd Ref2 Indicator" start="1099" end="1099" type="bool"/>
6823    <field name="Long Term Reference Frame Fwd Ref1 Indicator" start="1100" end="1100" type="bool"/>
6824    <field name="Long Term Reference Frame Fwd Ref0 Indicator" start="1101" end="1101" type="bool"/>
6825    <field name="Midpoint Sad/Haar" start="1104" end="1119" type="uint"/>
6826  </instruction>
6827
6828  <instruction name="VDENC_PIPE_BUF_ADDR_STATE" bias="2" length="38" engine="video">
6829    <field name="DWord Length" start="0" end="11" type="uint" default="36"/>
6830    <field name="SubOpcode B" start="16" end="20" type="uint" default="4"/>
6831    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6832    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6833    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6834    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6835    <field name="DS FWD REF0" start="32" end="127" type="VDENC_PICTURE"/>
6836    <field name="DS FWD REF1" start="128" end="223" type="VDENC_PICTURE"/>
6837    <field name="Original Uncompressed Picture" start="320" end="415" type="VDENC_PICTURE"/>
6838    <field name="Stream-In Data Picture" start="416" end="511" type="VDENC_PICTURE"/>
6839    <field name="Row Store Scratch Buffer" start="512" end="607" type="VDENC_PICTURE"/>
6840    <field name="Colocated MV Read Buffer" start="608" end="703" type="VDENC_PICTURE"/>
6841    <field name="FWD REF0" start="704" end="799" type="VDENC_PICTURE"/>
6842    <field name="FWD REF1" start="800" end="895" type="VDENC_PICTURE"/>
6843    <field name="FWD REF2" start="896" end="991" type="VDENC_PICTURE"/>
6844    <field name="BWD REF0" start="992" end="1087" type="VDENC_PICTURE"/>
6845    <field name="VDEnc Statistics Stream-Out" start="1088" end="1183" type="VDENC_PICTURE"/>
6846    <field name="DS FWD REF0 4X" start="1184" end="1279" type="VDENC_PICTURE"/>
6847    <field name="DS FWD REF1 4X" start="1280" end="1375" type="VDENC_PICTURE"/>
6848    <field name="VDEnc LCU PAK_OBJ_CMD Buffer" start="1472" end="1567" type="VDENC_PICTURE"/>
6849    <field name="Scaled Reference Surface 8X" start="1568" end="1663" type="VDENC_PICTURE"/>
6850    <field name="Scaled Reference Surface 4X" start="1664" end="1759" type="VDENC_PICTURE"/>
6851    <field name="VP9 Segmentation Map Stream-In Buffer" start="1760" end="1855" type="VDENC_PICTURE"/>
6852    <field name="VP9 Segmentation Map Stream-Out Buffer" start="1856" end="1951" type="VDENC_PICTURE"/>
6853    <field name="Weights Histogram Stream-Out Offset" start="1952" end="1983" type="uint"/>
6854  </instruction>
6855
6856  <instruction name="VDENC_PIPE_MODE_SELECT" bias="2" length="2" engine="video">
6857    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6858    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
6859    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6860    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6861    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6862    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6863    <field name="Standard Select" start="32" end="35" type="uint">
6864      <value name="HEVC" value="0"/>
6865      <value name="VP9" value="1"/>
6866      <value name="AVC" value="2"/>
6867    </field>
6868    <field name="Scalability Mode" start="36" end="36" type="bool"/>
6869    <field name="Frame Statistics Stream-Out Enable" start="37" end="37" type="bool"/>
6870    <field name="VDEnc PAK_OBJ_CMD Stream-Out Enable" start="38" end="38" type="bool"/>
6871    <field name="TLB Prefetch Enable" start="39" end="39" type="bool"/>
6872    <field name="PAK Threshold Check Enable" start="40" end="40" type="bool"/>
6873    <field name="VDEnc Stream-In Enable" start="41" end="41" type="bool"/>
6874    <field name="DownScaled 8x Write Disable" start="42" end="42" type="bool"/>
6875    <field name="DownScaled 4x Write Disable" start="43" end="43" type="bool"/>
6876    <field name="Bit Depth" start="44" end="46" type="uint">
6877      <value name="8-bit" value="0"/>
6878      <value name="10-bit" value="2"/>
6879    </field>
6880    <field name="PAK Chroma Sub-Sampling Type" start="47" end="48" type="uint">
6881      <value name="4:2:0" value="1"/>
6882      <value name="4:4:4" value="3"/>
6883    </field>
6884    <field name="Output Range Control After Color Space Conversion" start="49" end="49" type="bool"/>
6885    <field name="Disable Speed Mode Fetch Optimization" start="63" end="63" type="bool"/>
6886    <field name="HME Region Prefetch Enable" start="64" end="64" type="bool"/>
6887    <field name="Top Prefetch Enable Mode" start="65" end="66" type="uint"/>
6888    <field name="Left Prefetch At Wrap Around" start="67" end="67" type="bool"/>
6889    <field name="VerticalShift32Minus1" start="68" end="71" type="uint"/>
6890    <field name="HzShift32Minus1" start="72" end="75" type="uint"/>
6891    <field name="Number of Vertical Requests" start="80" end="83" type="uint"/>
6892    <field name="Number of Horizontal Requests" start="84" end="87" type="uint"/>
6893    <field name="Prefetch Offset for Reference" start="88" end="91" type="uint"/>
6894    <field name="Source Luma/Packed Data TLB Prefetch Enable" start="96" end="96" type="bool"/>
6895    <field name="Source Chroma TLB Prefetch Enable" start="97" end="97" type="bool"/>
6896    <field name="VerticalShift32Minus1Src" start="100" end="103" type="uint"/>
6897    <field name="HzShift32Minus1Src" start="104" end="107" type="uint"/>
6898    <field name="Number of Vertical Requests for Source" start="112" end="115" type="uint"/>
6899    <field name="Number of Horizontal Request for Source" start="116" end="119" type="uint"/>
6900    <field name="Prefetch Offset for Source" start="120" end="123" type="uint"/>
6901  </instruction>
6902
6903  <instruction name="VDENC_REF_SURFACE_STATE" bias="2" length="6" engine="video">
6904    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
6905    <field name="SubOpcode B" start="16" end="20" type="uint" default="2"/>
6906    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6907    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6908    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6909    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6910    <field name="Surface State" start="64" end="191" type="VDENC_SURFACE_STATE_FIELDS"/>
6911  </instruction>
6912
6913  <instruction name="VDENC_SRC_SURFACE_STATE" bias="2" length="6" engine="video">
6914    <field name="DWord Length" start="0" end="11" type="uint" default="4"/>
6915    <field name="SubOpcode B" start="16" end="20" type="uint" default="1"/>
6916    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6917    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6918    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6919    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6920    <field name="Surface State" start="64" end="191" type="VDENC_SURFACE_STATE_FIELDS"/>
6921  </instruction>
6922
6923  <instruction name="VDENC_WALKER_STATE" bias="2" length="2" engine="video">
6924    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6925    <field name="SubOpcode B" start="16" end="20" type="uint" default="7"/>
6926    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6927    <field name="Media Command Opcode" start="23" end="26" type="uint" default="1"/>
6928    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6929    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6930    <field name="MB/LCU Start Y Position" start="32" end="40" type="uint"/>
6931    <field name="MB/LCU Start X Position" start="48" end="56" type="uint"/>
6932    <field name="First Super Slice" start="60" end="60" type="bool"/>
6933    <field name="Next Slice MB Start Y Position" start="64" end="73" type="uint"/>
6934    <field name="Next Slice MB/LCU Start X Position" start="80" end="89" type="uint"/>
6935    <field name="Log2 Weight Denominator Luma" start="96" end="98" type="uint"/>
6936    <field name="HEVC/VP9 Log2 Weight Denominator Luma" start="100" end="102" type="uint"/>
6937    <field name="Number of Parallel Engines" start="105" end="106" type="uint"/>
6938    <field name="Tile Number" start="120" end="127" type="uint"/>
6939    <field name="Tile Start CTB-Y" start="128" end="143" type="uint"/>
6940    <field name="Tile Start CTB-X" start="144" end="159" type="uint"/>
6941    <field name="Tile Width" start="160" end="175" type="uint"/>
6942    <field name="Tile Height" start="176" end="191" type="uint"/>
6943    <field name="Tile Stream-In Offset Enable" start="192" end="192" type="bool"/>
6944    <field name="Tile Stream-In Offset" start="198" end="223" type="uint"/>
6945    <field name="Tile Row Store Offset Enable" start="224" end="224" type="bool"/>
6946    <field name="Tile Row Store Offset" start="230" end="255" type="uint"/>
6947    <field name="Tile Stream-Out Offset Enable" start="256" end="256" type="bool"/>
6948    <field name="Tile Stream-Out Offset" start="262" end="287" type="uint"/>
6949    <field name="Tile LCU Stream-Out Offset Enable" start="288" end="288" type="bool"/>
6950    <field name="Tile LCU Stream-Out Offset" start="294" end="319" type="uint"/>
6951  </instruction>
6952
6953  <instruction name="VDENC_WEIGHTSOFFSETS_STATE" bias="2" length="2" engine="video">
6954    <field name="DWord Length" start="0" end="11" type="uint" default="1"/>
6955    <field name="SubOpcode B" start="16" end="20" type="uint" default="8"/>
6956    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6957    <field name="Media Command OpCode" start="23" end="26" type="uint" default="1"/>
6958    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6959    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6960    <field name="Weights Forward Reference 0" start="32" end="39" type="int"/>
6961    <field name="Offset Forward Reference 0" start="40" end="47" type="int"/>
6962    <field name="Weights Forward Reference 1" start="48" end="55" type="int"/>
6963    <field name="Offset Forward Reference 1" start="56" end="63" type="int"/>
6964    <field name="Weights Forward Reference 2" start="64" end="71" type="int"/>
6965    <field name="Offset Forward Reference 2" start="72" end="79" type="int"/>
6966    <field name="HEVC/VP9 Weights Backward Reference 0" start="80" end="87" type="int"/>
6967    <field name="HEVC/VP9 Offset Backward Reference 0" start="88" end="95" type="int"/>
6968  </instruction>
6969
6970  <instruction name="VD_PIPELINE_FLUSH" bias="2" length="2" engine="video">
6971    <field name="DWord Length" start="0" end="11" type="uint" default="0"/>
6972    <field name="SubOpcode B" start="16" end="20" type="uint" default="0"/>
6973    <field name="SubOpcode A" start="21" end="22" type="uint" default="0"/>
6974    <field name="Media Command Opcode" start="23" end="26" type="uint" default="15"/>
6975    <field name="Pipeline" start="27" end="28" type="uint" default="2"/>
6976    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
6977    <field name="HEVC Pipeline Done" start="32" end="32" type="bool"/>
6978    <field name="VD-ENC Pipeline Done" start="33" end="33" type="bool"/>
6979    <field name="MFX Pipeline Done" start="35" end="35" type="bool"/>
6980    <field name="VD Command/Message Parser Done" start="36" end="36" type="bool"/>
6981    <field name="HEVC Pipeline Command Flush" start="48" end="48" type="bool"/>
6982    <field name="VD-ENC Pipeline Command Flush" start="49" end="49" type="bool"/>
6983    <field name="MFX Pipeline Command Flush" start="51" end="51" type="bool"/>
6984  </instruction>
6985
6986  <register name="BCS_INSTDONE" length="1" num="0x2206c">
6987    <field name="Ring Enable" start="0" end="0" type="bool"/>
6988    <field name="Blitter IDLE" start="1" end="1" type="bool" default="1"/>
6989    <field name="GAB IDLE" start="2" end="2" type="bool" default="1"/>
6990    <field name="BCS Done" start="3" end="3" type="bool" default="1"/>
6991  </register>
6992
6993  <register name="CACHE_MODE_0" length="1" num="0x7000">
6994    <field name="Disable Byte sharing for 3D TYF LOD1 surfaces for 32/64/128 bpp" start="0" end="0" type="bool"/>
6995    <field name="Disable clock gating in the pixel backend" start="1" end="1" type="bool"/>
6996    <field name="Hierarchical Z Disable" start="3" end="3" type="bool"/>
6997    <field name="RCC Eviction Policy" start="4" end="4" type="bool"/>
6998    <field name="STC PMA Optimization Disable" start="5" end="5" type="bool"/>
6999    <field name="STC Read-Hit Wonly Optimization Disable" start="6" end="6" type="bool"/>
7000    <field name="Depth Related Cache Pipelined Flush Disable" start="8" end="8" type="bool"/>
7001    <field name="Sampler L2 TLB Prefetch Enable" start="9" end="9" type="bool"/>
7002    <field name="RCZ PMA Not-Promoted Allocation stall optimization Disable due to change in depth parameters" start="10" end="10" type="bool"/>
7003    <field name="MSAA Compression Plane Number Threshold for eLLC" start="12" end="14" type="uint"/>
7004    <field name="Disable Repacking for Compression" start="15" end="15" type="bool"/>
7005    <field name="Disable Byte sharing for 3D TYF LOD1 surfaces for 32/64/128 bpp Mask" start="16" end="16" type="bool"/>
7006    <field name="Disable clock gating in the pixel backend Mask" start="17" end="17" type="bool"/>
7007    <field name="Hierarchical Z Disable Mask" start="19" end="19" type="bool"/>
7008    <field name="RCC Eviction Policy Mask" start="20" end="20" type="bool"/>
7009    <field name="STC PMA Optimization Disable Mask" start="21" end="21" type="bool"/>
7010    <field name="STC Read-Hit Wonly Optimization Disable Mask" start="22" end="22" type="bool"/>
7011    <field name="Depth Related Cache Pipelined Flush Disable Mask" start="24" end="24" type="bool"/>
7012    <field name="Sampler L2 TLB Prefetch Enable Mask" start="25" end="25" type="bool"/>
7013    <field name="RCZ PMA Not-Promoted Allocation stall optimization Disable due to change in depth parameters Mask" start="26" end="26" type="bool"/>
7014    <field name="MSAA Compression Plane Number Threshold for eLLC Mask" start="28" end="30" type="uint"/>
7015    <field name="Disable Repacking for Compression Mask" start="31" end="31" type="bool"/>
7016  </register>
7017
7018  <register name="CACHE_MODE_1" length="1" num="0x7004">
7019    <field name="Partial Resolve Disable In VC" start="1" end="1" type="bool"/>
7020    <field name="RCZ PMA Promoted 2 Not-Promoted Allocation stall optimization Disable" start="3" end="3" type="bool"/>
7021    <field name="MCS Cache Disable" start="5" end="5" type="bool"/>
7022    <field name="MSC RAW Hazard Avoidance Bit" start="9" end="9" type="bool"/>
7023    <field name="NP Early Z Fails Disable" start="13" end="13" type="uint"/>
7024    <field name="Blend Optimization Fix Disable" start="14" end="14" type="bool"/>
7025    <field name="Color Compression Disable" start="15" end="15" type="bool"/>
7026    <field name="Partial Resolve Disable In VC Mask" start="17" end="17" type="bool"/>
7027    <field name="RCZ PMA Promoted 2 Not-Promoted Allocation stall optimization Disable Mask" start="19" end="19" type="bool"/>
7028    <field name="MCS Cache Disable Mask" start="21" end="21" type="bool"/>
7029    <field name="MSC RAW Hazard Avoidance Bit Mask" start="25" end="25" type="bool"/>
7030    <field name="NP Early Z Fails Disable Mask" start="29" end="29" type="bool"/>
7031    <field name="Blend Optimization Fix Disable Mask" start="30" end="30" type="bool"/>
7032    <field name="Color Compression Disable Mask" start="31" end="31" type="bool"/>
7033  </register>
7034
7035  <register name="CACHE_MODE_SS" length="1" num="0x0e420">
7036    <field name="Instruction Level 1 Cache Disable" start="0" end="0" type="bool"/>
7037    <field name="Instruction Level 1 Cache and In-Flight Queue Disable " start="1" end="1" type="bool"/>
7038    <field name="Float Blend Optimization Enable" start="4" end="4" type="bool"/>
7039    <field name="Per Sample Blend Opt Disable" start="11" end="11" type="bool"/>
7040    <field name="Instruction Level 1 Cache Disable Mask" start="16" end="16" type="bool"/>
7041    <field name="Instruction Level 1 Cache and In-Flight Queue Disable Mask" start="17" end="17" type="bool"/>
7042    <field name="Float Blend Optimization Enable Mask" start="20" end="20" type="bool"/>
7043    <field name="Per Sample Blend Opt Disable Mask" start="27" end="27" type="bool"/>
7044  </register>
7045
7046  <register name="CL_INVOCATION_COUNT" length="2" num="0x2338">
7047    <field name="CL Invocation Count Report" start="0" end="63" type="uint"/>
7048  </register>
7049
7050  <register name="CL_PRIMITIVES_COUNT" length="2" num="0x2340">
7051    <field name="CL Primitives Count Report" start="0" end="63" type="uint"/>
7052  </register>
7053
7054  <register name="COMMON_SLICE_CHICKEN1" length="1" num="0x7010">
7055    <field name="HIZ Plane Optimization disable bit" start="9" end="9" type="bool"/>
7056    <field name="HIZ Plane Optimization disable bit Mask" start="25" end="25" type="bool"/>
7057  </register>
7058
7059  <register name="COMMON_SLICE_CHICKEN3" length="1" num="0x7304">
7060    <field name="PS Thread Panic Dispatch" start="6" end="7" type="uint"/>
7061    <field name="PS Thread Panic Dispatch Mask" start="22" end="23" type="uint"/>
7062  </register>
7063
7064  <register name="COMMON_SLICE_CHICKEN4" length="1" num="0x7300">
7065    <field name="Enable Hardware Filtering in WM" start="5" end="5" type="bool"/>
7066    <field name="Enable Hardware Filtering in WM Mask" start="21" end="21" type="bool"/>
7067  </register>
7068
7069  <register name="CS_CHICKEN1" length="1" num="0x2580">
7070    <field name="Replay Mode" start="0" end="0" type="uint">
7071      <value name="Mid-cmdbuffer Preemption" value="0"/>
7072      <value name="Object Level Preemption" value="1"/>
7073    </field>
7074    <field name="Replay Mode Mask" start="16" end="16" type="bool"/>
7075  </register>
7076
7077  <register name="CS_DEBUG_MODE2" length="1" num="0x20d8">
7078    <field name="3D Rendering Instruction Disable" start="0" end="0" type="bool"/>
7079    <field name="Media Instruction Disable" start="1" end="1" type="bool"/>
7080    <field name="CONSTANT_BUFFER Address Offset Disable" start="4" end="4" type="bool"/>
7081    <field name="3D Rendering Instruction Disable Mask" start="16" end="16" type="bool"/>
7082    <field name="Media Instruction Disable Mask" start="17" end="17" type="bool"/>
7083    <field name="CONSTANT_BUFFER Address Offset Disable Mask" start="20" end="20" type="bool"/>
7084  </register>
7085
7086  <register name="CS_INVOCATION_COUNT" length="2" num="0x2290">
7087    <field name="CS Invocation Count Report" start="0" end="63" type="uint"/>
7088  </register>
7089
7090  <register name="DS_INVOCATION_COUNT" length="2" num="0x2308">
7091    <field name="DS Invocation Count Report" start="0" end="63" type="uint"/>
7092  </register>
7093
7094  <register name="GFX_AUX_TABLE_BASE_ADDR" length="2" num="0x4200">
7095    <field name="Address" start="0" end="63" type="uint"/>
7096  </register>
7097
7098  <register name="GFX_CCS_AUX_INV" length="1" num="0x4208">
7099    <field name="Aux Inv" start="0" end="0" type="bool"/>
7100  </register>
7101
7102  <register name="GS_INVOCATION_COUNT" length="2" num="0x2328">
7103    <field name="GS Invocation Count Report" start="0" end="63" type="uint"/>
7104  </register>
7105
7106  <register name="GS_PRIMITIVES_COUNT" length="2" num="0x2330">
7107    <field name="GS Primitives Count Report" start="0" end="63" type="uint"/>
7108  </register>
7109
7110  <register name="HALF_SLICE_CHICKEN7" length="1" num="0x0e194">
7111    <field name="Enabled Texel Offset Precision Fix" start="1" end="1" type="bool"/>
7112    <field name="Enabled Texel Offset Precision Fix Mask" start="17" end="17" type="bool"/>
7113  </register>
7114
7115  <register name="HIZ_CHICKEN" length="1" num="0x7018">
7116    <field name="HZ Depth Test LE/GE Optimization Disable" start="13" end="13" type="bool"/>
7117    <field name="HZ Depth Test LE/GE Optimization Disable Mask" start="29" end="29" type="bool"/>
7118  </register>
7119
7120  <register name="HS_INVOCATION_COUNT" length="2" num="0x2300">
7121    <field name="HS Invocation Count Report" start="0" end="63" type="uint"/>
7122  </register>
7123
7124  <register name="IA_PRIMITIVES_COUNT" length="2" num="0x2318">
7125    <field name="IA Primitives Count Report" start="0" end="63" type="uint"/>
7126  </register>
7127
7128  <register name="IA_VERTICES_COUNT" length="2" num="0x2310">
7129    <field name="IA Vertices Count Report" start="0" end="63" type="uint"/>
7130  </register>
7131
7132  <register name="INSTDONE_1" length="1" num="0x206c">
7133    <field name="PRB0 Ring Enable" start="0" end="0" type="bool"/>
7134    <field name="VFG Done" start="1" end="1" type="bool"/>
7135    <field name="VS Done" start="2" end="2" type="bool"/>
7136    <field name="HS Done" start="3" end="3" type="bool"/>
7137    <field name="TE Done" start="4" end="4" type="bool"/>
7138    <field name="DS Done" start="5" end="5" type="bool"/>
7139    <field name="GS Done" start="6" end="6" type="bool"/>
7140    <field name="SOL Done" start="7" end="7" type="bool"/>
7141    <field name="CL Done" start="8" end="8" type="bool"/>
7142    <field name="SF Done" start="9" end="9" type="bool"/>
7143    <field name="TDG1 Done" start="11" end="11" type="bool"/>
7144    <field name="TDG0 Done" start="12" end="12" type="bool"/>
7145    <field name="URBM Done" start="13" end="13" type="bool"/>
7146    <field name="SVG Done" start="14" end="14" type="bool"/>
7147    <field name="GAFS Done" start="15" end="15" type="bool"/>
7148    <field name="VFE Done" start="16" end="16" type="bool"/>
7149    <field name="TSG0 Done" start="17" end="17" type="bool"/>
7150    <field name="GAFM Done" start="18" end="18" type="bool"/>
7151    <field name="GAM Done" start="19" end="19" type="bool"/>
7152    <field name="RS Done" start="20" end="20" type="bool"/>
7153    <field name="CS Done" start="21" end="21" type="bool"/>
7154    <field name="SDE Done" start="22" end="22" type="bool"/>
7155    <field name="RCCFBC CS Done" start="23" end="23" type="bool"/>
7156    <field name="TSG1 Done" start="24" end="24" type="bool"/>
7157  </register>
7158
7159  <register name="L3ALLOC" length="1" num="0xB134">
7160    <field name="Allocation Error" start="0" end="0" type="uint"/>
7161    <field name="URB Allocation" start="1" end="7" type="uint"/>
7162    <field name="L3 Full Way Allocation Enable" start="9" end="9" type="bool"/>
7163    <field name="RO Allocation" start="11" end="17" type="uint"/>
7164    <field name="DC Allocation" start="18" end="24" type="uint"/>
7165    <field name="All Allocation" start="25" end="31" type="uint"/>
7166  </register>
7167
7168  <register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
7169    <field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
7170  </register>
7171
7172  <register name="ROW_INSTDONE" length="1" num="0xe164">
7173    <field name="BC Done" start="0" end="0" type="bool"/>
7174    <field name="PSD Done" start="1" end="1" type="bool"/>
7175    <field name="DAPR Done" start="3" end="3" type="bool"/>
7176    <field name="TDL Done" start="6" end="6" type="bool"/>
7177    <field name="IC Done" start="12" end="12" type="bool"/>
7178    <field name="MA0 Done" start="15" end="15" type="bool"/>
7179    <field name="EU00 Done SS0" start="16" end="16" type="bool"/>
7180    <field name="EU01 Done SS0" start="17" end="17" type="bool"/>
7181    <field name="EU02 Done SS0" start="18" end="18" type="bool"/>
7182    <field name="EU03 Done SS0" start="19" end="19" type="bool"/>
7183    <field name="EU10 Done SS0" start="21" end="21" type="bool"/>
7184    <field name="EU11 Done SS0" start="22" end="22" type="bool"/>
7185    <field name="EU12 Done SS0" start="23" end="23" type="bool"/>
7186    <field name="EU13 Done SS0" start="24" end="24" type="bool"/>
7187    <field name="MA1 Done SS0" start="26" end="26" type="bool"/>
7188  </register>
7189
7190  <register name="RPSTAT0" length="1" num="0xa01c">
7191    <field name="Previous GT Frequency" start="0" end="8" type="uint"/>
7192    <field name="Current GT Frequency" start="23" end="31" type="uint"/>
7193  </register>
7194
7195  <register name="SAMPLER_INSTDONE" length="1" num="0xe160">
7196    <field name="IME Done" start="0" end="0" type="bool"/>
7197    <field name="PL0 Done" start="1" end="1" type="bool"/>
7198    <field name="SO0 Done" start="2" end="2" type="bool"/>
7199    <field name="DG0 Done" start="3" end="3" type="bool"/>
7200    <field name="FT0 Done" start="4" end="4" type="bool"/>
7201    <field name="DM0 Done" start="5" end="5" type="bool"/>
7202    <field name="SC Done" start="6" end="6" type="bool"/>
7203    <field name="FL0 Done" start="7" end="7" type="bool"/>
7204    <field name="QC Done" start="8" end="8" type="bool"/>
7205    <field name="SVSM Done" start="9" end="9" type="bool"/>
7206    <field name="SI0 Done" start="10" end="10" type="bool"/>
7207    <field name="MT0 Done" start="11" end="11" type="bool"/>
7208    <field name="AVS Done" start="12" end="12" type="bool"/>
7209    <field name="IEF Done" start="13" end="13" type="bool"/>
7210    <field name="CRE Done" start="14" end="14" type="bool"/>
7211    <field name="SVSM_ARB_SIFM" start="15" end="15" type="bool"/>
7212    <field name="SVSM ARB2" start="16" end="16" type="bool"/>
7213    <field name="SVSM ARB1" start="17" end="17" type="bool"/>
7214    <field name="SVSM Adapter" start="18" end="18" type="bool"/>
7215    <field name="BDM Done" start="19" end="19" type="bool"/>
7216  </register>
7217
7218  <register name="SAMPLER_MODE" length="1" num="0x0e18c">
7219    <field name="Headerless Message for Pre-emptable Contexts" start="5" end="5" type="bool"/>
7220    <field name="Headerless Message for Pre-emptable Contexts Mask" start="21" end="21" type="bool"/>
7221  </register>
7222
7223  <register name="SC_INSTDONE" length="1" num="0x7100">
7224    <field name="SVL Done" start="0" end="0" type="bool"/>
7225    <field name="WMFE Done" start="1" end="1" type="bool"/>
7226    <field name="WMBE Done" start="2" end="2" type="bool"/>
7227    <field name="HIZ Done" start="3" end="3" type="bool"/>
7228    <field name="STC Done" start="4" end="4" type="bool"/>
7229    <field name="IZ Done" start="5" end="5" type="bool"/>
7230    <field name="SBE Done" start="6" end="6" type="bool"/>
7231    <field name="RCZ Done" start="8" end="8" type="bool"/>
7232    <field name="RCC Done" start="9" end="9" type="bool"/>
7233    <field name="RCPBE Done" start="10" end="10" type="bool"/>
7234    <field name="RCPFE Done" start="11" end="11" type="bool"/>
7235    <field name="DAPB Done" start="12" end="12" type="bool"/>
7236    <field name="DAPRBE Done" start="13" end="13" type="bool"/>
7237    <field name="SARB Done" start="15" end="15" type="bool"/>
7238    <field name="DC0 Done" start="16" end="16" type="bool"/>
7239    <field name="DC1 Done" start="17" end="17" type="bool"/>
7240    <field name="DC2 Done" start="18" end="18" type="bool"/>
7241    <field name="DC3 Done" start="19" end="19" type="bool"/>
7242    <field name="GW0 Done" start="20" end="20" type="bool"/>
7243    <field name="GW1 Done" start="21" end="21" type="bool"/>
7244    <field name="GW2 Done" start="22" end="22" type="bool"/>
7245    <field name="GW3 Done" start="23" end="23" type="bool"/>
7246    <field name="TDC Done" start="24" end="24" type="bool"/>
7247    <field name="SFBE Done" start="25" end="25" type="bool"/>
7248  </register>
7249
7250  <register name="SLICE_COMMON_ECO_CHICKEN1" length="1" num="0x731c">
7251    <field name="State Cache Redirect To CS Section Enable" start="11" end="11" type="bool"/>
7252    <field name="State Cache Redirect To CS Section Enable Mask" start="27" end="27" type="bool"/>
7253  </register>
7254
7255  <register name="SO_NUM_PRIMS_WRITTEN0" length="2" num="0x5200">
7256    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
7257  </register>
7258
7259  <register name="SO_NUM_PRIMS_WRITTEN1" length="2" num="0x5208">
7260    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
7261  </register>
7262
7263  <register name="SO_NUM_PRIMS_WRITTEN2" length="2" num="0x5210">
7264    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
7265  </register>
7266
7267  <register name="SO_NUM_PRIMS_WRITTEN3" length="2" num="0x5218">
7268    <field name="Num Prims Written Count" start="0" end="63" type="uint"/>
7269  </register>
7270
7271  <register name="SO_PRIM_STORAGE_NEEDED0" length="2" num="0x5240">
7272    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
7273  </register>
7274
7275  <register name="SO_PRIM_STORAGE_NEEDED1" length="2" num="0x5248">
7276    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
7277  </register>
7278
7279  <register name="SO_PRIM_STORAGE_NEEDED2" length="2" num="0x5250">
7280    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
7281  </register>
7282
7283  <register name="SO_PRIM_STORAGE_NEEDED3" length="2" num="0x5258">
7284    <field name="Prim Storage Needed Count" start="0" end="63" type="uint"/>
7285  </register>
7286
7287  <register name="SO_WRITE_OFFSET0" length="1" num="0x5280">
7288    <field name="Write Offset" start="2" end="31" type="offset"/>
7289  </register>
7290
7291  <register name="SO_WRITE_OFFSET1" length="1" num="0x5284">
7292    <field name="Write Offset" start="2" end="31" type="offset"/>
7293  </register>
7294
7295  <register name="SO_WRITE_OFFSET2" length="1" num="0x5288">
7296    <field name="Write Offset" start="2" end="31" type="offset"/>
7297  </register>
7298
7299  <register name="SO_WRITE_OFFSET3" length="1" num="0x528c">
7300    <field name="Write Offset" start="2" end="31" type="offset"/>
7301  </register>
7302
7303  <register name="VCS_INSTDONE" length="1" num="0x1206c">
7304    <field name="Ring Enable" start="0" end="0" type="bool"/>
7305    <field name="USB Done" start="1" end="1" type="bool"/>
7306    <field name="QRC Done" start="2" end="2" type="bool"/>
7307    <field name="SEC Done" start="3" end="3" type="bool"/>
7308    <field name="MPC Done" start="4" end="4" type="bool"/>
7309    <field name="VFT Done" start="5" end="5" type="bool"/>
7310    <field name="BSP Done" start="6" end="6" type="bool"/>
7311    <field name="VLF Done" start="7" end="7" type="bool"/>
7312    <field name="VOP Done" start="8" end="8" type="bool"/>
7313    <field name="VMC Done" start="9" end="9" type="bool"/>
7314    <field name="VIP Done" start="10" end="10" type="bool"/>
7315    <field name="VIT Done" start="11" end="11" type="bool"/>
7316    <field name="VDS Done" start="12" end="12" type="bool"/>
7317    <field name="VMX Done" start="13" end="13" type="bool"/>
7318    <field name="VCP Done" start="14" end="14" type="bool"/>
7319    <field name="VCD Done" start="15" end="15" type="bool"/>
7320    <field name="VAD Done" start="16" end="16" type="bool"/>
7321    <field name="VMD Done" start="17" end="17" type="bool"/>
7322    <field name="VIS Done" start="18" end="18" type="bool"/>
7323    <field name="VAC Done" start="19" end="19" type="bool"/>
7324    <field name="VAM Done" start="20" end="20" type="bool"/>
7325    <field name="JPG Done" start="21" end="21" type="bool"/>
7326    <field name="VBP Done" start="22" end="22" type="bool"/>
7327    <field name="VHR Done" start="23" end="23" type="bool"/>
7328    <field name="VCI Done" start="24" end="24" type="bool"/>
7329    <field name="VIN Done" start="26" end="26" type="bool"/>
7330    <field name="VPR Done" start="27" end="27" type="bool"/>
7331    <field name="VTQ Done" start="28" end="28" type="bool"/>
7332    <field name="Reserved" start="29" end="29" type="bool"/>
7333    <field name="VCS Done" start="30" end="30" type="bool"/>
7334    <field name="GAC Done" start="31" end="31" type="bool"/>
7335  </register>
7336
7337  <register name="VS_INVOCATION_COUNT" length="2" num="0x2320">
7338    <field name="VS Invocation Count Report" start="0" end="63" type="uint"/>
7339  </register>
7340</genxml>
7341