gen11.xml 207 KB
Newer Older
Anuj Phogat's avatar
Anuj Phogat committed
1
2
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
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
<?xml version="1.0" ?>
<genxml name="ICL" gen="11">
  <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>

  <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_PID" value="7"/>
  </enum>

  <enum name="COMPONENT_ENABLES" prefix="CE">
    <value name="NONE" value="0"/>
    <value name="X" value="1"/>
    <value name="Y" value="2"/>
    <value name="XY" value="3"/>
    <value name="Z" value="4"/>
    <value name="XZ" value="5"/>
    <value name="YZ" value="6"/>
    <value name="XYZ" value="7"/>
    <value name="W" value="8"/>
    <value name="XW" value="9"/>
    <value name="YW" value="10"/>
    <value name="XYW" value="11"/>
    <value name="ZW" value="12"/>
    <value name="XZW" value="13"/>
    <value name="YZW" value="14"/>
    <value name="XYZW" value="15"/>
  </enum>

  <enum name="Attribute_Component_Format" prefix="ACF">
    <value name="disabled" value="0"/>
    <value name=".xy" value="1"/>
    <value name=".xyz" value="2"/>
    <value name=".xyzw" value="3"/>
  </enum>

  <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
    <value name="X" value="1"/>
    <value name="Y" value="2"/>
    <value name="XY" value="3"/>
    <value name="Z" value="4"/>
    <value name="XZ" value="5"/>
    <value name="YZ" value="6"/>
    <value name="XYZ" value="7"/>
    <value name="W" value="8"/>
    <value name="XW" value="9"/>
    <value name="YW" value="10"/>
    <value name="XYW" value="11"/>
    <value name="ZW" value="12"/>
    <value name="XZW" value="13"/>
    <value name="YZW" value="14"/>
    <value name="XYZW" value="15"/>
  </enum>

  <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>

  <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>

  <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>

  <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>

  <enum name="Shader Channel Select" prefix="SCS">
    <value name="ZERO" value="0"/>
    <value name="ONE" value="1"/>
    <value name="RED" value="4"/>
    <value name="GREEN" value="5"/>
    <value name="BLUE" value="6"/>
    <value name="ALPHA" value="7"/>
  </enum>

  <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"/>
    <value name="HALF_BORDER" value="6"/>
    <value name="MIRROR_101" value="7"/>
  </enum>

  <struct name="3DSTATE_CONSTANT_BODY" length="10">
    <group count="4" start="0" size="16">
      <field name="Read Length" start="0" end="15" type="uint"/>
    </group>
    <group count="4" start="64" size="64">
      <field name="Buffer" start="5" end="63" type="address"/>
    </group>
  </struct>

  <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
    <field name="Binding Table Index" start="16" end="23" type="uint"/>
    <field name="Surface State Pointer" start="0" end="15" type="offset"/>
  </struct>

  <struct name="GATHER_CONSTANT_ENTRY" length="1">
    <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
    <field name="Channel Mask" start="4" end="7" type="uint"/>
    <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
  </struct>

  <struct name="VERTEX_BUFFER_STATE" length="4">
    <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
225
    <field name="MOCS" start="16" end="22" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
226
227
228
229
230
231
232
233
234
235
    <field name="Address Modify Enable" start="14" end="14" type="bool"/>
    <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
    <field name="Buffer Pitch" start="0" end="11" type="uint"/>
    <field name="Buffer Starting Address" start="32" end="95" type="address"/>
    <field name="Buffer Size" 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"/>
236
    <field name="Source Element Format" start="16" end="24" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
    <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
    <field name="Source Element Offset" start="0" end="11" type="uint"/>
    <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"/>
  </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"/>
    <field name="X Min ViewPort" start="384" end="415" type="float"/>
    <field name="X Max ViewPort" start="416" end="447" type="float"/>
    <field name="Y Min ViewPort" start="448" end="479" type="float"/>
    <field name="Y Max ViewPort" start="480" end="511" type="float"/>
  </struct>

  <struct name="BLEND_STATE_ENTRY" length="2">
    <field name="Logic Op Enable" start="63" end="63" type="bool"/>
    <field name="Logic Op Function" start="59" end="62" type="3D_Logic_Op_Function"/>
    <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
    <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"/>
    <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
    <field name="Source Blend Factor" start="26" end="30" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Destination Blend Factor" start="21" end="25" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Color Blend Function" start="18" end="20" type="3D_Color_Buffer_Blend_Function"/>
    <field name="Source Alpha Blend Factor" start="13" end="17" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Destination Alpha Blend Factor" start="8" end="12" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Alpha Blend Function" start="5" end="7" type="3D_Color_Buffer_Blend_Function"/>

    <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
    <field name="Write Disable Red" start="2" end="2" type="bool"/>
    <field name="Write Disable Green" start="1" end="1" type="bool"/>
    <field name="Write Disable Blue" start="0" end="0" type="bool"/>
  </struct>

  <struct name="BLEND_STATE" length="1">
    <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
    <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
    <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
    <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
    <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
    <field name="Alpha Test Function" start="24" end="26" type="3D_Compare_Function"/>
    <field name="Color Dither Enable" start="23" end="23" type="bool"/>
    <field name="X Dither Offset" start="21" end="22" type="uint"/>
    <field name="Y Dither Offset" start="19" end="20" type="uint"/>
    <group count="0" start="32" size="64">
      <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="Round Disable Function Disable" start="15" end="15" type="bool"/>
    <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="EXECUTION_UNIT_EXTENDED_MESSAGE_DESCRIPTOR" length="1">
    <field name="Extended Message Length" start="6" end="9" type="uint"/>
    <field name="End Of Thread" start="5" end="5" type="uint">
      <value name="No Termination" value="0"/>
      <value name="EOT" value="1"/>
    </field>
    <field name="Target Function ID" start="0" end="3" type="uint"/>
  </struct>

  <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
    <field name="Kernel Start Pointer" start="6" end="47" type="offset"/>
    <field name="Denorm Mode" start="83" end="83" type="uint">
      <value name="Ftz" value="0"/>
      <value name="SetByKernel" value="1"/>
    </field>
    <field name="Single Program Flow" start="82" end="82" type="bool"/>
    <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"/>
    <field name="Software Exception Enable" start="71" end="71" type="bool"/>
    <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
    <field name="Sampler Count" start="98" end="100" 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="133" end="143" type="offset"/>
    <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
    <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
    <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
    <field name="Rounding Mode" start="214" end="215" 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="213" end="213" type="bool"/>
    <field name="Shared Local Memory Size" start="208" end="212" type="uint">
      <value name="Encodes 0K" value="0"/>
      <value name="Encodes 1K" value="1"/>
      <value name="Encodes 2K" value="2"/>
      <value name="Encodes 4K" value="3"/>
      <value name="Encodes 8K" value="4"/>
      <value name="Encodes 16K" value="5"/>
      <value name="Encodes 32K" value="6"/>
      <value name="Encodes 64K" value="7"/>
    </field>
    <field name="Global Barrier Enable" start="207" end="207" type="bool"/>
    <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
    <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
  </struct>

  <struct name="ROUNDINGPRECISIONTABLE_3_BITS" length="1">
    <field name="Rounding Precision" start="0" end="2" type="uint">
      <value name="+1/16" value="0"/>
      <value name="+2/16" value="1"/>
      <value name="+3/16" value="2"/>
      <value name="+4/16" value="3"/>
      <value name="+5/16" value="4"/>
      <value name="+6/16" value="5"/>
      <value name="+7/16" value="6"/>
      <value name="+8/16" value="7"/>
    </field>
  </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="6" end="31" type="offset"/>
  </struct>

  <struct name="RENDER_SURFACE_STATE" length="16">
    <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"/>
459
    <field name="Surface Format" start="18" end="27" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
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
564
565
566
567
568
569
570
571
572
    <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
      <value name="VALIGN 4" value="1"/>
      <value name="VALIGN 8" value="2"/>
      <value name="VALIGN 16" value="3"/>
    </field>
    <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
      <value name="HALIGN 4" value="1"/>
      <value name="HALIGN 8" value="2"/>
      <value name="HALIGN 16" value="3"/>
    </field>
    <field name="Tile Mode" start="12" end="13" type="uint">
      <value name="LINEAR" value="0"/>
      <value name="WMAJOR" value="1"/>
      <value name="XMAJOR" value="2"/>
      <value name="YMAJOR" value="3"/>
    </field>
    <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
    <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
    <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
    <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
      <value name="Write-Only Cache" value="0"/>
      <value name="Read-Write Cache" value="1"/>
    </field>
    <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>
    <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"/>
    <field name="MOCS" start="56" end="62" type="uint"/>
    <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
    <field name="Surface QPitch" start="32" end="46" type="uint"/>
    <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="Tile Address Mapping Mode" start="116" end="116" type="uint">
      <value name="Gen9" value="0"/>
      <value name="Gen10+" value="1"/>
    </field>
    <field name="Surface Pitch" start="96" end="113" type="uint"/>
    <field name="Force Non-Comparison Reduction Type" start="159" end="159" type="bool"/>
    <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
      <value name="0DEG" value="0"/>
      <value name="90DEG" value="1"/>
      <value name="180DEG" value="2"/>
      <value name="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_2" value="1"/>
      <value name="MULTISAMPLECOUNT_4" value="2"/>
      <value name="MULTISAMPLECOUNT_8" value="3"/>
      <value name="MULTISAMPLECOUNT_16" value="4"/>
    </field>
    <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
    <field name="X Offset" start="185" end="191" type="uint"/>
    <field name="Y Offset" start="181" end="183" type="uint"/>
    <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
    <field name="Tiled Resource Mode" start="178" end="179" type="uint">
      <value name="NONE" value="0"/>
      <value name="4KB" value="1"/>
      <value name="64KB" value="2"/>
      <value name="TILEYF" value="1"/>
      <value name="TILEYS" value="2"/>
    </field>
    <field name="Coherency Type" start="174" end="174" type="uint">
      <value name="GPU coherent" value="0"/>
      <value name="IA coherent" value="1"/>
    </field>
    <field name="Mip Tail Start LOD" start="168" end="171" type="uint"/>
    <field name="Surface Min LOD" start="164" end="167" type="uint"/>
    <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
    <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
    <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
    <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
      <value name="AUX_NONE" value="0"/>
      <value name="AUX_CCS_D" value="1"/>
      <value name="AUX_APPEND" value="2"/>
      <value name="AUX_HIZ" value="3"/>
      <value name="AUX_CCS_E" value="5"/>
    </field>
    <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
    <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
    <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
    <field name="Memory Compression Mode" start="255" end="255" type="uint">
      <value name="Horizontal" value="0"/>
      <value name="Vertical" value="1"/>
    </field>
    <field name="Memory Compression Enable" start="254" end="254" type="bool"/>
    <field name="Shader Channel Select Red" start="249" end="251" type="Shader Channel Select"/>
    <field name="Shader Channel Select Green" start="246" end="248" type="Shader Channel Select"/>
    <field name="Shader Channel Select Blue" start="243" end="245" type="Shader Channel Select"/>
    <field name="Shader Channel Select Alpha" start="240" end="242" type="Shader Channel Select"/>
    <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
    <field name="Surface Base Address" start="256" end="319" type="address"/>
    <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
    <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
    <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
    <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
    <field name="Clear Value Address Enable" start="330" end="330" type="bool"/>
    <field name="Quilt Height" start="325" end="329" type="uint"/>
    <field name="Quilt Width" start="320" end="324" type="uint"/>
573
574
575
    <!-- This address points to the address of a Clear Color in the case of
         CCS_D and CCS_E surfaces, and Depth Color for HiZ surfaces -->
    <field name="Clear Value Address" start="390" end="431" type="address"/>
Anuj Phogat's avatar
Anuj Phogat committed
576
577
578
579
580
581
582
    <field name="Red Clear Color" start="384" end="415" type="int"/>
    <field name="Clear Color Conversion Enable" start="389" end="389" type="uint"/>
    <field name="Green Clear Color" start="416" end="447" type="int"/>
    <field name="Blue Clear Color" start="448" end="479" type="int"/>
    <field name="Alpha Clear Color" start="480" end="511" type="int"/>
  </struct>

583
584
585
586
587
588
589
590
591
592
  <struct name="CLEAR_COLOR" length="8">
    <field name="Raw Clear Color Red" start="0" end="31" type="int"/>
    <field name="Raw Clear Color Green" start="32" end="63" type="int"/>
    <field name="Raw Clear Color Blue" start="64" end="95" type="int"/>
    <field name="Raw Clear Color Alpha" start="96" end="127" type="int"/>
    <!-- This field is used only by the hardware -->
    <field name="Converted Clear Value Hi/Low" start="128" end="191" type="uint"/>
    <!-- Reserved - MBZ -->
  </struct>

Anuj Phogat's avatar
Anuj Phogat committed
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
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
816
817
818
819
  <struct name="SAMPLER_INDIRECT_STATE_BORDER_COLOR" length="4">
    <field name="Border Color Red As S31" start="0" end="31" type="int"/>
    <field name="Border Color Red As U32" start="0" end="31" type="uint"/>
    <field name="Border Color Red As Float" start="0" end="31" type="float"/>
    <field name="Border Color Alpha As U8" start="24" end="31" type="uint"/>
    <field name="Border Color Blue As U8" start="16" end="23" type="uint"/>
    <field name="Border Color Green As U8" start="8" end="15" type="uint"/>
    <field name="Border Color Red As U8" start="0" end="7" type="uint"/>
    <field name="Border Color Green As S31" start="32" end="63" type="int"/>
    <field name="Border Color Green As U32" start="32" end="63" type="uint"/>
    <field name="Border Color Green As Float" start="32" end="63" type="float"/>
    <field name="Border Color Blue As S31" start="64" end="95" type="int"/>
    <field name="Border Color Blue As U32" start="64" end="95" type="uint"/>
    <field name="Border Color Blue As Float" start="64" end="95" type="float"/>
    <field name="Border Color Alpha As S31" start="96" end="127" type="int"/>
    <field name="Border Color Alpha As U32" start="96" end="127" type="uint"/>
    <field name="Border Color Alpha As Float" start="96" end="127" type="float"/>
  </struct>

  <struct name="FILTER_COEFFICIENT" length="1">
    <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
  </struct>

  <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
    <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"/>

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

  <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 Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
      <value name="NONE" value="0"/>
      <value name="OGL" value="2"/>
    </field>
    <field name="Coarse LOD Quality Mode" start="22" end="26" type="uint"/>
    <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="ChromaKey Enable" start="39" end="39" type="bool"/>
    <field name="ChromaKey Index" start="37" end="38" type="uint"/>
    <field name="ChromaKey Mode" start="36" end="36" type="uint">
      <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
      <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
    </field>
    <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="70" end="87" type="offset"/>
    <field name="Force gather4 Behavior" start="69" end="69" type="bool"/>
    <field name="Return Filter Weight for Border Texels" start="67" end="67" type="uint"/>
    <field name="Return Filter Weight for Null Texels" start="66" end="66" type="uint"/>
    <field name="SRGB DECODE" start="65" end="65" type="uint">
      <value name="DECODE_EXT" value="0"/>
      <value name="SKIP_DECODE_EXT" value="1"/>
    </field>
    <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
      <value name="MIPNONE" value="0"/>
      <value name="MIPFILTER" value="1"/>
    </field>
    <field name="Reduction Type" start="118" end="119" type="uint">
      <value name="STD_FILTER" value="0"/>
      <value name="COMPARISON" value="1"/>
      <value name="MINIMUM" value="2"/>
      <value name="MAXIMUM" value="3"/>
    </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="HIGH" value="1"/>
      <value name="MED" value="2"/>
      <value name="LOW" value="3"/>
    </field>
    <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
    <field name="Reduction Type Enable" start="105" end="105" type="bool"/>
    <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"/>
  </struct>

  <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
    <field name="Table 0Y Filter Coefficient[n,1]" start="24" end="31" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,1]" start="16" end="23" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,0]" start="8" end="15" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,0]" start="0" end="7" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,3]" start="56" end="63" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,3]" start="48" end="55" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,2]" start="40" end="47" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,2]" start="32" end="39" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,5]" start="88" end="95" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,5]" start="80" end="87" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,4]" start="72" end="79" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,4]" start="64" end="71" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,7]" start="120" end="127" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,7]" start="112" end="119" type="s1.6"/>
    <field name="Table 0Y Filter Coefficient[n,6]" start="104" end="111" type="s1.6"/>
    <field name="Table 0X Filter Coefficient[n,6]" start="96" end="103" type="s1.6"/>
    <field name="Table 1X Filter Coefficient[n,3]" start="152" end="159" type="s1.6"/>
    <field name="Table 1X Filter Coefficient[n,2]" start="144" end="151" type="s1.6"/>
    <field name="Table 1X Filter Coefficient[n,5]" start="168" end="175" type="s1.6"/>
    <field name="Table 1X Filter Coefficient[n,4]" start="160" end="167" type="s1.6"/>
    <field name="Table 1Y Filter Coefficient[n,3]" start="216" end="223" type="s1.6"/>
    <field name="Table 1Y Filter Coefficient[n,2]" start="208" end="215" type="s1.6"/>
    <field name="Table 1Y Filter Coefficient[n,5]" start="232" end="239" type="s1.6"/>
    <field name="Table 1Y Filter Coefficient[n,4]" start="224" end="231" type="s1.6"/>
  </struct>

  <struct name="MI_MATH_ALU_INSTRUCTION" length="1">
    <field name="ALU Opcode" start="20" end="31" type="uint" prefix="MI_ALU">
      <value name="NOOP" value="0x000"/>
      <value name="LOAD" value="0x080"/>
      <value name="LOADINV" value="0x480"/>
      <value name="LOAD0" value="0x081"/>
      <value name="LOAD1" value="0x481"/>
      <value name="ADD" value="0x100"/>
      <value name="SUB" value="0x101"/>
      <value name="AND" value="0x102"/>
      <value name="OR" value="0x103"/>
      <value name="XOR" value="0x104"/>
      <value name="STORE" value="0x180"/>
      <value name="STOREINV" value="0x580"/>
    </field>
    <field name="Operand 1" start="10" end="19" type="uint" prefix="MI_ALU">
      <value name="REG0" value="0x00"/>
      <value name="REG1" value="0x01"/>
      <value name="REG2" value="0x02"/>
      <value name="REG3" value="0x03"/>
      <value name="REG4" value="0x04"/>
      <value name="REG5" value="0x05"/>
      <value name="REG6" value="0x06"/>
      <value name="REG7" value="0x07"/>
      <value name="REG8" value="0x08"/>
      <value name="REG9" value="0x09"/>
      <value name="REG10" value="0x0a"/>
      <value name="REG11" value="0x0b"/>
      <value name="REG12" value="0x0c"/>
      <value name="REG13" value="0x0d"/>
      <value name="REG14" value="0x0e"/>
      <value name="REG15" value="0x0f"/>
      <value name="SRCA" value="0x20"/>
      <value name="SRCB" value="0x21"/>
      <value name="ACCU" value="0x31"/>
      <value name="ZF" value="0x32"/>
      <value name="CF" value="0x33"/>
    </field>
    <field name="Operand 2" start="0" end="9" type="uint" prefix="MI_ALU">
      <value name="REG0" value="0x00"/>
      <value name="REG1" value="0x01"/>
      <value name="REG2" value="0x02"/>
      <value name="REG3" value="0x03"/>
      <value name="REG4" value="0x04"/>
      <value name="REG5" value="0x05"/>
      <value name="REG6" value="0x06"/>
      <value name="REG7" value="0x07"/>
      <value name="REG8" value="0x08"/>
      <value name="REG9" value="0x09"/>
      <value name="REG10" value="0x0a"/>
      <value name="REG11" value="0x0b"/>
      <value name="REG12" value="0x0c"/>
      <value name="REG13" value="0x0d"/>
      <value name="REG14" value="0x0e"/>
      <value name="REG15" value="0x0f"/>
      <value name="SRCA" value="0x20"/>
      <value name="SRCB" value="0x21"/>
      <value name="ACCU" value="0x31"/>
      <value name="ZF" value="0x32"/>
      <value name="CF" value="0x33"/>
    </field>
  </struct>

820
  <instruction name="3DPRIMITIVE" bias="2" length="7" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
821
822
823
824
825
826
827
828
829
830
831
832
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="3"/>
    <field name="3D Command Sub Opcode" start="16" end="23" type="uint" default="0"/>
    <field name="Extended Parameters Present" start="11" end="11" type="uint"/>
    <field name="Indirect Parameter Enable" start="10" end="10" type="bool"/>
    <field name="UAV Coherency Required" start="9" end="9" 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>
    <field name="Primitive Topology Type" start="32" end="37" type="3D_Prim_Topo_Type"/>
    <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"/>
    <field name="Extended Parameter 0" start="224" end="255" type="uint"/>
    <field name="Extended Parameter 1" start="256" end="287" type="uint"/>
    <field name="Extended Parameter 2" start="288" end="319" type="uint"/>
  </instruction>

846
  <instruction name="3DSTATE_3D_MODE" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
847
848
849
850
851
852
853
854
    <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="30"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Mask Bits" start="48" end="63" type="uint"/>
  </instruction>

855
  <instruction name="3DSTATE_AA_LINE_PARAMETERS" bias="2" length="3" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
    <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 Point Coverage Bias" start="56" end="63" type="u0.8"/>
    <field name="AA Coverage Bias" start="48" end="55" type="u0.8"/>
    <field name="AA Point Coverage Slope" start="40" end="47" type="u0.8"/>
    <field name="AA Coverage Slope" start="32" end="39" type="u0.8"/>
    <field name="AA Point Coverage EndCap Bias" start="88" end="95" type="u0.8"/>
    <field name="AA Coverage EndCap Bias" start="80" end="87" type="u0.8"/>
    <field name="AA Point Coverage EndCap Slope" start="72" end="79" type="u0.8"/>
    <field name="AA Coverage EndCap Slope" start="64" end="71" type="u0.8"/>
  </instruction>

871
  <instruction name="3DSTATE_BINDING_TABLE_EDIT_DS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
872
873
874
875
876
877
878
879
880
881
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="70"/>
    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
      <value name="All Cores" value="3"/>
      <value name="Core 1" value="2"/>
      <value name="Core 0" value="1"/>
    </field>
    <group count="0" start="64" size="32">
      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    </group>
  </instruction>

888
  <instruction name="3DSTATE_BINDING_TABLE_EDIT_GS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
    <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="68"/>
    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
      <value name="All Cores" value="3"/>
      <value name="Core 1" value="2"/>
      <value name="Core 0" value="1"/>
    </field>
    <group count="0" start="64" size="32">
      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    </group>
  </instruction>

905
  <instruction name="3DSTATE_BINDING_TABLE_EDIT_HS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
    <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="69"/>
    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
      <value name="All Cores" value="3"/>
      <value name="Core 1" value="2"/>
      <value name="Core 0" value="1"/>
    </field>
    <group count="0" start="64" size="32">
      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    </group>
  </instruction>

922
  <instruction name="3DSTATE_BINDING_TABLE_EDIT_PS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
    <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="71"/>
    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
      <value name="All Cores" value="3"/>
      <value name="Core 1" value="2"/>
      <value name="Core 0" value="1"/>
    </field>
    <group count="0" start="64" size="32">
      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    </group>
  </instruction>

939
  <instruction name="3DSTATE_BINDING_TABLE_EDIT_VS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
    <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="67"/>
    <field name="DWord Length" start="0" end="8" type="uint" default="0"/>
    <field name="Binding Table Block Clear" start="48" end="63" type="uint"/>
    <field name="Binding Table Edit Target" start="32" end="33" type="uint">
      <value name="All Cores" value="3"/>
      <value name="Core 1" value="2"/>
      <value name="Core 0" value="1"/>
    </field>
    <group count="0" start="64" size="32">
      <field name="Entry [n]" start="0" end="31" type="BINDING_TABLE_EDIT_ENTRY"/>
    </group>
  </instruction>

956
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_DS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
957
958
959
960
961
962
963
964
    <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>

965
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_GS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
966
967
968
969
970
971
972
973
    <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>

974
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_HS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
975
976
977
978
979
980
981
982
    <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>

983
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_PS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
984
985
986
987
988
989
990
991
    <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>

992
  <instruction name="3DSTATE_BINDING_TABLE_POINTERS_VS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
993
994
995
996
997
998
999
1000
    <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>

1001
  <instruction name="3DSTATE_BINDING_TABLE_POOL_ALLOC" bias="2" length="4" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1002
1003
1004
1005
1006
1007
1008
    <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="25"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
    <field name="Binding Table Pool Base Address" start="44" end="95" type="address"/>
    <field name="Binding Table Pool Enable" start="43" end="43" type="uint"/>
1009
    <field name="MOCS" start="32" end="38" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1010
1011
1012
1013
1014
    <field name="Binding Table Pool Buffer Size" start="108" end="127" type="uint">
      <value name="No Valid Data" value="0"/>
    </field>
  </instruction>

1015
  <instruction name="3DSTATE_BLEND_STATE_POINTERS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1016
1017
1018
1019
1020
1021
1022
1023
1024
    <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"/>
    <field name="Blend State Pointer Valid" start="32" end="32" type="bool"/>
  </instruction>

1025
  <instruction name="3DSTATE_CC_STATE_POINTERS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1026
1027
1028
1029
1030
1031
1032
1033
1034
    <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"/>
    <field name="Color Calc State Pointer Valid" start="32" end="32" type="bool"/>
  </instruction>

1035
  <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
    <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>

1046
  <instruction name="3DSTATE_CLEAR_PARAMS" bias="2" length="3" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1047
1048
1049
1050
1051
1052
1053
1054
1055
    <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="float"/>
    <field name="Depth Clear Value Valid" start="64" end="64" type="bool"/>
  </instruction>

1056
  <instruction name="3DSTATE_CLIP" bias="2" length="4" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
    <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="Force User Clip Distance Cull Test Enable Bitmask" start="52" end="52" type="bool"/>
    <field name="Vertex Sub Pixel Precision Select" start="51" end="51" type="uint">
      <value name="8 Bit" value="0"/>
      <value name="4 Bit" value="1"/>
    </field>
    <field name="Early Cull Enable" start="50" end="50" type="bool"/>
    <field name="Force User Clip Distance Clip Test Enable Bitmask" start="49" end="49" type="bool"/>
    <field name="Force Clip Mode" start="48" end="48" type="bool"/>
    <field name="Statistics Enable" start="42" end="42" type="bool"/>
    <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"/>
      <value name="APIMODE_D3D" value="1"/>
    </field>
    <field name="Viewport XY Clip Test Enable" start="92" end="92" type="bool"/>
    <field name="Guardband Clip Test Enable" start="90" end="90" type="bool"/>
    <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"/>
    <field name="Line Strip/List Provoking Vertex Select" start="66" end="67" type="uint"/>
    <field name="Triangle Fan Provoking Vertex Select" start="64" end="65" type="uint"/>
    <field name="Minimum Point Width" start="113" end="123" type="u8.3"/>
    <field name="Maximum Point Width" start="102" end="112" type="u8.3"/>
    <field name="Force Zero RTA Index Enable" start="101" end="101" type="bool"/>
    <field name="Maximum VP Index" start="96" end="99" type="uint"/>
  </instruction>

1096
  <instruction name="3DSTATE_CONSTANT_DS" bias="2" length="11" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1097
1098
1099
1100
    <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"/>
1101
    <field name="MOCS" start="8" end="14" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1102
1103
1104
1105
    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

1106
  <instruction name="3DSTATE_CONSTANT_GS" bias="2" length="11" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1107
1108
1109
1110
    <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"/>
1111
    <field name="MOCS" start="8" end="14" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1112
1113
1114
1115
    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

1116
  <instruction name="3DSTATE_CONSTANT_HS" bias="2" length="11" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1117
1118
1119
1120
    <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"/>
1121
    <field name="MOCS" start="8" end="14" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1122
1123
1124
1125
    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

1126
  <instruction name="3DSTATE_CONSTANT_PS" bias="2" length="11" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1127
1128
1129
1130
1131
    <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="Disable Gather at Set Shader Hint" start="15" end="15" type="uint"/>
1132
    <field name="MOCS" start="8" end="14" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1133
1134
1135
1136
    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

1137
  <instruction name="3DSTATE_CONSTANT_VS" bias="2" length="11" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1138
1139
1140
1141
    <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"/>
1142
    <field name="MOCS" start="8" end="14" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1143
1144
1145
1146
    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
    <field name="Constant Body" start="32" end="351" type="3DSTATE_CONSTANT_BODY"/>
  </instruction>

1147
  <instruction name="3DSTATE_DEPTH_BUFFER" bias="2" length="8" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
    <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="6"/>
    <field name="Surface Type" start="61" end="63" type="uint">
      <value name="SURFTYPE_2D" value="1"/>
      <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="127" type="address"/>
    <field name="Height" start="146" end="159" type="uint"/>
    <field name="Width" start="132" end="145" type="uint"/>
    <field name="LOD" start="128" end="131" type="uint"/>
    <field name="Depth" start="181" end="191" type="uint"/>
    <field name="Minimum Array Element" start="170" end="180" type="uint"/>
1173
    <field name="MOCS" start="160" end="166" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
    <field name="Tiled Resource Mode" start="222" end="223" type="uint">
      <value name="NONE" value="0"/>
      <value name="TILEYF" value="1"/>
      <value name="TILEYS" value="2"/>
    </field>
    <field name="Mip Tail Start LOD" start="218" end="221" type="uint"/>
    <field name="Render Target View Extent" start="245" end="255" type="uint"/>
    <field name="Surface QPitch" start="224" end="238" type="uint"/>
  </instruction>

1184
  <instruction name="3DSTATE_DRAWING_RECTANGLE" bias="2" length="4" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
    <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="Core Mode Select" start="14" end="15" type="uint">
      <value name="Legacy" value="0"/>
      <value name="Core 0 Enabled" value="1"/>
      <value name="Core 1 Enabled" value="2"/>
    </field>
    <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>

1203
  <instruction name="3DSTATE_DS" bias="2" length="11" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
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="29"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="9"/>
    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
    <field name="Sampler Count" start="123" end="125" 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="114" end="121" type="uint"/>
    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
      <value name="High" value="1"/>
    </field>
    <field name="Floating Point Mode" start="112" end="112" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="Alternate" value="1"/>
    </field>
    <field name="Accesses UAV" start="110" end="110" type="bool"/>
    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
    <field name="Dispatch GRF Start Register For URB Data" start="212" end="216" type="uint"/>
    <field name="Patch URB Entry Read Length" start="203" end="209" type="uint"/>
    <field name="Patch URB Entry Read Offset" start="196" end="201" type="uint"/>
    <field name="Maximum Number of Threads" start="245" end="254" type="uint"/>
    <field name="Statistics Enable" start="234" end="234" type="bool"/>
    <field name="Dispatch Mode" start="227" end="228" type="uint" prefix="DISPATCH_MODE">
      <value name="SIMD8_SINGLE_PATCH" value="1"/>
      <value name="SIMD8_SINGLE_OR_DUAL_PATCH" value="2"/>
    </field>
    <field name="Compute W Coordinate Enable" start="226" end="226" type="bool"/>
    <field name="Cache Disable" start="225" end="225" type="bool"/>
    <field name="Enable" start="224" end="224" type="bool"/>
    <field name="Vertex URB Entry Output Read Offset" start="277" end="282" type="uint"/>
    <field name="Vertex URB Entry Output Length" start="272" end="276" type="uint"/>
    <field name="User Clip Distance Clip Test Enable Bitmask" start="264" end="271" type="uint"/>
    <field name="User Clip Distance Cull Test Enable Bitmask" start="256" end="263" type="uint"/>
    <field name="DUAL_PATCH Kernel Start Pointer" start="294" end="351" type="offset"/>
  </instruction>

1250
  <instruction name="3DSTATE_GATHER_CONSTANT_DS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
    <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="55"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
    <field name="Update Gather Table Only" start="33" end="33" type="uint">
      <value name="Commit Gather" value="0"/>
      <value name="Non-Commit Gather" value="1"/>
    </field>
    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
    <field name="On-Die Table" start="67" end="67" type="uint">
      <value name="Load" value="0"/>
      <value name="Read" value="1"/>
    </field>
    <group count="0" start="96" size="32">
      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
    </group>
  </instruction>

1274
  <instruction name="3DSTATE_GATHER_CONSTANT_GS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
    <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="53"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
    <field name="Update Gather Table Only" start="33" end="33" type="uint">
      <value name="Commit Gather" value="0"/>
      <value name="Non-Commit Gather" value="1"/>
    </field>
    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
    <field name="On-Die Table" start="67" end="67" type="uint">
      <value name="Load" value="0"/>
      <value name="Read" value="1"/>
    </field>
    <group count="0" start="96" size="32">
      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
    </group>
  </instruction>

1298
  <instruction name="3DSTATE_GATHER_CONSTANT_HS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
    <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="54"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
    <field name="Update Gather Table Only" start="33" end="33" type="uint">
      <value name="Commit Gather" value="0"/>
      <value name="Non-Commit Gather" value="1"/>
    </field>
    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
    <field name="On-Die Table" start="67" end="67" type="uint">
      <value name="Load" value="0"/>
      <value name="Read" value="1"/>
    </field>
    <group count="0" start="96" size="32">
      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
    </group>
  </instruction>

1322
  <instruction name="3DSTATE_GATHER_CONSTANT_PS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
    <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="56"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="1"/>
    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
    <field name="Update Gather Table Only" start="33" end="33" type="uint">
      <value name="Commit Gather" value="0"/>
      <value name="Non-Commit Gather" value="1"/>
    </field>
    <field name="DX9 On-Die Register Read Enable" start="32" end="32" type="bool"/>
    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
    <field name="On-Die Table" start="67" end="67" type="uint">
      <value name="Load" value="0"/>
      <value name="Read" value="1"/>
    </field>
    <group count="0" start="96" size="32">
      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
    </group>
  </instruction>

1348
  <instruction name="3DSTATE_GATHER_CONSTANT_VS" bias="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
    <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="52"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Constant Buffer Valid" start="48" end="63" type="uint"/>
    <field name="Constant Buffer Binding Table Block" start="44" end="47" type="uint"/>
    <field name="Update Gather Table Only" start="33" end="33" type="uint">
      <value name="Commit Gather" value="0"/>
      <value name="Non-Commit Gather" value="1"/>
    </field>
    <field name="DX9 On-Die Register Read Enable" start="32" end="32" type="bool"/>
    <field name="Gather Buffer Offset" start="70" end="86" type="offset"/>
    <field name="Constant Buffer Dx9 Generate Stall" start="69" end="69" type="bool"/>
    <field name="Constant Buffer Dx9 Enable" start="68" end="68" type="bool"/>
    <field name="On-Die Table" start="67" end="67" type="uint">
      <value name="Load" value="0"/>
      <value name="Read" value="1"/>
    </field>
    <group count="0" start="96" size="32">
      <field name="Entry_0" start="0" end="15" type="GATHER_CONSTANT_ENTRY"/>
      <field name="Entry_1" start="16" end="31" type="GATHER_CONSTANT_ENTRY"/>
    </group>
  </instruction>

1374
  <instruction name="3DSTATE_GATHER_POOL_ALLOC" bias="2" length="4" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1375
1376
1377
1378
1379
1380
1381
    <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="26"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="2"/>
    <field name="Gather Pool Base Address" start="44" end="95" type="address"/>
    <field name="Gather Pool Enable" start="43" end="43" type="bool"/>
1382
    <field name="MOCS" start="32" end="38" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1383
1384
1385
    <field name="Gather Pool Buffer Size" start="108" end="127" type="uint"/>
  </instruction>

1386
  <instruction name="3DSTATE_GS" bias="2" length="10" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
    <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="8"/>
    <field name="Kernel Start Pointer" start="38" end="95" type="offset"/>
    <field name="Single Program Flow" start="127" end="127" type="bool"/>
    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
    <field name="Sampler Count" start="123" end="125" 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="114" end="121" type="uint"/>
    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
      <value name="High" value="1"/>
    </field>
    <field name="Floating Point Mode" start="112" end="112" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="Alternate" value="1"/>
    </field>
    <field name="Illegal Opcode Exception Enable" start="109" end="109" type="bool"/>
    <field name="Accesses UAV" start="108" end="108" type="bool"/>
    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
    <field name="Expected Vertex Count" start="96" end="101" type="uint"/>
    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
    <field name="Per-Thread Scratch Space" start="128" end="131" type="uint"/>
    <field name="Dispatch GRF Start Register For URB Data [5:4]" start="221" end="222" type="uint"/>
    <field name="Output Vertex Size" start="215" end="220" type="uint"/>
    <field name="Output Topology" start="209" end="214" type="3D_Prim_Topo_Type"/>
    <field name="Vertex URB Entry Read Length" start="203" end="208" type="uint"/>
    <field name="Include Vertex Handles" start="202" end="202" type="bool"/>
    <field name="Vertex URB Entry Read Offset" start="196" end="201" type="uint"/>
    <field name="Dispatch GRF Start Register For URB Data" start="192" end="195" type="uint"/>
    <field name="Control Data Header Size" start="244" end="247" type="uint"/>
    <field name="Instance Control" start="239" end="243" type="uint"/>
    <field name="Default Stream Id" start="237" end="238" type="uint"/>
    <field name="Dispatch Mode" start="235" end="236" type="uint" prefix="DISPATCH_MODE">
      <value name="SIMD8" value="3"/>
    </field>
    <field name="Statistics Enable" start="234" end="234" type="bool"/>
    <field name="Invocations Increment Value" start="229" end="233" type="uint"/>
    <field name="Include Primitive ID" start="228" end="228" type="bool"/>
    <field name="Hint" start="227" end="227" type="uint"/>
    <field name="Reorder Mode" start="226" end="226" type="uint">
      <value name="LEADING" value="0"/>
      <value name="TRAILING" value="1"/>
    </field>
    <field name="Discard Adjacency" start="225" end="225" type="bool"/>
    <field name="Enable" start="224" end="224" type="bool"/>
    <field name="Control Data Format" start="287" end="287" type="uint">
      <value name="CUT" value="0"/>
      <value name="SID" value="1"/>
    </field>
    <field name="Static Output" start="286" end="286" type="bool"/>
    <field name="Static Output Vertex Count" start="272" end="282" type="uint"/>
    <field name="Maximum Number of Threads" start="256" end="264" type="uint"/>
    <field name="Vertex URB Entry Output Read Offset" start="309" end="314" type="uint"/>
    <field name="Vertex URB Entry Output Length" start="304" end="308" type="uint"/>
    <field name="User Clip Distance Clip Test Enable Bitmask" start="296" end="303" type="uint"/>
    <field name="User Clip Distance Cull Test Enable Bitmask" start="288" end="295" type="uint"/>
  </instruction>

1453
  <instruction name="3DSTATE_HIER_DEPTH_BUFFER" bias="2" length="5" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1454
1455
1456
1457
1458
    <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="3"/>
1459
    <field name="MOCS" start="57" end="63" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
    <field name="Tiled Resource Mode" start="55" end="56" type="uint">
      <value name="NONE" value="0"/>
      <value name="TILEYF" value="1"/>
      <value name="TILEYS" value="2"/>
    </field>
    <field name="Surface Pitch" start="32" end="48" type="uint"/>
    <field name="Surface Base Address" start="64" end="127" type="address"/>
    <field name="Surface QPitch" start="128" end="142" type="uint"/>
  </instruction>

1470
  <instruction name="3DSTATE_HS" bias="2" length="9" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
    <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="7"/>
    <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="Thread Dispatch Priority" start="49" end="49" type="uint">
      <value name="High" 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="Software Exception Enable" start="44" end="44" type="bool"/>
    <field name="Enable" start="95" end="95" type="bool"/>
    <field name="Statistics Enable" start="93" end="93" type="bool"/>
    <field name="Maximum Number of Threads" start="72" end="80" type="uint"/>
    <field name="Instance Count" start="64" end="67" type="uint"/>
    <field name="Kernel Start Pointer" start="102" end="159" type="offset"/>
    <field name="Scratch Space Base Pointer" start="170" end="223" type="address"/>
    <field name="Per-Thread Scratch Space" start="160" end="163" type="uint"/>
    <field name="Dispatch GRF Start Register For URB Data [5]" start="252" end="252" type="uint"/>
    <field name="Single Program Flow" start="251" end="251" type="bool"/>
    <field name="Vector Mask Enable" start="250" end="250" type="bool"/>
    <field name="Accesses UAV" start="249" end="249" type="bool"/>
    <field name="Include Vertex Handles" start="248" end="248" type="bool"/>
    <field name="Dispatch GRF Start Register For URB Data" start="243" end="247" type="uint"/>
    <field name="Dispatch Mode" start="241" end="242" type="uint" prefix="DISPATCH_MODE">
      <value name="SINGLE_PATCH" value="0"/>
      <value name="8_PATCH" value="2"/>
    </field>
    <field name="Vertex URB Entry Read Length" start="235" end="240" type="uint"/>
    <field name="Vertex URB Entry Read Offset" start="228" end="233" type="uint"/>
    <field name="Include Primitive ID" start="224" end="224" type="bool"/>
  </instruction>

1515
  <instruction name="3DSTATE_INDEX_BUFFER" bias="2" length="5" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
    <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"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="3"/>
    <field name="Index Format" start="40" end="41" type="uint" prefix="INDEX">
      <value name="BYTE" value="0"/>
      <value name="WORD" value="1"/>
      <value name="DWORD" value="2"/>
    </field>
1526
    <field name="MOCS" start="32" end="38" type="uint"/>
Anuj Phogat's avatar
Anuj Phogat committed
1527
1528
1529
1530
    <field name="Buffer Starting Address" start="64" end="127" type="address"/>
    <field name="Buffer Size" start="128" end="159" type="uint"/>
  </instruction>

1531
  <instruction name="3DSTATE_LINE_STIPPLE" bias="2" length="3" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
    <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>

1545
  <instruction name="3DSTATE_MONOFILTER_SIZE" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1546
1547
1548
1549
1550
1551
1552
1553
1554
    <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>

1555
  <instruction name="3DSTATE_MULTISAMPLE" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
    <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="13"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pixel Position Offset Enable" start="37" end="37" type="bool"/>
    <field name="Pixel Location" start="36" end="36" type="uint">
      <value name="CENTER" value="0"/>
      <value name="UL_CORNER" value="1"/>
    </field>
    <field name="Number of Multisamples" start="33" end="35" type="uint"/>
  </instruction>

1569
  <instruction name="3DSTATE_POLY_STIPPLE_OFFSET" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1570
1571
1572
1573
1574
1575
1576
1577
1578
    <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>

1579
  <instruction name="3DSTATE_POLY_STIPPLE_PATTERN" bias="2" length="33" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
    <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>

1590
  <instruction name="3DSTATE_PS" bias="2" length="12" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
    <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="10"/>
    <field name="Kernel Start Pointer 0" start="38" end="95" type="offset"/>
    <field name="Single Program Flow" start="127" end="127" type="bool"/>
    <field name="Vector Mask Enable" start="126" end="126" type="bool"/>
    <field name="Sampler Count" start="123" end="125" 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="Single Precision Denormal Mode" start="122" end="122" type="uint">
      <value name="Flushed to Zero" value="0"/>
      <value name="Retained" value="1"/>
    </field>
    <field name="Binding Table Entry Count" start="114" end="121" type="uint"/>
    <field name="Thread Dispatch Priority" start="113" end="113" type="uint">
      <value name="High" value="1"/>
    </field>
    <field name="Floating Point Mode" start="112" end="112" type="uint">
      <value name="IEEE-754" value="0"/>
      <value name="Alternate" value="1"/>
    </field>
    <field name="Rounding Mode" start="110" end="111" 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="109" end="109" type="bool"/>
    <field name="Mask Stack Exception Enable" start="107" end="107" type="bool"/>
    <field name="Software Exception Enable" start="103" end="103" type="bool"/>
    <field name="Scratch Space Base Pointer" start="138" end="191" type="address"/>
    <field name="Per Thread Scratch Space" start="128" end="131" type="uint"/>
    <field name="Maximum Number of Threads Per PSD" start="215" end="223" type="uint"/>
    <field name="Push Constant Enable" start="203" end="203" type="bool"/>
    <field name="Render Target Fast Clear Enable" start="200" end="200" type="bool"/>
    <field name="Render Target Resolve Type" start="198" end="199" type="uint">
      <value name="RESOLVE_DISABLED" value="0"/>
      <value name="RESOLVE_PARTIAL" value="1"/>
      <value name="FAST_CLEAR_0" value="2"/>
      <value name="RESOLVE_FULL" value="3"/>
    </field>
    <field name="Position XY Offset Select" start="195" end="196" 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="194" end="194" type="bool"/>
    <field name="16 Pixel Dispatch Enable" start="193" end="193" type="bool"/>
    <field name="8 Pixel Dispatch Enable" start="192" end="192" type="bool"/>
    <field name="Dispatch GRF Start Register For Constant/Setup Data 0" start="240" end="246" type="uint"/>
    <field name="Dispatch GRF Start Register For Constant/Setup Data 1" start="232" end="238" type="uint"/>
    <field name="Dispatch GRF Start Register For Constant/Setup Data 2" start="224" end="230" type="uint"/>
    <field name="Kernel Start Pointer 1" start="262" end="319" type="offset"/>
    <field name="Kernel Start Pointer 2" start="326" end="383" type="offset"/>
  </instruction>

1653
  <instruction name="3DSTATE_PS_BLEND" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
    <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="77"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Alpha To Coverage Enable" start="63" end="63" type="bool"/>
    <field name="Has Writeable RT" start="62" end="62" type="bool"/>
    <field name="Color Buffer Blend Enable" start="61" end="61" type="bool"/>
    <field name="Source Alpha Blend Factor" start="56" end="60" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Destination Alpha Blend Factor" start="51" end="55" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Source Blend Factor" start="46" end="50" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Destination Blend Factor" start="41" end="45" type="3D_Color_Buffer_Blend_Factor"/>
    <field name="Alpha Test Enable" start="40" end="40" type="bool"/>
    <field name="Independent Alpha Blend Enable" start="39" end="39" type="bool"/>
  </instruction>

1670
  <instruction name="3DSTATE_PS_EXTRA" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
    <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="79"/>
    <field name="DWord Length" start="0" end="7" type="uint" default="0"/>
    <field name="Pixel Shader Valid" start="63" end="63" type="bool"/>
    <field name="Pixel Shader Does not write to RT" start="62" end="62" type="bool"/>
    <field name="oMask Present to Render Target" start="61" end="61" type="bool"/>
    <field name="Pixel Shader Kills Pixel" start="60" end="60" type="bool"/>
    <field name="Pixel Shader Computed Depth Mode" start="58" end="59" type="uint">
      <value name="PSCDEPTH_OFF" value="0"/>
      <value name="PSCDEPTH_ON" value="1"/>
      <value name="PSCDEPTH_ON_GE" value="2"/>
      <value name="PSCDEPTH_ON_LE" value="3"/>
    </field>
    <field name="Force Computed Depth" start="57" end="57" type="bool"/>
    <field name="Pixel Shader Uses Source Depth" start="56" end="56" type="bool"/>
    <field name="Pixel Shader Uses Source W" start="55" end="55" type="bool"/>
    <field name="Pixel Shader Requires Source Depth and/or W Plane Coefficients" start="53" end="53" type="bool"/>
    <field name="Pixel Shader Requires Perspective Bary Plane Coefficients" start="52" end="52" type="bool"/>
    <field name="Pixel Shader Requires Non-Perspective Bary Plane Coefficients" start="51" end="51" type="bool"/>
    <field name="Pixel Shader Requires Subpixel Sample Offsets" start="50" end="50" type="bool"/>
    <field name="Simple PS Hint" start="41" end="41" type="bool"/>
    <field name="Attribute Enable" start="40" end="40" type="bool"/>
    <field name="Pixel Shader Disables Alpha To Coverage" start="39" end="39" type="bool"/>
    <field name="Pixel Shader Is Per Sample" start="38" end="38" type="bool"/>
    <field name="Pixel Shader Computes Stencil" start="37" end="37" type="bool"/>
    <field name="Pixel Shader Pulls Bary" start="35" end="35" type="bool"/>
    <field name="Pixel Shader Has UAV" start="34" end="34" type="bool"/>
    <field name="Input Coverage Mask State" start="32" end="33" type="uint" prefix="ICMS">
      <value name="NONE" value="0"/>
      <value name="NORMAL" value="1"/>
      <value name="INNER_CONSERVATIVE" value="2"/>
      <value name="DEPTH_COVERAGE" value="3"/>
    </field>
  </instruction>

1708
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_DS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1709
1710
1711
1712
1713
1714
1715
1716
1717
    <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="52" type="uint"/>
    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
  </instruction>

1718
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_GS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1719
1720
1721
1722
1723
1724
1725
1726
1727
    <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="52" type="uint"/>
    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
  </instruction>

1728
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_HS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1729
1730
1731
1732
1733
1734
1735
1736
1737
    <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="52" type="uint"/>
    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
  </instruction>

1738
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_PS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1739
1740
1741
1742
1743
1744
1745
1746
1747
    <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="52" type="uint"/>
    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
  </instruction>

1748
  <instruction name="3DSTATE_PUSH_CONSTANT_ALLOC_VS" bias="2" length="2" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1749
1750
1751
1752
1753
1754
1755
1756
1757
    <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="52" type="uint"/>
    <field name="Constant Buffer Size" start="32" end="37" type="uint"/>
  </instruction>

1758
  <instruction name="3DSTATE_RASTER" bias="2" length="5" engine="render">
Anuj Phogat's avatar
Anuj Phogat committed
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779