Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / broadcom / cle / v3d_packet_v33.xml
1 <vcxml gen="3.3" min_ver="33" max_ver="42">
2
3 <enum name="Compare Function" prefix="V3D_COMPARE_FUNC">
4 <value name="NEVER" value="0"/>
5 <value name="LESS" value="1"/>
6 <value name="EQUAL" value="2"/>
7 <value name="LEQUAL" value="3"/>
8 <value name="GREATER" value="4"/>
9 <value name="NOTEQUAL" value="5"/>
10 <value name="GEQUAL" value="6"/>
11 <value name="ALWAYS" value="7"/>
12 </enum>
13
14 <enum name="Blend Factor" prefix="V3D_BLEND_FACTOR">
15 <value name="ZERO" value="0"/>
16 <value name="ONE" value="1"/>
17 <value name="SRC_COLOR" value="2"/>
18 <value name="INV_SRC_COLOR" value="3"/>
19 <value name="DST_COLOR" value="4"/>
20 <value name="INV_DST_COLOR" value="5"/>
21 <value name="SRC_ALPHA" value="6"/>
22 <value name="INV_SRC_ALPHA" value="7"/>
23 <value name="DST_ALPHA" value="8"/>
24 <value name="INV_DST_ALPHA" value="9"/>
25 <value name="CONST_COLOR" value="10"/>
26 <value name="INV_CONST_COLOR" value="11"/>
27 <value name="CONST_ALPHA" value="12"/>
28 <value name="INV_CONST_ALPHA" value="13"/>
29 <value name="SRC_ALPHA_SATURATE" value="14"/>
30 </enum>
31
32 <enum name="Blend Mode" prefix="V3D_BLEND_MODE">
33 <value name="ADD" value="0"/>
34 <value name="SUB" value="1"/>
35 <value name="RSUB" value="2"/>
36 <value name="MIN" value="3"/>
37 <value name="MAX" value="4"/>
38 <value name="MUL" value="5"/>
39 <value name="SCREEN" value="6"/>
40 <value name="DARKEN" value="7"/>
41 <value name="LIGHTEN" value="8"/>
42 </enum>
43
44 <enum name="Stencil Op" prefix="V3D_STENCIL_OP">
45 <value name="ZERO" value="0"/>
46 <value name="KEEP" value="1"/>
47 <value name="REPLACE" value="2"/>
48 <value name="INCR" value="3"/>
49 <value name="DECR" value="4"/>
50 <value name="INVERT" value="5"/>
51 <value name="INCWRAP" value="6"/>
52 <value name="DECWRAP" value="7"/>
53 </enum>
54
55 <enum name="Primitive" prefix="V3D_PRIM">
56 <value name="POINTS" value="0"/>
57 <value name="LINES" value="1"/>
58 <value name="LINE_LOOP" value="2"/>
59 <value name="LINE_STRIP" value="3"/>
60 <value name="TRIANGLES" value="4"/>
61 <value name="TRIANGLE_STRIP" value="5"/>
62 <value name="TRIANGLE_FAN" value="6"/>
63 <value name="POINTS_TF" value="16"/>
64 <value name="LINES_TF" value="17"/>
65 <value name="LINE_LOOP_TF" value="18"/>
66 <value name="LINE_STRIP_TF" value="19"/>
67 <value name="TRIANGLES_TF" value="20"/>
68 <value name="TRIANGLE_STRIP_TF" value="21"/>
69 <value name="TRIANGLE_FAN_TF" value="22"/>
70 </enum>
71
72 <enum name="TMU Filter" prefix="V3D_TMU_FILTER" max_ver="33">
73 <!-- Names are mip filter, min filter, mag filter -->
74 <value name="MIN_LIN_MIP_NONE_MAG_LIN" value="0"/>
75 <value name="MIN_LIN_MIP_NONE_MAG_NEAR" value="1"/>
76 <value name="MIN_NEAR_MIP_NONE_MAG_LIN" value="2"/>
77 <value name="MIN_NEAR_MIP_NONE_MAG_NEAR" value="3"/>
78
79 <value name="MIN_NEAR_MIP_NEAR_MAG_LIN" value="4"/>
80 <value name="MIN_NEAR_MIP_NEAR_MAG_NEAR" value="5"/>
81 <value name="MIN_NEAR_MIP_LIN_MAG_LIN" value="6"/>
82 <value name="MIN_NEAR_MIP_LIN_MAG_NEAR" value="7"/>
83
84 <value name="MIN_LIN_MIP_NEAR_MAG_LIN" value="8"/>
85 <value name="MIN_LIN_MIP_NEAR_MAG_NEAR" value="9"/>
86 <value name="MIN_LIN_MIP_LIN_MAG_LIN" value="10"/>
87 <value name="MIN_LIN_MIP_LIN_MAG_NEAR" value="11"/>
88
89 <value name="ANISOTROPIC_2_1" value="12"/>
90 <value name="ANISOTROPIC_4_1" value="13"/>
91 <value name="ANISOTROPIC_8_1" value="14"/>
92 <value name="ANISOTROPIC_16_1" value="15"/>
93 </enum>
94
95 <enum name="Border Color Mode" prefix="V3D_BORDER_COLOR" min_ver="41">
96 <value name="0000" value="0"/>
97 <value name="0001" value="1"/>
98 <value name="1111" value="2"/>
99 <value name="Follows" value="7"/>
100 </enum>
101
102 <enum name="Wrap Mode" prefix="V3D_WRAP_MODE">
103 <value name="REPEAT" value="0"/>
104 <value name="CLAMP" value="1"/>
105 <value name="MIRROR" value="2"/>
106 <value name="BORDER" value="3"/>
107 <value name="MIRROR_ONCE" value="4"/>
108 </enum>
109
110 <enum name="TMU Op" prefix="V3D_TMU_OP" min_ver="41">
111 <value name="Write ADD, Read Prefetch" value="0"/>
112 <value name="Write SUB, Read Clear" value="1"/>
113 <value name="Write XCHG, Read Flush" value="2"/>
114 <value name="Write CMPXCHG, Read Flush" value="3"/>
115 <value name="Write UMIN, Full L1 Clear" value="4"/>
116 <value name="Write UMAX" value="5"/>
117 <value name="Write SMIN" value="6"/>
118 <value name="Write SMAX" value="7"/>
119 <value name="Write AND, Read INC" value="8"/>
120 <value name="Write OR, Read DEC" value="9"/>
121 <value name="Write XOR, Read NOT" value="10"/>
122 <value name="Regular" value="15"/>
123 </enum>
124
125 <enum name="Varying Flags Action" prefix="V3D_VARYING_FLAGS_ACTION">
126 <value name="unchanged" value="0"/>
127 <value name="zeroed" value="1"/>
128 <value name="set" value="2"/>
129 </enum>
130
131 <enum name="Memory Format" prefix="V3D_MEMORY_FORMAT">
132 <value name="Raster" value="0"/>
133 <value name="Lineartile" value="1"/>
134 <value name="UB-linear (1 UIF block wide)" value="2"/>
135 <value name="UB-linear (2 UIF blocks wide)" value="3"/>
136 <value name="UIF (No XOR)" value="4"/>
137 <value name="UIF (XOR)" value="5"/>
138 </enum>
139
140 <enum name="Decimate Mode" prefix="V3D_DECIMATE_MODE">
141 <value name="sample 0" value="0"/>
142 <value name="4x" value="1"/>
143 <value name="all samples" value="3"/>
144 </enum>
145
146 <enum name="Internal Type" prefix="V3D_INTERNAL_TYPE">
147 <value name="8i" value="0"/>
148 <value name="8ui" value="1"/>
149 <value name="8" value="2"/>
150 <value name="16i" value="4"/>
151 <value name="16ui" value="5"/>
152 <value name="16f" value="6"/>
153 <value name="32i" value="8"/>
154 <value name="32ui" value="9"/>
155 <value name="32f" value="10"/>
156 </enum>
157
158 <enum name="Internal BPP" prefix="V3D_INTERNAL_BPP">
159 <value name="32" value="0"/>
160 <value name="64" value="1"/>
161 <value name="128" value="2"/>
162 </enum>
163
164 <enum name="Internal Depth Type" prefix="V3D_INTERNAL_TYPE">
165 <value name="depth_32f" value="0"/>
166 <value name="depth_24" value="1"/>
167 <value name="depth_16" value="2"/>
168 </enum>
169
170 <enum name="Render Target Clamp" prefix="V3D_RENDER_TARGET_CLAMP" min_ver="41">
171 <value name="none" value="0"/> <!-- no clamping -->
172 <value name="norm" value="1"/> <!-- [0,1] for f16 -->
173 <value name="pos" value="2"/> <!-- [0, for f16 -->
174 <value name="int" value="3" min_ver="42"/> <!-- clamp to integer RT's range -->
175 </enum>
176
177 <!---
178 CL cache flush commands are not fully documented and subject to a
179 number of hardware issues that make them unreliable. Specifically:
180
181 * The L2T flush command has a 'deferred' bit to ensure the command
182 doesn't execute until all other commands in the CL have completed,
183 which is required to achieve the expected behavior. This bit comes
184 right after the mode field.
185
186 * GFXH-1895: Overlapping write combiner flush requests from different
187 sources are not safe. If two flush requests from different sources
188 overlap, the TMU may send the done signal for the first flush back to
189 the wrong source.
190
191 * GFXH-1888: It is possible for a regular access to sneak past a
192 pending L2T flush. If an L2T flush is requested via L2TCACTL while a
193 CLE-requested flush is in progress, it is possible for a regular
194 access to sneak through in the gap between the CLE flush and the
195 L2TCACTL flush.
196
197 * GFXH-1897: Writing 0 to L2TCACTL clobbers in-progress flush status.
198 Writing 0 to TMUWCF (bit 8) clears the TMUWCF bit, even if a write
199 combiner flush is still in progress. Similarly, writing 0 to L2TFLS
200 (bit 0) clears the L2TFLS bit, even if an L2T flush is still in
201 progress. Writing 0 to L2TFLM (bits 1..2) overwrites the flush mode,
202 even if a flush is not being requested (ie 0 is being written to
203 L2TFLS). If the last flush has not yet made it through the L2T
204 arbiter, this will change the mode of that flush.
205
206 GFXH-1888 and GFXH-1897 are problematic when we don't wait for L2T
207 flushes requested via LATCACTL to complete immediately.
208
209 Because of this, the driver will do all of its flushing via the kernel
210 using L2TCACTL instead of using the CL commands.
211 -->
212 <enum name="L2T Flush Mode" prefix="L2T_FLUSH_MODE">
213 <!-- invalidates all cache lines -->
214 <value name="flush" value="0"/>
215 <!-- Invalidates dirty cachelines without writeback -->
216 <value name="clear" value="1"/>
217 <!-- Writes back dirty cachelines and marks them clean, without
218 invalidating -->
219 <value name="clean" value="2"/>
220 </enum>
221
222 <enum name="Output Image Format" prefix="V3D_OUTPUT_IMAGE_FORMAT">
223 <!--
224 Formats appear with their channels named from the low bits to
225 the high bits.
226 -->
227 <value name="srgb8_alpha8" value="0"/>
228 <value name="srgb" value="1"/>
229 <value name="rgb10_a2ui" value="2"/>
230 <value name="rgb10_a2" value="3"/>
231 <value name="abgr1555" value="4"/>
232 <value name="alpha-masked abgr1555" value="5"/>
233 <value name="abgr4444" value="6"/>
234 <value name="bgr565" value="7"/>
235 <value name="r11f_g11f_b10f" value="8"/>
236 <value name="rgba32f" value="9"/>
237 <value name="rg32f" value="10"/>
238 <value name="r32f" value="11"/>
239 <value name="rgba32i" value="12"/>
240 <value name="rg32i" value="13"/>
241 <value name="r32i" value="14"/>
242 <value name="rgba32ui" value="15"/>
243 <value name="rg32ui" value="16"/>
244 <value name="r32ui" value="17"/>
245 <value name="rgba16f" value="18"/>
246 <value name="rg16f" value="19"/>
247 <value name="r16f" value="20"/>
248 <value name="rgba16i" value="21"/>
249 <value name="rg16i" value="22"/>
250 <value name="r16i" value="23"/>
251 <value name="rgba16ui" value="24"/>
252 <value name="rg16ui" value="25"/>
253 <value name="r16ui" value="26"/>
254 <value name="rgba8" value="27"/>
255 <value name="rgb8" value="28"/>
256 <value name="rg8" value="29"/>
257 <value name="r8" value="30"/>
258 <value name="rgba8i" value="31"/>
259 <value name="rg8i" value="32"/>
260 <value name="r8i" value="33"/>
261 <value name="rgba8ui" value="34"/>
262 <value name="rg8ui" value="35"/>
263 <value name="r8ui" value="36"/>
264 <value name="srgbx8" value="37" max_ver="33"/>
265 <value name="rgbx8" value="38" max_ver="33"/>
266 <value name="bstc" value="39" min_ver="41"/>
267 <value name="d32f" value="40" min_ver="41"/>
268 <value name="d24" value="41" min_ver="41"/>
269 <value name="d16" value="42" min_ver="41"/>
270 <value name="d24s8" value="43" min_ver="41"/>
271 <value name="s8" value="44" min_ver="41"/>
272 </enum>
273
274 <enum name="Z/S Output Image Format" prefix="V3D_OUTPUT_IMAGE_FORMAT_ZS" max_ver="33">
275 <value name="depth_component32f" value="0"/>
276 <value name="depth_component24" value="1"/> <!-- depth low, pad high -->
277 <value name="depth_component16" value="2"/>
278 <value name="depth24_stencil8" value="3"/> <!-- stencil low, depth high -->
279 </enum>
280
281 <enum name="Dither Mode" prefix="V3D_DITHER_MODE">
282 <value name="None" value="0"/>
283 <value name="RGB" value="1"/>
284 <value name="A" value="2"/>
285 <value name="RGBA" value="3"/>
286 </enum>
287
288 <enum name="Pack Mode" prefix="V3D_PACK_MODE">
289 <value name="16-way" value="0"/>
290 <value name="8-way" value="1"/>
291 <value name="4-way" value="2"/>
292 <value name="1-way" value="3"/>
293 </enum>
294
295 <enum name="TCS flush mode" prefix="V3D_TCS_FLUSH_MODE">
296 <value name="fully packed" value="0"/>
297 <value name="single patch" value="1"/>
298 <value name="packed complete patches" value="2"/>
299 </enum>
300
301 <enum name="Primitve counters" prefix="V3D_PRIM_COUNTS">
302 <value name="tf_words_buffer0" value="0"/>
303 <value name="tf_words_buffer1" value="1"/>
304 <value name="tf_words_buffer2" value="2"/>
305 <value name="tf_words_buffer3" value="3"/>
306 <value name="written" value="4"/>
307 <value name="tf_written" value="5"/>
308 <value name="tf_overflow" value="6"/>
309 </enum>
310
311 <packet code="0" name="Halt"/>
312 <packet code="1" name="NOP"/>
313 <packet code="4" name="Flush"/>
314 <packet code="5" name="Flush All State"/>
315 <packet code="6" name="Start Tile Binning"/>
316 <packet code="7" shortname="incr_semaphore" name="Increment Semaphore"/>
317 <packet code="8" shortname="wait_semaphore" name="Wait on Semaphore"/>
318 <packet code="9" shortname="wait_prev_frame" name="Wait for previous frame"/>
319 <packet code="10" shortname="enable_z_only" name="Enable Z-only rendering" cl="R"/>
320 <packet code="11" shortname="disable_z_only" name="Disable Z-only rendering" cl="R"/>
321 <packet code="12" shortname="end_z_only" name="End of Z-only rendering in frame"/>
322 <packet code="13" shortname="end_render" name="End of rendering"/>
323
324 <packet code="14" shortname="wait_transform_feedback" name="Wait for transform feedback" cl="B">
325 <field name="Block count" size="8" start="0" type="uint"/>
326 </packet>
327
328 <packet code="15" shortname="branch_sub_autochain" name="Branch to auto-chained sub-list">
329 <field name="address" size="32" start="0" type="address"/>
330 </packet>
331
332 <packet code="16" name="Branch">
333 <field name="address" size="32" start="0" type="address"/>
334 </packet>
335
336 <packet code="17" shortname="branch_sub" name="Branch to Sub-list">
337 <field name="address" size="32" start="0" type="address"/>
338 </packet>
339
340 <packet code="18" shortname="return" name="Return from sub-list"/>
341 <packet code="19" shortname="clear_vcd_cache" name="Flush VCD cache"/>
342
343 <packet code="20" shortname="generic_tile_list" name="Start Address of Generic Tile List">
344 <field name="start" size="32" start="0" type="address"/>
345 <field name="end" size="32" start="32" type="address"/>
346 </packet>
347
348 <packet code="21" shortname="branch_implicit_tile" name="Branch to Implicit Tile List">
349 <field name="tile list set number" size="8" start="0" type="uint"/>
350 </packet>
351
352 <packet code="22" shortname="branch_explicit_supertile" name="Branch to Explicit Supertile">
353 <field name="Absolute address of explicit supertile render list" size="32" start="24" type="address"/>
354 <field name="explicit supertile number" size="8" start="16" type="uint"/>
355 <field name="row number" size="8" start="8" type="uint"/>
356 <field name="column number" size="8" start="0" type="uint"/>
357 </packet>
358
359 <packet code="23" shortname="supertile_coords" name="Supertile Coordinates">
360 <field name="row number in supertiles" size="8" start="8" type="uint"/>
361 <field name="column number in supertiles" size="8" start="0" type="uint"/>
362 </packet>
363
364 <packet code="24" shortname="store_subsample" name="Store Multi-Sample Resolved Tile Color Buffer" cl="R" max_ver="33"/>
365
366 <packet code="25" shortname="store_subsample_ex" name="Store Multi-Sample Resolved Tile Color Buffer (extended)" cl="R" max_ver="33">
367 <field name="Disable Color Buffer write" size="8" start="8" type="uint"/>
368 <field name="Enable Z write" size="1" start="7" type="bool"/>
369 <field name="Enable Stencil write" size="1" start="6" type="bool"/>
370 <!-- bit 5 unused -->
371 <field name="Disable Color buffer(s) clear on write" size="1" start="4" type="bool"/>
372 <field name="Disable Stencil buffer clear on write" size="1" start="3" type="bool"/>
373 <field name="Disable Z buffer clear on write" size="1" start="2" type="bool"/>
374 <field name="Disable fast opportunistic write out in multisample mode" size="1" start="1" type="bool"/>
375 <field name="Last Tile of Frame" size="1" start="0" type="bool"/>
376 </packet>
377
378 <packet code="25" shortname="clear" name="Clear Tile Buffers" cl="R" min_ver="41">
379 <field name="Clear Z/Stencil Buffer" size="1" start="1" type="bool"/>
380 <field name="Clear all Render Targets" size="1" start="0" type="bool"/>
381 </packet>
382
383 <packet code="26" shortname="load" name="Reload Tile Color Buffer" cl="R" max_ver="33">
384 <field name="Disable Color Buffer load" size="8" start="8" type="uint"/>
385 <field name="Enable Z load" size="1" start="7" type="bool"/>
386 <field name="Enable Stencil load" size="1" start="6" type="bool"/>
387 </packet>
388
389 <packet code="26" shortname="end_loads" name="End of Loads" cl="R" min_ver="41"/>
390
391 <packet code="27" shortname="end_tile" name="End of Tile Marker" cl="R"/>
392
393 <packet code="29" shortname="store_general" name="Store Tile Buffer General" cl="R" max_ver="33">
394 <field name="Address" size="24" start="24" type="address"/>
395 <field name="Padded height of output image in UIF blocks" size="13" start="11" type="uint"/>
396 <field name="XOR UIF" size="1" start="10" type="bool"/>
397 <field name="Last Tile of Frame" size="1" start="8" type="bool"/>
398 <field name="Disable Color buffer(s) clear on write" size="1" start="7" type="bool"/>
399 <field name="Disable Stencil buffer clear on write" size="1" start="6" type="bool"/>
400 <field name="Disable Z buffer clear on write" size="1" start="5" type="bool"/>
401 <field name="Raw Mode" size="1" start="4" type="bool"/>
402 <field name="Buffer to Store" size="4" start="0" type="uint">
403 <value name="Render target 0" value="0"/>
404 <value name="Render target 1" value="1"/>
405 <value name="Render target 2" value="2"/>
406 <value name="Render target 3" value="3"/>
407 <value name="None" value="8"/>
408 <value name="Z" value="9"/>
409 <value name="Stencil" value="10"/>
410 <value name="Z+Stencil" value="11"/>
411 </field>
412 </packet>
413
414 <packet code="29" shortname="store" name="Store Tile Buffer General" cl="R" min_ver="41">
415 <field name="Address" size="32" start="64" type="address"/>
416
417 <!-- used for y flip -->
418 <field name="Height" size="16" start="48" type="uint"/>
419
420 <!-- height in ub for UIF, byte stride for raster -->
421 <field name="Height in UB or Stride" size="20" start="28" type="uint"/>
422
423 <field name="R/B swap" size="1" start="20" type="bool"/>
424 <field name="Channel Reverse" size="1" start="19" type="bool"/>
425 <field name="Clear buffer being stored" size="1" start="18" type="bool"/>
426 <field name="Output Image Format" size="6" start="12" type="Output Image Format"/>
427
428 <field name="Decimate mode" size="2" start="10" type="Decimate Mode"/>
429
430 <field name="Dither Mode" size="2" start="8" type="Dither Mode"/>
431
432 <field name="Flip Y" size="1" start="7" type="bool"/>
433
434 <field name="Memory Format" size="3" start="4" type="Memory Format"/>
435 <field name="Buffer to Store" size="4" start="0" type="uint">
436 <value name="Render target 0" value="0"/>
437 <value name="Render target 1" value="1"/>
438 <value name="Render target 2" value="2"/>
439 <value name="Render target 3" value="3"/>
440 <value name="None" value="8"/>
441 <value name="Z" value="9"/>
442 <value name="Stencil" value="10"/>
443 <value name="Z+Stencil" value="11"/>
444 </field>
445 </packet>
446
447 <packet code="30" shortname="load_general" name="Load Tile Buffer General" cl="R" max_ver="33">
448 <field name="Address" size="24" start="24" type="address"/>
449 <field name="Padded height of output image in UIF blocks" size="13" start="11" type="uint"/>
450 <field name="XOR UIF" size="1" start="10" type="bool"/>
451 <field name="Raw Mode" size="1" start="4" type="bool"/>
452 <field name="Buffer to Load" size="4" start="0" type="uint">
453 <value name="Render target 0" value="0"/>
454 <value name="Render target 1" value="1"/>
455 <value name="Render target 2" value="2"/>
456 <value name="Render target 3" value="3"/>
457 <value name="None" value="8"/>
458 <value name="Z" value="9"/>
459 <value name="Stencil" value="10"/>
460 <value name="Z+Stencil" value="11"/>
461 </field>
462 </packet>
463
464 <packet code="30" shortname="load" name="Load Tile Buffer General" cl="R" min_ver="41">
465 <field name="Address" size="32" start="64" type="address"/>
466
467 <!-- used for y flip -->
468 <field name="Height" size="16" start="48" type="uint"/>
469
470 <!-- height in ub for UIF, byte stride for raster -->
471 <field name="Height in UB or Stride" size="20" start="28" type="uint"/>
472
473 <field name="R/B swap" size="1" start="20" type="bool"/>
474 <field name="Channel Reverse" size="1" start="19" type="bool"/>
475
476 <field name="Input Image Format" size="6" start="12" type="Output Image Format"/>
477
478 <field name="Decimate mode" size="2" start="10" type="Decimate Mode"/>
479
480 <field name="Flip Y" size="1" start="7" type="bool"/>
481
482 <field name="Memory Format" size="3" start="4" type="Memory Format"/>
483 <field name="Buffer to Load" size="4" start="0" type="uint">
484 <value name="Render target 0" value="0"/>
485 <value name="Render target 1" value="1"/>
486 <value name="Render target 2" value="2"/>
487 <value name="Render target 3" value="3"/>
488 <value name="None" value="8"/>
489 <value name="Z" value="9"/>
490 <value name="Stencil" value="10"/>
491 <value name="Z+Stencil" value="11"/>
492 </field>
493 </packet>
494
495 <packet code="31" shortname="tf_draw_flush_and_count" name="Transform Feedback Flush and Count"/>
496
497 <packet code="32" name="Indexed Prim List" cl="B" max_ver="33">
498 <field name="Minimum index" size="32" start="104" type="uint"/>
499 <field name="Enable Primitive Restarts" size="1" start="103" type="bool"/>
500 <field name="Maximum index" size="31" start="72" type="uint"/>
501 <field name="Address of Indices List" size="32" start="40" type="address"/>
502 <field name="Length" size="32" start="8" type="uint"/>
503
504 <field name="Index type" size="2" start="6" type="uint">
505 <value name="Index type 8-bit" value="0"/>
506 <value name="Index type 16-bit" value="1"/>
507 <value name="Index type 32-bit" value="2"/>
508 </field>
509
510 <field name="mode" size="5" start="0" type="Primitive"/>
511 </packet>
512
513 <packet code="32" name="Indexed Prim List" cl="B" min_ver="41">
514 <field name="Index Offset" size="32" start="40" type="uint"/>
515
516 <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
517 <field name="Length" size="31" start="8" type="uint"/>
518
519 <field name="Index type" size="2" start="6" type="uint">
520 <value name="Index type 8-bit" value="0"/>
521 <value name="Index type 16-bit" value="1"/>
522 <value name="Index type 32-bit" value="2"/>
523 </field>
524
525 <field name="mode" size="6" start="0" type="Primitive"/>
526 </packet>
527
528 <packet code="33" name="Indirect Indexed Instanced Prim List" cl="B" max_ver="33">
529 <field name="Stride in Multiples of 4 Bytes" size="8" start="104" type="uint"/>
530 <field name="Address of Indices List" size="32" start="72" type="address"/>
531 <field name="Address" size="32" start="40" type="address"/>
532 <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
533 <field name="Number of Draw Indirect Indexed Records" size="31" start="8" type="uint"/>
534
535 <field name="Index type" size="2" start="6" type="uint">
536 <value name="Index type 8-bit" value="0"/>
537 <value name="Index type 16-bit" value="1"/>
538 <value name="Index type 32-bit" value="2"/>
539 </field>
540
541 <field name="mode" size="6" start="0" type="Primitive"/>
542 </packet>
543
544 <packet code="33" name="Indirect Indexed Instanced Prim List" cl="B" min_ver="41">
545 <field name="Stride in Multiples of 4 Bytes" size="8" start="72" type="uint"/>
546 <field name="Address" size="32" start="40" type="address"/>
547 <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
548 <field name="Number of Draw Indirect Indexed Records" size="31" start="8" type="uint"/>
549
550 <field name="Index type" size="2" start="6" type="uint">
551 <value name="Index type 8-bit" value="0"/>
552 <value name="Index type 16-bit" value="1"/>
553 <value name="Index type 32-bit" value="2"/>
554 </field>
555
556 <field name="mode" size="6" start="0" type="Primitive"/>
557 </packet>
558
559 <packet code="34" name="Indexed Instanced Prim List" cl="B" max_ver="33">
560 <field name="Enable Primitive Restarts" size="1" start="135" type="bool"/>
561 <field name="Maximum index" size="31" start="104" type="uint"/>
562 <field name="Address of Indices List" size="32" start="72" type="address"/>
563 <field name="Number of Instances" size="32" start="40" type="uint"/>
564 <field name="Instance Length" size="32" start="8" type="uint"/>
565
566 <field name="Index type" size="2" start="6" type="uint">
567 <value name="Index type 8-bit" value="0"/>
568 <value name="Index type 16-bit" value="1"/>
569 <value name="Index type 32-bit" value="2"/>
570 </field>
571
572 <field name="mode" size="5" start="0" type="Primitive"/>
573 </packet>
574
575 <packet code="34" name="Indexed Instanced Prim List" cl="B" min_ver="41">
576 <field name="Index Offset" size="32" start="72" type="uint"/>
577 <field name="Number of Instances" size="32" start="40" type="uint"/>
578 <field name="Enable Primitive Restarts" size="1" start="39" type="bool"/>
579 <field name="Instance Length" size="31" start="8" type="uint"/>
580
581 <field name="Index type" size="2" start="6" type="uint">
582 <value name="Index type 8-bit" value="0"/>
583 <value name="Index type 16-bit" value="1"/>
584 <value name="Index type 32-bit" value="2"/>
585 </field>
586
587 <field name="mode" size="6" start="0" type="Primitive"/>
588 </packet>
589
590 <packet code="36" name="Vertex Array Prims" cl="B">
591 <field name="Index of First Vertex" size="32" start="40" type="uint"/>
592 <field name="Length" size="32" start="8" type="uint"/>
593
594 <field name="mode" size="8" start="0" type="Primitive"/>
595 </packet>
596
597 <packet code="37" name="Indirect Vertex Array Instanced Prims" cl="B">
598 <field name="Stride in Multiples of 4 Bytes" size="8" start="72" type="uint"/>
599 <field name="Address" size="32" start="40" type="address"/>
600 <field name="Number of Draw Indirect Array Records" size="32" start="8" type="uint"/>
601
602 <field name="mode" size="8" start="0" type="Primitive"/>
603 </packet>
604
605 <packet code="38" name="Vertex Array Instanced Prims" cl="B">
606 <field name="Index of First Vertex" size="32" start="72" type="uint"/>
607 <field name="Number of Instances" size="32" start="40" type="uint"/>
608 <field name="Instance Length" size="32" start="8" type="uint"/>
609
610 <field name="mode" size="8" start="0" type="Primitive"/>
611 </packet>
612
613 <packet code="39" name="Vertex Array Single Instance Prims" cl="B">
614 <field name="Index of First Vertex" size="32" start="72" type="uint"/>
615 <field name="Instance ID" size="32" start="40" type="uint"/>
616 <field name="Instance Length" size="32" start="8" type="uint"/>
617
618 <field name="mode" size="8" start="0" type="Primitive"/>
619 </packet>
620
621 <packet code="43" name="Base Vertex Base Instance" cl="B">
622 <field name="Base Instance" size="32" start="32" type="uint"/>
623
624 <field name="Base Vertex" size="32" start="0" type="uint"/>
625 </packet>
626
627 <packet code="44" name="Index Buffer Setup" cl="B" min_ver="41">
628 <field name="Address" size="32" start="0" type="address"/>
629 <field name="Size" size="32" start="32" type="uint"/>
630 </packet>
631
632 <packet code="54" name="Set InstanceID" cl="B" min_ver="41">
633 <field name="Instance ID" size="32" start="0" type="uint"/>
634 </packet>
635
636 <packet code="55" name="Set PrimitiveID" cl="B" min_ver="41">
637 <field name="Primitive ID" size="32" start="0" type="uint"/>
638 </packet>
639
640 <packet code="56" name="Prim List Format">
641 <field name="tri strip or fan" size="1" start="7" type="bool"/>
642 <field name="primitive type" size="6" start="0" type="uint">
643 <value name="List Points" value="0"/>
644 <value name="List Lines" value="1"/>
645 <value name="List Triangles" value="2"/>
646 </field>
647 </packet>
648
649 <packet code="57" name="Serial Number List Start">
650 <field name="address" size="26" start="6" type="address"/>
651 <field name="block size" size="2" start="0" type="uint">
652 <value name="block size 64b" value="0"/>
653 <value name="block size 128b" value="1"/>
654 <value name="block size 256b" value="2"/>
655 </field>
656 </packet>
657
658 <packet code="64" shortname="gl_shader" name="GL Shader State">
659 <field name="address" size="27" start="5" type="address"/>
660 <field name="number of attribute arrays" size="5" start="0" type="uint"/>
661 </packet>
662
663 <packet code="65" shortname="gl_t_shader" name="GL Shader State including TS" min_ver="41">
664 <field name="address" size="27" start="5" type="address"/>
665 <field name="number of attribute arrays" size="5" start="0" type="uint"/>
666 </packet>
667
668 <packet code="66" shortname="gl_g_shader" name="GL Shader State including GS" min_ver="41">
669 <field name="address" size="27" start="5" type="address"/>
670 <field name="number of attribute arrays" size="5" start="0" type="uint"/>
671 </packet>
672
673 <packet code="67" shortname="gl_tg_shader" name="GL Shader State including TS/GS" min_ver="41">
674 <field name="address" size="27" start="5" type="address"/>
675 <field name="number of attribute arrays" size="5" start="0" type="uint"/>
676 </packet>
677
678 <packet code="71" name="VCM Cache Size" min_ver="41">
679 <field name="Number of 16-vertex batches for rendering" size="4" start="4" type="uint"/>
680 <field name="Number of 16-vertex batches for binning" size="4" start="0" type="uint"/>
681 </packet>
682
683 <packet code="72" shortname="prim_counts_feedback" name="Primitive Counts Feedback">
684 <field name="address" size="27" start="5" type="address"/>
685 <field name="read/write 64byte" size="1" start="4" type="bool"/>
686 <field name="op" size="4" start="0" type="uint">
687 <!--
688 dword 0-3 are words written to TFB 0-3. 4 is prims generated, 5 is prims written, 6 is
689 prims overflowed
690 -->
691 <value name="store primitive counts" value="0"/>
692 <value name="store primitive counts and zero" value="1"/>
693 <!--
694 write 4 pairs of TFB state: remaining TFB space in buffer n, current address in buffer n
695 -->
696 <value name="store buffer state" value="2"/>
697 <value name="store buffer state CL" value="3"/>
698 <!--
699 Waits for buffer state stores to complete, then loads from
700 the given buffer state. This op can be offset by n to skip
701 waiting for the last n.
702 -->
703 <value name="load buffer state" value="8"/>
704 </field>
705 </packet>
706
707 <packet code="73" name="VCM Cache Size" max_ver="33">
708 <field name="Number of 16-vertex batches for rendering" size="4" start="4" type="uint"/>
709 <field name="Number of 16-vertex batches for binning" size="4" start="0" type="uint"/>
710 </packet>
711
712 <packet code="73" name="Transform Feedback Buffer" min_ver="41">
713 <field name="Buffer Address" size="32" start="32" type="address"/>
714 <field name="Buffer Size in 32-bit words" size="30" start="2" type="uint"/>
715 <field name="Buffer Number" size="2" start="0" type="uint"/>
716 </packet>
717
718 <packet code="74" name="Transform Feedback Enable" max_ver="33">
719 <field name="number of 32-bit Output Buffer Address following" size="3" start="8" type="uint"/>
720 <field name="number of 16-bit Output Data Specs following" size="5" start="11" type="uint"/>
721 </packet>
722
723 <packet code="74" name="Transform Feedback Specs" min_ver="41">
724 <field name="Enable" size="1" start="7" type="bool"/>
725 <field name="Number of 16-bit Output Data Specs following" size="5" start="0" type="uint"/>
726 </packet>
727
728 <packet code="75" name="Flush Transform Feedback Data"/>
729
730 <packet code="76" name="L1 Cache Flush Control">
731 <field name="TMU Config Cache Clear" size="4" start="12" type="uint"/>
732 <field name="TMU Data Cache Clear" size="4" start="8" type="uint"/>
733 <field name="Uniforms Cache Clear" size="4" start="4" type="uint"/>
734 <field name="Instruction Cache Clear" size="4" start="0" type="uint"/>
735 </packet>
736
737 <packet code="77" name="L2T Cache Flush Control">
738 <field name="L2T Flush Mode" size="4" start="64" type="L2T Flush Mode"/>
739 <field name="L2T Flush End" size="32" start="32" type="address"/>
740 <field name="L2T Flush Start" size="32" start="0" type="address"/>
741 </packet>
742
743 <struct name="Transform Feedback Output Data Spec" max_ver="33">
744 <field name="First Shaded Vertex Value to output" size="8" start="0" type="uint"/>
745 <field name="Number of consecutive Vertex Values to output as 32-bit values" size="4" start="8" type="uint" minus_one="true"/>
746 <field name="Output Buffer to write to" size="2" start="12" type="uint"/>
747 </struct>
748
749 <struct name="Transform Feedback Output Data Spec" min_ver="41">
750 <field name="First Shaded Vertex Value to output" size="8" start="0" type="uint"/>
751 <field name="Number of consecutive Vertex Values to output as 32-bit values" size="4" start="8" type="uint" minus_one="true"/>
752 <field name="Output Buffer to write to" size="2" start="12" type="uint"/>
753 <field name="Stream number" size="2" start="14" type="uint"/>
754 </struct>
755
756 <struct name="Transform Feedback Output Address">
757 <field name="address" size="32" start="0" type="address"/>
758 </struct>
759
760 <packet code="80" name="Stencil Cfg">
761 <field name="Stencil Write Mask" size="8" start="32" type="uint"/>
762 <field name="Back Config" size="1" start="29" type="bool"/>
763 <field name="Front Config" size="1" start="28" type="bool"/>
764 <field name="Stencil Pass Op" size="3" start="25" type="Stencil Op"/>
765 <field name="Depth Test Fail Op" size="3" start="22" type="Stencil Op"/>
766 <field name="Stencil Test Fail Op" size="3" start="19" type="Stencil Op"/>
767 <field name="Stencil Test Function" size="3" start="16" type="Compare Function"/>
768 <field name="Stencil Test Mask" size="8" start="8" type="uint"/>
769 <field name="Stencil Ref Value" size="8" start="0" type="uint"/>
770 </packet>
771
772 <packet code="83" name="Blend Enables" min_ver="41">
773 <field name="Mask" size="8" start="0" type="uint"/>
774 </packet>
775
776 <packet code="84" name="Blend Cfg" max_ver="33">
777 <field name="Color blend dst factor" size="4" start="20" type="Blend Factor"/>
778 <field name="Color blend src factor" size="4" start="16" type="Blend Factor"/>
779 <field name="Color blend mode" size="4" start="12" type="Blend Mode"/>
780 <field name="Alpha blend dst factor" size="4" start="8" type="Blend Factor"/>
781 <field name="Alpha blend src factor" size="4" start="4" type="Blend Factor"/>
782 <field name="Alpha blend mode" size="4" start="0" type="Blend Mode"/>
783 </packet>
784
785 <packet code="84" name="Blend Cfg" min_ver="41">
786 <field name="Render Target Mask" size="4" start="24" type="uint"/>
787 <field name="Color blend dst factor" size="4" start="20" type="Blend Factor"/>
788 <field name="Color blend src factor" size="4" start="16" type="Blend Factor"/>
789 <field name="Color blend mode" size="4" start="12" type="Blend Mode"/>
790 <field name="Alpha blend dst factor" size="4" start="8" type="Blend Factor"/>
791 <field name="Alpha blend src factor" size="4" start="4" type="Blend Factor"/>
792 <field name="Alpha blend mode" size="4" start="0" type="Blend Mode"/>
793 </packet>
794
795 <packet code="86" shortname="blend_ccolor" name="Blend Constant Color">
796 <field name="Alpha (F16)" size="16" start="48" type="uint"/>
797 <field name="Blue (F16)" size="16" start="32" type="uint"/>
798 <field name="Green (F16)" size="16" start="16" type="uint"/>
799 <field name="Red (F16)" size="16" start="0" type="uint"/>
800 </packet>
801
802 <packet code="87" shortname="color_wmasks" name="Color Write Masks">
803 <field name="Mask" size="32" start="0" type="uint"/>
804 </packet>
805
806 <packet code="88" name="Zero All Centroid Flags" min_ver="41"/>
807
808 <packet code="89" name="Centroid Flags" min_ver="41">
809 <field name="Centroid Flags for varyings V0*24" size="24" start="8" type="uint"/>
810 <field name="Action for Centroid Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
811 <field name="Action for Centroid Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
812 <field name="Varying offset V0" size="4" start="0" type="uint"/>
813 </packet>
814
815 <packet code="91" name="Sample State" min_ver="41">
816 <field name="Coverage" size="16" start="16" type="f187"/>
817 <field name="Mask" size="4" start="0" type="uint"/>
818 </packet>
819
820 <packet code="92" shortname="occlusion_query_counter_enable" name="Occlusion Query Counter">
821 <field name="address" size="32" start="0" type="address"/>
822 </packet>
823
824 <packet code="96" name="Cfg Bits">
825 <field name="Direct3D Provoking Vertex" size="1" start="21" type="bool"/>
826 <field name="Direct3D 'Point-fill' mode" size="1" start="20" type="bool"/>
827 <field name="Blend enable" size="1" start="19" type="bool"/>
828 <field name="Stencil enable" size="1" start="18" type="bool"/>
829 <field name="Early Z updates enable" size="1" start="17" type="bool"/>
830 <field name="Early Z enable" size="1" start="16" type="bool"/>
831 <field name="Z updates enable" size="1" start="15" type="bool"/>
832 <field name="Depth-Test Function" size="3" start="12" type="Compare Function"/>
833 <field name="Direct3D Wireframe triangles mode" size="1" start="11" type="bool"/>
834 <field name="Rasterizer Oversample Mode" size="2" start="6" type="uint"/>
835 <field name="Line Rasterization" size="2" start="4" type="uint"/>
836 <field name="Enable Depth Offset" size="1" start="3" type="bool"/>
837 <field name="Clockwise Primitives" size="1" start="2" type="bool"/>
838 <field name="Enable Reverse Facing Primitive" size="1" start="1" type="bool"/>
839 <field name="Enable Forward Facing Primitive" size="1" start="0" type="bool"/>
840 </packet>
841
842 <packet code="97" shortname="zero_all_flatshade_flags" name="Zero All Flat Shade Flags"/>
843
844 <packet code="98" shortname="flatshade_flags" name="Flat Shade Flags">
845 <field name="Flat Shade Flags for varyings V0*24" size="24" start="8" type="uint"/>
846 <field name="Action for Flat Shade Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
847 <field name="Action for Flat Shade Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
848 <field name="Varying offset V0" size="4" start="0" type="uint"/>
849 </packet>
850
851 <packet code="99" shortname="zero_all_noperspective_flags" name="Zero All Non-perspective Flags" min_ver="41"/>
852
853 <packet code="100" shortname="noperspective_flags" name="Non-perspective Flags" min_ver="41">
854 <field name="Non-perspective Flags for varyings V0*24" size="24" start="8" type="uint"/>
855 <field name="Action for Non-perspective Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
856 <field name="Action for Non-perspective Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
857 <field name="Varying offset V0" size="4" start="0" type="uint"/>
858 </packet>
859
860 <packet code="104" name="Point size">
861 <field name="Point Size" size="32" start="0" type="float"/>
862 </packet>
863
864 <packet code="105" name="Line width">
865 <field name="Line width" size="32" start="0" type="float"/>
866 </packet>
867
868 <packet name="Depth Offset" code="106" max_ver="33">
869 <field name="Depth Offset Units" size="16" start="16" type="f187"/>
870 <field name="Depth Offset Factor" size="16" start="0" type="f187"/>
871 </packet>
872
873 <packet name="Depth Offset" code="106" min_ver="41">
874 <field name="Limit" size="32" start="32" type="float"/>
875 <field name="Depth Offset Units" size="16" start="16" type="f187"/>
876 <field name="Depth Offset Factor" size="16" start="0" type="f187"/>
877 </packet>
878
879 <packet shortname="clip" name="clip_window" code="107">
880 <field name="Clip Window Height in pixels" size="16" start="48" type="uint"/>
881 <field name="Clip Window Width in pixels" size="16" start="32" type="uint"/>
882 <field name="Clip Window Bottom Pixel Coordinate" size="16" start="16" type="uint"/>
883 <field name="Clip Window Left Pixel Coordinate" size="16" start="0" type="uint"/>
884 </packet>
885
886 <packet name="Viewport Offset" code="108" max_ver="33">
887 <field name="Viewport Centre Y-coordinate" size="32" start="32" type="s24.8"/>
888 <field name="Viewport Centre X-coordinate" size="32" start="0" type="s24.8"/>
889 </packet>
890
891 <packet name="Viewport Offset" code="108" min_ver="41">
892 <field name="Coarse Y" size="10" start="54" type="uint"/>
893 <field name="Viewport Centre Y-coordinate" size="22" start="32" type="s14.8"/>
894 <field name="Coarse X" size="10" start="22" type="uint"/>
895 <field name="Viewport Centre X-coordinate" size="22" start="0" type="s14.8"/>
896 </packet>
897
898 <packet shortname="clipz" name="Clipper Z min/max clipping planes" code="109">
899 <field name="Maximum Zw" size="32" start="32" type="float"/>
900 <field name="Minimum Zw" size="32" start="0" type="float"/>
901 </packet>
902
903 <packet shortname="clipper_xy" name="Clipper XY Scaling" code="110" cl="B">
904 <field name="Viewport Half-Height in 1/256th of pixel" size="32" start="32" type="float"/>
905 <field name="Viewport Half-Width in 1/256th of pixel" size="32" start="0" type="float"/>
906 </packet>
907
908 <packet shortname="clipper_z" name="Clipper Z Scale and Offset" code="111" cl="B">
909 <field name="Viewport Z Offset (Zc to Zs)" size="32" start="32" type="float"/>
910 <field name="Viewport Z Scale (Zc to Zs)" size="32" start="0" type="float"/>
911 </packet>
912
913 <packet name="Number of Layers" code="119" min_ver="41">
914 <field name="Number of Layers" size="8" start="0" type="uint" minus_one="true"/>
915 </packet>
916
917 <packet code="120" name="Tile Binning Mode Cfg (Part1)" max_ver="33">
918 <field name="Double-buffer in non-ms mode" size="1" start="63" type="bool"/>
919 <field name="Multisample Mode (4x)" size="1" start="62" type="bool"/>
920
921 <field name="Maximum BPP of all render targets" size="2" start="60" type="Internal BPP"/>
922
923 <field name="Number of Render Targets" size="4" start="56" type="uint"/>
924 <field name="Height (in tiles)" size="12" start="44" type="uint"/>
925 <field name="Width (in tiles)" size="12" start="32" type="uint"/>
926
927 <field name="Tile State Data Array Base Address" size="26" start="6" type="address"/>
928
929 <field name="tile allocation block size" size="2" start="4" type="uint">
930 <value name="tile allocation block size 64b" value="0"/>
931 <value name="tile allocation block size 128b" value="1"/>
932 <value name="tile allocation block size 256b" value="2"/>
933 </field>
934 <field name="tile allocation initial block size" size="2" start="2" type="uint">
935 <value name="tile allocation initial block size 64b" value="0"/>
936 <value name="tile allocation initial block size 128b" value="1"/>
937 <value name="tile allocation initial block size 256b" value="2"/>
938 </field>
939 <field name="auto-initialize tile state data array" size="1" start="1" type="bool" default="1"/>
940 <field name="sub-id" size="1" start="0" type="uint" default="0"/>
941 </packet>
942
943 <packet code="120" name="Tile Binning Mode Cfg" min_ver="41">
944
945 <field name="Height (in pixels)" size="16" start="48" type="uint" minus_one="true"/>
946 <field name="Width (in pixels)" size="16" start="32" type="uint" minus_one="true"/>
947
948 <field name="Double-buffer in non-ms mode" size="1" start="15" type="bool"/>
949 <field name="Multisample Mode (4x)" size="1" start="14" type="bool"/>
950
951 <field name="Maximum BPP of all render targets" size="2" start="12" type="uint">
952 <value name="Render target maximum 32bpp" value="0"/>
953 <value name="Render target maximum 64bpp" value="1"/>
954 <value name="Render target maximum 128bpp" value="2"/>
955 </field>
956
957 <field name="Number of Render Targets" size="4" start="8" type="uint" minus_one="true"/>
958
959 <field name="tile allocation block size" size="2" start="4" type="uint">
960 <value name="tile allocation block size 64b" value="0"/>
961 <value name="tile allocation block size 128b" value="1"/>
962 <value name="tile allocation block size 256b" value="2"/>
963 </field>
964 <field name="tile allocation initial block size" size="2" start="2" type="uint">
965 <value name="tile allocation initial block size 64b" value="0"/>
966 <value name="tile allocation initial block size 128b" value="1"/>
967 <value name="tile allocation initial block size 256b" value="2"/>
968 </field>
969 </packet>
970
971 <packet code="120" name="Tile Binning Mode Cfg (Part2)" cl="B" max_ver="33">
972 <field name="Tile Allocation Memory Address" size="32" start="32" type="address"/>
973 <field name="Tile Allocation Memory Size" size="32" start="0" type="uint"/>
974
975 <field name="sub-id" size="1" start="0" type="uint" default="1"/>
976 </packet>
977
978 <packet code="121" name="Tile Rendering Mode Cfg (Common)" cl="R" max_ver="33">
979 <field name="Disable Render Target Stores" size="8" start="56" type="uint"/>
980 <field name="Enable Z Store" size="1" start="55" type="bool"/>
981 <field name="Enable Stencil Store" size="1" start="54" type="bool"/>
982
983 <field name="Early-Z disable" size="1" start="46" type="bool"/>
984
985 <field name="Early-Z Test and Update Direction" size="1" start="45" type="uint">
986 <value name="Early-Z direction LT/LE" value="0"/>
987 <value name="Early-Z direction GT/GE" value="1"/>
988 </field>
989
990 <field name="Double-buffer in non-ms mode" size="1" start="43" type="bool"/>
991 <field name="Multisample Mode (4x)" size="1" start="42" type="bool"/>
992
993 <field name="Maximum BPP of all render targets" size="2" start="40" type="uint">
994 <value name="Render target maximum 32bpp" value="0"/>
995 <value name="Render target maximum 64bpp" value="1"/>
996 <value name="Render target maximum 128bpp" value="2"/>
997 </field>
998
999 <field name="Image Height (pixels)" size="16" start="24" type="uint"/>
1000 <field name="Image Width (pixels)" size="16" start="8" type="uint"/>
1001 <field name="Number of Render Targets" size="4" start="4" type="uint" minus_one="true"/>
1002
1003 <field name="sub-id" size="4" start="0" type="uint" default="0"/>
1004 </packet>
1005
1006 <packet code="121" name="Tile Rendering Mode Cfg (Common)" cl="R" min_ver="41">
1007 <field name="Pad" size="12" start="52" type="uint"/>
1008
1009 <field name="Early Depth/Stencil Clear" size="1" start="51" type="bool"/>
1010 <field name="Internal Depth Type" size="4" start="47" type="Internal Depth Type"/>
1011
1012 <field name="Early-Z disable" size="1" start="46" type="bool"/>
1013
1014 <field name="Early-Z Test and Update Direction" size="1" start="45" type="uint">
1015 <value name="Early-Z direction LT/LE" value="0"/>
1016 <value name="Early-Z direction GT/GE" value="1"/>
1017 </field>
1018
1019 <field name="Double-buffer in non-ms mode" size="1" start="43" type="bool"/>
1020 <field name="Multisample Mode (4x)" size="1" start="42" type="bool"/>
1021
1022 <field name="Maximum BPP of all render targets" size="2" start="40" type="Internal BPP"/>
1023
1024 <field name="Image Height (pixels)" size="16" start="24" type="uint"/>
1025 <field name="Image Width (pixels)" size="16" start="8" type="uint"/>
1026 <field name="Number of Render Targets" size="4" start="4" type="uint" minus_one="true"/>
1027
1028 <field name="sub-id" size="4" start="0" type="uint" default="0"/>
1029 </packet>
1030
1031 <packet code="121" name="Tile Rendering Mode Cfg (Color)" cl="R" max_ver="33">
1032 <field name="Address" size="32" start="32" type="address"/>
1033
1034 <field name="Pad" size="4" start="28" type="uint"/>
1035
1036 <field name="Flip Y" size="1" start="27" type="bool"/>
1037
1038 <field name="Memory Format" size="3" start="24" type="Memory Format"/>
1039
1040 <field name="Dither Mode" size="2" start="22" type="Dither Mode"/>
1041
1042 <field name="Output image format" size="6" start="16" type="Output Image Format"/>
1043
1044 <field name="Decimate mode" size="2" start="14" type="Decimate Mode"/>
1045
1046 <field name="Internal Type" size="4" start="10" type="Internal Type"/>
1047 <field name="Internal BPP" size="2" start="8" type="Internal BPP"/>
1048 <field name="Render Target Number" size="4" start="4" type="uint"/>
1049 <field name="sub-id" size="4" start="0" type="uint" default="2"/>
1050 </packet>
1051
1052 <packet code="121" name="Tile Rendering Mode Cfg (Color)" cl="R" min_ver="41">
1053
1054 <field name="Pad" size="28" start="34" type="uint"/>
1055
1056 <field name="Render Target 3 Clamp" size="2" start="32" type="Render Target Clamp"/>
1057 <field name="Render Target 3 Internal Type" size="4" start="30" type="Internal Type"/>
1058 <field name="Render Target 3 Internal BPP" size="2" start="28" type="Internal BPP"/>
1059
1060 <field name="Render Target 2 Clamp" size="2" start="26" type="Render Target Clamp"/>
1061 <field name="Render Target 2 Internal Type" size="4" start="22" type="Internal Type"/>
1062 <field name="Render Target 2 Internal BPP" size="2" start="20" type="Internal BPP"/>
1063
1064 <field name="Render Target 1 Clamp" size="2" start="18" type="Render Target Clamp"/>
1065 <field name="Render Target 1 Internal Type" size="4" start="14" type="Internal Type"/>
1066 <field name="Render Target 1 Internal BPP" size="2" start="12" type="Internal BPP"/>
1067
1068 <field name="Render Target 0 Clamp" size="2" start="10" type="Render Target Clamp"/>
1069 <field name="Render Target 0 Internal Type" size="4" start="6" type="Internal Type"/>
1070 <field name="Render Target 0 Internal BPP" size="2" start="4" type="Internal BPP"/>
1071
1072 <field name="sub-id" size="4" start="0" type="uint" default="1"/>
1073 </packet>
1074
1075 <packet code="121" name="Tile Rendering Mode Cfg (Z/Stencil)" cl="R" max_ver="33">
1076 <field name="Address" size="26" start="38" type="address"/>
1077
1078 <field name="Padded height of output image in UIF blocks" size="13" start="25" type="uint"/>
1079
1080 <field name="Memory Format" size="3" start="22" type="Memory Format"/>
1081
1082 <field name="Output image format" size="6" start="16" type="Z/S Output Image Format"/>
1083
1084 <field name="Decimate mode" size="2" start="14" type="uint"/>
1085
1086 <field name="Internal Type" size="4" start="10" type="Internal Depth Type"/>
1087
1088 <field name="Internal BPP (ignored)" size="2" start="8" type="uint"/>
1089 <!-- selects between Z/Stencil config packet and Separate Stencil packet. -->
1090 <field name="Z/Stencil ID" size="4" start="4" type="uint" default="0"/>
1091 <field name="sub-id" size="4" start="0" type="uint" default="1"/>
1092 </packet>
1093
1094 <packet code="121" name="Tile Rendering Mode Cfg (ZS Clear Values)" cl="R" max_ver="33">
1095 <field name="unused" size="16" start="48" type="uint"/>
1096
1097 <field name="Z Clear Value" size="32" start="16" type="float"/>
1098
1099 <field name="Stencil Clear Value" size="8" start="8" type="uint"/>
1100 <field name="sub-id" size="4" start="0" type="uint" default="3"/>
1101 </packet>
1102
1103 <packet code="121" name="Tile Rendering Mode Cfg (ZS Clear Values)" cl="R" min_ver="41">
1104 <field name="unused" size="16" start="48" type="uint"/>
1105
1106 <field name="Z Clear Value" size="32" start="16" type="float"/>
1107
1108 <field name="Stencil Clear Value" size="8" start="8" type="uint"/>
1109 <field name="sub-id" size="4" start="0" type="uint" default="2"/>
1110 </packet>
1111
1112 <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part1)" cl="R" max_ver="33">
1113 <!-- Express this as a 56-bit field? -->
1114 <field name="Clear Color next 24 bits" size="24" start="40" type="uint"/>
1115 <field name="Clear Color low 32 bits" size="32" start="8" type="uint"/>
1116
1117 <field name="Render Target number" size="4" start="4" type="uint"/>
1118 <field name="sub-id" size="4" start="0" type="uint" default="4"/>
1119 </packet>
1120
1121 <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part1)" cl="R" min_ver="41">
1122 <!-- Express this as a 56-bit field? -->
1123 <field name="Clear Color next 24 bits" size="24" start="40" type="uint"/>
1124 <field name="Clear Color low 32 bits" size="32" start="8" type="uint"/>
1125
1126 <field name="Render Target number" size="4" start="4" type="uint"/>
1127 <field name="sub-id" size="4" start="0" type="uint" default="3"/>
1128 </packet>
1129
1130 <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part2)" cl="R" max_ver="33">
1131 <!-- Express this as a 56-bit field? -->
1132 <field name="Clear Color mid-high 24 bits" size="24" start="40" type="uint"/>
1133 <field name="Clear Color mid-low 32 bits" size="32" start="8" type="uint"/>
1134
1135 <field name="Render Target number" size="4" start="4" type="uint"/>
1136 <field name="sub-id" size="4" start="0" type="uint" default="5"/>
1137 </packet>
1138
1139 <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part2)" cl="R" min_ver="41">
1140 <!-- Express this as a 56-bit field? -->
1141 <field name="Clear Color mid-high 24 bits" size="24" start="40" type="uint"/>
1142 <field name="Clear Color mid-low 32 bits" size="32" start="8" type="uint"/>
1143
1144 <field name="Render Target number" size="4" start="4" type="uint"/>
1145 <field name="sub-id" size="4" start="0" type="uint" default="4"/>
1146 </packet>
1147
1148 <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part3)" cl="R" max_ver="33">
1149 <field name="pad" size="11" start="53" type="uint"/>
1150 <field name="UIF padded height in UIF blocks" size="13" start="40" type="uint"/>
1151 <!-- image height is for Y flipping -->
1152 <field name="Raster Row Stride or Image Height in Pixels" size="16" start="24" type="uint"/>
1153 <field name="Clear Color high 16 bits" size="16" start="8" type="uint"/>
1154
1155 <field name="Render Target number" size="4" start="4" type="uint"/>
1156 <field name="sub-id" size="4" start="0" type="uint" default="6"/>
1157 </packet>
1158
1159 <packet code="121" name="Tile Rendering Mode Cfg (Clear Colors Part3)" cl="R" min_ver="41">
1160 <field name="pad" size="11" start="53" type="uint"/>
1161 <field name="UIF padded height in UIF blocks" size="13" start="40" type="uint"/>
1162 <!-- image height is for Y flipping -->
1163 <field name="Raster Row Stride or Image Height in Pixels" size="16" start="24" type="uint"/>
1164 <field name="Clear Color high 16 bits" size="16" start="8" type="uint"/>
1165
1166 <field name="Render Target number" size="4" start="4" type="uint"/>
1167 <field name="sub-id" size="4" start="0" type="uint" default="5"/>
1168 </packet>
1169
1170 <packet code="124" shortname="tile_coords" name="Tile Coordinates">
1171 <field name="tile row number" size="12" start="12" type="uint"/>
1172 <field name="tile column number" size="12" start="0" type="uint"/>
1173 </packet>
1174
1175 <packet code="122" name="Multicore Rendering Supertile Cfg" cl="R">
1176 <field name="Number of Bin Tile Lists" size="3" start="61" type="uint" minus_one="true"/>
1177 <field name="Supertile Raster Order" size="1" start="60" type="bool"/>
1178 <field name="Multicore Enable" size="1" start="56" type="bool"/>
1179
1180 <field name="Total Frame Height in Tiles" size="12" start="44" type="uint"/>
1181 <field name="Total Frame Width in Tiles" size="12" start="32" type="uint"/>
1182
1183 <field name="Total Frame Height in Supertiles" size="8" start="24" type="uint"/>
1184 <field name="Total Frame Width in Supertiles" size="8" start="16" type="uint"/>
1185
1186 <field name="Supertile Height in Tiles" size="8" start="8" type="uint" minus_one="true"/>
1187 <field name="Supertile Width in Tiles" size="8" start="0" type="uint" minus_one="true"/>
1188 </packet>
1189
1190 <packet code="123" shortname="multicore_rendering_tile_list_base" name="Multicore Rendering Tile List Set Base" cl="R">
1191 <field name="address" size="26" start="6" type="address"/>
1192 <field name="Tile List Set Number" size="4" start="0" type="uint"/>
1193 </packet>
1194
1195 <!-- add fields -->
1196 <packet code="125" shortname="implicit_tile_coords" name="Tile Coordinates Implicit"/>
1197
1198 <packet code="126" name="Tile List Initial Block Size">
1199 <field name="Use auto-chained tile lists" size="1" start="2" type="bool"/>
1200
1201 <field name="Size of first block in chained tile lists" size="2" start="0" type="uint">
1202 <value name="tile allocation block size 64b" value="0"/>
1203 <value name="tile allocation block size 128b" value="1"/>
1204 <value name="tile allocation block size 256b" value="2"/>
1205 </field>
1206 </packet>
1207
1208 <struct name="GL Shader State Record" max_ver="33">
1209 <field name="Point size in shaded vertex data" size="1" start="0" type="bool"/>
1210 <field name="Enable clipping" size="1" start="1" type="bool"/>
1211 <field name="Vertex ID read by coordinate shader" size="1" start="2" type="bool"/>
1212 <field name="Instance ID read by coordinate shader" size="1" start="3" type="bool"/>
1213 <field name="Vertex ID read by vertex shader" size="1" start="4" type="bool"/>
1214 <field name="Instance ID read by vertex shader" size="1" start="5" type="bool"/>
1215 <field name="Fragment shader does Z writes" size="1" start="6" type="bool"/>
1216 <field name="Turn off early-z test" size="1" start="7" type="bool"/>
1217 <field name="Coordinate shader has separate input and output VPM blocks" size="1" start="8" type="bool"/>
1218 <field name="Vertex shader has separate input and output VPM blocks" size="1" start="9" type="bool"/>
1219 <field name="Fragment shader uses real pixel centre W in addition to centroid W2" size="1" start="10" type="bool"/>
1220
1221 <field name="Number of varyings in Fragment Shader" size="8" start="2b" type="uint"/>
1222 <field name="Coordinate Shader output VPM segment size" size="8" start="4b" type="uint"/>
1223 <field name="Coordinate Shader input VPM segment size" size="8" start="5b" type="uint"/>
1224 <field name="Vertex Shader output VPM segment size" size="8" start="6b" type="uint"/>
1225 <field name="Vertex Shader input VPM segment size" size="8" start="7b" type="uint"/>
1226 <field name="Address of default attribute values" size="32" start="8b" type="address"/>
1227 <field name="Fragment Shader Code Address" size="29" start="99" type="address"/>
1228 <field name="Fragment Shader 2-way threadable" size="1" start="96" type="bool"/>
1229 <field name="Fragment Shader 4-way threadable" size="1" start="97" type="bool"/>
1230 <field name="Fragment Shader Propagate NaNs" size="1" start="98" type="bool"/>
1231 <field name="Fragment Shader Uniforms Address" size="32" start="16b" type="address"/>
1232 <field name="Vertex Shader Code Address" size="32" start="20b" type="address"/>
1233 <field name="Vertex Shader 2-way threadable" size="1" start="160" type="bool"/>
1234 <field name="Vertex Shader 4-way threadable" size="1" start="161" type="bool"/>
1235 <field name="Vertex Shader Propagate NaNs" size="1" start="162" type="bool"/>
1236 <field name="Vertex Shader Uniforms Address" size="32" start="24b" type="address"/>
1237 <field name="Coordinate Shader Code Address" size="32" start="28b" type="address"/>
1238 <field name="Coordinate Shader 2-way threadable" size="1" start="224" type="bool"/>
1239 <field name="Coordinate Shader 4-way threadable" size="1" start="225" type="bool"/>
1240 <field name="Coordinate Shader Propagate NaNs" size="1" start="226" type="bool"/>
1241 <field name="Coordinate Shader Uniforms Address" size="32" start="32b" type="address"/>
1242 </struct>
1243
1244 <struct name="GL Shader State Record" min_ver="41">
1245 <field name="Point size in shaded vertex data" size="1" start="0" type="bool"/>
1246 <field name="Enable clipping" size="1" start="1" type="bool"/>
1247
1248 <field name="Vertex ID read by coordinate shader" size="1" start="2" type="bool"/>
1249 <field name="Instance ID read by coordinate shader" size="1" start="3" type="bool"/>
1250 <field name="Base Instance ID read by coordinate shader" size="1" start="4" type="bool"/>
1251 <field name="Vertex ID read by vertex shader" size="1" start="5" type="bool"/>
1252 <field name="Instance ID read by vertex shader" size="1" start="6" type="bool"/>
1253 <field name="Base Instance ID read by vertex shader" size="1" start="7" type="bool"/>
1254
1255 <field name="Fragment shader does Z writes" size="1" start="8" type="bool"/>
1256 <field name="Turn off early-z test" size="1" start="9" type="bool"/>
1257 <field name="Coordinate shader has separate input and output VPM blocks" size="1" start="10" type="bool"/>
1258 <field name="Vertex shader has separate input and output VPM blocks" size="1" start="11" type="bool"/>
1259 <field name="Fragment shader uses real pixel centre W in addition to centroid W2" size="1" start="12" type="bool"/>
1260 <field name="Enable Sample Rate Shading" size="1" start="13" type="bool"/>
1261 <field name="Any shader reads hardware-written Primitive ID" size="1" start="14" type="bool"/>
1262 <field name="Insert Primitive ID as first varying to fragment shader" size="1" start="15" type="bool"/>
1263 <field name="Turn off scoreboard" size="1" start="16" type="bool"/>
1264 <field name="Do scoreboard wait on first thread switch" size="1" start="17" type="bool"/>
1265 <field name="Disable implicit point/line varyings" size="1" start="18" type="bool"/>
1266 <field name="No prim pack" size="1" start="19" type="bool"/>
1267
1268 <field name="Number of varyings in Fragment Shader" size="8" start="3b" type="uint"/>
1269
1270 <field name="Coordinate Shader output VPM segment size" size="4" start="4b" type="uint"/>
1271 <field name="Min Coord Shader output segments required in play in addition to VCM cache size" size="4" start="36" type="uint"/>
1272
1273 <field name="Coordinate Shader input VPM segment size" size="4" start="5b" type="uint"/>
1274 <field name="Min Coord Shader input segments required in play" size="4" start="44" type="uint" minus_one="true"/>
1275
1276 <field name="Vertex Shader output VPM segment size" size="4" start="6b" type="uint"/>
1277 <field name="Min Vertex Shader output segments required in play in addition to VCM cache size" size="4" start="52" type="uint"/>
1278
1279 <field name="Vertex Shader input VPM segment size" size="4" start="7b" type="uint"/>
1280 <field name="Min Vertex Shader input segments required in play" size="4" start="60" type="uint" minus_one="true"/>
1281
1282 <field name="Address of default attribute values" size="32" start="8b" type="address"/>
1283
1284 <field name="Fragment Shader Code Address" size="29" start="99" type="address"/>
1285 <field name="Fragment Shader 4-way threadable" size="1" start="96" type="bool"/>
1286 <field name="Fragment Shader start in final thread section" size="1" start="97" type="bool"/>
1287 <field name="Fragment Shader Propagate NaNs" size="1" start="98" type="bool"/>
1288 <field name="Fragment Shader Uniforms Address" size="32" start="16b" type="address"/>
1289
1290 <field name="Vertex Shader Code Address" size="29" start="163" type="address"/>
1291 <field name="Vertex Shader 4-way threadable" size="1" start="160" type="bool"/>
1292 <field name="Vertex Shader start in final thread section" size="1" start="161" type="bool"/>
1293 <field name="Vertex Shader Propagate NaNs" size="1" start="162" type="bool"/>
1294 <field name="Vertex Shader Uniforms Address" size="32" start="24b" type="address"/>
1295
1296 <field name="Coordinate Shader Code Address" size="29" start="227" type="address"/>
1297 <field name="Coordinate Shader 4-way threadable" size="1" start="224" type="bool"/>
1298 <field name="Coordinate Shader start in final thread section" size="1" start="225" type="bool"/>
1299 <field name="Coordinate Shader Propagate NaNs" size="1" start="226" type="bool"/>
1300 <field name="Coordinate Shader Uniforms Address" size="32" start="32b" type="address"/>
1301 </struct>
1302
1303 <struct name="Geometry Shader State Record" min_ver="41">
1304 <field name="Geometry Bin Mode Shader Code Address" size="29" start="3" type="address"/>
1305 <field name="Geometry Bin Mode Shader 4-way threadable" size="1" start="0" type="bool"/>
1306 <field name="Geometry Bin Mode Shader Start in final thread section" size="1" start="1" type="bool"/>
1307 <field name="Geometry Bin Mode Shader Propagate NaNs" size="1" start="2" type="bool"/>
1308 <field name="Geometry Bin Mode Shader Uniforms Address" size="32" start="4b" type="address"/>
1309 <field name="Geometry Render Mode Shader Code Address" size="29" start="67" type="address"/>
1310 <field name="Geometry Render Mode Shader 4-way threadable" size="1" start="64" type="bool"/>
1311 <field name="Geometry Render Mode Shader Start in final thread section" size="1" start="65" type="bool"/>
1312 <field name="Geometry Render Mode Shader Propagate NaNs" size="1" start="66" type="bool"/>
1313 <field name="Geometry Render Mode Shader Uniforms Address" size="32" start="12b" type="address"/>
1314 </struct>
1315
1316 <struct name="Tessellation Shader State Record" min_ver="41">
1317 <field name="Tessellation Bin Mode Control Shader Code Address" size="29" start="3" type="address"/>
1318 <field name="Tessellation Bin Mode Control Shader 4-way threadable" size="1" start="0" type="bool"/>
1319 <field name="Tessellation Bin Mode Control Shader Start in final thread section" size="1" start="1" type="bool"/>
1320 <field name="Tessellation Bin Mode Control Shader Propagate NaNs" size="1" start="2" type="bool"/>
1321 <field name="Tessellation Bin Mode Control Shader Uniforms Address" size="32" start="4b" type="address"/>
1322 <field name="Tessellation Render Mode Control Shader Code Address" size="29" start="67" type="address"/>
1323 <field name="Tessellation Render Mode Control Shader 4-way threadable" size="1" start="64" type="bool"/>
1324 <field name="Tessellation Render Mode Control Shader Start in final thread section" size="1" start="65" type="bool"/>
1325 <field name="Tessellation Render Mode Control Shader Propagate NaNs" size="1" start="66" type="bool"/>
1326 <field name="Tessellation Render Mode Control Shader Uniforms Address" size="32" start="12b" type="address"/>
1327
1328 <field name="Tessellation Bin Mode Evaluation Shader Code Address" size="29" start="131" type="address"/>
1329 <field name="Tessellation Bin Mode Evaluation Shader 4-way threadable" size="1" start="128" type="bool"/>
1330 <field name="Tessellation Bin Mode Evaluation Shader Start in final thread section" size="1" start="129" type="bool"/>
1331 <field name="Tessellation Bin Mode Evaluation Shader Propagate NaNs" size="1" start="130" type="bool"/>
1332 <field name="Tessellation Bin Mode Evaluation Shader Uniforms Address" size="32" start="20b" type="address"/>
1333 <field name="Tessellation Render Mode Evaluation Shader Code Address" size="29" start="195" type="address"/>
1334 <field name="Tessellation Render Mode Evaluation Shader 4-way threadable" size="1" start="192" type="bool"/>
1335 <field name="Tessellation Render Mode Evaluation Shader Start in final thread section" size="1" start="193" type="bool"/>
1336 <field name="Tessellation Render Mode Evaluation Shader Propagate NaNs" size="1" start="194" type="bool"/>
1337 <field name="Tessellation Render Mode Evaluation Shader Uniforms Address" size="32" start="28b" type="address"/>
1338 </struct>
1339
1340 <struct name="Tessellation/Geometry Common Params" min_ver="41">
1341 <field name="Tessellation Type" size="2" start="1" type="uint">
1342 <value name="Tessellation Type Triangle" value="0"/>
1343 <value name="Tessellation Type Quads" value="1"/>
1344 <value name="Tessellation Type Isolines" value="2"/>
1345 </field>
1346
1347 <field name="Tessellation point mode" size="1" start="3" type="bool"/>
1348
1349 <field name="Tessellation Edge Spacing" size="2" start="4" type="uint">
1350 <value name="Tessellation Edge Spacing Even" value="0"/>
1351 <value name="Tessellation Edge Spacing Fractional Even" value="1"/>
1352 <value name="Tessellation Edge Spacing Fractional Odd" value="2"/>
1353 </field>
1354
1355 <field name="Tessellation clockwise" size="1" start="6" type="bool"/>
1356
1357 <field name="Tessellation Invocations" size="5" start="12" type="uint"/> <!-- 0 == 32 -->
1358
1359 <field name="Geometry Shader output format" size="2" start="17" type="uint">
1360 <value name="Geometry Shader Points" value="0"/>
1361 <value name="Geometry Shader Line Strip" value="1"/>
1362 <value name="Geometry Shader Tri Strip" value="2"/>
1363 </field>
1364
1365 <field name="Geometry Shader Instances" size="5" start="19" type="uint"/> <!-- 0 == 32 -->
1366
1367 <!-- This field should not be filled, but we need it in the struct description so
1368 we don't compute an incorrect packet size, since it uses an full byte.
1369 -->
1370 <field name="Reserved" size="8" start="24" type="uint"/>
1371
1372 <!-- followed by "Tessellation/Geometry Shader Params" for bin, then render -->
1373 </struct>
1374
1375 <struct name="Tessellation/Geometry Shader Params">
1376 <field name="TCS Batch Flush Mode" size="2" start="0" type="TCS flush mode"/>
1377 <field name="Per-patch data column depth" size="4" start="2" type="uint"/> <!-- 8-dword units, 0==16 -->
1378
1379 <field name="TCS output segment size in sectors" size="6" start="8" type="uint"/>
1380 <field name="TCS output segment pack mode" size="2" start="14" type="Pack Mode"/>
1381
1382 <field name="TES output segment size in sectors" size="6" start="16" type="uint"/>
1383 <field name="TES output segment pack mode" size="2" start="22" type="Pack Mode"/>
1384
1385 <field name="GS output segment size in sectors" size="6" start="24" type="uint"/>
1386 <field name="GS output segment pack mode" size="2" start="30" type="Pack Mode"/>
1387
1388 <field name="TBG max patches per TCS batch" size="4" start="32" type="uint" minus_one="true"/>
1389 <field name="TBG max extra vertex segs for patches after first" size="2" start="36" type="uint"/>
1390 <field name="TBG min TCS output segments required in play" size="2" start="38" type="uint" minus_one="true"/>
1391 <field name="TBG min per-patch data segments required in play" size="3" start="40" type="uint" minus_one="true"/>
1392 <field name="TPG max patches per TES batch" size="4" start="45" type="uint" minus_one="true"/>
1393 <field name="TPG max vertex segments per TES batch" size="2" start="49" type="uint"/>
1394 <field name="TPG max TCS output segments per TES batch" size="3" start="51" type="uint" minus_one="true"/>
1395 <field name="TPG min TES output segments required in play" size="3" start="54" type="uint" minus_one="true"/>
1396 <field name="GBG max TES output/vertex segments per GS batch" size="2" start="57" type="uint"/>
1397 <field name="GBG min GS output segments required in play" size="3" start="59" type="uint" minus_one="true"/>
1398 </struct>
1399
1400 <struct name="GL Shader State Attribute Record" max_ver="33">
1401 <field name="Address" size="32" start="0" type="address"/>
1402
1403 <field name="Vec size" size="2" start="32" type="uint"/>
1404 <field name="Type" size="3" start="34" type="uint">
1405 <value name="Attribute half-float" value="1"/>
1406 <value name="Attribute float" value="2"/>
1407 <value name="Attribute fixed" value="3"/>
1408 <value name="Attribute byte" value="4"/>
1409 <value name="Attribute short" value="5"/>
1410 <value name="Attribute int" value="6"/>
1411 <value name="Attribute int2_10_10_10" value="7"/>
1412 </field>
1413 <field name="Signed int type" size="1" start="37" type="bool"/>
1414 <field name="Normalized int type" size="1" start="38" type="bool"/>
1415 <field name="Read as int/uint" size="1" start="39" type="bool"/>
1416
1417 <field name="Number of values read by Coordinate shader" size="4" start="40" type="uint"/>
1418 <field name="Number of values read by Vertex shader" size="4" start="44" type="uint"/>
1419
1420 <field name="Instance Divisor" size="16" start="6b" type="uint"/>
1421 <field name="Stride" size="32" start="8b" type="uint"/>
1422 </struct>
1423
1424 <struct name="GL Shader State Attribute Record" min_ver="41">
1425 <field name="Address" size="32" start="0" type="address"/>
1426
1427 <field name="Vec size" size="2" start="32" type="uint"/>
1428 <field name="Type" size="3" start="34" type="uint">
1429 <value name="Attribute half-float" value="1"/>
1430 <value name="Attribute float" value="2"/>
1431 <value name="Attribute fixed" value="3"/>
1432 <value name="Attribute byte" value="4"/>
1433 <value name="Attribute short" value="5"/>
1434 <value name="Attribute int" value="6"/>
1435 <value name="Attribute int2_10_10_10" value="7"/>
1436 </field>
1437 <field name="Signed int type" size="1" start="37" type="bool"/>
1438 <field name="Normalized int type" size="1" start="38" type="bool"/>
1439 <field name="Read as int/uint" size="1" start="39" type="bool"/>
1440
1441 <field name="Number of values read by Coordinate shader" size="4" start="40" type="uint"/>
1442 <field name="Number of values read by Vertex shader" size="4" start="44" type="uint"/>
1443
1444 <field name="Instance Divisor" size="16" start="6b" type="uint"/>
1445 <field name="Stride" size="32" start="8b" type="uint"/>
1446 <field name="Maximum Index" size="32" start="12b" type="uint"/>
1447 </struct>
1448
1449 <struct name="VPM generic block write setup">
1450 <field name="id" size="2" start="30" type="uint" default="0"/>
1451 <field name="id0" size="3" start="27" type="uint" default="0"/>
1452
1453 <field name="horiz" size="1" start="24" type="bool"/>
1454 <field name="laned" size="1" start="23" type="bool"/>
1455 <field name="segs" size="1" start="22" type="bool"/>
1456 <field name="stride" size="7" start="15" type="int"/>
1457
1458 <field name="size" size="2" start="13" type="uint">
1459 <value name="VPM setup size 8-bit" value="0"/>
1460 <value name="VPM setup size 16-bit" value="1"/>
1461 <value name="VPM setup size 32-bit" value="2"/>
1462 </field>
1463
1464 <field name="addr" size="13" start="0" type="uint"/>
1465 </struct>
1466
1467 <struct name="VPM generic block read setup">
1468 <field name="id" size="2" start="30" type="uint" default="1"/>
1469
1470 <field name="horiz" size="1" start="29" type="bool"/>
1471 <field name="laned" size="1" start="28" type="bool"/>
1472 <field name="segs" size="1" start="27" type="bool"/>
1473 <field name="num" size="5" start="22" type="uint"/>
1474 <field name="stride" size="7" start="15" type="int"/>
1475
1476 <field name="size" size="2" start="13" type="uint">
1477 <value name="VPM setup size 8-bit" value="0"/>
1478 <value name="VPM setup size 16-bit" value="1"/>
1479 <value name="VPM setup size 32-bit" value="2"/>
1480 </field>
1481
1482 <field name="addr" size="13" start="0" type="uint"/>
1483 </struct>
1484
1485 <struct name="Texture Uniform Parameter 0 CFG_MODE=1" max_ver="33">
1486 <field name="Per-pixel mask enable" size="1" start="31" type="bool"/>
1487
1488 <field name="Texel offset for r coordinate" size="4" start="27" type="int"/>
1489 <field name="Texel offset for t coordinate" size="4" start="23" type="int"/>
1490 <field name="Texel offset for s coordinate" size="4" start="19" type="int"/>
1491
1492 <field name="R Wrap Mode" size="3" start="16" type="Wrap Mode"/>
1493 <field name="T Wrap Mode" size="3" start="13" type="Wrap Mode"/>
1494 <field name="S Wrap Mode" size="3" start="10" type="Wrap Mode"/>
1495
1496 <field name="New configuration mode" size="1" start="9" type="bool" default="1"/>
1497
1498 <field name="Shadow" size="1" start="8" type="bool"/>
1499 <field name="Coefficient lookup mode" size="1" start="7" type="bool"/>
1500 <field name="Disable AutoLOD, use bias only" size="1" start="6" type="bool"/>
1501 <field name="Bias supplied" size="1" start="5" type="bool"/>
1502 <field name="Gather sample mode" size="1" start="4" type="bool"/>
1503 <field name="Fetch sample mode" size="1" start="3" type="bool"/>
1504
1505 <field name="Lookup Type" size="3" start="0" type="uint">
1506 <value name="Texture 2D" value="0"/>
1507 <value name="Texture 2D array" value="1"/>
1508 <value name="Texture 3D" value="2"/>
1509 <value name="Texture Cube Map" value="3"/>
1510 <value name="Texture 1D" value="4"/>
1511 <value name="Texture 1D Array" value="5"/>
1512 <value name="Texture Child Image" value="6"/>
1513 </field>
1514 </struct>
1515
1516 <struct name="Texture Uniform Parameter 1 CFG_MODE=1" max_ver="33">
1517 <field name="Texture state record base address" size="28" start="4" type="address"/>
1518 <field name="Return words of texture data" size="4" start="0" type="uint"/>
1519 </struct>
1520
1521 <struct name="TMU Config Parameter 0" min_ver="41">
1522 <field name="Texture state address" size="32" start="0" type="address"/>
1523 <field name="Return words of texture data" size="4" start="0" type="uint"/>
1524 </struct>
1525
1526 <struct name="TMU Config Parameter 1" min_ver="41">
1527 <field name="Sampler state address" size="32" start="0" type="address"/>
1528 <field name="Per-pixel mask enable" size="1" start="2" type="bool"/>
1529 <field name="Unnormalized coordinates" size="1" start="1" type="bool"/>
1530 <field name="Output Type 32-bit" size="1" start="0" type="bool"/>
1531 </struct>
1532
1533 <struct name="TMU Config Parameter 2" min_ver="41" max_ver="41">
1534 <field name="Pad" size="8" start="24" type="uint"/>
1535 <field name="Op" size="4" start="20" type="TMU Op"/>
1536 <field name="Offset R" size="4" start="16" type="int"/>
1537 <field name="Offset T" size="4" start="12" type="int"/>
1538 <field name="Offset S" size="4" start="8" type="int"/>
1539 <field name="Gather Mode" size="1" start="7" type="bool"/>
1540 <field name="Gather Component" size="2" start="5" type="uint"/>
1541 <field name="Coefficient Mode" size="1" start="4" type="bool"/>
1542 <field name="Sample Number" size="2" start="2" type="uint"/>
1543 <field name="Disable AutoLOD" size="1" start="1" type="bool"/>
1544 <field name="Offset Format 8" size="1" start="0" type="bool"/>
1545 </struct>
1546
1547 <struct name="TMU Config Parameter 2" min_ver="42">
1548 <field name="Pad" size="7" start="25" type="uint"/>
1549 <field name="LOD Query" size="1" start="24" type="bool"/>
1550 <field name="Op" size="4" start="20" type="TMU Op"/>
1551 <field name="Offset R" size="4" start="16" type="int"/>
1552 <field name="Offset T" size="4" start="12" type="int"/>
1553 <field name="Offset S" size="4" start="8" type="int"/>
1554 <field name="Gather Mode" size="1" start="7" type="bool"/>
1555 <field name="Gather Component" size="2" start="5" type="uint"/>
1556 <field name="Coefficient Mode" size="1" start="4" type="bool"/>
1557 <field name="Sample Number" size="2" start="2" type="uint"/>
1558 <field name="Disable AutoLOD" size="1" start="1" type="bool"/>
1559 <field name="Offset Format 8" size="1" start="0" type="bool"/>
1560 </struct>
1561
1562 <struct name="Texture Shader State" max_ver="33">
1563 <field name="UIF XOR disable" size="1" start="255" type="bool"/>
1564 <field name="Level 0 is strictly UIF" size="1" start="254" type="bool"/>
1565 <field name="Level 0 XOR enable" size="1" start="252" type="bool"/>
1566 <field name="Level 0 UB_PAD" size="4" start="248" type="uint"/>
1567 <field name="Output 32-bit" size="1" start="246" type="bool"/>
1568 <field name="Sample Number" size="2" start="244" type="uint"/>
1569
1570 <field name="Base Level" size="4" start="240" type="uint"/>
1571 <field name="Fixed Bias" size="16" start="224" type="s8.8"/>
1572 <field name="Max Level-of-Detail" size="16" start="208" type="s8.8"/>
1573 <field name="Min Level-of-Detail" size="16" start="192" type="s8.8"/>
1574
1575 <field name="Border Color alpha" size="16" start="176" type="uint"/>
1576 <field name="Border Color blue" size="16" start="160" type="uint"/>
1577 <field name="Border Color green" size="16" start="144" type="uint"/>
1578 <field name="Border Color red" size="16" start="128" type="uint"/>
1579
1580 <field name="Flip S and T on incoming request" size="1" start="127" type="bool"/>
1581 <field name="Flip ETC Y" size="1" start="126" type="bool" default="1"/>
1582 <field name="Flip texture Y Axis" size="1" start="125" type="bool"/>
1583 <field name="Flip texture X Axis" size="1" start="124" type="bool"/>
1584
1585 <field name="Swizzle A" size="3" start="121" type="uint">
1586 <value name="Swizzle Zero" value="0"/>
1587 <value name="Swizzle One" value="1"/>
1588 <value name="Swizzle Red" value="2"/>
1589 <value name="Swizzle Green" value="3"/>
1590 <value name="Swizzle Blue" value="4"/>
1591 <value name="Swizzle Alpha" value="5"/>
1592 </field>
1593
1594 <field name="Swizzle B" size="3" start="118" type="uint"/>
1595 <field name="Swizzle G" size="3" start="115" type="uint"/>
1596 <field name="Swizzle R" size="3" start="112" type="uint"/>
1597
1598 <field name="Depth Compare Function" size="3" start="109" type="Compare Function"/>
1599
1600 <field name="sRGB" size="1" start="107" type="bool"/>
1601
1602 <field name="Texture type" size="7" start="100" type="uint"/>
1603
1604 <field name="Image Depth" size="14" start="86" type="uint"/>
1605 <field name="Image Height" size="14" start="72" type="uint"/>
1606 <field name="Image Width" size="14" start="58" type="uint"/>
1607
1608 <field name="Array Stride (64-byte aligned)" size="26" start="32" type="uint"/>
1609
1610 <field name="Texture base pointer" size="30" start="2" type="address"/>
1611
1612 <field name="Filter" size="4" start="0" type="TMU Filter"/>
1613 </struct>
1614
1615 <struct name="Texture Shader State" min_ver="41">
1616 <field name="Pad" size="56" start="136" type="uint"/>
1617 <field name="UIF XOR disable" size="1" start="135" type="bool"/>
1618 <field name="Level 0 is strictly UIF" size="1" start="134" type="bool"/>
1619 <field name="Level 0 XOR enable" size="1" start="132" type="bool"/>
1620 <field name="Level 0 UB_PAD" size="4" start="128" type="uint"/>
1621
1622 <field name="Base Level" size="4" start="124" type="uint"/>
1623 <field name="Max Level" size="4" start="120" type="uint"/>
1624
1625 <field name="Swizzle A" size="3" start="117" type="uint">
1626 <value name="Swizzle Zero" value="0"/>
1627 <value name="Swizzle One" value="1"/>
1628 <value name="Swizzle Red" value="2"/>
1629 <value name="Swizzle Green" value="3"/>
1630 <value name="Swizzle Blue" value="4"/>
1631 <value name="Swizzle Alpha" value="5"/>
1632 </field>
1633
1634 <field name="Swizzle B" size="3" start="114" type="uint"/>
1635 <field name="Swizzle G" size="3" start="111" type="uint"/>
1636 <field name="Swizzle R" size="3" start="108" type="uint"/>
1637 <field name="Extended" size="1" start="107" type="bool"/>
1638
1639 <field name="Texture type" size="7" start="100" type="uint"/>
1640 <field name="Image Depth" size="14" start="86" type="uint"/>
1641 <field name="Image Height" size="14" start="72" type="uint"/>
1642 <field name="Image Width" size="14" start="58" type="uint"/>
1643
1644 <field name="Array Stride (64-byte aligned)" size="26" start="32" type="uint"/>
1645
1646 <field name="Texture base pointer" size="32" start="0" type="address"/>
1647
1648 <field name="Reverse Standard Border Color" size="1" start="5" type="bool"/>
1649 <field name="AHDR" size="1" start="4" type="bool"/>
1650 <field name="sRGB" size="1" start="3" type="bool"/>
1651 <field name="Flip S and T on incoming request" size="1" start="2" type="bool"/>
1652 <field name="Flip texture Y Axis" size="1" start="1" type="bool"/>
1653 <field name="Flip texture X Axis" size="1" start="0" type="bool"/>
1654 </struct>
1655
1656 <struct name="Sampler State" min_ver="41">
1657 <field name="Border color word 3" size="32" start="160" type="uint"/>
1658 <field name="Border color word 2" size="32" start="128" type="uint"/>
1659 <field name="Border color word 1" size="32" start="96" type="uint"/>
1660 <field name="Border color word 0" size="32" start="64" type="uint"/>
1661
1662 <field name="Maximum Anisotropy" size="2" start="61" type="uint"/>
1663 <field name="Border Color Mode" size="3" start="58" type="Border Color Mode"/>
1664 <field name="Wrap I Border" size="1" start="57" type="bool"/>
1665 <field name="Wrap R" size="3" start="54" type="Wrap Mode"/>
1666 <field name="Wrap T" size="3" start="51" type="Wrap Mode"/>
1667 <field name="Wrap S" size="3" start="48" type="Wrap Mode"/>
1668
1669 <field name="Fixed Bias" size="16" start="32" type="s8.8"/>
1670 <field name="Max Level-of-Detail" size="12" start="20" type="u4.8"/>
1671 <field name="Min Level-of-Detail" size="12" start="8" type="u4.8"/>
1672
1673 <field name="sRGB Disable" size="1" start="7" type="bool"/>
1674
1675 <field name="Depth Compare Function" size="3" start="4" type="Compare Function"/>
1676
1677 <field name="Anisotropy Enable" size="1" start="3" type="bool"/>
1678 <field name="Mip filter Nearest" size="1" start="2" type="bool"/>
1679 <field name="Min filter Nearest" size="1" start="1" type="bool"/>
1680 <field name="Mag filter Nearest" size="1" start="0" type="bool"/>
1681 </struct>
1682
1683 <enum name="Texture Data Formats">
1684 <!--
1685 most formats here have R in the low bits, A in the high bits.
1686 Exceptions noted.
1687 -->
1688 <value name="Texture Data Format R8" value="0"/>
1689 <value name="Texture Data Format R8 SNORM" value="1"/>
1690 <value name="Texture Data Format RG8" value="2"/>
1691 <value name="Texture Data Format RG8 SNORM" value="3"/>
1692 <value name="Texture Data Format RGBA8" value="4"/>
1693 <value name="Texture Data Format RGBA8 SNORM" value="5"/>
1694 <value name="Texture Data Format RGB565" value="6"/> <!-- B in low bits -->
1695 <value name="Texture Data Format RGBA4" value="7"/> <!-- A low, R high -->
1696 <value name="Texture Data Format RGB5_A1" value="8"/> <!-- A low, R high -->
1697 <value name="Texture Data Format RGB10_A2" value="9"/> <!-- R low, A high -->
1698 <value name="Texture Data Format R16" value="10"/>
1699 <value name="Texture Data Format R16 SNORM" value="11"/>
1700 <value name="Texture Data Format RG16" value="12"/>
1701 <value name="Texture Data Format RG16 SNORM" value="13"/>
1702 <value name="Texture Data Format RGBA16" value="14"/>
1703 <value name="Texture Data Format RGBA16 SNORM" value="15"/>
1704 <value name="Texture Data Format R16F" value="16"/>
1705 <value name="Texture Data Format RG16F" value="17"/>
1706 <value name="Texture Data Format RGBA16F" value="18"/>
1707 <value name="Texture Data Format R11F_G11F_B10F" value="19"/>
1708 <value name="Texture Data Format RGB9_E5" value="20"/>
1709 <value name="Texture Data Format DEPTH COMP16" value="21"/>
1710 <value name="Texture Data Format DEPTH COMP24" value="22"/>
1711 <value name="Texture Data Format DEPTH COMP32F" value="23"/>
1712 <value name="Texture Data Format DEPTH24_X8" value="24"/> <!-- X low, D high -->
1713 <value name="Texture Data Format R4" value="25"/>
1714 <value name="Texture Data Format R1" value="26"/>
1715 <!-- generic unfiltered 8-bit sample -->
1716 <value name="Texture Data Format S8" value="27"/>
1717 <!-- generic unfiltered 16-bit sample -->
1718 <value name="Texture Data Format S16" value="28"/>
1719 <!-- generic unfiltered 32-bit sample -->
1720 <value name="Texture Data Format R32F" value="29"/>
1721 <!-- generic unfiltered 64-bit sample -->
1722 <value name="Texture Data Format RG32F" value="30"/>
1723 <!-- generic unfiltered 128-bit sample -->
1724 <value name="Texture Data Format RGBA32F" value="31"/>
1725
1726 <value name="Texture Data Format RGB8_ETC2" value="32"/>
1727 <value name="Texture Data Format RGB8_PUNCHTHROUGH_ALPHA1" value="33"/>
1728
1729 <value name="Texture Data Format R11_EAC" value="34"/>
1730 <value name="Texture Data Format SIGNED_R11_EAC" value="35"/>
1731 <value name="Texture Data Format RG11_EAC" value="36"/>
1732 <value name="Texture Data Format SIGNED_RG11_EAC" value="37"/>
1733
1734 <value name="Texture Data Format RGBA8_ETC2_EAC" value="38"/>
1735 <value name="Texture Data Format YCBCR_LUMA" value="39"/>
1736 <value name="Texture Data Format YCBCR_420_CHROMA" value="40"/>
1737
1738 <value name="Texture Data Format BC1" value="48"/>
1739 <value name="Texture Data Format BC2" value="49"/>
1740 <value name="Texture Data Format BC3" value="50"/>
1741
1742 <value name="Texture Data Format ASTC_4x4" value="64"/>
1743 <value name="Texture Data Format ASTC_5x4" value="65"/>
1744 <value name="Texture Data Format ASTC_5x5" value="66"/>
1745 <value name="Texture Data Format ASTC_6x5" value="67"/>
1746 <value name="Texture Data Format ASTC_6x6" value="68"/>
1747 <value name="Texture Data Format ASTC_8x5" value="69"/>
1748 <value name="Texture Data Format ASTC_8x6" value="70"/>
1749 <value name="Texture Data Format ASTC_8x8" value="71"/>
1750 <value name="Texture Data Format ASTC_10x5" value="72"/>
1751 <value name="Texture Data Format ASTC_10x6" value="73"/>
1752 <value name="Texture Data Format ASTC_10x8" value="74"/>
1753 <value name="Texture Data Format ASTC_10x10" value="75"/>
1754 <value name="Texture Data Format ASTC_12x10" value="76"/>
1755 <value name="Texture Data Format ASTC_12x12" value="77"/>
1756
1757 <value name="Texture Data Format R8I" value="96"/>
1758 <value name="Texture Data Format R8UI" value="97"/>
1759 <value name="Texture Data Format RG8I" value="98"/>
1760 <value name="Texture Data Format RG8UI" value="99"/>
1761 <value name="Texture Data Format RGBA8I" value="100"/>
1762 <value name="Texture Data Format RGBA8UI" value="101"/>
1763
1764 <value name="Texture Data Format R16I" value="102"/>
1765 <value name="Texture Data Format R16UI" value="103"/>
1766 <value name="Texture Data Format RG16I" value="104"/>
1767 <value name="Texture Data Format RG16UI" value="105"/>
1768 <value name="Texture Data Format RGBA16I" value="106"/>
1769 <value name="Texture Data Format RGBA16UI" value="107"/>
1770
1771 <value name="Texture Data Format R32I" value="108"/>
1772 <value name="Texture Data Format R32UI" value="109"/>
1773 <value name="Texture Data Format RG32I" value="110"/>
1774 <value name="Texture Data Format RG32UI" value="111"/>
1775 <value name="Texture Data Format RGBA32I" value="112"/>
1776 <value name="Texture Data Format RGBA32UI" value="113"/>
1777 <value name="Texture Data Format RGB10_A2UI" value="114"/>
1778
1779 </enum>
1780 </vcxml>