gen7.xml 148 KB
Newer Older
Jason Ekstrand's avatar
Jason Ekstrand committed
1
<?xml version="1.0" ?>
2
<genxml name="IVB" gen="7">
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
    <value name="POINTLIST" value="1"/>
    <value name="LINELIST" value="2"/>
    <value name="LINESTRIP" value="3"/>
    <value name="TRILIST" value="4"/>
    <value name="TRISTRIP" value="5"/>
    <value name="TRIFAN" value="6"/>
    <value name="QUADLIST" value="7"/>
    <value name="QUADSTRIP" value="8"/>
    <value name="LINELIST_ADJ" value="9"/>
    <value name="LINESTRIP_ADJ" value="10"/>
    <value name="TRILIST_ADJ" value="11"/>
    <value name="TRISTRIP_ADJ" value="12"/>
    <value name="TRISTRIP_REVERSE" value="13"/>
    <value name="POLYGON" value="14"/>
    <value name="RECTLIST" value="15"/>
    <value name="LINELOOP" value="16"/>
    <value name="POINTLIST _BF" value="17"/>
    <value name="LINESTRIP_CONT" value="18"/>
    <value name="LINESTRIP_BF" value="19"/>
    <value name="LINESTRIP_CONT_BF" value="20"/>
    <value name="TRIFAN_NOSTIPPLE" value="22"/>
    <value name="PATCHLIST_1" value="32"/>
    <value name="PATCHLIST_2" value="33"/>
    <value name="PATCHLIST_3" value="34"/>
    <value name="PATCHLIST_4" value="35"/>
    <value name="PATCHLIST_5" value="36"/>
    <value name="PATCHLIST_6" value="37"/>
    <value name="PATCHLIST_7" value="38"/>
    <value name="PATCHLIST_8" value="39"/>
    <value name="PATCHLIST_9" value="40"/>
    <value name="PATCHLIST_10" value="41"/>
    <value name="PATCHLIST_11" value="42"/>
    <value name="PATCHLIST_12" value="43"/>
    <value name="PATCHLIST_13" value="44"/>
    <value name="PATCHLIST_14" value="45"/>
    <value name="PATCHLIST_15" value="46"/>
    <value name="PATCHLIST_16" value="47"/>
    <value name="PATCHLIST_17" value="48"/>
    <value name="PATCHLIST_18" value="49"/>
    <value name="PATCHLIST_19" value="50"/>
    <value name="PATCHLIST_20" value="51"/>
    <value name="PATCHLIST_21" value="52"/>
    <value name="PATCHLIST_22" value="53"/>
    <value name="PATCHLIST_23" value="54"/>
    <value name="PATCHLIST_24" value="55"/>
    <value name="PATCHLIST_25" value="56"/>
    <value name="PATCHLIST_26" value="57"/>
    <value name="PATCHLIST_27" value="58"/>
    <value name="PATCHLIST_28" value="59"/>
    <value name="PATCHLIST_29" value="60"/>
    <value name="PATCHLIST_30" value="61"/>
    <value name="PATCHLIST_31" value="62"/>
    <value name="PATCHLIST_32" value="63"/>
  </enum>
58

59
60
61
62
63
64
65
66
67
68
  <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
    <value name="NOSTORE" value="0"/>
    <value name="STORE_SRC" value="1"/>
    <value name="STORE_0" value="2"/>
    <value name="STORE_1_FP" value="3"/>
    <value name="STORE_1_INT" value="4"/>
    <value name="STORE_VID" value="5"/>
    <value name="STORE_IID" value="6"/>
    <value name="STORE_PID" value="7"/>
  </enum>
69

70
71
72
73
74
75
76
77
78
79
80
  <enum name="3D_Stencil_Operation" prefix="STENCILOP">
    <value name="KEEP" value="0"/>
    <value name="ZERO" value="1"/>
    <value name="REPLACE" value="2"/>
    <value name="INCRSAT" value="3"/>
    <value name="DECRSAT" value="4"/>
    <value name="INCR" value="5"/>
    <value name="DECR" value="6"/>
    <value name="INVERT" value="7"/>
  </enum>

81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
    <value name="ONE" value="1"/>
    <value name="SRC_COLOR" value="2"/>
    <value name="SRC_ALPHA" value="3"/>
    <value name="DST_ALPHA" value="4"/>
    <value name="DST_COLOR" value="5"/>
    <value name="SRC_ALPHA_SATURATE" value="6"/>
    <value name="CONST_COLOR" value="7"/>
    <value name="CONST_ALPHA" value="8"/>
    <value name="SRC1_COLOR" value="9"/>
    <value name="SRC1_ALPHA" value="10"/>
    <value name="ZERO" value="17"/>
    <value name="INV_SRC_COLOR" value="18"/>
    <value name="INV_SRC_ALPHA" value="19"/>
    <value name="INV_DST_ALPHA" value="20"/>
    <value name="INV_DST_COLOR" value="21"/>
    <value name="INV_CONST_COLOR" value="23"/>
    <value name="INV_CONST_ALPHA" value="24"/>
    <value name="INV_SRC1_COLOR" value="25"/>
    <value name="INV_SRC1_ALPHA" value="26"/>
  </enum>

  <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
    <value name="ADD" value="0"/>
    <value name="SUBTRACT" value="1"/>
    <value name="REVERSE_SUBTRACT" value="2"/>
    <value name="MIN" value="3"/>
    <value name="MAX" value="4"/>
  </enum>

111
112
113
114
115
116
117
118
119
120
  <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
    <value name="ALWAYS" value="0"/>
    <value name="NEVER" value="1"/>
    <value name="LESS" value="2"/>
    <value name="EQUAL" value="3"/>
    <value name="LEQUAL" value="4"/>
    <value name="GREATER" value="5"/>
    <value name="NOTEQUAL" value="6"/>
    <value name="GEQUAL" value="7"/>
  </enum>
121

122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
  <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
    <value name="CLEAR" value="0"/>
    <value name="NOR" value="1"/>
    <value name="AND_INVERTED" value="2"/>
    <value name="COPY_INVERTED" value="3"/>
    <value name="AND_REVERSE" value="4"/>
    <value name="INVERT" value="5"/>
    <value name="XOR" value="6"/>
    <value name="NAND" value="7"/>
    <value name="AND" value="8"/>
    <value name="EQUIV" value="9"/>
    <value name="NOOP" value="10"/>
    <value name="OR_INVERTED" value="11"/>
    <value name="COPY" value="12"/>
    <value name="OR_REVERSE" value="13"/>
    <value name="OR" value="14"/>
    <value name="SET" value="15"/>
  </enum>

141
142
143
144
145
146
147
148
  <enum name="Texture Coordinate Mode" prefix="TCM">
    <value name="WRAP" value="0"/>
    <value name="MIRROR" value="1"/>
    <value name="CLAMP" value="2"/>
    <value name="CUBE" value="3"/>
    <value name="CLAMP_BORDER" value="4"/>
    <value name="MIRROR_ONCE" value="5"/>
  </enum>
149

150
151
152
153
  <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
    <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
    <field name="LLC Cacheability Control (LLCCC)" start="1" end="1" type="uint"/>
    <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
154
155
  </struct>

156
  <struct name="3DSTATE_CONSTANT_BODY" length="6">
157
158
159
    <group count="4" start="0" size="16">
      <field name="Read Length" start="0" end="15" type="uint"/>
    </group>
160
    <field name="MOCS" start="64" end="68" type="uint"/>
161
162
163
    <group count="4" start="64" size="32">
      <field name="Buffer" start="5" end="31" type="address"/>
    </group>
164
165
166
167
168
169
170
171
  </struct>

  <struct name="VERTEX_BUFFER_STATE" length="4">
    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
    <field name="Buffer Access Type" start="20" end="20" type="uint">
      <value name="VERTEXDATA" value="0"/>
      <value name="INSTANCEDATA" value="1"/>
    </field>
172
    <field name="MOCS" start="16" end="19" type="uint"/>
173
174
175
176
177
178
179
180
181
182
183
184
    <field name="Address Modify Enable" start="14" end="14" type="bool"/>
    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
    <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
    <field name="End Address" start="64" end="95" type="address"/>
    <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
  </struct>

  <struct name="VERTEX_ELEMENT_STATE" length="2">
    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
    <field name="Valid" start="25" end="25" type="bool"/>
185
    <field name="Source Element Format" start="16" end="24" type="uint"/>
186
187
    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
    <field name="Source Element Offset" start="0" end="11" type="uint"/>
188
189
190
191
    <field name="Component 0 Control" start="60" end="62" type="3D_Vertex_Component_Control"/>
    <field name="Component 1 Control" start="56" end="58" type="3D_Vertex_Component_Control"/>
    <field name="Component 2 Control" start="52" end="54" type="3D_Vertex_Component_Control"/>
    <field name="Component 3 Control" start="48" end="50" type="3D_Vertex_Component_Control"/>
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
  </struct>

  <struct name="SO_DECL" length="1">
    <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
    <field name="Hole Flag" start="11" end="11" type="uint"/>
    <field name="Register Index" start="4" end="9" type="uint"/>
    <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
  </struct>

  <struct name="SO_DECL_ENTRY" length="2">
    <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
    <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
    <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
    <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
  </struct>

  <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
    <field name="Component Override W" start="15" end="15" type="bool"/>
    <field name="Component Override Z" start="14" end="14" type="bool"/>
    <field name="Component Override Y" start="13" end="13" type="bool"/>
    <field name="Component Override X" start="12" end="12" type="bool"/>
    <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
    <field name="Constant Source" start="9" end="10" type="uint">
      <value name="CONST_0000" value="0"/>
      <value name="CONST_0001_FLOAT" value="1"/>
      <value name="CONST_1111_FLOAT" value="2"/>
      <value name="PRIM_ID" value="3"/>
    </field>
    <field name="Swizzle Select" start="6" end="7" type="uint">
      <value name="INPUTATTR" value="0"/>
      <value name="INPUTATTR_FACING" value="1"/>
      <value name="INPUTATTR_W" value="2"/>
      <value name="INPUTATTR_FACING_W" value="3"/>
    </field>
    <field name="Source Attribute" start="0" end="4" type="uint"/>
  </struct>

  <struct name="SCISSOR_RECT" length="2">
    <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
    <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
    <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
    <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
  </struct>

  <struct name="SF_CLIP_VIEWPORT" length="16">
    <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
    <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
    <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
    <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
    <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
    <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
    <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
    <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
    <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
    <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
  </struct>

  <struct name="BLEND_STATE_ENTRY" length="2">
    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
252
253
254
255
256
257
    <field name="Alpha Blend Function" start="26" end="28" type="3D_Color_Buffer_Blend_Function"/>
    <field name="Source Alpha Blend Factor" start="20" end="24" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Destination Alpha Blend Factor" start="15" end="19" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Color Blend Function" start="11" end="13" type="3D_Color_Buffer_Blend_Function"/>
    <field name="Source Blend Factor" start="5" end="9" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Destination Blend Factor" start="0" end="4" type="3D_Color_Buffer_Blend_Factor"/>
258
259
260
261
262
263
264
265
    <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
    <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
    <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
    <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
    <field name="Write Disable Red" start="58" end="58" type="bool"/>
    <field name="Write Disable Green" start="57" end="57" type="bool"/>
    <field name="Write Disable Blue" start="56" end="56" type="bool"/>
    <field name="Logic Op Enable" start="54" end="54" type="bool"/>
266
    <field name="Logic Op Function" start="50" end="53" type="3D_Logic_Op_Function"/>
267
    <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
268
    <field name="Alpha Test Function" start="45" end="47" type="3D_Compare_Function"/>
269
270
271
272
273
274
275
276
277
278
279
280
    <field name="Color Dither Enable" start="44" end="44" type="bool"/>
    <field name="X Dither Offset" start="42" end="43" type="uint"/>
    <field name="Y Dither Offset" start="40" end="41" type="uint"/>
    <field name="Color Clamp Range" start="34" end="35" type="uint">
      <value name="COLORCLAMP_UNORM" value="0"/>
      <value name="COLORCLAMP_SNORM" value="1"/>
      <value name="COLORCLAMP_RTFORMAT" value="2"/>
    </field>
    <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
    <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
  </struct>

281
282
  <struct name="BLEND_STATE" length="0">
    <group count="0" start="0" size="64">
283
284
285
286
287
288
289
290
291
292
293
294
295
      <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
    </group>
  </struct>

  <struct name="CC_VIEWPORT" length="2">
    <field name="Minimum Depth" start="0" end="31" type="float"/>
    <field name="Maximum Depth" start="32" end="63" type="float"/>
  </struct>

  <struct name="COLOR_CALC_STATE" length="6">
    <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
    <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
    <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
296
297
298
299
300
301
302
303
304
305
306
307
308
309
    <field name="Alpha Test Format" start="0" end="0" type="uint">
      <value name="ALPHATEST_UNORM8" value="0"/>
      <value name="ALPHATEST_FLOAT32" value="1"/>
    </field>
    <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
    <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
    <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
    <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
    <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
    <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
  </struct>

  <struct name="DEPTH_STENCIL_STATE" length="3">
    <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
310
    <field name="Stencil Test Function" start="28" end="30" type="3D_Compare_Function"/>
311
312
313
    <field name="Stencil Fail Op" start="25" end="27" type="3D_Stencil_Operation"/>
    <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="3D_Stencil_Operation"/>
    <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="3D_Stencil_Operation"/>
314
315
    <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
    <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
316
    <field name="Backface Stencil Test Function" start="12" end="14" type="3D_Compare_Function"/>
317
318
319
    <field name="Backface Stencil Fail Op" start="9" end="11" type="3D_Stencil_Operation"/>
    <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="3D_Stencil_Operation"/>
    <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="3D_Stencil_Operation"/>
320
321
322
323
324
    <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
    <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
    <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
    <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
    <field name="Depth Test Enable" start="95" end="95" type="bool"/>
325
    <field name="Depth Test Function" start="91" end="93" type="3D_Compare_Function"/>
326
327
328
329
330
    <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
  </struct>

  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
    <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
331
    <field name="Single Program Flow" start="50" end="50" type="bool"/>
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
    <field name="Thread Priority" start="49" end="49" type="uint">
      <value name="Normal Priority" value="0"/>
      <value name="High Priority" value="1"/>
    </field>
    <field name="Floating Point Mode" start="48" end="48" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="Alternate" value="1"/>
    </field>
    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
    <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
    <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
    <field name="Sampler Count" start="66" end="68" type="uint">
      <value name="No samplers used" value="0"/>
      <value name="Between 1 and 4 samplers used" value="1"/>
      <value name="Between 5 and 8 samplers used" value="2"/>
      <value name="Between 9 and 12 samplers used" value="3"/>
      <value name="Between 13 and 16 samplers used" value="4"/>
    </field>
    <field name="Binding Table Pointer" start="101" end="111" type="offset"/>
    <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
    <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
    <field name="Constant URB Entry Read Offset" start="128" end="143" type="uint"/>
    <field name="Rounding Mode" start="182" end="183" type="uint">
      <value name="RTNE" value="0"/>
      <value name="RU" value="1"/>
      <value name="RD" value="2"/>
      <value name="RTZ" value="3"/>
    </field>
    <field name="Barrier Enable" start="181" end="181" type="bool"/>
    <field name="Shared Local Memory Size" start="176" end="180" type="uint"/>
    <field name="Number of Threads in GPGPU Thread Group" start="160" end="167" type="uint"/>
  </struct>

  <struct name="PALETTE_ENTRY" length="1">
    <field name="Alpha" start="24" end="31" type="uint"/>
    <field name="Red" start="16" end="23" type="uint"/>
    <field name="Green" start="8" end="15" type="uint"/>
    <field name="Blue" start="0" end="7" type="uint"/>
  </struct>

  <struct name="BINDING_TABLE_STATE" length="1">
    <field name="Surface State Pointer" start="5" end="31" type="offset"/>
  </struct>

  <struct name="RENDER_SURFACE_STATE" length="8">
    <field name="Surface Type" start="29" end="31" type="uint">
      <value name="SURFTYPE_1D" value="0"/>
      <value name="SURFTYPE_2D" value="1"/>
      <value name="SURFTYPE_3D" value="2"/>
      <value name="SURFTYPE_CUBE" value="3"/>
      <value name="SURFTYPE_BUFFER" value="4"/>
      <value name="SURFTYPE_STRBUF" value="5"/>
      <value name="SURFTYPE_NULL" value="7"/>
    </field>
    <field name="Surface Array" start="28" end="28" type="bool"/>
388
    <field name="Surface Format" start="18" end="26" type="uint"/>
389
390
391
392
393
394
395
396
    <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
      <value name="VALIGN_2" value="0"/>
      <value name="VALIGN_4" value="1"/>
    </field>
    <field name="Surface Horizontal Alignment" start="15" end="15" type="uint">
      <value name="HALIGN_4" value="0"/>
      <value name="HALIGN_8" value="1"/>
    </field>
397
    <field name="Tiled Surface" start="14" end="14" type="bool"/>
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
    <field name="Tile Walk" start="13" end="13" type="uint">
      <value name="TILEWALK_XMAJOR" value="0"/>
      <value name="TILEWALK_YMAJOR" value="1"/>
    </field>
    <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
    <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
    <field name="Surface Array Spacing" start="10" end="10" type="uint">
      <value name="ARYSPC_FULL" value="0"/>
      <value name="ARYSPC_LOD0" value="1"/>
    </field>
    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint"/>
    <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
      <value name="NORMAL_MODE" value="0"/>
      <value name="PROGRESSIVE_FRAME" value="2"/>
      <value name="INTERLACED_FRAME" value="3"/>
    </field>
414
415
416
417
418
419
    <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
    <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
    <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
    <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
    <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
    <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
    <field name="Surface Base Address" start="32" end="63" type="address"/>
    <field name="Height" start="80" end="93" type="uint"/>
    <field name="Width" start="64" end="77" type="uint"/>
    <field name="Depth" start="117" end="127" type="uint"/>
    <field name="Surface Pitch" start="96" end="113" type="uint"/>
    <field name="Render Target Rotation" start="157" end="158" type="uint">
      <value name="RTROTATE_0DEG" value="0"/>
      <value name="RTROTATE_90DEG" value="1"/>
      <value name="RTROTATE_270DEG" value="3"/>
    </field>
    <field name="Minimum Array Element" start="146" end="156" type="uint"/>
    <field name="Render Target View Extent" start="135" end="145" type="uint"/>
    <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
      <value name="MSFMT_MSS" value="0"/>
      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
    </field>
    <field name="Number of Multisamples" start="131" end="133" type="uint">
      <value name="MULTISAMPLECOUNT_1" value="0"/>
      <value name="MULTISAMPLECOUNT_4" value="2"/>
      <value name="MULTISAMPLECOUNT_8" value="3"/>
    </field>
    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
    <field name="Strbuf Minimum Array Element" start="128" end="154" type="uint"/>
443
444
    <field name="X Offset" start="185" end="191" type="uint"/>
    <field name="Y Offset" start="180" end="183" type="uint"/>
445
    <field name="MOCS" start="176" end="179" type="uint"/>
446
447
448
449
    <field name="Surface Min LOD" start="164" end="167" type="uint"/>
    <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
    <field name="Append Counter Address" start="198" end="223" type="address"/>
    <field name="Append Counter Enable" start="193" end="193" type="bool"/>
450
451
    <field name="Auxiliary Surface Base Address" start="204" end="223" type="address"/>
    <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
    <field name="MCS Enable" start="192" end="192" type="bool"/>
    <field name="Reserved: MBZ" start="222" end="223" type="uint"/>
    <field name="X Offset for UV Plane" start="208" end="221" type="uint"/>
    <field name="Y Offset for UV Plane" start="192" end="205" type="uint"/>
    <field name="Red Clear Color" start="255" end="255" type="uint">
      <value name="CC_ZERO" value="0"/>
      <value name="CC_ONE" value="1"/>
    </field>
    <field name="Green Clear Color" start="254" end="254" type="uint">
      <value name="CC_ZERO" value="0"/>
      <value name="CC_ONE" value="1"/>
    </field>
    <field name="Blue Clear Color" start="253" end="253" type="uint">
      <value name="CC_ZERO" value="0"/>
      <value name="CC_ONE" value="1"/>
    </field>
    <field name="Alpha Clear Color" start="252" end="252" type="uint">
      <value name="CC_ZERO" value="0"/>
      <value name="CC_ONE" value="1"/>
    </field>
    <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
  </struct>

475
476
477
478
479
480
481
482
483
484
485
486
  <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
    <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
    <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
    <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
    <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>

    <field name="Border Color Float Red" start="0" end="31" type="float"/>
    <field name="Border Color Float Green" start="32" end="63" type="float"/>
    <field name="Border Color Float Blue" start="64" end="95" type="float"/>
    <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
  </struct>

487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
  <struct name="SAMPLER_STATE" length="4">
    <field name="Sampler Disable" start="31" end="31" type="bool"/>
    <field name="Texture Border Color Mode" start="29" end="29" type="uint">
      <value name="DX10/OGL" value="0"/>
      <value name="DX9" value="1"/>
    </field>
    <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
      <value name="OGL" value="1"/>
    </field>
    <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
    <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
      <value name="NONE" value="0"/>
      <value name="NEAREST" value="1"/>
      <value name="LINEAR" value="3"/>
    </field>
    <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
      <value name="NEAREST" value="0"/>
      <value name="LINEAR" value="1"/>
      <value name="ANISOTROPIC" value="2"/>
      <value name="MONO" value="6"/>
    </field>
    <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
      <value name="NEAREST" value="0"/>
      <value name="LINEAR" value="1"/>
      <value name="ANISOTROPIC" value="2"/>
      <value name="MONO" value="6"/>
    </field>
    <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
    <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
      <value name="LEGACY" value="0"/>
      <value name="EWA Approximation" value="1"/>
    </field>
    <field name="Min LOD" start="52" end="63" type="u4.8"/>
    <field name="Max LOD" start="40" end="51" type="u4.8"/>
    <field name="Shadow Function" start="33" end="35" type="uint">
      <value name="PREFILTEROP ALWAYS" value="0"/>
      <value name="PREFILTEROP NEVER" value="1"/>
      <value name="PREFILTEROP LESS" value="2"/>
      <value name="PREFILTEROP EQUAL" value="3"/>
      <value name="PREFILTEROP LEQUAL" value="4"/>
      <value name="PREFILTEROP GREATER" value="5"/>
      <value name="PREFILTEROP NOTEQUAL" value="6"/>
      <value name="PREFILTEROP GEQUAL" value="7"/>
    </field>
    <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
      <value name="PROGRAMMED" value="0"/>
      <value name="OVERRIDE" value="1"/>
    </field>
    <field name="Border Color Pointer" start="69" end="95" type="offset"/>
    <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
    <field name="ChromaKey Index" start="119" end="120" type="uint"/>
    <field name="ChromaKey Mode" start="118" end="118" type="uint">
      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
    </field>
    <field name="Maximum Anisotropy" start="115" end="117" type="uint">
      <value name="RATIO 2:1" value="0"/>
      <value name="RATIO 4:1" value="1"/>
      <value name="RATIO 6:1" value="2"/>
      <value name="RATIO 8:1" value="3"/>
      <value name="RATIO 10:1" value="4"/>
      <value name="RATIO 12:1" value="5"/>
      <value name="RATIO 14:1" value="6"/>
      <value name="RATIO 16:1" value="7"/>
    </field>
    <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
    <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
    <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
    <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
    <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
    <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
    <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
      <value name="FULL" value="0"/>
      <value name="MED" value="2"/>
      <value name="LOW" value="3"/>
    </field>
    <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
564
565
566
    <field name="TCX Address Control Mode" start="102" end="104" type="Texture Coordinate Mode"/>
    <field name="TCY Address Control Mode" start="99" end="101" type="Texture Coordinate Mode"/>
    <field name="TCZ Address Control Mode" start="96" end="98" type="Texture Coordinate Mode"/>
567
568
  </struct>

569
  <instruction name="3DPRIMITIVE" bias="2" length="7" engine="render">
570
571
572
573
574
575
576
577
578
579
580
581
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="3"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
    <field name="Predicate Enable" start="8" end="8" type="bool"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="End Offset Enable" start="41" end="41" type="bool"/>
    <field name="Vertex Access Type" start="40" end="40" type="uint">
      <value name="SEQUENTIAL" value="0"/>
      <value name="RANDOM" value="1"/>
    </field>
582
    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
583
584
585
586
587
588
589
    <field name="Vertex Count Per Instance" start="64" end="95" type="uint"/>
    <field name="Start Vertex Location" start="96" end="127" type="uint"/>
    <field name="Instance Count" start="128" end="159" type="uint"/>
    <field name="Start Instance Location" start="160" end="191" type="uint"/>
    <field name="Base Vertex Location" start="192" end="223" type="int"/>
  </instruction>

590
  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
591
592
593
594
595
596
597
598
599
600
601
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
  </instruction>

602
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2" engine="render">
603
604
605
606
607
608
609
610
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="40"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to DS Binding Table" start="37" end="47" type="offset"/>
  </instruction>

611
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2" engine="render">
612
613
614
615
616
617
618
619
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="41"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to GS Binding Table" start="37" end="47" type="offset"/>
  </instruction>

620
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2" engine="render">
621
622
623
624
625
626
627
628
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="39"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to HS Binding Table" start="37" end="47" type="offset"/>
  </instruction>

629
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2" engine="render">
630
631
632
633
634
635
636
637
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="42"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to PS Binding Table" start="37" end="47" type="offset"/>
  </instruction>

638
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2" engine="render">
639
640
641
642
643
644
645
646
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="38"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to VS Binding Table" start="37" end="47" type="offset"/>
  </instruction>

647
  <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2" engine="render">
648
649
650
651
652
653
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="36"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Blend State Pointer" start="38" end="63" type="offset"/>
654
    <field start="32" end="32" type="mbo"/>
655
656
  </instruction>

657
  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2" engine="render">
658
659
660
661
662
663
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="14"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Color Calc State Pointer" start="38" end="63" type="offset"/>
664
    <field start="32" end="32" type="mbo"/>
665
666
  </instruction>

667
  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4" engine="render">
668
669
670
671
672
673
674
675
676
677
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
    <field name="ChromaKey Table Index" start="62" end="63" type="uint"/>
    <field name="ChromaKey Low Value" start="64" end="95" type="uint"/>
    <field name="ChromaKey High Value" start="96" end="127" type="uint"/>
  </instruction>

678
  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3" engine="render">
679
680
681
682
683
684
685
686
687
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="4"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Depth Clear Value" start="32" end="63" type="uint"/>
    <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
  </instruction>

688
  <instruction name="3DSTATE_CLIP" bias="2" length="4" engine="render">
689
690
691
692
693
694
695
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
    <field name="Front Winding" start="52" end="52" type="uint"/>
    <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint"/>
Jason Ekstrand's avatar
Jason Ekstrand committed
696
    <field name="Early Cull Enable" start="50" end="50" type="bool"/>
697
698
699
700
701
702
    <field name="Cull Mode" start="48" end="49" type="uint" prefix="CULLMODE">
      <value name="BOTH" value="0"/>
      <value name="NONE" value="1"/>
      <value name="FRONT" value="2"/>
      <value name="BACK" value="3"/>
    </field>
703
    <field name="Statistics Enable" start="42" end="42" type="bool"/>
704
705
706
707
    <field name="User Clip Distance Cull Test Enable Bitmask" start="32" end="39" type="uint"/>
    <field name="Clip Enable" start="95" end="95" type="bool"/>
    <field name="API Mode" start="94" end="94" type="uint">
      <value name="APIMODE_OGL" value="0"/>
708
      <value name="APIMODE_D3D" value="1"/>
709
    </field>
Jason Ekstrand's avatar
Jason Ekstrand committed
710
711
712
    <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
    <field name="Viewport Z Clip Test Enable" start="91" end="91" type="bool"/>
    <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
    <field name="User Clip Distance Clip Test Enable Bitmask" start="80" end="87" type="uint"/>
    <field name="Clip Mode" start="77" end="79" type="uint">
      <value name="CLIPMODE_NORMAL" value="0"/>
      <value name="CLIPMODE_REJECT_ALL" value="3"/>
      <value name="CLIPMODE_ACCEPT_ALL" value="4"/>
    </field>
    <field name="Perspective Divide Disable" start="73" end="73" type="bool"/>
    <field name="Non-Perspective Barycentric Enable" start="72" end="72" type="bool"/>
    <field name="Triangle Strip/List Provoking Vertex Select" start="68" end="69" type="uint">
      <value name="Vertex 0" value="0"/>
      <value name="Vertex 1" value="1"/>
      <value name="Vertex 2" value="2"/>
    </field>
    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint">
      <value name="Vertex 0" value="0"/>
      <value name="Vertex 1" value="1"/>
    </field>
    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint">
      <value name="Vertex 0" value="0"/>
      <value name="Vertex 1" value="1"/>
      <value name="Vertex 2" value="2"/>
    </field>
    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
Jason Ekstrand's avatar
Jason Ekstrand committed
737
738
    <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
    <field name="Maximum VP Index" start="96" end="99" type="uint"/>
739
740
  </instruction>

741
  <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="7" engine="render">
742
743
744
745
746
747
748
749
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="26"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

750
  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="7" engine="render">
751
752
753
754
755
756
757
758
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

759
  <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="7" engine="render">
760
761
762
763
764
765
766
767
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="25"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

768
  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="7" engine="render">
769
770
771
772
773
774
775
776
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="23"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

777
  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="7" engine="render">
778
779
780
781
782
783
784
785
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Constant Body" start="32" end="223" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

786
  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="7" engine="render">
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="5"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Surface Type" start="61" end="63" type="uint">
      <value name="SURFTYPE_1D" value="0"/>
      <value name="SURFTYPE_2D" value="1"/>
      <value name="SURFTYPE_3D" value="2"/>
      <value name="SURFTYPE_CUBE" value="3"/>
      <value name="SURFTYPE_NULL" value="7"/>
    </field>
    <field name="Depth Write Enable" start="60" end="60" type="bool"/>
    <field name="Stencil Write Enable" start="59" end="59" type="bool"/>
    <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
    <field name="Surface Format" start="50" end="52" type="uint">
      <value name="D32_FLOAT" value="1"/>
      <value name="D24_UNORM_X8_UINT" value="3"/>
      <value name="D16_UNORM" value="5"/>
    </field>
    <field name="Surface Pitch" start="32" end="49" type="uint"/>
    <field name="Surface Base Address" start="64" end="95" type="address"/>
    <field name="Height" start="114" end="127" type="uint"/>
    <field name="Width" start="100" end="113" type="uint"/>
    <field name="LOD" start="96" end="99" type="uint"/>
    <field name="Depth" start="149" end="159" type="uint">
      <value name="SURFTYPE_CUBE (must be zero)" value="0"/>
    </field>
    <field name="Minimum Array Element" start="138" end="148" type="uint"/>
816
    <field name="MOCS" start="128" end="131" type="uint"/>
817
818
819
820
821
    <field name="Depth Coordinate Offset Y" start="176" end="191" type="int"/>
    <field name="Depth Coordinate Offset X" start="160" end="175" type="int"/>
    <field name="Render Target View Extent" start="213" end="223" type="uint"/>
  </instruction>

822
  <instruction name="3DSTATE_DEPTH_STENCIL_STATE_POINTERS" bias="2" length="2" engine="render">
823
824
825
826
827
828
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="37"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to DEPTH_STENCIL_STATE" start="38" end="63" type="offset"/>
829
    <field start="32" end="32" type="mbo"/>
830
831
  </instruction>

832
  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
833
834
835
836
837
838
839
840
841
842
843
844
845
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
    <field name="Clipped Drawing Rectangle Y Min" start="48" end="63" type="uint"/>
    <field name="Clipped Drawing Rectangle X Min" start="32" end="47" type="uint"/>
    <field name="Clipped Drawing Rectangle Y Max" start="80" end="95" type="uint"/>
    <field name="Clipped Drawing Rectangle X Max" start="64" end="79" type="uint"/>
    <field name="Drawing Rectangle Origin Y" start="112" end="127" type="int"/>
    <field name="Drawing Rectangle Origin X" start="96" end="111" type="int"/>
  </instruction>

846
  <instruction name="3DSTATE_DS" bias="2" length="6" engine="render">
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="29"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="4"/>
    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
    <field name="Single Domain Point Dispatch" start="95" end="95" type="uint"/>
    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
    <field name="Sampler Count" start="91" end="93" type="uint">
      <value name="No Samplers" value="0"/>
      <value name="1-4 Samplers" value="1"/>
      <value name="5-8 Samplers" value="2"/>
      <value name="9-12 Samplers" value="3"/>
      <value name="13-16 Samplers" value="4"/>
    </field>
    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
    <field name="Floating Point Mode" start="80" end="80" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="Alternate" value="1"/>
    </field>
    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
869
    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
870
871
872
873
874
875
876
877
    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
    <field name="Dispatch GRF Start Register For URB Data" start="148" end="152" type="uint"/>
    <field name="Patch URB Entry Read Length" start="139" end="145" type="uint"/>
    <field name="Patch URB Entry Read Offset" start="132" end="137" type="uint"/>
    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
    <field name="Statistics Enable" start="170" end="170" type="bool"/>
    <field name="Compute W Coordinate Enable" start="162" end="162" type="bool"/>
    <field name="DS Cache Disable" start="161" end="161" type="bool"/>
878
    <field name="Enable" start="160" end="160" type="bool"/>
879
880
  </instruction>

881
  <instruction name="3DSTATE_GS" bias="2" length="7" engine="render">
882
883
884
885
886
887
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Kernel Start Pointer" start="38" end="63" type="offset"/>
888
    <field name="Single Program Flow" start="95" end="95" type="bool"/>
889
    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
    <field name="Sampler Count" start="91" end="93" type="uint">
      <value name="No Samplers" value="0"/>
      <value name="1-4 Samplers" value="1"/>
      <value name="5-8 Samplers" value="2"/>
      <value name="9-12 Samplers" value="3"/>
      <value name="13-16 Samplers" value="4"/>
    </field>
    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
    <field name="Thread Priority" start="81" end="81" type="uint">
      <value name="Normal Priority" value="0"/>
      <value name="High Priority" value="1"/>
    </field>
    <field name="Floating Point Mode" start="80" end="80" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="alternate" value="1"/>
    </field>
    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
Jason Ekstrand's avatar
Jason Ekstrand committed
908
    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
909
    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
910
911
    <field name="Per-Thread Scratch Space" start="96" end="99" type="uint"/>
    <field name="Output Vertex Size" start="151" end="156" type="uint"/>
912
    <field name="Output Topology" start="145" end="150" type="3D_Prim_Topo_Type"/>
913
    <field name="Vertex URB Entry Read Length" start="139" end="144" type="uint"/>
914
    <field name="Include Vertex Handles" start="138" end="138" type="bool"/>
915
    <field name="Vertex URB Entry Read Offset" start="132" end="137" type="uint"/>
916
    <field name="Dispatch GRF Start Register For URB Data" start="128" end="131" type="uint"/>
917
918
919
920
921
922
923
924
925
926
927
928
929
    <field name="Maximum Number of Threads" start="185" end="191" type="uint"/>
    <field name="Control Data Format" start="184" end="184" type="uint">
      <value name="GSCTL_CUT" value="0"/>
      <value name="GSCTL_SID" value="1"/>
    </field>
    <field name="Control Data Header Size" start="180" end="183" type="uint"/>
    <field name="Instance Control" start="175" end="179" type="uint"/>
    <field name="Default StreamID" start="173" end="174" type="uint"/>
    <field name="Dispatch Mode" start="171" end="172" type="uint" prefix="DISPATCH_MODE">
      <value name="SINGLE" value="0"/>
      <value name="DUAL_INSTANCE" value="1"/>
      <value name="DUAL_OBJECT" value="2"/>
    </field>
930
    <field name="Statistics Enable" start="170" end="170" type="uint"/>
931
    <field name="GS Invocations Increment Value" start="165" end="169" type="uint"/>
932
    <field name="Include Primitive ID" start="164" end="164" type="bool"/>
933
    <field name="Hint" start="163" end="163" type="uint"/>
934
935
936
937
    <field name="Reorder Mode" start="162" end="162" type="uint">
      <value name="LEADING" value="0"/>
      <value name="TRAILING" value="1"/>
    </field>
938
    <field name="Discard Adjacency" start="161" end="161" type="bool"/>
939
    <field name="Enable" start="160" end="160" type="bool"/>
940
941
942
    <field name="Semaphore Handle" start="192" end="203" type="offset"/>
  </instruction>

943
  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="3" engine="render">
944
945
946
947
948
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
949
    <field name="MOCS" start="57" end="60" type="uint"/>
950
951
952
953
    <field name="Surface Pitch" start="32" end="48" type="uint"/>
    <field name="Surface Base Address" start="64" end="95" type="address"/>
  </instruction>

954
  <instruction name="3DSTATE_HS" bias="2" length="7" engine="render">
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="27"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Sampler Count" start="59" end="61" type="uint">
      <value name="No Samplers" value="0"/>
      <value name="1-4 Samplers" value="1"/>
      <value name="5-8 Samplers" value="2"/>
      <value name="9-12 Samplers" value="3"/>
      <value name="13-16 Samplers" value="4"/>
    </field>
    <field name="Binding Table Entry Count" start="50" end="57" type="uint"/>
    <field name="Floating Point Mode" start="48" end="48" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="alternate" value="1"/>
    </field>
    <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
Jason Ekstrand's avatar
Jason Ekstrand committed
973
    <field name="Software Exception Enable" start="39" end="39" type="bool"/>
974
    <field name="Maximum Number of Threads" start="32" end="38" type="uint"/>
975
    <field name="Enable" start="95" end="95" type="bool"/>
976
977
978
    <field name="Statistics Enable" start="93" end="93" type="bool"/>
    <field name="Instance Count" start="64" end="67" type="uint"/>
    <field name="Kernel Start Pointer" start="102" end="127" type="offset"/>
979
    <field name="Scratch Space Base Pointer" start="138" end="159" type="address"/>
980
    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
981
    <field name="Single Program Flow" start="187" end="187" type="bool"/>
982
    <field name="Vector Mask Enable" start="186" end="186" type="bool"/>
983
    <field name="Include Vertex Handles" start="184" end="184" type="bool"/>
984
985
986
987
988
989
    <field name="Dispatch GRF Start Register For URB Data" start="179" end="183" type="uint"/>
    <field name="Vertex URB Entry Read Length" start="171" end="176" type="uint"/>
    <field name="Vertex URB Entry Read Offset" start="164" end="169" type="uint"/>
    <field name="Semaphore Handle" start="192" end="203" type="offset"/>
  </instruction>

990
  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="3" engine="render">
991
992
993
994
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="10"/>
995
    <field name="MOCS" start="12" end="15" type="uint"/>
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
    <field name="Cut Index Enable" start="10" end="10" type="bool"/>
    <field name="Index Format" start="8" end="9" type="uint" prefix="INDEX">
      <value name="BYTE" value="0"/>
      <value name="WORD" value="1"/>
      <value name="DWORD" value="2"/>
    </field>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Buffer Starting Address" start="32" end="63" type="address"/>
    <field name="Buffer Ending Address" start="64" end="95" type="address"/>
  </instruction>

1007
  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="8"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Modify Enable (Current Repeat Counter, Current Stipple Index)" start="63" end="63" type="bool"/>
    <field name="Current Repeat Counter" start="53" end="61" type="uint"/>
    <field name="Current Stipple Index" start="48" end="51" type="uint"/>
    <field name="Line Stipple Pattern" start="32" end="47" type="uint"/>
    <field name="Line Stipple Inverse Repeat Count" start="79" end="95" type="u1.16"/>
    <field name="Line Stipple Repeat Count" start="64" end="72" type="uint"/>
  </instruction>

1021
  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2" engine="render">
1022
1023
1024
1025
1026
1027
1028
1029
1030
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="17"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Monochrome Filter Width" start="35" end="37" type="uint"/>
    <field name="Monochrome Filter Height" start="32" end="34" type="uint"/>
  </instruction>

1031
  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="4" engine="render">
1032
1033
1034
1035
1036
1037
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="13"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
    <field name="Pixel Location" start="36" end="36" type="uint">
1038
1039
      <value name="CENTER" value="0"/>
      <value name="UL_CORNER" value="1"/>
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
    </field>
    <field name="Number of Multisamples" start="33" end="35" type="uint">
      <value name="NUMSAMPLES_1" value="0"/>
      <value name="NUMSAMPLES_4" value="2"/>
      <value name="NUMSAMPLES_8" value="3"/>
    </field>
    <field name="Sample3 X Offset" start="92" end="95" type="u0.4"/>
    <field name="Sample3 Y Offset" start="88" end="91" type="u0.4"/>
    <field name="Sample2 X Offset" start="84" end="87" type="u0.4"/>
    <field name="Sample2 Y Offset" start="80" end="83" type="u0.4"/>
    <field name="Sample1 X Offset" start="76" end="79" type="u0.4"/>
    <field name="Sample1 Y Offset" start="72" end="75" type="u0.4"/>
    <field name="Sample0 X Offset" start="68" end="71" type="u0.4"/>
    <field name="Sample0 Y Offset" start="64" end="67" type="u0.4"/>
    <field name="Sample7 X Offset" start="124" end="127" type="u0.4"/>
    <field name="Sample7 Y Offset" start="120" end="123" type="u0.4"/>
    <field name="Sample6 X Offset" start="116" end="119" type="u0.4"/>
    <field name="Sample6 Y Offset" start="112" end="115" type="u0.4"/>
    <field name="Sample5 X Offset" start="108" end="111" type="u0.4"/>
    <field name="Sample5 Y Offset" start="104" end="107" type="u0.4"/>
    <field name="Sample4 X Offset" start="100" end="103" type="u0.4"/>
    <field name="Sample4 Y Offset" start="96" end="99" type="u0.4"/>
  </instruction>

1064
  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2" engine="render">
1065
1066
1067
1068
1069
1070
1071
1072
1073
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="6"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Polygon Stipple X Offset" start="40" end="44" type="uint"/>
    <field name="Polygon Stipple Y Offset" start="32" end="36" type="uint"/>
  </instruction>

1074
  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="7"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="31"/>
    <group count="32" start="32" size="32">
      <field name="Pattern Row" start="0" end="31" type="uint"/>
    </group>
  </instruction>

1085
  <instruction name="3DSTATE_PS" bias="2" length="8" engine="render">
1086
1087
1088
1089
1090
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="32"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="6"/>
1091
    <field name="Kernel Start Pointer 0" start="38" end="63" type="offset"/>
1092
    <field name="Single Program Flow" start="95" end="95" type="bool"/>
1093
    <field name="Vector Mask Enable" start="94" end="94" type="bool"/>
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
    <field name="Sampler Count" start="91" end="93" type="uint"/>
    <field name="Denormal Mode" start="90" end="90" type="uint">
      <value name="FTZ" value="0"/>
      <value name="RET" value="1"/>
    </field>
    <field name="Binding Table Entry Count" start="82" end="89" type="uint"/>
    <field name="Floating Point Mode" start="80" end="80" type="uint">
      <value name="IEEE-745" value="0"/>
      <value name="Alt" value="1"/>
    </field>
    <field name="Rounding Mode" start="78" end="79" type="uint">
      <value name="RTNE" value="0"/>
      <value name="RU" value="1"/>
      <value name="RD" value="2"/>
      <value name="RTZ" value="3"/>
    </field>
    <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
    <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
Jason Ekstrand's avatar
Jason Ekstrand committed
1112
    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
1113
    <field name="Scratch Space Base Pointer" start="106" end="127" type="address"/>
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
    <field name="Per Thread Scratch Space" start="96" end="99" type="uint"/>
    <field name="Maximum Number of Threads" start="152" end="159" type="uint"/>
    <field name="Push Constant Enable" start="139" end="139" type="bool"/>
    <field name="Attribute Enable" start="138" end="138" type="bool"/>
    <field name="oMask Present to RenderTarget" start="137" end="137" type="bool"/>
    <field name="Render Target Fast Clear Enable" start="136" end="136" type="bool"/>
    <field name="Dual Source Blend Enable" start="135" end="135" type="bool"/>
    <field name="Render Target Resolve Enable" start="134" end="134" type="bool"/>
    <field name="Position XY Offset Select" start="131" end="132" type="uint">
      <value name="POSOFFSET_NONE" value="0"/>
      <value name="POSOFFSET_CENTROID" value="2"/>
      <value name="POSOFFSET_SAMPLE" value="3"/>
    </field>
    <field name="32 Pixel Dispatch Enable" start="130" end="130" type="bool"/>
    <field name="16 Pixel Dispatch Enable" start="129" end="129" type="bool"/>
    <field name="8 Pixel Dispatch Enable" start="128" end="128" type="bool"/>
1130
1131
1132
1133
1134
    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="176" end="182" type="uint"/>
    <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="168" end="174" type="uint"/>
    <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="160" end="166" type="uint"/>
    <field name="Kernel Start Pointer 1" start="198" end="223" type="offset"/>
    <field name="Kernel Start Pointer 2" start="230" end="255" type="offset"/>
1135
1136
  </instruction>

1137
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2" engine="render">
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="20"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
      <value name="0KB" value="0"/>
    </field>
    <field name="Constant Buffer Size" start="32" end="36" type="uint">
      <value name="0KB" value="0"/>
    </field>
  </instruction>

1151
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2" engine="render">
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="21"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
      <value name="0KB" value="0"/>
    </field>
    <field name="Constant Buffer Size" start="32" end="36" type="uint">
      <value name="0KB" value="0"/>
    </field>
  </instruction>

1165
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2" engine="render">
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
      <value name="0KB" value="0"/>
    </field>
    <field name="Constant Buffer Size" start="32" end="36" type="uint">
      <value name="0KB" value="0"/>
    </field>
  </instruction>

1179
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2" engine="render">
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="22"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
      <value name="0KB" value="0"/>
    </field>
    <field name="Constant Buffer Size" start="32" end="36" type="uint">
      <value name="0KB" value="0"/>
    </field>
  </instruction>

1193
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2" engine="render">
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="18"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Constant Buffer Offset" start="48" end="51" type="uint">
      <value name="0KB" value="0"/>
    </field>
    <field name="Constant Buffer Size" start="32" end="36" type="uint">
      <value name="0KB" value="0"/>
    </field>
  </instruction>

1207
  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD0" bias="2" engine="render">
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="2"/>
    <field name="DWord Length" start="0" end="7" type="uint"/>
    <group count="0" start="32" size="32">
      <field name="Entry" start="0" end="31" type="PALETTE_ENTRY"/>
    </group>
  </instruction>

1218
  <instruction name="3DSTATE_SAMPLER_PALETTE_LOAD1" bias="2" engine="render">
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="1"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="12"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <group count="0" start="32" size="32">
      <field name="Palette Alpha[0:N-1]" start="24" end="31" type="uint"/>
      <field name="Palette Red[0:N-1]" start="16" end="23" type="uint"/>
      <field name="Palette Green[0:N-1]" start="8" end="15" type="uint"/>
      <field name="Palette Blue[0:N-1]" start="0" end="7" type="uint"/>
    </group>
  </instruction>

1232
  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_DS" bias="2" length="2" engine="render">
1233
1234
1235
1236
1237
1238
1239
1240
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="45"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to DS Sampler State" start="37" end="63" type="offset"/>
  </instruction>

1241
  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_GS" bias="2" length="2" engine="render">
1242
1243
1244
1245
1246
1247
1248
1249
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="46"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to GS Sampler State" start="37" end="63" type="offset"/>
  </instruction>

1250
  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_HS" bias="2" length="2" engine="render">
1251
1252
1253
1254
1255
1256
1257
1258
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="44"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to HS Sampler State" start="37" end="63" type="offset"/>
  </instruction>

1259
  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_PS" bias="2" length="2" engine="render">
1260
1261
1262
1263
1264
1265
1266
1267
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="47"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to PS Sampler State" start="37" end="63" type="offset"/>
  </instruction>

1268
  <instruction name="3DSTATE_SAMPLER_STATE_POINTERS_VS" bias="2" length="2" engine="render">
1269
1270
1271
1272
1273
1274
1275
1276
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="43"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pointer to VS Sampler State" start="37" end="63" type="offset"/>
  </instruction>

1277
  <instruction name="3DSTATE_SAMPLE_MASK" bias="2" length="2" engine="render">
1278
1279
1280
1281
1282
1283
1284
1285
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="24"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Sample Mask" start="32" end="39" type="uint"/>
  </instruction>

1286
  <instruction name="3DSTATE_SBE" bias="2" length="14" engine="render">
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="31"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="12"/>
    <field name="Attribute Swizzle Control Mode" start="60" end="60" type="uint">
      <value name="SWIZ_0_15" value="0"/>
      <value name="SWIZ_16_31" value="1"/>
    </field>
    <field name="Number of SF Output Attributes" start="54" end="59" type="uint"/>
    <field name="Attribute Swizzle Enable" start="53" end="53" type="bool"/>
    <field name="Point Sprite Texture Coordinate Origin" start="52" end="52" type="uint">
      <value name="UPPERLEFT" value="0"/>
      <value name="LOWERLEFT" value="1"/>
    </field>
    <field name="Vertex URB Entry Read Length" start="43" end="47" type="uint"/>
    <field name="Vertex URB Entry Read Offset" start="36" end="41" type="uint"/>
1304
1305
    <group count="16" start="64" size="16">
      <field name="Attribute" start="0" end="15" type="SF_OUTPUT_ATTRIBUTE_DETAIL"/>
1306
1307
    </group>
    <field name="Point Sprite Texture Coordinate Enable" start="320" end="351" type="uint"/>
1308
    <field name="Constant Interpolation Enable" start="352" end="383" type="uint"/>
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
    <field name="Attribute 7 WrapShortest Enables" start="412" end="415" type="uint"/>
    <field name="Attribute 6 WrapShortest Enables" start="408" end="411" type="uint"/>
    <field name="Attribute 5 WrapShortest Enables" start="404" end="407" type="uint"/>
    <field name="Attribute 4 WrapShortest Enables" start="400" end="403" type="uint"/>
    <field name="Attribute 3 WrapShortest Enables" start="396" end="399" type="uint"/>
    <field name="Attribute 2 WrapShortest Enables" start="392" end="395" type="uint"/>
    <field name="Attribute 1 WrapShortest Enables" start="388" end="391" type="uint"/>
    <field name="Attribute 0 WrapShortest Enables" start="384" end="387" type="uint"/>
    <field name="Attribute 15 WrapShortest Enables" start="444" end="447" type="uint"/>
    <field name="Attribute 14 WrapShortest Enables" start="440" end="443" type="uint"/>
    <field name="Attribute 13 WrapShortest Enables" start="436" end="439" type="uint"/>
    <field name="Attribute 12 WrapShortest Enables" start="432" end="435" type="uint"/>
    <field name="Attribute 11 WrapShortest Enables" start="428" end="431" type="uint"/>
    <field name="Attribute 10 WrapShortest Enables" start="424" end="427" type="uint"/>
    <field name="Attribute 9 WrapShortest Enables" start="420" end="423" type="uint"/>
    <field name="Attribute 8 WrapShortest Enables" start="416" end="419" type="uint"/>
  </instruction>

1327
  <instruction name="3DSTATE_SCISSOR_STATE_POINTERS" bias="2" length="2" engine="render">
1328
1329
1330
1331
1332
1333
1334
1335
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="15"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Scissor Rect Pointer" start="37" end="63" type="offset"/>
  </instruction>

1336
  <instruction name="3DSTATE_SF" bias="2" length="7" engine="render">
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
    <field name="Command Type" start="29" end="31" type="uint" default="3"/>
    <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
    <field name="3D Command Opcode" start="24" end="26" type="uint" default="0"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="19"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="5"/>
    <field name="Depth Buffer Surface Format" start="44" end="46" type="uint">
      <value name="D32_FLOAT_S8X24_UINT" value="0"/>
      <value name="D32_FLOAT" value="1"/>
      <value name="D24_UNORM_S8_UINT" value="2"/>
      <value name="D24_UNORM_X8_UINT" value="3"/>
      <value name="D16_UNORM" value="5"/>
    </field>
    <field name="Legacy Global Depth Bias Enable" start="43" end="43" type="bool"/>
    <field name="Statistics Enable" start="42" end="42" type="bool"/>
    <field name="Global Depth Offset Enable Solid" start="41" end="41" type="bool"/>
    <field name="Global Depth Offset Enable Wireframe" start="40" end="40" type="bool"/>
    <field name="Global Depth Offset Enable Point" start="39" end="39" type="bool"/>
    <field name="FrontFace Fill Mode" start="37" end="38" type="uint" prefix="FILL_MODE">
      <value name="SOLID" value="0"/>
      <value name="WIREFRAME" value="1"/>
      <value name="POINT" value="2"/>
    </field>
    <field name="BackFace Fill Mode" start="35" end="36" type="uint" prefix="FILL_MODE">
      <value name="SOLID" value="0"/>
      <value name="WIREFRAME" value="1"/>
      <value name="POINT" value="2"/>
    </field>
1364
    <field name="Viewport Transform Enable" start="33" end="33" type="bool"/>
1365
1366
1367
1368
1369
1370
1371
1372
1373
    <field name="Front Winding" start="32" end="32" type="uint"/>
    <field name="Anti-Aliasing Enable" start="95" end="95" type="bool"/>
    <field name="Cull Mode" start="93" end="94" type="uint" prefix="CULLMODE">
      <value name="BOTH" value="0"/>
      <value name="NONE" value="1"/>
      <value name="FRONT" value="2"/>
      <value name="BACK" value="3"/>
    </field>
    <field name="Line Width" start="82" end="91" type="u3.7"/>
1374
1375
1376
1377
1378
1379
    <field name="Line End Cap Antialiasing Region Width" start="80" end="81" type="uint">
      <value name="0.5 pixels" value="0"/>
      <value name="1.0 pixels" value="1"/>
      <value name="2.0 pixels" value="2"/>
      <value name="4.0 pixels" value="3"/>
    </field>
1380
    <field name="Scissor Rectangle Enable" start="75" end="75" type="bool"/>
1381
1382
1383
1384
1385
1386
    <field name="Multisample Rasterization Mode" start="72" end="73" type="uint">
      <value name="MSRASTMODE_OFF_PIXEL" value="0"/>
      <value name="MSRASTMODE_OFF_PATTERN" value="1"/>
      <value name="MSRASTMODE_ON_PIXEL" value="2"/>
      <value name="MSRASTMODE_ON_PATTERN" value="3"/>
   </field>
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
    <field name="Last Pixel Enable" start="127" end="127" type="bool"/>
    <field name="Triangle Strip/List Provoking Vertex Select" start="125" end="126" type="uint">
      <value name="Vertex 0" value="0"/>
      <value name="Vertex 1" value="1"/>
      <value name="Vertex 2" value="2"/>
    </field>
    <field name="Line Strip/List Provoking Vertex Select" start="123" end="124" type="uint"/>
    <field name="Triangle Fan Provoking Vertex Select" start="121" end="122" type="uint">
      <value name="Vertex 0" value="0"/>
      <value name="Vertex 1" value="1"/>
      <value name="Vertex 2" value="2"/>
    </field>
    <field name="AA Line Distance Mode" start="110" end="110" type="uint">
      <value name="AALINEDISTANCE_TRUE" value="1"/>
    </field>
    <field name="Vertex Sub Pixel Precision Select" start="108" end="108" type="uint"/>
1403
1404
1405
1406
    <field name="Point Width Source" start="107" end="107" type="uint">
      <value name="Vertex" value="0"/>
      <value name="State" value="1"/>
    </field>
1407
1408
1409
1410
1411
1412