• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" ?>
2<genxml name="ILK" gen="5">
3  <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
4    <value name="POINTLIST" value="1"/>
5    <value name="LINELIST" value="2"/>
6    <value name="LINESTRIP" value="3"/>
7    <value name="TRILIST" value="4"/>
8    <value name="TRISTRIP" value="5"/>
9    <value name="TRIFAN" value="6"/>
10    <value name="QUADLIST" value="7"/>
11    <value name="QUADSTRIP" value="8"/>
12    <value name="LINELIST_ADJ" value="9"/>
13    <value name="LINESTRIP_ADJ" value="10"/>
14    <value name="TRILIST_ADJ" value="11"/>
15    <value name="TRISTRIP_ADJ" value="12"/>
16    <value name="TRISTRIP_REVERSE" value="13"/>
17    <value name="POLYGON" value="14"/>
18    <value name="RECTLIST" value="15"/>
19    <value name="LINELOOP" value="16"/>
20    <value name="POINTLIST _BF" value="17"/>
21    <value name="LINESTRIP_CONT" value="18"/>
22    <value name="LINESTRIP_BF" value="19"/>
23    <value name="LINESTRIP_CONT_BF" value="20"/>
24    <value name="TRIFAN_NOSTIPPLE" value="22"/>
25  </enum>
26
27  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
28    <value name="NOSTORE" value="0"/>
29    <value name="STORE_SRC" value="1"/>
30    <value name="STORE_0" value="2"/>
31    <value name="STORE_1_FP" value="3"/>
32    <value name="STORE_1_INT" value="4"/>
33    <value name="STORE_VID" value="5"/>
34    <value name="STORE_IID" value="6"/>
35    <value name="STORE_PID" value="7"/>
36  </enum>
37
38  <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
39    <value name="ADD" value="0"/>
40    <value name="SUBTRACT" value="1"/>
41    <value name="REVERSE_SUBTRACT" value="2"/>
42    <value name="MIN" value="3"/>
43    <value name="MAX" value="4"/>
44  </enum>
45
46  <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
47    <value name="ONE" value="1"/>
48    <value name="SRC_COLOR" value="2"/>
49    <value name="SRC_ALPHA" value="3"/>
50    <value name="DST_ALPHA" value="4"/>
51    <value name="DST_COLOR" value="5"/>
52    <value name="SRC_ALPHA_SATURATE" value="6"/>
53    <value name="CONST_COLOR" value="7"/>
54    <value name="CONST_ALPHA" value="8"/>
55    <value name="SRC1_COLOR" value="9"/>
56    <value name="SRC1_ALPHA" value="10"/>
57    <value name="ZERO" value="17"/>
58    <value name="INV_SRC_COLOR" value="18"/>
59    <value name="INV_SRC_ALPHA" value="19"/>
60    <value name="INV_DST_ALPHA" value="20"/>
61    <value name="INV_DST_COLOR" value="21"/>
62    <value name="INV_CONST_COLOR" value="23"/>
63    <value name="INV_CONST_ALPHA" value="24"/>
64    <value name="INV_SRC1_COLOR" value="25"/>
65    <value name="INV_SRC1_ALPHA" value="26"/>
66  </enum>
67
68  <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
69    <value name="ALWAYS" value="0"/>
70    <value name="NEVER" value="1"/>
71    <value name="LESS" value="2"/>
72    <value name="EQUAL" value="3"/>
73    <value name="LEQUAL" value="4"/>
74    <value name="GREATER" value="5"/>
75    <value name="NOTEQUAL" value="6"/>
76    <value name="GEQUAL" value="7"/>
77  </enum>
78
79  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
80    <value name="KEEP" value="0"/>
81    <value name="ZERO" value="1"/>
82    <value name="REPLACE" value="2"/>
83    <value name="INCRSAT" value="3"/>
84    <value name="DECRSAT" value="4"/>
85    <value name="INCR" value="5"/>
86    <value name="DECR" value="6"/>
87    <value name="INVERT" value="7"/>
88  </enum>
89
90  <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
91    <value name="CLEAR" value="0"/>
92    <value name="NOR" value="1"/>
93    <value name="AND_INVERTED" value="2"/>
94    <value name="COPY_INVERTED" value="3"/>
95    <value name="AND_REVERSE" value="4"/>
96    <value name="INVERT" value="5"/>
97    <value name="XOR" value="6"/>
98    <value name="NAND" value="7"/>
99    <value name="AND" value="8"/>
100    <value name="EQUIV" value="9"/>
101    <value name="NOOP" value="10"/>
102    <value name="OR_INVERTED" value="11"/>
103    <value name="COPY" value="12"/>
104    <value name="OR_REVERSE" value="13"/>
105    <value name="OR" value="14"/>
106    <value name="SET" value="15"/>
107  </enum>
108
109  <enum name="SURFACE_FORMAT" prefix="SF">
110    <value name="R32G32B32A32_FLOAT" value="0"/>
111    <value name="R32G32B32A32_SINT" value="1"/>
112    <value name="R32G32B32A32_UINT" value="2"/>
113    <value name="R32G32B32A32_UNORM" value="3"/>
114    <value name="R32G32B32A32_SNORM" value="4"/>
115    <value name="R64G64_FLOAT" value="5"/>
116    <value name="R32G32B32X32_FLOAT" value="6"/>
117    <value name="R32G32B32A32_SSCALED" value="7"/>
118    <value name="R32G32B32A32_USCALED" value="8"/>
119    <value name="R32G32B32A32_SFIXED" value="32"/>
120    <value name="R64G64_PASSTHRU" value="33"/>
121    <value name="R32G32B32_FLOAT" value="64"/>
122    <value name="R32G32B32_SINT" value="65"/>
123    <value name="R32G32B32_UINT" value="66"/>
124    <value name="R32G32B32_UNORM" value="67"/>
125    <value name="R32G32B32_SNORM" value="68"/>
126    <value name="R32G32B32_SSCALED" value="69"/>
127    <value name="R32G32B32_USCALED" value="70"/>
128    <value name="R32G32B32_SFIXED" value="80"/>
129    <value name="R16G16B16A16_UNORM" value="128"/>
130    <value name="R16G16B16A16_SNORM" value="129"/>
131    <value name="R16G16B16A16_SINT" value="130"/>
132    <value name="R16G16B16A16_UINT" value="131"/>
133    <value name="R16G16B16A16_FLOAT" value="132"/>
134    <value name="R32G32_FLOAT" value="133"/>
135    <value name="R32G32_SINT" value="134"/>
136    <value name="R32G32_UINT" value="135"/>
137    <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
138    <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
139    <value name="L32A32_FLOAT" value="138"/>
140    <value name="R32G32_UNORM" value="139"/>
141    <value name="R32G32_SNORM" value="140"/>
142    <value name="R64_FLOAT" value="141"/>
143    <value name="R16G16B16X16_UNORM" value="142"/>
144    <value name="R16G16B16X16_FLOAT" value="143"/>
145    <value name="A32X32_FLOAT" value="144"/>
146    <value name="L32X32_FLOAT" value="145"/>
147    <value name="I32X32_FLOAT" value="146"/>
148    <value name="R16G16B16A16_SSCALED" value="147"/>
149    <value name="R16G16B16A16_USCALED" value="148"/>
150    <value name="R32G32_SSCALED" value="149"/>
151    <value name="R32G32_USCALED" value="150"/>
152    <value name="R32G32_SFIXED" value="160"/>
153    <value name="R64_PASSTHRU" value="161"/>
154    <value name="B8G8R8A8_UNORM" value="192"/>
155    <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
156    <value name="R10G10B10A2_UNORM" value="194"/>
157    <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
158    <value name="R10G10B10A2_UINT" value="196"/>
159    <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
160    <value name="R8G8B8A8_UNORM" value="199"/>
161    <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
162    <value name="R8G8B8A8_SNORM" value="201"/>
163    <value name="R8G8B8A8_SINT" value="202"/>
164    <value name="R8G8B8A8_UINT" value="203"/>
165    <value name="R16G16_UNORM" value="204"/>
166    <value name="R16G16_SNORM" value="205"/>
167    <value name="R16G16_SINT" value="206"/>
168    <value name="R16G16_UINT" value="207"/>
169    <value name="R16G16_FLOAT" value="208"/>
170    <value name="B10G10R10A2_UNORM" value="209"/>
171    <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
172    <value name="R11G11B10_FLOAT" value="211"/>
173    <value name="R32_SINT" value="214"/>
174    <value name="R32_UINT" value="215"/>
175    <value name="R32_FLOAT" value="216"/>
176    <value name="R24_UNORM_X8_TYPELESS" value="217"/>
177    <value name="X24_TYPELESS_G8_UINT" value="218"/>
178    <value name="L32_UNORM" value="221"/>
179    <value name="A32_UNORM" value="222"/>
180    <value name="L16A16_UNORM" value="223"/>
181    <value name="I24X8_UNORM" value="224"/>
182    <value name="L24X8_UNORM" value="225"/>
183    <value name="A24X8_UNORM" value="226"/>
184    <value name="I32_FLOAT" value="227"/>
185    <value name="L32_FLOAT" value="228"/>
186    <value name="A32_FLOAT" value="229"/>
187    <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
188    <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
189    <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
190    <value name="B8G8R8X8_UNORM" value="233"/>
191    <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
192    <value name="R8G8B8X8_UNORM" value="235"/>
193    <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
194    <value name="R9G9B9E5_SHAREDEXP" value="237"/>
195    <value name="B10G10R10X2_UNORM" value="238"/>
196    <value name="L16A16_FLOAT" value="240"/>
197    <value name="R32_UNORM" value="241"/>
198    <value name="R32_SNORM" value="242"/>
199    <value name="R10G10B10X2_USCALED" value="243"/>
200    <value name="R8G8B8A8_SSCALED" value="244"/>
201    <value name="R8G8B8A8_USCALED" value="245"/>
202    <value name="R16G16_SSCALED" value="246"/>
203    <value name="R16G16_USCALED" value="247"/>
204    <value name="R32_SSCALED" value="248"/>
205    <value name="R32_USCALED" value="249"/>
206    <value name="B5G6R5_UNORM" value="256"/>
207    <value name="B5G6R5_UNORM_SRGB" value="257"/>
208    <value name="B5G5R5A1_UNORM" value="258"/>
209    <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
210    <value name="B4G4R4A4_UNORM" value="260"/>
211    <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
212    <value name="R8G8_UNORM" value="262"/>
213    <value name="R8G8_SNORM" value="263"/>
214    <value name="R8G8_SINT" value="264"/>
215    <value name="R8G8_UINT" value="265"/>
216    <value name="R16_UNORM" value="266"/>
217    <value name="R16_SNORM" value="267"/>
218    <value name="R16_SINT" value="268"/>
219    <value name="R16_UINT" value="269"/>
220    <value name="R16_FLOAT" value="270"/>
221    <value name="A8P8_UNORM_PALETTE0" value="271"/>
222    <value name="A8P8_UNORM_PALETTE1" value="272"/>
223    <value name="I16_UNORM" value="273"/>
224    <value name="L16_UNORM" value="274"/>
225    <value name="A16_UNORM" value="275"/>
226    <value name="L8A8_UNORM" value="276"/>
227    <value name="I16_FLOAT" value="277"/>
228    <value name="L16_FLOAT" value="278"/>
229    <value name="A16_FLOAT" value="279"/>
230    <value name="L8A8_UNORM_SRGB" value="280"/>
231    <value name="R5G5_SNORM_B6_UNORM" value="281"/>
232    <value name="B5G5R5X1_UNORM" value="282"/>
233    <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
234    <value name="R8G8_SSCALED" value="284"/>
235    <value name="R8G8_USCALED" value="285"/>
236    <value name="R16_SSCALED" value="286"/>
237    <value name="R16_USCALED" value="287"/>
238    <value name="P8A8_UNORM_PALETTE0" value="290"/>
239    <value name="P8A8_UNORM_PALETTE1" value="291"/>
240    <value name="A1B5G5R5_UNORM" value="292"/>
241    <value name="A4B4G4R4_UNORM" value="293"/>
242    <value name="L8A8_UINT" value="294"/>
243    <value name="L8A8_SINT" value="295"/>
244    <value name="R8_UNORM" value="320"/>
245    <value name="R8_SNORM" value="321"/>
246    <value name="R8_SINT" value="322"/>
247    <value name="R8_UINT" value="323"/>
248    <value name="A8_UNORM" value="324"/>
249    <value name="I8_UNORM" value="325"/>
250    <value name="L8_UNORM" value="326"/>
251    <value name="P4A4_UNORM_PALETTE0" value="327"/>
252    <value name="A4P4_UNORM_PALETTE0" value="328"/>
253    <value name="R8_SSCALED" value="329"/>
254    <value name="R8_USCALED" value="330"/>
255    <value name="P8_UNORM_PALETTE0" value="331"/>
256    <value name="L8_UNORM_SRGB" value="332"/>
257    <value name="P8_UNORM_PALETTE1" value="333"/>
258    <value name="P4A4_UNORM_PALETTE1" value="334"/>
259    <value name="A4P4_UNORM_PALETTE1" value="335"/>
260    <value name="Y8_UNORM" value="336"/>
261    <value name="L8_UINT" value="338"/>
262    <value name="L8_SINT" value="339"/>
263    <value name="I8_UINT" value="340"/>
264    <value name="I8_SINT" value="341"/>
265    <value name="DXT1_RGB_SRGB" value="384"/>
266    <value name="R1_UNORM" value="385"/>
267    <value name="YCRCB_NORMAL" value="386"/>
268    <value name="YCRCB_SWAPUVY" value="387"/>
269    <value name="P2_UNORM_PALETTE0" value="388"/>
270    <value name="P2_UNORM_PALETTE1" value="389"/>
271    <value name="BC1_UNORM" value="390"/>
272    <value name="BC2_UNORM" value="391"/>
273    <value name="BC3_UNORM" value="392"/>
274    <value name="BC4_UNORM" value="393"/>
275    <value name="BC5_UNORM" value="394"/>
276    <value name="BC1_UNORM_SRGB" value="395"/>
277    <value name="BC2_UNORM_SRGB" value="396"/>
278    <value name="BC3_UNORM_SRGB" value="397"/>
279    <value name="MONO8" value="398"/>
280    <value name="YCRCB_SWAPUV" value="399"/>
281    <value name="YCRCB_SWAPY" value="400"/>
282    <value name="DXT1_RGB" value="401"/>
283    <value name="FXT1" value="402"/>
284    <value name="R8G8B8_UNORM" value="403"/>
285    <value name="R8G8B8_SNORM" value="404"/>
286    <value name="R8G8B8_SSCALED" value="405"/>
287    <value name="R8G8B8_USCALED" value="406"/>
288    <value name="R64G64B64A64_FLOAT" value="407"/>
289    <value name="R64G64B64_FLOAT" value="408"/>
290    <value name="BC4_SNORM" value="409"/>
291    <value name="BC5_SNORM" value="410"/>
292    <value name="R16G16B16_FLOAT" value="411"/>
293    <value name="R16G16B16_UNORM" value="412"/>
294    <value name="R16G16B16_SNORM" value="413"/>
295    <value name="R16G16B16_SSCALED" value="414"/>
296    <value name="R16G16B16_USCALED" value="415"/>
297    <value name="BC6H_SF16" value="417"/>
298    <value name="BC7_UNORM" value="418"/>
299    <value name="BC7_UNORM_SRGB" value="419"/>
300    <value name="BC6H_UF16" value="420"/>
301    <value name="PLANAR_420_8" value="421"/>
302    <value name="R8G8B8_UNORM_SRGB" value="424"/>
303    <value name="ETC1_RGB8" value="425"/>
304    <value name="ETC2_RGB8" value="426"/>
305    <value name="EAC_R11" value="427"/>
306    <value name="EAC_RG11" value="428"/>
307    <value name="EAC_SIGNED_R11" value="429"/>
308    <value name="EAC_SIGNED_RG11" value="430"/>
309    <value name="ETC2_SRGB8" value="431"/>
310    <value name="R16G16B16_UINT" value="432"/>
311    <value name="R16G16B16_SINT" value="433"/>
312    <value name="R32_SFIXED" value="434"/>
313    <value name="R10G10B10A2_SNORM" value="435"/>
314    <value name="R10G10B10A2_USCALED" value="436"/>
315    <value name="R10G10B10A2_SSCALED" value="437"/>
316    <value name="R10G10B10A2_SINT" value="438"/>
317    <value name="B10G10R10A2_SNORM" value="439"/>
318    <value name="B10G10R10A2_USCALED" value="440"/>
319    <value name="B10G10R10A2_SSCALED" value="441"/>
320    <value name="B10G10R10A2_UINT" value="442"/>
321    <value name="B10G10R10A2_SINT" value="443"/>
322    <value name="R64G64B64A64_PASSTHRU" value="444"/>
323    <value name="R64G64B64_PASSTHRU" value="445"/>
324    <value name="ETC2_RGB8_PTA" value="448"/>
325    <value name="ETC2_SRGB8_PTA" value="449"/>
326    <value name="ETC2_EAC_RGBA8" value="450"/>
327    <value name="ETC2_EAC_SRGB8_A8" value="451"/>
328    <value name="R8G8B8_UINT" value="456"/>
329    <value name="R8G8B8_SINT" value="457"/>
330    <value name="RAW" value="511"/>
331  </enum>
332
333  <enum name="Texture_Coordinate_Mode" prefix="TCM">
334    <value name="WRAP" value="0"/>
335    <value name="MIRROR" value="1"/>
336    <value name="CLAMP" value="2"/>
337    <value name="CUBE" value="3"/>
338    <value name="CLAMP_BORDER" value="4"/>
339    <value name="MIRROR_ONCE" value="5"/>
340  </enum>
341
342  <struct name="CC_VIEWPORT" length="2">
343    <field name="Minimum Depth" start="0" end="31" type="float"/>
344    <field name="Maximum Depth" start="32" end="63" type="float"/>
345  </struct>
346
347  <struct name="CLIP_STATE" length="11">
348    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
349    <field name="GRF Register Count" start="1" end="3" type="uint"/>
350    <field name="Single Program Flow" start="63" end="63" type="bool"/>
351    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
352    <field name="Thread Priority" start="49" end="49" type="uint">
353      <value name="Normal Priority" value="0"/>
354      <value name="High Priority" value="1"/>
355    </field>
356    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
357      <value name="IEEE-754" value="0"/>
358      <value name="Alternate" value="1"/>
359    </field>
360    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
361    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
362    <field name="Software  Exception Enable" start="39" end="39" type="bool"/>
363    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
364    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
365    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
366    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
367    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
368    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
369    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
370    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
371    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
372    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
373    <field name="API Mode" start="190" end="190" type="uint" prefix="APIMODE">
374      <value name="OGL" value="0"/>
375      <value name="D3D" value="1"/>
376    </field>
377    <field name="Vertex Position Space" start="189" end="189" type="uint" prefix="VPOS">
378      <value name="NDCSPACE" value="0"/>
379      <value name="SCREENSPACE" value="1"/>
380    </field>
381    <field name="Viewport XY ClipTest Enable" start="188" end="188" type="bool"/>
382    <field name="Viewport Z ClipTest Enable" start="187" end="187" type="bool"/>
383    <field name="Guardband ClipTest Enable" start="186" end="186" type="bool"/>
384    <field name="Negative W ClipTest Enable" start="185" end="185" type="bool"/>
385    <field name="UserClipFlags MustClip Enable" start="184" end="184" type="bool"/>
386    <field name="UserClipDistance ClipTest Enable Bitmask" start="176" end="183" type="uint"/>
387    <field name="Clip Mode" start="173" end="175" type="uint" prefix="CLIPMODE">
388      <value name="NORMAL" value="0"/>
389      <value name="ALL" value="1"/>
390      <value name="CLIP_NON_REJECTED" value="2"/>
391      <value name="REJECT_ALL" value="3"/>
392      <value name="ACCEPT_ALL" value="4"/>
393    </field>
394    <field name="Clipper Viewport State Pointer" start="197" end="223" type="address"/>
395    <field name="Screen Space Viewport X Min" start="224" end="255" type="float"/>
396    <field name="Screen Space Viewport X Max" start="256" end="287" type="float"/>
397    <field name="Screen Space Viewport Y Min" start="288" end="319" type="float"/>
398    <field name="Screen Space Viewport Y Max" start="320" end="351" type="float"/>
399  </struct>
400
401  <struct name="CLIP_VIEWPORT" length="4">
402    <field name="XMin Clip Guardband" start="0" end="31" type="float"/>
403    <field name="XMax Clip Guardband" start="32" end="63" type="float"/>
404    <field name="YMin Clip Guardband" start="64" end="95" type="float"/>
405    <field name="YMax Clip Guardband" start="96" end="127" type="float"/>
406  </struct>
407
408  <struct name="SCISSOR_RECT" length="2">
409    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
410    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
411    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
412    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
413  </struct>
414
415  <struct name="COLOR_CALC_STATE" length="8">
416    <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
417    <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
418    <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
419    <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
420    <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
421    <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
422    <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
423    <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
424    <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
425    <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
426    <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
427    <field name="Stencil Reference Value" start="56" end="63" type="uint"/>
428    <field name="Stencil Test Mask" start="48" end="55" type="uint"/>
429    <field name="Stencil Write Mask" start="40" end="47" type="uint"/>
430    <field name="Backface Stencil Reference Value" start="32" end="39" type="uint"/>
431    <field name="Backface Stencil Test Mask" start="88" end="95" type="uint"/>
432    <field name="Backface Stencil Write Mask" start="80" end="87" type="uint"/>
433    <field name="Depth Test Enable" start="79" end="79" type="bool"/>
434    <field name="Depth Test Function" start="76" end="78" type="3D_Compare_Function"/>
435    <field name="Depth Buffer Write Enable" start="75" end="75" type="bool"/>
436    <field name="Logic Op Enable" start="64" end="64" type="bool"/>
437    <field name="Alpha Test Format" start="111" end="111" type="uint">
438      <value name="ALPHATEST_UNORM8" value="0"/>
439      <value name="ALPHATEST_FLOAT32" value="1"/>
440    </field>
441    <field name="Independent Alpha Blend Enable" start="109" end="109" type="bool"/>
442    <field name="Color Buffer Blend Enable" start="108" end="108" type="bool"/>
443    <field name="Alpha Test Enable" start="107" end="107" type="bool"/>
444    <field name="Alpha Test Function" start="104" end="106" type="3D_Compare_Function"/>
445    <field name="CC Viewport State Pointer" start="133" end="159" type="address"/>
446    <field name="Color Dither Enable" start="191" end="191" type="bool"/>
447    <field name="Round Disable Function Disable" start="190" end="190" type="bool"/>
448    <field name="Logic Op Function" start="176" end="179" type="3D_Logic_Op_Function"/>
449    <field name="Statistics Enable" start="175" end="175" type="bool"/>
450    <field name="Alpha Blend Function" start="172" end="174" type="3D_Color_Buffer_Blend_Function"/>
451    <field name="Source Alpha Blend Factor" start="167" end="171" type="3D_Color_Buffer_Blend_Factor"/>
452    <field name="Destination Alpha Blend Factor" start="162" end="166" type="3D_Color_Buffer_Blend_Factor"/>
453    <field name="Color Blend Function" start="221" end="223" type="3D_Color_Buffer_Blend_Function"/>
454    <field name="Source Blend Factor" start="216" end="220" type="3D_Color_Buffer_Blend_Factor"/>
455    <field name="Destination Blend Factor" start="211" end="215" type="3D_Color_Buffer_Blend_Factor"/>
456    <field name="X Dither Offset" start="209" end="210" type="uint"/>
457    <field name="Y Dither Offset" start="207" end="208" type="uint"/>
458    <field name="Color Clamp Range" start="194" end="195" type="uint">
459      <value name="COLORCLAMP_UNORM" value="0"/>
460      <value name="COLORCLAMP_SNORM" value="1"/>
461      <value name="COLORCLAMP_RTFORMAT" value="2"/>
462    </field>
463    <field name="Pre-Blend Color Clamp Enable" start="193" end="193" type="bool"/>
464    <field name="Post-Blend Color Clamp Enable" start="192" end="192" type="bool"/>
465    <field name="Alpha Reference Value As UNORM8" start="224" end="255" type="uint"/>
466    <field name="Alpha Reference Value As FLOAT32" start="224" end="255" type="float"/>
467  </struct>
468
469  <struct name="GS_STATE" length="7">
470    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
471    <field name="GRF Register Count" start="1" end="3" type="uint"/>
472    <field name="Single Program Flow" start="63" end="63" type="bool"/>
473    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
474    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
475      <value name="IEEE-754" value="0"/>
476      <value name="Alternate" value="1"/>
477    </field>
478    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
479    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
480    <field name="Software  Exception Enable" start="39" end="39" type="bool"/>
481    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
482    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
483    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
484    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
485    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
486    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
487    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
488    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
489    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
490    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
491    <field name="GS Statistics Enable" start="138" end="138" type="bool"/>
492    <field name="SO Statistics Enable" start="137" end="137" type="bool"/>
493    <field name="Rendering Enabled" start="136" end="136" type="bool"/>
494    <field name="Sampler State Pointer" start="165" end="191" type="address"/>
495    <field name="Sampler Count" start="160" end="162" type="uint"/>
496    <field name="Reorder Enable" start="222" end="222" type="bool"/>
497    <field name="Maximum VPIndex" start="192" end="195" type="uint"/>
498  </struct>
499
500  <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
501    <field name="Encrypted Data" start="3" end="3" type="bool"/>
502    <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
503    <field name="Cacheability Control" start="0" end="1" type="uint"/>
504  </struct>
505
506  <struct name="SAMPLER_BORDER_COLOR_STATE" length="12">
507    <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
508    <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
509    <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
510    <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>
511
512    <field name="Border Color Float Red" start="32" end="63" type="float"/>
513    <field name="Border Color Float Green" start="64" end="95" type="float"/>
514    <field name="Border Color Float Blue" start="96" end="127" type="float"/>
515    <field name="Border Color Float Alpha" start="128" end="159" type="float"/>
516
517    <field name="Border Color Float16 Red" start="160" end="175" type="uint"/>
518    <field name="Border Color Float16 Green" start="176" end="191" type="uint"/>
519    <field name="Border Color Float16 Blue" start="192" end="207" type="uint"/>
520    <field name="Border Color Float16 Alpha" start="208" end="223" type="uint"/>
521
522    <field name="Border Color Unorm16 Red" start="224" end="239" type="uint"/>
523    <field name="Border Color Unorm16 Green" start="240" end="255" type="uint"/>
524    <field name="Border Color Unorm16 Blue" start="256" end="271" type="uint"/>
525    <field name="Border Color Unorm16 Alpha" start="272" end="287" type="uint"/>
526
527    <field name="Border Color Snorm16 Red" start="288" end="303" type="int"/>
528    <field name="Border Color Snorm16 Green" start="304" end="319" type="int"/>
529    <field name="Border Color Snorm16 Blue" start="320" end="335" type="int"/>
530    <field name="Border Color Snorm16 Alpha" start="336" end="351" type="int"/>
531
532    <field name="Border Color Snorm8 Red" start="352" end="359" type="int"/>
533    <field name="Border Color Snorm8 Green" start="360" end="367" type="int"/>
534    <field name="Border Color Snorm8 Blue" start="368" end="375" type="int"/>
535    <field name="Border Color Snorm8 Alpha" start="376" end="383" type="int"/>
536  </struct>
537
538  <struct name="SAMPLER_STATE" length="4">
539    <field name="Sampler Disable" start="31" end="31" type="bool"/>
540    <field name="LOD PreClamp Enable" start="28" end="28" type="bool"/>
541    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
542    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
543      <value name="NONE" value="0"/>
544      <value name="NEAREST" value="1"/>
545      <value name="LINEAR" value="3"/>
546    </field>
547    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
548      <value name="NEAREST" value="0"/>
549      <value name="LINEAR" value="1"/>
550      <value name="ANISOTROPIC" value="2"/>
551      <value name="MONO" value="6"/>
552    </field>
553    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER"/>
554    <field name="Texture LOD Bias" start="3" end="13" type="s4.6"/>
555    <field name="Shadow Function" start="0" end="2" type="uint">
556      <value name="PREFILTEROP_ALWAYS" value="0"/>
557      <value name="PREFILTEROP_NEVER" value="1"/>
558      <value name="PREFILTEROP_LESS" value="2"/>
559      <value name="PREFILTEROP_EQUAL" value="3"/>
560      <value name="PREFILTEROP_LEQUAL" value="4"/>
561      <value name="PREFILTEROP_GREATER" value="5"/>
562      <value name="PREFILTEROP_NOTEQUAL" value="6"/>
563      <value name="PREFILTEROP_GEQUAL" value="7"/>
564    </field>
565    <field name="Min LOD" start="54" end="63" type="u4.6"/>
566    <field name="Max LOD" start="44" end="53" type="u4.6"/>
567    <field name="Cube Surface Control Mode" start="41" end="41" type="uint">
568      <value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
569      <value name="CUBECTRLMODE_OVERRIDE" value="1"/>
570    </field>
571    <field name="TCX Address Control Mode" start="38" end="40" type="Texture_Coordinate_Mode"/>
572    <field name="TCY Address Control Mode" start="35" end="37" type="Texture_Coordinate_Mode"/>
573    <field name="TCZ Address Control Mode" start="32" end="34" type="Texture_Coordinate_Mode"/>
574    <field name="Border Color Pointer" start="69" end="95" type="address"/>
575    <field name="Monochrome Filter Height" start="125" end="127" type="uint"/>
576    <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
577    <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
578    <field name="ChromaKey Index" start="119" end="120" type="uint"/>
579    <field name="ChromaKey Mode" start="118" end="118" type="uint" prefix="KEYFILTER">
580      <value name="KILL_ON_ANY_MATCH" value="0"/>
581      <value name="REPLACE_BLACK" value="1"/>
582    </field>
583    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
584      <value name="RATIO 2:1" value="0"/>
585      <value name="RATIO 4:1" value="1"/>
586      <value name="RATIO 6:1" value="2"/>
587      <value name="RATIO 8:1" value="3"/>
588      <value name="RATIO 10:1" value="4"/>
589      <value name="RATIO 12:1" value="5"/>
590      <value name="RATIO 14:1" value="6"/>
591      <value name="RATIO 16:1" value="7"/>
592    </field>
593    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
594    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
595    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
596    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
597    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
598    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
599  </struct>
600
601  <struct name="RENDER_SURFACE_STATE" length="6">
602    <field name="Surface Type" start="29" end="31" type="uint">
603      <value name="SURFTYPE_1D" value="0"/>
604      <value name="SURFTYPE_2D" value="1"/>
605      <value name="SURFTYPE_3D" value="2"/>
606      <value name="SURFTYPE_CUBE" value="3"/>
607      <value name="SURFTYPE_BUFFER" value="4"/>
608      <value name="SURFTYPE_NULL" value="7"/>
609    </field>
610    <field name="Data Return Format" start="27" end="27" type="uint">
611      <value name="DATA_RETURN_FLOAT32" value="0"/>
612      <value name="DATA_RETURN_S1.14" value="1"/>
613    </field>
614    <field name="Surface Format" start="18" end="26" type="uint"/>
615    <field name="Color Buffer Component Write Disables" start="14" end="17" type="uint">
616      <value name="WRITEDISABLE_ALPHA" value="8"/>
617      <value name="WRITEDISABLE_RED" value="4"/>
618      <value name="WRITEDISABLE_GREEN" value="2"/>
619      <value name="WRITEDISABLE_BLUE" value="1"/>
620    </field>
621    <field name="Color Blend Enable" start="13" end="13" type="bool"/>
622    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
623    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
624    <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
625      <value name="MIPLAYOUT_BELOW" value="0"/>
626      <value name="MIPLAYOUT_RIGHT" value="1"/>
627    </field>
628    <field name="Cube Map Corner Mode" start="9" end="9" type="uint">
629      <value name="CUBE_REPLICATE" value="0"/>
630      <value name="CUBE_AVERAGE" value="1"/>
631    </field>
632    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
633      <value name="WRITE_ONLY" value="0"/>
634      <value name="READ_WRITE" value="1"/>
635    </field>
636    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
637      <value name="NORMAL_MODE" value="0"/>
638    </field>
639    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
640    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
641    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
642    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
643    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
644    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
645    <field name="Surface Base Address" start="32" end="63" type="address"/>
646    <field name="Height" start="83" end="95" type="uint"/>
647    <field name="Width" start="70" end="82" type="uint"/>
648    <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
649    <field name="Render Target Rotation" start="64" end="65" type="uint">
650      <value name="RTROTATE_0DEG" value="0"/>
651      <value name="RTROTATE_90DEG" value="1"/>
652      <value name="RTROTATE_270DEG" value="3"/>
653    </field>
654    <field name="Depth" start="117" end="127" type="uint"/>
655    <field name="Surface Pitch" start="99" end="115" type="uint"/>
656    <field name="Tiled Surface" start="97" end="97" type="uint"/>
657    <field name="Tile Walk" start="96" end="96" type="uint">
658      <value name="TILEWALK_XMAJOR" value="0"/>
659      <value name="TILEWALK_YMAJOR" value="1"/>
660    </field>
661    <field name="Surface Min LOD" start="156" end="159" type="uint"/>
662    <field name="Minimum Array Element" start="145" end="155" type="uint"/>
663    <field name="Render Target View Extent" start="136" end="144" type="uint"/>
664    <field name="X Offset" start="185" end="191" type="uint"/>
665    <field name="Y Offset" start="180" end="183" type="uint"/>
666  </struct>
667
668  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="6">
669    <!-- The hardware docs incorrectly say length is 7. The actual length is 6. -->
670    <!-- DWord 0 -->
671    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
672    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
673    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
674    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
675    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
676    <!-- DWord 1 -->
677    <field name="Surface Type" start="61" end="63" type="uint">
678      <value name="SURFTYPE_1D" value="0"/>
679      <value name="SURFTYPE_2D" value="1"/>
680      <value name="SURFTYPE_3D" value="2"/>
681      <value name="SURFTYPE_CUBE" value="3"/>
682      <value name="SURFTYPE_NULL" value="7"/>
683    </field>
684    <field name="Tiled Surface" start="59" end="59" type="bool"/>
685    <field name="Tile Walk" start="58" end="58" type="uint">
686      <value name="TILEWALK_YMAJOR" value="1"/>
687    </field>
688    <field name="Software Tiled Rendering Mode" start="55" end="56" type="uint">
689      <value name="NORMAL" value="0"/>
690      <value name="STR1" value="1"/>
691      <value name="STR2" value="3"/>
692    </field>
693    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
694    <field name="Separate Stencil Buffer Enable" start="53" end="53" type="bool"/>
695    <field name="Surface Format" start="50" end="52" type="uint">
696      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
697      <value name="D32_FLOAT" value="1"/>
698      <value name="D24_UNORM_S8_UINT" value="2"/>
699      <value name="D24_UNORM_X8_UINT" value="3"/>
700      <value name="D16_UNORM" value="5"/>
701    </field>
702    <field name="Surface Pitch" start="32" end="48" type="uint"/>
703    <!-- DWord 2 -->
704    <field name="Surface Base Address" start="64" end="95" type="address"/>
705    <!-- DWord 3 -->
706    <field name="Height" start="115" end="127" type="uint"/>
707    <field name="Width" start="102" end="114" type="uint"/>
708    <field name="LOD" start="98" end="101" type="uint"/>
709    <field name="MIP Map Layout Mode" start="97" end="97" type="uint">
710      <value name="MIPLAYOUT_BELOW" value="0"/>
711      <value name="MIPLAYOUT_RIGHT" value="1"/>
712    </field>
713    <!-- DWord 4 -->
714    <field name="Depth" start="149" end="159" type="uint"/>
715    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
716    <field name="Render Target View Extent" start="129" end="137" type="uint"/>
717    <!-- DWord 5 -->
718    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
719    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
720    <!-- DWord 6 -->
721    <!-- The hardware docs lie. There is no dword 6. -->
722  </instruction>
723
724  <struct name="SF_STATE" length="8">
725    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
726    <field name="GRF Register Count" start="1" end="3" type="uint"/>
727    <field name="Single Program Flow" start="63" end="63" type="bool"/>
728    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
729    <field name="Thread Priority" start="49" end="49" type="uint">
730      <value name="Normal Priority" value="0"/>
731      <value name="High Priority" value="1"/>
732    </field>
733    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
734      <value name="IEEE-754" value="0"/>
735      <value name="Alternate" value="1"/>
736    </field>
737    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
738    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
739    <field name="Software  Exception Enable" start="39" end="39" type="bool"/>
740    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
741    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
742    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
743    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
744    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
745    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
746    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
747    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
748    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
749    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
750    <field name="Setup Viewport State Offset" start="165" end="191" type="address"/>
751    <field name="Viewport Transform Enable" start="161" end="161" type="bool"/>
752    <field name="Front Winding" start="160" end="160" type="uint">
753      <value name="FRONTWINDING_CW" value="0"/>
754      <value name="FRONTWINDING_CCW" value="1"/>
755    </field>
756    <field name="Anti-Aliasing Enable" start="223" end="223" type="bool"/>
757    <field name="Cull Mode" start="221" end="222" type="uint" prefix="CULLMODE">
758      <value name="BOTH" value="0"/>
759      <value name="NONE" value="1"/>
760      <value name="FRONT" value="2"/>
761      <value name="BACK" value="3"/>
762    </field>
763    <field name="Fast Scissor Clip Disable" start="220" end="220" type="bool"/>
764    <field name="Line Width" start="216" end="219" type="u3.1"/>
765    <field name="Line End Cap Antialiasing Region Width" start="214" end="215" type="uint">
766      <value name="0.5 pixels" value="0"/>
767      <value name="1.0 pixels" value="1"/>
768      <value name="2.0 pixels" value="2"/>
769      <value name="4.0 pixels" value="3"/>
770    </field>
771    <field name="Point Rasterization Rule" start="212" end="213" type="uint">
772      <value name="RASTRULE_UPPER_LEFT" value="0"/>
773      <value name="RASTRULE_UPPER_RIGHT" value="1"/>
774    </field>
775    <field name="Zero Pixel Triangle Filter Disable" start="211" end="211" type="bool"/>
776    <field name="2x2 Pixel Triangle Filter Disable" start="210" end="210" type="bool"/>
777    <field name="Scissor Rectangle Enable" start="209" end="209" type="bool"/>
778    <field name="Destination Origin Horizontal Bias" start="205" end="208" type="u0.4"/>
779    <field name="Destination Origin Vertical Bias" start="201" end="204" type="u0.4"/>
780    <field name="Last Pixel Enable" start="255" end="255" type="bool"/>
781    <field name="Triangle Strip/List Provoking Vertex Select" start="253" end="254" type="uint">
782      <value name="Vertex 0" value="0"/>
783      <value name="Vertex 1" value="1"/>
784      <value name="Vertex 2" value="2"/>
785    </field>
786    <field name="Line Strip/List Provoking Vertex Select" start="251" end="252" type="uint">
787      <value name="Vertex 0" value="0"/>
788      <value name="Vertex 1" value="1"/>
789    </field>
790    <field name="Triangle Fan Provoking Vertex Select" start="249" end="250" type="uint">
791      <value name="Vertex 0" value="0"/>
792      <value name="Vertex 1" value="1"/>
793      <value name="Vertex 2" value="2"/>
794    </field>
795    <field name="AA Line Distance Mode" start="238" end="238" type="uint" prefix="AALINEDISTANCE">
796      <value name="MANHATTAN" value="0"/>
797      <value name="TRUE" value="1"/>
798    </field>
799    <field name="Sprite Point Enable" start="237" end="237" type="bool"/>
800    <field name="Vertex Sub Pixel Precision Select" start="236" end="236" type="uint">
801      <value name="8 Sub-Pixel Precision Bits" value="0"/>
802      <value name="4 Sub-Pixel Precision Bits" value="1"/>
803    </field>
804    <field name="Point Width Source" start="235" end="235" type="uint">
805      <value name="Vertex" value="0"/>
806      <value name="State" value="1"/>
807    </field>
808    <field name="Point Width" start="224" end="234" type="u8.3"/>
809  </struct>
810
811  <struct name="SF_VIEWPORT" length="8">
812    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
813    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
814    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
815    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
816    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
817    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
818    <field name="Scissor Rectangle" start="192" end="255" type="SCISSOR_RECT"/>
819  </struct>
820
821  <struct name="VERTEX_BUFFER_STATE" length="4">
822    <field name="Vertex Buffer Index" start="27" end="31" type="uint"/>
823    <field name="Buffer Access Type" start="26" end="26" type="uint">
824      <value name="VERTEXDATA" value="0"/>
825      <value name="INSTANCEDATA" value="1"/>
826    </field>
827    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
828    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
829    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
830    <field name="End Address" start="64" end="95" type="address"/>
831    <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
832  </struct>
833
834  <struct name="VERTEX_ELEMENT_STATE" length="2">
835    <field name="Vertex Buffer Index" start="27" end="31" type="uint"/>
836    <field name="Valid" start="26" end="26" type="bool"/>
837    <field name="Source Element Format" start="16" end="24" type="SURFACE_FORMAT"/>
838    <field name="Source Element Offset" start="0" end="10" type="uint"/>
839    <field name="Destination Element Offset" start="32" end="39" type="uint"/>
840    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
841    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
842    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
843    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
844  </struct>
845
846  <struct name="VS_STATE" length="7">
847    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
848    <field name="GRF Register Count" start="1" end="3" type="uint"/>
849    <field name="Single Program Flow" start="63" end="63" type="bool"/>
850    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
851    <field name="Thread Priority" start="49" end="49" type="uint">
852      <value name="Normal Priority" value="0"/>
853      <value name="High Priority" value="1"/>
854    </field>
855    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
856      <value name="IEEE-754" value="0"/>
857      <value name="Alternate" value="1"/>
858    </field>
859    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
860    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
861    <field name="Software  Exception Enable" start="39" end="39" type="bool"/>
862    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
863    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
864    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
865    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
866    <field name="Vertex URB Entry Read Length" start="107" end="112" type="uint"/>
867    <field name="Vertex URB Entry Read Offset" start="100" end="105" type="uint"/>
868    <field name="Dispatch GRF Start Register For URB Data" start="96" end="99" type="uint"/>
869    <field name="Maximum Number of Threads" start="153" end="158" type="uint"/>
870    <field name="URB Entry Allocation Size" start="147" end="151" type="uint"/>
871    <field name="Number of URB Entries" start="139" end="146" type="uint"/>
872    <field name="Statistics Enable" start="138" end="138" type="bool"/>
873    <field name="Sampler State Pointer" start="165" end="191" type="address"/>
874    <field name="Sampler Count" start="160" end="162" type="uint"/>
875    <field name="Vertex Cache Disable" start="193" end="193" type="bool"/>
876    <field name="Enable" start="192" end="192" type="bool"/>
877  </struct>
878
879  <struct name="WM_STATE" length="11">
880    <field name="Kernel Start Pointer 0" start="6" end="31" type="offset"/>
881    <field name="GRF Register Count 0" start="1" end="3" type="uint"/>
882    <field name="Single Program Flow" start="63" end="63" type="bool"/>
883    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
884    <field name="Thread Priority" start="49" end="49" type="uint">
885      <value name="High" value="1"/>
886    </field>
887    <field name="Floating Point Mode" start="48" end="48" type="uint" prefix="FLOATING_POINT_MODE">
888      <value name="IEEE-754" value="0"/>
889      <value name="Alternate" value="1"/>
890    </field>
891    <field name="Depth Coefficient URB Read Offset" start="40" end="45" type="uint"/>
892    <field name="Illegal Opcode Exception Enable" start="36" end="36" type="bool"/>
893    <field name="Mask Stack Exception Enable" start="34" end="34" type="bool"/>
894    <field name="Software  Exception Enable" start="33" end="33" type="bool"/>
895    <field name="Scratch Space Base Pointer" start="74" end="95" type="address"/>
896    <field name="Per-Thread Scratch Space" start="64" end="67" type="uint"/>
897    <field name="Constant URB Entry Read Length" start="121" end="126" type="uint"/>
898    <field name="Constant URB Entry Read Offset" start="114" end="119" type="uint"/>
899    <field name="Setup URB Entry Read Length" start="107" end="112" type="uint"/>
900    <field name="Setup URB Entry Read Offset" start="100" end="105" type="uint"/>
901    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="96" end="99" type="uint"/>
902    <field name="Sampler State Pointer" start="133" end="159" type="address"/>
903    <field name="Sampler Count" start="130" end="132" type="uint"/>
904    <field name="Statistics Enable" start="128" end="128" type="bool"/>
905    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
906    <field name="Legacy Diamond Line Rasterization" start="183" end="183" type="bool"/>
907    <field name="Pixel Shader Kills Pixel" start="182" end="182" type="bool"/>
908    <field name="Pixel Shader Computed Depth" start="181" end="181" type="bool"/>
909    <field name="Pixel Shader Uses Source Depth" start="180" end="180" type="bool"/>
910    <field name="Thread Dispatch Enable" start="179" end="179" type="bool"/>
911    <field name="Early Depth Test Enable" start="178" end="178" type="bool"/>
912    <field name="Line End Cap Antialiasing Region Width" start="176" end="177" type="uint">
913      <value name="0.5 pixels" value="0"/>
914      <value name="1.0 pixels" value="1"/>
915      <value name="2.0 pixels" value="2"/>
916      <value name="4.0 pixels" value="3"/>
917    </field>
918    <field name="Line Antialiasing Region Width" start="174" end="175" type="uint">
919      <value name="0.5 pixels" value="0"/>
920      <value name="1.0 pixels" value="1"/>
921      <value name="2.0 pixels" value="2"/>
922      <value name="4.0 pixels" value="3"/>
923    </field>
924    <field name="Polygon Stipple Enable" start="173" end="173" type="bool"/>
925    <field name="Global Depth Offset Enable" start="172" end="172" type="bool"/>
926    <field name="Line Stipple Enable" start="171" end="171" type="bool"/>
927    <field name="Legacy Global Depth Bias Enable" start="170" end="170" type="bool"/>
928    <field name="Hierarchical Depth Buffer Resolve Enable" start="169" end="169" type="bool"/>
929    <field name="Depth Buffer Resolve Enable" start="168" end="168" type="bool"/>
930    <field name="Depth Buffer Clear" start="167" end="167" type="bool"/>
931    <field name="Fast Span Coverage Enable" start="166" end="166" type="bool"/>
932    <field name="Contiguous 64 Pixel Dispatch Enable" start="164" end="164" type="bool"/>
933    <field name="Contiguous 32 Pixel Dispatch Enable" start="163" end="163" type="bool"/>
934    <field name="32 Pixel Dispatch Enable" start="162" end="162" type="bool"/>
935    <field name="16 Pixel Dispatch Enable" start="161" end="161" type="bool"/>
936    <field name="8 Pixel Dispatch Enable" start="160" end="160" type="bool"/>
937    <field name="Global Depth Offset Constant" start="192" end="223" type="float"/>
938    <field name="Global Depth Offset Scale" start="224" end="255" type="float"/>
939    <field name="Kernel Start Pointer 1" start="262" end="287" type="offset"/>
940    <field name="GRF Register Count 1" start="257" end="259" type="uint"/>
941    <field name="Kernel Start Pointer 2" start="294" end="319" type="offset"/>
942    <field name="GRF Register Count 2" start="289" end="291" type="uint"/>
943    <field name="Kernel Start Pointer 3" start="326" end="351" type="offset"/>
944    <field name="GRF Register Count 3" start="321" end="323" type="uint"/>
945  </struct>
946
947  <instruction name="3DPRIMITIVE" bias="2" length="6">
948    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
949    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
950    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
951    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
952    <field name="Vertex Access Type" start="15" end="15" type="uint">
953      <value name="SEQUENTIAL" value="0"/>
954      <value name="RANDOM" value="1"/>
955    </field>
956    <field name="Primitive Topology Type" start="10" end="14" type="3D_Prim_Topo_Type"/>
957    <field name="Indirect Vertex Count" start="9" end="9" type="uint"/>
958    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
959    <field name="Vertex Count Per Instance" start="32" end="63" type="uint"/>
960    <field name="Start Vertex Location" start="64" end="95" type="uint"/>
961    <field name="Instance Count" start="96" end="127" type="uint"/>
962    <field name="Start Instance Location" start="128" end="159" type="uint"/>
963    <field name="Base Vertex Location" start="160" end="191" type="int"/>
964  </instruction>
965
966  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3">
967    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
968    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
969    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
970    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
971    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
972    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
973    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
974    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
975    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
976  </instruction>
977
978  <instruction name="3DSTATE_BINDING_TABLE_POINTERS" bias="2" length="6">
979    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
980    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
981    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
982    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
983    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
984    <field name="Pointer to VS Binding Table" start="37" end="63" type="offset"/>
985    <field name="Pointer to GS Binding Table" start="69" end="95" type="offset"/>
986    <field name="Pointer to CLIP Binding Table" start="101" end="127" type="offset"/>
987    <field name="Pointer to SF Binding Table" start="133" end="159" type="offset"/>
988    <field name="Pointer to PS Binding Table" start="165" end="191" type="offset"/>
989  </instruction>
990
991  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="2">
992    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
993    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
994    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
995    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="16"/>
996    <field name="Depth Clear Value Valid" start="15" end="15" type="bool"/>
997    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
998    <field name="Depth Clear Value" start="32" end="63" type="uint"/>
999  </instruction>
1000
1001  <instruction name="3DSTATE_CONSTANT_COLOR" bias="2" length="5">
1002    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1003    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1004    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1005    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
1006    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1007    <field name="Blend Constant Color Red" start="32" end="63" type="float"/>
1008    <field name="Blend Constant Color Green" start="64" end="95" type="float"/>
1009    <field name="Blend Constant Color Blue" start="96" end="127" type="float"/>
1010    <field name="Blend Constant Color Alpha" start="128" end="159" type="float"/>
1011  </instruction>
1012
1013  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4">
1014    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1015    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1016    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1017    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1018    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1019    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
1020    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
1021    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
1022    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
1023    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
1024    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
1025  </instruction>
1026
1027  <instruction name="3DSTATE_GLOBAL_DEPTH_OFFSET_CLAMP" bias="2" length="2">
1028    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1029    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1030    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1031    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
1032    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1033    <field name="Global Depth Offset Clamp" start="32" end="63" type="float"/>
1034  </instruction>
1035
1036  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="3">
1037    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1038    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1039    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1040    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
1041    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1042    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1043    <field name="Surface Base Address" start="64" end="95" type="address"/>
1044  </instruction>
1045
1046  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3">
1047    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1048    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1049    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1050    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
1051    <field name="Cut Index Enable" start="10" end="10" type="bool"/>
1052    <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
1053      <value name="BYTE" value="0"/>
1054      <value name="WORD" value="1"/>
1055      <value name="DWORD" value="2"/>
1056    </field>
1057    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1058    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
1059    <field name="Buffer Ending Address" start="64" end="95" type="address"/>
1060  </instruction>
1061
1062  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3">
1063    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1064    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1065    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1066    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1067    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1068    <field name="Modify Enable" start="63" end="63" type="bool"/>
1069    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
1070    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
1071    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
1072    <field name="Line Stipple Inverse Repeat Count" start="80" end="95" type="u1.13"/>
1073    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
1074  </instruction>
1075
1076  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2">
1077    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1078    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1079    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1080    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
1081    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1082    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
1083    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
1084  </instruction>
1085
1086  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33">
1087    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1088    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1089    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1090    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
1091    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
1092    <group count="32" start="32" size="32">
1093      <field name="Pattern Row" start="0" end="31" type="uint"/>
1094    </group>
1095  </instruction>
1096
1097  <instruction name="3DSTATE_PIPELINED_POINTERS" bias="2" length="7">
1098    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1099    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1100    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1101    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1102    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
1103    <field name="Pointer to VS State" start="37" end="63" type="address"/>
1104    <field name="Pointer to GS State" start="69" end="95" type="address"/>
1105    <field name="GS Enable" start="64" end="64" type="bool"/>
1106    <field name="Pointer to CLIP State" start="101" end="127" type="address"/>
1107    <field name="Clip Enable" start="96" end="96" type="bool"/>
1108    <field name="Pointer to SF State" start="133" end="159" type="address"/>
1109    <field name="Pointer to WM State" start="165" end="191" type="address"/>
1110    <field name="Pointer to Color Calc State" start="197" end="223" type="address"/>
1111  </instruction>
1112
1113  <instruction name="3DSTATE_STENCIL_BUFFER" bias="2" length="3">
1114    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1115    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1116    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1117    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
1118    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1119    <field name="Surface Pitch" start="32" end="48" type="uint"/>
1120    <field name="Surface Base Address" start="64" end="95" type="address"/>
1121  </instruction>
1122
1123  <instruction name="3DSTATE_VERTEX_BUFFERS" bias="2">
1124    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1125    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1126    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1127    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
1128    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
1129    <group count="0" start="32" size="128">
1130      <field name="Vertex Buffer State" start="0" end="127" type="VERTEX_BUFFER_STATE"/>
1131    </group>
1132  </instruction>
1133
1134  <instruction name="3DSTATE_VERTEX_ELEMENTS" bias="2">
1135    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1136    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1137    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1138    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="9"/>
1139    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1140    <group count="0" start="32" size="64">
1141      <field name="Element" start="0" end="63" type="VERTEX_ELEMENT_STATE"/>
1142    </group>
1143  </instruction>
1144
1145  <instruction name="3DSTATE_VF_STATISTICS" bias="1" length="1">
1146    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1147    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
1148    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1149    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="11"/>
1150    <field name="Statistics Enable" start="0" end="0" type="bool"/>
1151  </instruction>
1152
1153  <instruction name="CS_URB_STATE" bias="2" length="2">
1154    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1155    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1156    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1157    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
1158    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1159    <field name="URB Entry Allocation Size" start="36" end="40" type="uint"/>
1160    <field name="Number of URB Entries" start="32" end="34" type="uint"/>
1161  </instruction>
1162
1163  <instruction name="CONSTANT_BUFFER" bias="2" length="2">
1164    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1165    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1166    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1167    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1168    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1169    <field name="Valid" start="8" end="8" type="bool"/>
1170    <field name="Buffer Starting Address" start="38" end="63" type="address"/>
1171    <field name="Buffer Length" start="32" end="37" type="uint"/>
1172  </instruction>
1173
1174  <instruction name="MI_FLUSH" bias="1" length="1">
1175    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1176    <field name="MI Command Opcode" start="23" end="28" type="uint" default="4"/>
1177    <field name="Protected Memory Enable" start="6" end="6" type="bool"/>
1178    <field name="Indirect State Pointers Disable" start="5" end="5" type="bool"/>
1179    <field name="Generic Media State Clear" start="4" end="4" type="bool"/>
1180    <field name="Global Snapshot Count Reset" start="3" end="3" type="uint">
1181      <value name="Don't Reset" value="0"/>
1182      <value name="Reset" value="1"/>
1183    </field>
1184    <field name="Render Cache Flush Inhibit" start="2" end="2" type="uint">
1185      <value name="Flush" value="0"/>
1186      <value name="Don't Flush" value="1"/>
1187    </field>
1188    <field name="State/Instruction Cache Invalidate" start="1" end="1" type="uint">
1189      <value name="Don't Invalidate" value="0"/>
1190      <value name="Invalidate" value="1"/>
1191    </field>
1192  </instruction>
1193
1194  <instruction name="MI_LOAD_REGISTER_IMM" bias="2" length="3">
1195    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1196    <field name="MI Command Opcode" start="23" end="28" type="uint" default="34"/>
1197    <field name="Byte Write Disables" start="8" end="11" type="uint"/>
1198    <field name="DWord Length" start="0" end="5" type="uint" default="1"/>
1199    <field name="Register Offset" start="34" end="63" type="offset"/>
1200    <field name="Data DWord" start="64" end="95" type="uint"/>
1201  </instruction>
1202
1203  <instruction name="MI_STORE_DATA_IMM" bias="2" length="5">
1204    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1205    <field name="MI Command Opcode" start="23" end="28" type="uint" default="32"/>
1206    <field name="Memory Address Type" start="22" end="22" type="bool"/>
1207    <field name="DWord Length" start="0" end="5" type="uint" default="2"/>
1208    <field name="Physical Start Address Extension" start="32" end="35" type="address"/>
1209    <field name="Address" start="66" end="95" type="address"/>
1210    <field name="Data DWord 0" start="96" end="127" type="uint"/>
1211    <field name="Data DWord 1" start="128" end="159" type="uint"/>
1212  </instruction>
1213
1214  <instruction name="MI_STORE_REGISTER_MEM" bias="2" length="3">
1215    <field name="Command Type" start="29" end="31" type="uint" default="0"/>
1216    <field name="MI Command Opcode" start="23" end="28" type="uint" default="36"/>
1217    <field name="Use Global GTT" start="22" end="22" type="bool"/>
1218    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1219    <field name="Register Address" start="34" end="57" type="offset"/>
1220    <field name="Memory Address" start="66" end="95" type="address"/>
1221  </instruction>
1222
1223  <instruction name="PIPE_CONTROL" bias="2" length="4">
1224    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1225    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
1226    <field name="3D Command Opcode" start="24" end="26" type="uint" default="2"/>
1227    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1228    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
1229    <field name="Post Sync Operation" start="14" end="15" type="uint">
1230      <value name="No Write" value="0"/>
1231      <value name="Write Immediate Data" value="1"/>
1232      <value name="Write PS Depth Count" value="2"/>
1233      <value name="Write Timestamp" value="3"/>
1234    </field>
1235    <field name="Depth Stall Enable" start="13" end="13" type="bool"/>
1236    <field name="Write Cache Flush" start="12" end="12" type="bool"/>
1237    <field name="Instruction Cache Invalidate Enable" start="11" end="11" type="bool"/>
1238    <field name="Texture Cache Flush Enable" start="10" end="10" type="bool"/>
1239    <field name="Indirect State Pointers Disable" start="9" end="9" type="bool"/>
1240    <field name="Notify Enable" start="8" end="8" type="bool"/>
1241    <field name="Address" start="35" end="63" type="address"/>
1242    <field name="Destination Address Type" start="34" end="34" type="uint" prefix="DAT">
1243      <value name="PGTT" value="0"/>
1244      <value name="GGTT" value="1"/>
1245    </field>
1246    <field name="Stall At Pixel Scoreboard" start="33" end="33" type="bool"/>
1247    <field name="Depth Cache Flush Inhibit" start="32" end="32" type="uint">
1248      <value name="Flushed" value="0"/>
1249      <value name="Not Flushed" value="1"/>
1250    </field>
1251    <field name="Immediate Data" start="64" end="127" type="uint"/>
1252  </instruction>
1253
1254  <instruction name="PIPELINE_SELECT" bias="1" length="1">
1255    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1256    <field name="Command SubType" start="27" end="28" type="uint" default="1"/>
1257    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1258    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
1259    <field name="Pipeline Selection" start="0" end="1" type="uint">
1260      <value name="3D" value="0"/>
1261      <value name="Media" value="1"/>
1262      <value name="GPGPU" value="2"/>
1263    </field>
1264  </instruction>
1265
1266  <instruction name="STATE_BASE_ADDRESS" bias="2" length="8">
1267    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1268    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1269    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1270    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="1"/>
1271    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1272    <field name="General State Base Address" start="44" end="63" type="address"/>
1273    <field name="General State Base Address Modify Enable" start="32" end="32" type="bool"/>
1274    <field name="Surface State Base Address" start="76" end="95" type="address"/>
1275    <field name="Surface State Base Address Modify Enable" start="64" end="64" type="bool"/>
1276    <field name="Indirect Object Base Address" start="108" end="127" type="address"/>
1277    <field name="Indirect Object Base Address Modify Enable" start="96" end="96" type="bool"/>
1278    <field name="Instruction Base Address" start="140" end="159" type="address"/>
1279    <field name="Instruction Base Address Modify Enable" start="128" end="128" type="bool"/>
1280    <field name="General State Access Upper Bound" start="172" end="191" type="address"/>
1281    <field name="General State Access Upper Bound Modify Enable" start="160" end="160" type="bool"/>
1282    <field name="Indirect Object Access Upper Bound" start="204" end="223" type="address"/>
1283    <field name="Indirect Object Access Upper Bound Modify Enable" start="192" end="192" type="bool"/>
1284    <field name="Instruction Access Upper Bound" start="236" end="255" type="address"/>
1285    <field name="Instruction Access Upper Bound Modify Enable" start="224" end="224" type="bool"/>
1286  </instruction>
1287i
1288  <instruction name="STATE_SIP" bias="2" length="2">
1289    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1290    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1291    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
1292    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
1293    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
1294    <field name="System Instruction Pointer" start="36" end="63" type="offset"/>
1295  </instruction>
1296
1297  <instruction name="URB_FENCE" bias="2" length="3">
1298    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
1299    <field name="Command SubType" start="27" end="28" type="uint" default="0"/>
1300    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
1301    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
1302    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1303    <field name="CS Unit URB Reallocation Request" start="13" end="13" type="bool"/>
1304    <field name="VFE Unit URB Reallocation Request" start="12" end="12" type="bool"/>
1305    <field name="SF Unit URB Reallocation Request" start="11" end="11" type="bool"/>
1306    <field name="CLIP Unit URB Reallocation Request" start="10" end="10" type="bool"/>
1307    <field name="GS Unit URB Reallocation Request" start="9" end="9" type="bool"/>
1308    <field name="VS Unit URB Reallocation Request" start="8" end="8" type="bool"/>
1309    <field name="CLIP Fence" start="52" end="61" type="bool"/>
1310    <field name="GS Fence" start="42" end="51" type="bool"/>
1311    <field name="VS Fence" start="32" end="41" type="bool"/>
1312    <field name="CS Fence" start="84" end="94" type="bool"/>
1313    <field name="VFE Fence" start="74" end="83" type="bool"/>
1314    <field name="SF Fence" start="64" end="73" type="bool"/>
1315  </instruction>
1316
1317  <instruction name="XY_COLOR_BLT" bias="2" length="6">
1318    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1319    <field name="2D Command Opcode" start="22" end="28" type="uint" default="80"/>
1320    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
1321    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1322    <field name="Tiling Enable" start="11" end="11" type="bool"/>
1323    <field name="Clipping Enabled" start="62" end="62" type="bool"/>
1324    <field name="Color Depth" start="56" end="58" type="uint" prefix="COLOR_DEPTH">
1325      <value name="8 bit" value="0"/>
1326      <value name="565" value="1"/>
1327      <value name="1555" value="2"/>
1328      <value name="32 bit" value="3"/>
1329    </field>
1330    <field name="Raster Operation" start="48" end="55" type="int"/>
1331    <field name="Destination Pitch" start="32" end="47" type="int"/>
1332    <field name="Destination Y1 Coordinate" start="80" end="95" type="int"/>
1333    <field name="Destination X1 Coordinate" start="64" end="79" type="int"/>
1334    <field name="Destination Y2 Coordinate" start="112" end="127" type="int"/>
1335    <field name="Destination X2 Coordinate" start="96" end="111" type="int"/>
1336    <field name="Destination Base Address" start="128" end="159" type="address"/>
1337    <field name="Solid Pattern Color" start="160" end="191" type="int"/>
1338  </instruction>
1339
1340  <instruction name="XY_SETUP_BLT" bias="2" length="8">
1341    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1342    <field name="2D Command Opcode" start="22" end="28" type="uint" default="1"/>
1343    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1344    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1345    <field name="Tiling Enable" start="11" end="11" type="bool"/>
1346    <field name="Clipping Enabled" start="62" end="62" type="bool"/>
1347    <field name="Mono Source Transparency Mode" start="60" end="60" type="bool"/>
1348    <field name="Color Depth" start="56" end="57" type="uint" prefix="COLOR_DEPTH">
1349      <value name="8 bit" value="0"/>
1350      <value name="565" value="1"/>
1351      <value name="1555" value="2"/>
1352      <value name="32 bit" value="3"/>
1353    </field>
1354    <field name="Raster Operation" start="48" end="55" type="int"/>
1355    <field name="Destination Pitch" start="32" end="47" type="int"/>
1356    <field name="ClipRect Y1 Coordinate" start="80" end="95" type="int"/>
1357    <field name="ClipRect X1 Coordinate" start="64" end="79" type="int"/>
1358    <field name="ClipRect Y2 Coordinate" start="112" end="127" type="int"/>
1359    <field name="ClipRect X2 Coordinate" start="96" end="111" type="int"/>
1360    <field name="Destination Base Address" start="128" end="159" type="address"/>
1361    <field name="Background Color" start="160" end="191" type="uint"/>
1362    <field name="Foreground Color" start="192" end="223" type="uint"/>
1363    <field name="Pattern Base Address" start="224" end="255" type="uint"/>
1364  </instruction>
1365
1366  <instruction name="XY_SRC_COPY_BLT" bias="2" length="8">
1367    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1368    <field name="2D Command Opcode" start="22" end="28" type="uint" default="83"/>
1369    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1370    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1371    <field name="Source Tiling Enable" start="15" end="15" type="bool"/>
1372    <field name="Destination Tiling Enable" start="11" end="11" type="bool"/>
1373    <field name="Clipping Enabled" start="62" end="62" type="bool"/>
1374    <field name="Color Depth" start="56" end="58" type="uint" prefix="COLOR_DEPTH">
1375      <value name="8 bit" value="0"/>
1376      <value name="565" value="1"/>
1377      <value name="1555" value="2"/>
1378      <value name="32 bit" value="3"/>
1379    </field>
1380    <field name="Raster Operation" start="48" end="55" type="int"/>
1381    <field name="Destination Pitch" start="32" end="47" type="int"/>
1382    <field name="Destination Y1 Coordinate" start="80" end="95" type="int"/>
1383    <field name="Destination X1 Coordinate" start="64" end="79" type="int"/>
1384    <field name="Destination Y2 Coordinate" start="112" end="127" type="int"/>
1385    <field name="Destination X2 Coordinate" start="96" end="111" type="int"/>
1386    <field name="Destination Base Address" start="128" end="159" type="address"/>
1387    <field name="Source Y1 Coordinate" start="176" end="191" type="int"/>
1388    <field name="Source X1 Coordinate" start="160" end="175" type="int"/>
1389    <field name="Source Pitch" start="192" end="207" type="int"/>
1390    <field name="Source Base Address" start="224" end="255" type="address"/>
1391  </instruction>
1392
1393  <instruction name="XY_TEXT_IMMEDIATE_BLT" bias="2" length="3">
1394    <field name="Command Type" start="29" end="31" type="uint" default="2"/>
1395    <field name="2D Command Opcode" start="22" end="28" type="uint" default="49"/>
1396    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
1397    <field name="32bpp Byte Mask" start="20" end="21" type="uint"/>
1398    <field name="Packing" start="16" end="16" type="uint">
1399      <value name="Bit Packed" value="0"/>
1400      <value name="Byte Packed" value="1"/>
1401    </field>
1402    <field name="Tiling Enable" start="11" end="11" type="bool"/>
1403    <field name="Destination Pitch" start="32" end="47" type="int"/>
1404    <field name="Destination Y1 Coordinate" start="48" end="63" type="int"/>
1405    <field name="Destination X1 Coordinate" start="32" end="47" type="int"/>
1406    <field name="Destination Y2 Coordinate" start="80" end="95" type="int"/>
1407    <field name="Destination X2 Coordinate" start="64" end="79" type="int"/>
1408  </instruction>
1409</genxml>
1410