broadcom/genxml: Add V3D 3.3 packet definitions.
[mesa.git] / src / broadcom / cle / v3d_packet_v33.xml
1 <vcxml gen="3.3">
2
3 <packet code="0" name="Halt"/>
4 <packet code="1" name="NOP"/>
5 <packet code="4" name="Flush"/>
6 <packet code="5" name="Flush All State"/>
7 <packet code="6" name="Start Tile Binning"/>
8 <packet code="7" name="Increment Semaphore"/>
9 <packet code="8" name="Wait on Semaphore"/>
10 <packet code="9" name="Wait for previous frame"/>
11 <packet code="10" name="Enable Z-only rendering" cl="R"/>
12 <packet code="11" name="Disable Z-only rendering" cl="R"/>
13 <packet code="12" name="End of Z-only rendering in frame"/>
14 <packet code="13" name="End of rendering"/>
15
16 <packet code="14" name="Wait for transform feedback" cl="B">
17 <field name="Block count" size="8" start="0" type="uint"/>
18 </packet>
19
20 <packet code="15" name="Branch to auto-chained sub-list">
21 <field name="address" size="32" start="0" type="address"/>
22 </packet>
23
24 <packet code="16" name="Branch">
25 <field name="address" size="32" start="0" type="address"/>
26 </packet>
27
28 <packet code="17" name="Branch to Sub-list">
29 <field name="address" size="32" start="0" type="address"/>
30 </packet>
31
32 <packet code="18" name="Return from sub-list"/>
33 <packet code="19" name="Flush VCD cache"/>
34 <packet code="24" name="Store Multi-Sample Resolved Tile Color Buffer" cl="R"/>
35
36 <packet code="25" name="Store Multi-Sample Resolved Tile Color Buffer (extended)" cl="R">
37 <field name="Disable Color Buffer write" size="8" start="8" type="uint"/>
38 <field name="Enable Z write" size="1" start="7" type="bool"/>
39 <field name="Enable Stencil write" size="1" start="6" type="bool"/>
40 <!-- bit 5 unused -->
41 <field name="Disable Colour buffer(s) clear on write" size="1" start="4" type="bool"/>
42 <field name="Disable Stencil buffer clear on write" size="1" start="3" type="bool"/>
43 <field name="Disable Z buffer clear on write" size="1" start="2" type="bool"/>
44 <field name="Disable fast opportunistic write out in multisample mode" size="1" start="1" type="bool"/>
45 <field name="Last Tile of Frame" size="1" start="0" type="bool"/>
46 </packet>
47
48 <packet code="26" name="Reload Tile Colour Buffer" cl="R">
49 <field name="Disable Colour Buffer load" size="8" start="8" type="uint"/>
50 <field name="Enable Z load" size="1" start="7" type="bool"/>
51 <field name="Enable Stencil load" size="1" start="6" type="bool"/>
52 </packet>
53
54 <packet code="29" name="Store Tile Buffer General" cl="R">
55 <field name="Address" size="32" start="16" type="address"/>
56 <field name="Padded height of output image in UIF blocks" size="13" start="11" type="uint"/>
57 <field name="XOR UIF" size="13" start="11" type="uint"/>
58 <field name="Last Tile of Frame" size="1" start="8" type="bool"/>
59 <field name="Disable Colour buffer(s) clear on write" size="1" start="7" type="bool"/>
60 <field name="Disable Stencil buffer clear on write" size="1" start="6" type="bool"/>
61 <field name="Disable Z buffer clear on write" size="1" start="5" type="bool"/>
62 <field name="Raw Mode" size="1" start="4" type="bool"/>
63 <field name="Buffer to Store" size="4" start="0" type="uint">
64 <value name="Render target 0" value="0"/>
65 <value name="Render target 1" value="1"/>
66 <value name="Render target 2" value="2"/>
67 <value name="Render target 3" value="3"/>
68 <value name="None" value="8"/>
69 <value name="Z" value="9"/>
70 <value name="Stencil" value="10"/>
71 <value name="Z+Stencil" value="11"/>
72 </field>
73 </packet>
74
75 <packet code="32" name="Indexed Primitive List" cl="B">
76 <field name="Minimum index" size="32" start="104" type="uint"/>
77 <field name="Enable Primitive Restarts" size="1" start="103" type="bool"/>
78 <field name="Maximum index" size="31" start="72" type="uint"/>
79 <field name="Address of Indices List" size="32" start="40" type="address"/>
80 <field name="Length" size="32" start="8" type="uint"/>
81
82 <field name="Index type" size="2" start="6" type="uint">
83 <value name="Index type 8-bit" value="0"/>
84 <value name="Index type 16-bit" value="1"/>
85 <value name="Index type 32-bit" value="2"/>
86 </field>
87
88 <field name="mode" size="5" start="0" type="uint">
89 <value name="points" value="0"/>
90 <value name="lines" value="1"/>
91 <value name="line loop" value="2"/>
92 <value name="line strip" value="3"/>
93 <value name="triangles" value="4"/>
94 <value name="triangles strip" value="5"/>
95 <value name="triangles fan" value="6"/>
96 </field>
97 </packet>
98
99 <packet code="34" name="Indexed Instanced Primitive List" cl="B">
100 <field name="Enable Primitive Restarts" size="1" start="135" type="bool"/>
101 <field name="Maximum index" size="31" start="104" type="uint"/>
102 <field name="Address of Indices List" size="32" start="72" type="address"/>
103 <field name="Number of Instances" size="32" start="40" type="uint"/>
104 <field name="Instance Length" size="32" start="8" type="uint"/>
105
106 <field name="Index type" size="2" start="6" type="uint">
107 <value name="Index type 8-bit" value="0"/>
108 <value name="Index type 16-bit" value="1"/>
109 <value name="Index type 32-bit" value="2"/>
110 </field>
111
112 <field name="mode" size="5" start="0" type="uint">
113 <value name="points" value="0"/>
114 <value name="lines" value="1"/>
115 <value name="line loop" value="2"/>
116 <value name="line strip" value="3"/>
117 <value name="triangles" value="4"/>
118 <value name="triangles strip" value="5"/>
119 <value name="triangles fan" value="6"/>
120 </field>
121 </packet>
122
123 <packet code="36" name="Vertex Array Primitives" cl="B">
124 <field name="Index of First Vertex" size="32" start="40" type="uint"/>
125 <field name="Length" size="32" start="8" type="uint"/>
126
127 <field name="mode" size="8" start="0" type="uint">
128 <value name="points" value="0"/>
129 <value name="lines" value="1"/>
130 <value name="line loop" value="2"/>
131 <value name="line strip" value="3"/>
132 <value name="triangles" value="4"/>
133 <value name="triangles strip" value="5"/>
134 <value name="triangles fan" value="6"/>
135 </field>
136 </packet>
137
138 <packet code="38" name="Vertex Array Instanced Primitives" cl="B">
139 <field name="Index of First Vertex" size="32" start="72" type="uint"/>
140 <field name="Number of Instances" size="32" start="40" type="uint"/>
141 <field name="Instance Length" size="32" start="8" type="uint"/>
142
143 <field name="mode" size="8" start="0" type="uint">
144 <value name="points" value="0"/>
145 <value name="lines" value="1"/>
146 <value name="line loop" value="2"/>
147 <value name="line strip" value="3"/>
148 <value name="triangles" value="4"/>
149 <value name="triangles strip" value="5"/>
150 <value name="triangles fan" value="6"/>
151 </field>
152 </packet>
153
154 <packet code="56" name="Primitive List Format">
155 <field name="data type" size="1" start="6" type="uint">
156 <value name="List Indexed" value="0"/>
157 <value name="List 32-bit X/Y" value="1"/>
158 </field>
159 <field name="primitive type" size="6" start="0" type="uint">
160 <value name="List Points" value="0"/>
161 <value name="List Lines" value="1"/>
162 <value name="List Triangles" value="2"/>
163 </field>
164 </packet>
165
166 <packet code="64" name="GL Shader State">
167 <field name="address" size="27" start="5" type="address"/>
168 <field name="number of attribute arrays" size="5" start="0" type="uint"/>
169 </packet>
170
171 <packet code="74" name="Transform Feedback Enable">
172 <field name="number of 32-bit Output Buffer Address following" size="3" start="8" type="uint"/>
173 <field name="number of 16-bit Output Data Specs following" size="5" start="11" type="uint"/>
174 </packet>
175
176 <packet code="75" name="Flush Transform Feedback Data"/>
177
178 <struct name="Transform Feedback Output Data Spec">
179 <field name="First Shaded Vertex Value to output" size="8" start="0" type="uint"/>
180 <field name="Number of consecutive Vertex Values to output as 32-bit values" size="4" start="8" type="uint"/>
181 <field name="Output Buffer to write to" size="2" start="12" type="uint"/>
182 </struct>
183
184 <struct name="Transform Feedback Output Address">
185 <field name="address" size="32" start="0" type="address"/>
186 </struct>
187
188 <packet code="80" name="Stencil Config">
189 <field name="Stencil Write Mask" size="8" start="32" type="uint"/>
190 <field name="Back Config" size="1" start="29" type="bool"/>
191 <field name="Front Config" size="1" start="28" type="bool"/>
192 <field name="Stencil Pass Op" size="3" start="25" type="uint"/>
193 <field name="Depth Test Fail Op" size="3" start="22" type="uint"/>
194 <field name="Stencil Test Fail Op" size="3" start="19" type="uint"/>
195 <field name="Stencil Test Function" size="3" start="16" type="uint"/>
196 <field name="Stencil Test Mask" size="8" start="8" type="uint"/>
197 <field name="Stencil Ref Value" size="8" start="0" type="uint"/>
198 </packet>
199
200 <packet code="84" name="Blend Config">
201 <field name="VG Coverage Modes" size="2" start="28" type="uint"/>
202 <field name="Colour blend dst factor" size="4" start="20" type="uint"/>
203 <field name="Colour blend src factor" size="4" start="16" type="uint"/>
204 <field name="Colour blend mode" size="4" start="12" type="uint"/>
205 <field name="Alpha blend dst factor" size="4" start="8" type="uint"/>
206 <field name="Alpha blend src factor" size="4" start="4" type="uint"/>
207 <field name="Alpha blend mode" size="4" start="0" type="uint"/>
208 </packet>
209
210 <packet code="86" name="Blend Constant Colour">
211 <field name="Alpha (F16)" size="16" start="48" type="uint"/>
212 <field name="Blue (F16)" size="16" start="32" type="uint"/>
213 <field name="Green (F16)" size="16" start="16" type="uint"/>
214 <field name="Red (F16)" size="16" start="0" type="uint"/>
215 </packet>
216
217 <packet code="87" name="Colour Write Masks">
218 <field name="Reserved" size="16" start="16" type="uint"/>
219 <field name="Render Target 3 per colour component write masks" size="4" start="12" type="uint"/>
220 <field name="Render Target 2 per colour component write masks" size="4" start="8" type="uint"/>
221 <field name="Render Target 1 per colour component write masks" size="4" start="4" type="uint"/>
222 <field name="Render Target 0 per colour component write masks" size="4" start="0" type="uint"/>
223 </packet>
224
225 <packet code="96" name="Configuration Bits">
226 <field name="Direct3D 'Point-fill' mode" size="1" start="20" type="bool"/>
227 <field name="Blend enable" size="1" start="19" type="bool"/>
228 <field name="Stencil enable" size="1" start="18" type="bool"/>
229 <field name="Early Z updates enable" size="1" start="17" type="bool"/>
230 <field name="Early Z enable" size="1" start="16" type="bool"/>
231 <field name="Z updates enable" size="1" start="15" type="bool"/>
232 <field name="Depth-Test Function" size="3" start="12" type="uint"/>
233 <field name="Direct3D Wireframe triangles mode" size="1" start="11" type="bool"/>
234 <field name="Coverage Update Mode" size="2" start="9" type="uint"/>
235 <field name="Coverage Pipe Select" size="1" start="8" type="bool"/>
236 <field name="Rasterizer Oversample Mode" size="2" start="6" type="uint"/>
237 <field name="Line Rasterization" size="2" start="4" type="uint"/>
238 <field name="Enable Depth Offset" size="1" start="3" type="bool"/>
239 <field name="Clockwise Primitives" size="1" start="2" type="bool"/>
240 <field name="Enable Reverse Facing Primitive" size="1" start="1" type="bool"/>
241 <field name="Enable Forward Facing Primitive" size="1" start="0" type="bool"/>
242 </packet>
243
244 <packet code="97" name="Zero All Flat Shade Flags"/>
245
246 <packet code="98" name="Flat Shade Flags">
247 <field name="Flat Shade Flags for varyings V0*24" size="24" start="8" type="uint"/>
248 <field name="Action for Flat Shade Flags of higher numbered varyings" size="2" start="6" type="uint"/>
249 <field name="Action for Flat Shade Flags of lower numbered varyings" size="2" start="4" type="uint"/>
250 <field name="Varying offset V0" size="4" start="0" type="uint"/>
251 </packet>
252
253 <packet code="104" name="Point size">
254 <field name="Point Size" size="32" start="0" type="float"/>
255 </packet>
256
257 <packet code="105" name="Line width">
258 <field name="Line width" size="32" start="0" type="float"/>
259 </packet>
260
261 <packet name="Depth Offset" code="106">
262 <!-- these fields are both float-1-8-7 encoded (top 16 bits of a float32) -->
263 <field name="Depth Offset Units" size="16" start="16" type="uint"/>
264 <field name="Depth Offset Factor" size="16" start="0" type="uint"/>
265 </packet>
266
267 <packet name="Clip Window" code="107">
268 <field name="Clip Window Height in pixels" size="16" start="48" type="uint"/>
269 <field name="Clip Window Width in pixels" size="16" start="32" type="uint"/>
270 <field name="Clip Window Bottom Pixel Coordinate" size="16" start="16" type="uint"/>
271 <field name="Clip Window Left Pixel Coordinate" size="16" start="0" type="uint"/>
272 </packet>
273
274 <packet name="Viewport Offset" code="108">
275 <field name="Viewport Centre Y-coordinate" size="32" start="32" type="s24.8"/>
276 <field name="Viewport Centre X-coordinate" size="32" start="0" type="s24.8"/>
277 </packet>
278
279 <packet name="Clipper Z min/max clipping planes" code="109">
280 <field name="Maximum Zw" size="32" start="32" type="float"/>
281 <field name="Minimum Zw" size="32" start="0" type="float"/>
282 </packet>
283
284 <packet name="Clipper XY Scaling" code="110" cl="B">
285 <field name="Viewport Half-Height in 1/256th of pixel" size="32" start="32" type="float"/>
286 <field name="Viewport Half-Width in 1/256th of pixel" size="32" start="0" type="float"/>
287 </packet>
288
289 <packet name="Clipper Z Scale and Offset" code="111" cl="B">
290 <field name="Viewport Z Offset (Zc to Zs)" size="32" start="32" type="float"/>
291 <field name="Viewport Z Scale (Zc to Zs)" size="32" start="0" type="float"/>
292 </packet>
293
294 <packet code="120" name="Tile Binning Mode Configuration">
295 <field name="pad" size="63" start="1" type="uint" default="0"/>
296 <field name="sub-id" size="1" start="0" type="uint" default="0"/>
297 </packet>
298
299 <packet code="120" name="Tile Binning Mode Configuration (Part1)">
300 <field name="Double-buffer in non-ms mode" size="1" start="63" type="bool"/>
301 <field name="Multisample Mode (4x)" size="1" start="62" type="bool"/>
302
303 <field name="Maximum BPP of all render targets" size="2" start="60" type="uint">
304 <value name="Render target maximum 32bpp" value="0"/>
305 <value name="Render target maximum 64bpp" value="1"/>
306 <value name="Render target maximum 128bpp" value="2"/>
307 </field>
308
309 <field name="Number of Render Targets" size="4" start="56" type="uint"/>
310 <field name="Height (in tiles)" size="12" start="44" type="uint"/>
311 <field name="Width (in tiles)" size="12" start="32" type="uint"/>
312
313 <field name="Tile State Data Array Base Address" size="32" start="0" type="address"/>
314
315 <field name="tile allocation block size" size="2" start="4" type="uint">
316 <value name="tile allocation block size 64b" value="0"/>
317 <value name="tile allocation block size 128b" value="1"/>
318 <value name="tile allocation block size 256b" value="2"/>
319 </field>
320 <field name="tile allocation initial block size" size="2" start="2" type="uint">
321 <value name="tile allocation initial block size 64b" value="0"/>
322 <value name="tile allocation initial block size 128b" value="1"/>
323 <value name="tile allocation initial block size 256b" value="2"/>
324 </field>
325 <field name="auto-initialize tile state data array" size="1" start="1" type="bool" default="1"/>
326 <field name="sub-id" size="1" start="0" type="uint" default="0"/>
327 </packet>
328
329 <packet code="120" name="Tile Binning Mode Configuration (Part2)" cl="B">
330 <field name="Tile Allocation Memory Address" size="32" start="32" type="address"/>
331 <field name="Tile Allocation Memory Size" size="32" start="0" type="uint"/>
332
333 <field name="sub-id" size="1" start="0" type="uint" default="1"/>
334 </packet>
335
336 <packet code="121" name="Tile Rendering Mode Configuration" cl="R">
337 <field name="pad" size="60" start="4" type="uint"/>
338 <field name="sub-id" size="4" start="0" type="uint"/>
339 </packet>
340
341 <packet code="121" name="Tile Rendering Mode Configuration (Common Configuration)" cl="R">
342 <field name="Disable Render Target Stores" size="8" start="56" type="bool"/>
343 <field name="Enable Z Store" size="1" start="55" type="bool"/>
344 <field name="Enable Stencil Store" size="1" start="54" type="bool"/>
345
346 <field name="Early-Z disable" size="1" start="46" type="bool"/>
347
348 <field name="Early-Z Test and Update Direction" size="1" start="45" type="uint">
349 <value name="Early-Z direction LT/LE" value="0"/>
350 <value name="Early-Z direction GT/GE" value="1"/>
351 </field>
352
353 <field name="Select Coverage Mode" size="1" start="44" type="bool"/>
354 <field name="Double-buffer in non-ms mode" size="1" start="43" type="bool"/>
355 <field name="Multisample Mode (4x)" size="1" start="42" type="bool"/>
356
357 <field name="Maximum BPP of all render targets" size="2" start="40" type="uint">
358 <value name="Render target maximum 32bpp" value="0"/>
359 <value name="Render target maximum 64bpp" value="1"/>
360 <value name="Render target maximum 128bpp" value="2"/>
361 </field>
362
363 <field name="Image Height (pixels)" size="16" start="24" type="uint"/>
364 <field name="Image Width (pixels)" size="16" start="8" type="uint"/>
365 <field name="Number of Render Targets Minus 1" size="4" start="4" type="uint"/>
366
367 <field name="sub-id" size="4" start="0" type="uint" default="0"/>
368 </packet>
369
370 <packet code="121" name="Tile Rendering Mode Configuration (Render Target config)" cl="R">
371 <field name="Address" size="32" start="32" type="address"/>
372
373 <field name="Pad" size="4" start="28" type="uint"/>
374
375 <field name="Flip Y" size="1" start="27" type="bool"/>
376
377 <field name="Memory Format" size="3" start="24" type="uint" prefix="Memory Format">
378 <value name="Raster" value="0"/>
379 <value name="Lineartile" value="1"/>
380 <value name="UB-linear (1 UIF block wide)" value="2"/>
381 <value name="UB-linear (2 UIF blocks wide)" value="3"/>
382 <value name="UIF (No XOR)" value="4"/>
383 <value name="UIF (XOR)" value="5"/>
384 </field>
385
386 <field name="A dithered" size="1" start="23" type="bool"/>
387 <field name="BGR dithered" size="1" start="22" type="bool"/>
388
389 <field name="Output image format" size="6" start="16" type="uint" prefix="Output Image Format">
390 <value name="srgb8_alpha8" value="0"/>
391 <value name="srgb" value="1"/>
392 <value name="rgb10_a2ui" value="2"/>
393 <value name="rgb10_a2" value="3"/>
394 <value name="abgr1555" value="4"/>
395 <value name="alpha-masked abgr1555" value="5"/>
396 <value name="abgr4444" value="6"/>
397 <value name="bgr565" value="7"/>
398 <value name="r11f_g11f_b10f" value="8"/>
399 <value name="rgba32f" value="9"/>
400 <value name="rg32f" value="10"/>
401 <value name="r32f" value="11"/>
402 <value name="rgba32i" value="12"/>
403 <value name="rg32i" value="13"/>
404 <value name="r32i" value="14"/>
405 <value name="rgba32ui" value="15"/>
406 <value name="rg32ui" value="16"/>
407 <value name="r32ui" value="17"/>
408 <value name="rgba16f" value="18"/>
409 <value name="rg16f" value="19"/>
410 <value name="r16f" value="20"/>
411 <value name="rgba16i" value="21"/>
412 <value name="rg16i" value="22"/>
413 <value name="r16i" value="23"/>
414 <value name="rgba16ui" value="24"/>
415 <value name="rg16ui" value="25"/>
416 <value name="r16ui" value="26"/>
417 <value name="rgba8" value="27"/>
418 <value name="rgb8" value="28"/>
419 <value name="rg8" value="29"/>
420 <value name="r8" value="30"/>
421 <value name="rgba8i" value="31"/>
422 <value name="rg8i" value="32"/>
423 <value name="r8i" value="33"/>
424 <value name="rgba8ui" value="34"/>
425 <value name="rg8ui" value="35"/>
426 <value name="r8ui" value="36"/>
427 <value name="srgbx8" value="37"/>
428 <value name="rgbx8" value="38"/>
429 </field>
430
431 <field name="Decimate mode" size="2" start="14" type="uint"/>
432
433 <field name="Internal Type" size="4" start="10" type="uint" prefix="Internal Type">
434 <value name="8i" value="0"/>
435 <value name="8ui" value="1"/>
436 <value name="8" value="2"/>
437 <value name="16i" value="4"/>
438 <value name="16ui" value="5"/>
439 <value name="16f" value="6"/>
440 <value name="32i" value="8"/>
441 <value name="32ui" value="9"/>
442 <value name="32f" value="10"/>
443 </field>
444
445 <field name="Internal BPP" size="2" start="8" type="uint" prefix="Internal Bpp">
446 <value name="32" value="0"/>
447 <value name="64" value="1"/>
448 <value name="128" value="2"/>
449 </field>
450 <field name="Render Target Number" size="4" start="4" type="uint"/>
451 <field name="sub-id" size="4" start="0" type="uint" default="2"/>
452 </packet>
453
454 <packet code="121" name="Tile Rendering Mode Configuration (Z/Stencil config)" cl="R">
455 <field name="Address" size="32" start="32" type="address"/>
456
457 <field name="Padded height of output image in UIF blocks" size="13" start="25" type="uint"/>
458
459 <field name="Memory Format" size="3" start="22" type="uint" prefix="Memory Format">
460 <value name="Raster" value="0"/>
461 <value name="Lineartile" value="1"/>
462 <value name="UB-linear (1 UIF block wide)" value="2"/>
463 <value name="UB-linear (2 UIF blocks wide)" value="3"/>
464 <value name="UIF (No XOR)" value="4"/>
465 <value name="UIF (XOR)" value="5"/>
466 </field>
467
468 <field name="Output image format" size="6" start="16" type="uint" prefix="Output Image Format">
469 <value name="depth_component32f" value="0"/>
470 <value name="depth_component24" value="1"/>
471 <value name="depth_component16" value="2"/>
472 <value name="depth24_stencil8" value="3"/>
473 </field>
474
475 <field name="Decimate mode" size="2" start="14" type="uint"/>
476
477 <field name="Internal Type" size="4" start="10" type="uint" prefix="Internal Type">
478 <value name="depth_32f" value="0"/>
479 <value name="depth_24" value="1"/>
480 <value name="depth_16" value="2"/>
481 </field>
482
483 <field name="Internal BPP (ignored)" size="2" start="8" type="uint"/>
484 <!-- selects between Z/Stencil config packet and Separate Stencil packet. -->
485 <field name="Z/Stencil ID" size="4" start="4" type="uint" default="0"/>
486 <field name="sub-id" size="4" start="0" type="uint" default="1"/>
487 </packet>
488
489 <packet code="121" name="Tile Rendering Mode Configuration (Z Stencil Clear Values)" cl="R">
490 <field name="unused" size="16" start="48" type="uint"/>
491
492 <field name="Z/S Clear Value" size="32" start="16" type="uint"/>
493
494 <field name="Stencil/VG Mask Clear Value" size="8" start="8" type="uint"/>
495 <field name="sub-id" size="4" start="0" type="uint" default="3"/>
496 </packet>
497
498 <packet code="121" name="Tile Rendering Mode Configuration (Clear Colors Part1)" cl="R">
499 <!-- Express this as a 56-bit field? -->
500 <field name="Clear Color next 24 bits" size="24" start="40" type="uint"/>
501 <field name="Clear Color low 32 bits" size="32" start="8" type="uint"/>
502
503 <field name="Render Target number" size="4" start="4" type="uint"/>
504 <field name="sub-id" size="4" start="0" type="uint" default="4"/>
505 </packet>
506
507 <packet code="124" name="Tile Coordinates">
508 <field name="tile row number" size="12" start="12" type="uint"/>
509 <field name="tile column number" size="12" start="0" type="uint"/>
510 </packet>
511
512 <!-- add fields -->
513 <packet code="125" name="Tile Coordinates Implicit"/>
514
515 <packet code="126" name="Tile List Initial Block Size">
516 <field name="Use auto-chained tile lists" size="1" start="2" type="bool"/>
517
518 <field name="Size of first block in chained tile lists" size="2" start="0" type="uint">
519 <value name="tile allocation block size 64b" value="0"/>
520 <value name="tile allocation block size 128b" value="1"/>
521 <value name="tile allocation block size 256b" value="2"/>
522 </field>
523 </packet>
524
525 <struct name="GL Shader State Record">
526 <field name="Point size in shaded vertex data" size="1" start="0" type="bool"/>
527 <field name="Enable clipping" size="1" start="1" type="bool"/>
528 <field name="Vertex ID read by coordinate shader" size="1" start="2" type="bool"/>
529 <field name="Instance ID read by coordinate shader" size="1" start="3" type="bool"/>
530 <field name="Vertex ID read by vertex shader" size="1" start="4" type="bool"/>
531 <field name="Instance ID read by vertex shader" size="1" start="5" type="bool"/>
532 <field name="Fragment shader does Z writes" size="1" start="6" type="bool"/>
533 <field name="Turn off early-z test" size="1" start="7" type="bool"/>
534 <field name="Coordinate shader has separate input and output VPM blocks" size="1" start="8" type="bool"/>
535 <field name="Vertex shader has separate input and output VPM blocks" size="1" start="9" type="bool"/>
536 <field name="Fragment shader uses real pixel centre W in addition to centroid W2" size="1" start="10" type="bool"/>
537
538 <field name="Number of varyings in Fragment Shader" size="8" start="2b" type="uint"/>
539 <field name="Coordinate Shader output VPM segment size" size="8" start="4b" type="uint"/>
540 <field name="Coordinate Shader input VPM segment size" size="8" start="5b" type="uint"/>
541 <field name="Vertex Shader output VPM segment size" size="8" start="6b" type="uint"/>
542 <field name="Vertex Shader input VPM segment size" size="8" start="7b" type="uint"/>
543 <field name="Address of default attribute values" size="32" start="8b" type="address"/>
544 <field name="Fragment Shader Code Address" size="32" start="12b" type="address"/>
545 <field name="2-way threadable" size="1" start="96" type="bool"/>
546 <field name="4-way threadable" size="1" start="97" type="bool"/>
547 <field name="Propagate NaNs" size="1" start="98" type="bool"/>
548 <field name="Fragment Shader Uniforms Address" size="32" start="16b" type="address"/>
549 <field name="Vertex Shader Code Address" size="32" start="20b" type="address"/>
550 <field name="Vertex Shader Uniforms Address" size="32" start="24b" type="address"/>
551 <field name="Coordinate Shader Code Address" size="32" start="28b" type="address"/>
552 <field name="Coordinate Shader Uniforms Address" size="32" start="32b" type="address"/>
553 </struct>
554
555 <struct name="GL Shader State Attribute Record">
556 <field name="Address" size="32" start="0" type="address"/>
557
558 <field name="Vec size" size="2" start="32" type="uint"/>
559 <field name="Type" size="3" start="34" type="uint">
560 <value name="Attribute half-float" value="1"/>
561 <value name="Attribute float" value="2"/>
562 <value name="Attribute fixed" value="3"/>
563 <value name="Attribute byte" value="4"/>
564 <value name="Attribute short" value="5"/>
565 <value name="Attribute int" value="6"/>
566 <value name="Attribute int2_10_10_10" value="7"/>
567 </field>
568 <field name="Signed int type" size="1" start="37" type="bool"/>
569 <field name="Normalized int type" size="1" start="38" type="bool"/>
570 <field name="Read as int/uint" size="1" start="39" type="bool"/>
571
572 <field name="Number of values read by Coordinate shader" size="4" start="40" type="uint"/>
573 <field name="Number of values read by Vertex shader" size="4" start="44" type="uint"/>
574
575 <field name="Instance Divisor" size="16" start="6b" type="uint"/>
576 <field name="Stride" size="32" start="8b" type="uint"/>
577 </struct>
578
579 <struct name="VPM generic block write setup">
580 <field name="id" size="2" start="30" type="uint" default="0"/>
581 <field name="id0" size="3" start="27" type="uint" default="0"/>
582
583 <field name="horiz" size="1" start="24" type="bool"/>
584 <field name="laned" size="1" start="23" type="bool"/>
585 <field name="segs" size="1" start="22" type="bool"/>
586 <field name="stride" size="7" start="15" type="int"/>
587
588 <field name="size" size="2" start="13" type="uint">
589 <value name="VPM setup size 8-bit" value="0"/>
590 <value name="VPM setup size 16-bit" value="1"/>
591 <value name="VPM setup size 32-bit" value="2"/>
592 </field>
593
594 <field name="addr" size="13" start="0" type="uint"/>
595 </struct>
596
597 <struct name="VPM generic block read setup">
598 <field name="id" size="2" start="30" type="uint" default="1"/>
599
600 <field name="horiz" size="1" start="29" type="bool"/>
601 <field name="laned" size="1" start="28" type="bool"/>
602 <field name="segs" size="1" start="27" type="bool"/>
603 <field name="num" size="5" start="22" type="uint"/>
604 <field name="stride" size="7" start="15" type="int"/>
605
606 <field name="size" size="2" start="13" type="uint">
607 <value name="VPM setup size 8-bit" value="0"/>
608 <value name="VPM setup size 16-bit" value="1"/>
609 <value name="VPM setup size 32-bit" value="2"/>
610 </field>
611
612 <field name="addr" size="13" start="0" type="uint"/>
613 </struct>
614
615 <struct name="Texture Uniform Parameter 0 CFG_MODE=1">
616 <field name="Per-pixel mask enable" size="1" start="31" type="bool"/>
617
618 <field name="Texel offset for r coordinate" size="4" start="27" type="int"/>
619 <field name="Texel offset for t coordinate" size="4" start="23" type="int"/>
620 <field name="Texel offset for s coordinate" size="4" start="19" type="int"/>
621
622 <field name="R Wrap Mode" size="3" start="16" type="uint">
623 <value name="Wrap mode REPEAT" value="0"/>
624 <value name="Wrap mode CLAMP" value="1"/>
625 <value name="Wrap mode MIRROR" value="2"/>
626 <value name="Wrap mode BORDER" value="3"/>
627 <value name="Wrap mode MIRROR_ONCE" value="4"/>
628 </field>
629
630 <field name="T Wrap Mode" size="3" start="13" type="uint">
631 <value name="Wrap mode REPEAT" value="0"/>
632 <value name="Wrap mode CLAMP" value="1"/>
633 <value name="Wrap mode MIRROR" value="2"/>
634 <value name="Wrap mode BORDER" value="3"/>
635 <value name="Wrap mode MIRROR_ONCE" value="4"/>
636 </field>
637
638 <field name="S Wrap Mode" size="3" start="10" type="uint">
639 <value name="Wrap mode REPEAT" value="0"/>
640 <value name="Wrap mode CLAMP" value="1"/>
641 <value name="Wrap mode MIRROR" value="2"/>
642 <value name="Wrap mode BORDER" value="3"/>
643 <value name="Wrap mode MIRROR_ONCE" value="4"/>
644 </field>
645
646 <field name="New configuration mode" size="1" start="9" type="bool" default="1"/>
647
648 <field name="Shadow" size="1" start="8" type="bool"/>
649 <field name="Coefficient lookup mode" size="1" start="7" type="bool"/>
650 <field name="Disable AutoLOD, use bias only" size="1" start="6" type="bool"/>
651 <field name="Bias supplied" size="1" start="5" type="bool"/>
652 <field name="Gather sample mode" size="1" start="4" type="bool"/>
653 <field name="Fetch sample mode" size="1" start="3" type="bool"/>
654
655 <field name="Lookup Type" size="3" start="0" type="bool">
656 <value name="Texture 2D" value="0"/>
657 <value name="Texture 2D array" value="1"/>
658 <value name="Texture 3D" value="2"/>
659 <value name="Texture Cube Map" value="3"/>
660 <value name="Texture 1D" value="4"/>
661 <value name="Texture 1D Array" value="5"/>
662 <value name="Texture Child Image" value="6"/>
663 </field>
664 </struct>
665
666 <struct name="Texture Uniform Parameter 1 CFG_MODE=1">
667 <field name="Texture state record base address" size="32" start="0" type="address"/>
668 <field name="Return word 3 of texture data" size="1" start="3" type="bool"/>
669 <field name="Return word 2 of texture data" size="1" start="2" type="bool"/>
670 <field name="Return word 1 of texture data" size="1" start="1" type="bool"/>
671 <field name="Return word 0 of texture data" size="1" start="0" type="bool"/>
672 </struct>
673
674 <struct name="Texture Shader State">
675 <field name="Level 0 is strictly UIF" size="1" start="254" type="bool"/>
676 <field name="Level 0 XOR enable" size="1" start="252" type="bool"/>
677 <field name="Level 0 UB_PAD" size="4" start="248" type="uint"/>
678
679 <field name="Base Level" size="4" start="240" type="uint"/>
680 <field name="Fixed Bias" size="16" start="224" type="s8.8"/>
681 <field name="Max Level-of-Detail" size="16" start="208" type="s8.8"/>
682 <field name="Min Level-of-Detail" size="16" start="192" type="s8.8"/>
683
684 <field name="Border Color alpha" size="16" start="176" type="uint"/>
685 <field name="Border Color blue" size="16" start="160" type="uint"/>
686 <field name="Border Color green" size="16" start="144" type="uint"/>
687 <field name="Border Color red" size="16" start="128" type="uint"/>
688
689 <field name="Flip S and T on incoming request" size="1" start="127" type="bool"/>
690 <field name="Flip ETC Y" size="1" start="126" type="bool" default="1"/>
691 <field name="Flip texture Y Axis" size="1" start="125" type="bool"/>
692 <field name="Flip texture X Axis" size="1" start="124" type="bool"/>
693
694 <field name="Swizzle A" size="3" start="121" type="uint">
695 <value name="Swizzle Zero" value="0"/>
696 <value name="Swizzle One" value="1"/>
697 <value name="Swizzle Red" value="2"/>
698 <value name="Swizzle Green" value="3"/>
699 <value name="Swizzle Blue" value="4"/>
700 <value name="Swizzle Alpha" value="5"/>
701 </field>
702
703 <field name="Swizzle B" size="3" start="118" type="uint"/>
704 <field name="Swizzle G" size="3" start="115" type="uint"/>
705 <field name="Swizzle R" size="3" start="112" type="uint"/>
706
707 <field name="Depth Compare Function" size="3" start="109" type="uint"/>
708
709 <field name="sRGB" size="1" start="107" type="bool"/>
710
711 <field name="Texture type" size="7" start="100" type="uint"/>
712
713 <field name="Image Depth" size="14" start="86" type="uint"/>
714 <field name="Image Height" size="14" start="72" type="uint"/>
715 <field name="Image Width" size="14" start="58" type="uint"/>
716
717 <field name="Array Stride (64-byte aligned)" size="26" start="32" type="uint"/>
718
719 <field name="Texture base pointer" size="32" start="0" type="address"/>
720
721 <field name="Minification Filter" size="3" start="1" type="uint"/>
722 <field name="Magnification Filter" size="1" start="0" type="uint"/>
723 </struct>
724
725 <enum name="Texture Data Formats">
726 <value name="Texture Data Format R8" value="0"/>
727 <value name="Texture Data Format R8 SNORM" value="1"/>
728 <value name="Texture Data Format RG8" value="2"/>
729 <value name="Texture Data Format RG8 SNORM" value="3"/>
730 <value name="Texture Data Format RGBA8" value="4"/>
731 <value name="Texture Data Format RGBA8 SNORM" value="5"/>
732 <value name="Texture Data Format RGB565" value="6"/>
733 <value name="Texture Data Format RGBA4" value="7"/>
734 <value name="Texture Data Format RGB5_A1" value="8"/>
735 <value name="Texture Data Format RGB10_A2" value="9"/>
736 <value name="Texture Data Format R16" value="10"/>
737 <value name="Texture Data Format R16 SNORM" value="11"/>
738 <value name="Texture Data Format RG16" value="12"/>
739 <value name="Texture Data Format RG16 SNORM" value="13"/>
740 <value name="Texture Data Format RGBA16" value="14"/>
741 <value name="Texture Data Format RGBA16 SNORM" value="15"/>
742 <value name="Texture Data Format R16F" value="16"/>
743 <value name="Texture Data Format RG16F" value="17"/>
744 <value name="Texture Data Format RGBA16F" value="18"/>
745 <value name="Texture Data Format R11F_G11F_B10F" value="19"/>
746 <value name="Texture Data Format RGB9_E5" value="20"/>
747 <value name="Texture Data Format DEPTH COMP16" value="21"/>
748 <value name="Texture Data Format DEPTH COMP24" value="22"/>
749 <value name="Texture Data Format DEPTH COMP32F" value="23"/>
750 <value name="Texture Data Format DEPTH24_X8" value="24"/>
751 <value name="Texture Data Format R4" value="25"/>
752 <value name="Texture Data Format R1" value="26"/>
753 <!-- generic unfiltered 8-bit sample -->
754 <value name="Texture Data Format S8" value="27"/>
755 <!-- generic unfiltered 16-bit sample -->
756 <value name="Texture Data Format S16" value="28"/>
757 <!-- generic unfiltered 32-bit sample -->
758 <value name="Texture Data Format R32F" value="29"/>
759 <!-- generic unfiltered 64-bit sample -->
760 <value name="Texture Data Format RG32F" value="30"/>
761 <!-- generic unfiltered 128-bit sample -->
762 <value name="Texture Data Format RGBA32F" value="31"/>
763
764 <value name="Texture Data Format RGB8_ETC2" value="32"/>
765 <value name="Texture Data Format RGB8_PUNCHTHROUGH_ALPHA1" value="33"/>
766
767 <value name="Texture Data Format R11_EAC" value="34"/>
768 <value name="Texture Data Format SIGNED_R11_EAC" value="35"/>
769 <value name="Texture Data Format RG11_EAC" value="36"/>
770 <value name="Texture Data Format SIGNED_RG11_EAC" value="37"/>
771
772 <value name="Texture Data Format RGBA8_ETC2_EAC" value="38"/>
773 <value name="Texture Data Format YCBCR_LUMA" value="39"/>
774 <value name="Texture Data Format YCBCR_420_CHROMA" value="40"/>
775
776 <value name="Texture Data Format BC1" value="48"/>
777 <value name="Texture Data Format BC2" value="49"/>
778 <value name="Texture Data Format BC3" value="50"/>
779
780 <value name="Texture Data Format ASTC_4x4" value="64"/>
781 <value name="Texture Data Format ASTC_5x4" value="65"/>
782 <value name="Texture Data Format ASTC_5x5" value="66"/>
783 <value name="Texture Data Format ASTC_6x5" value="67"/>
784 <value name="Texture Data Format ASTC_6x6" value="68"/>
785 <value name="Texture Data Format ASTC_8x5" value="69"/>
786 <value name="Texture Data Format ASTC_8x6" value="70"/>
787 <value name="Texture Data Format ASTC_8x8" value="71"/>
788 <value name="Texture Data Format ASTC_10x5" value="72"/>
789 <value name="Texture Data Format ASTC_10x6" value="73"/>
790 <value name="Texture Data Format ASTC_10x8" value="74"/>
791 <value name="Texture Data Format ASTC_10x10" value="75"/>
792 <value name="Texture Data Format ASTC_12x10" value="76"/>
793 <value name="Texture Data Format ASTC_12x12" value="77"/>
794 </enum>
795 </vcxml>