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