1<panxml> 2 3 <enum name="Attribute Type"> 4 <value name="1D" value="1"/> 5 <value name="1D POT Divisor" value="2"/> 6 <value name="1D Modulus" value="3"/> 7 <value name="1D NPOT Divisor" value="4"/> 8 <value name="Continuation" value="32"/> 9 </enum> 10 11 <enum name="Attribute Special"> 12 <value name="Vertex ID" value="34"/> 13 <value name="Instance ID" value="36"/> 14 <value name="Frag Coord" value="37"/> 15 <value name="Front Facing" value="38"/> 16 <value name="Point Coord" value="97"/> 17 </enum> 18 19 <enum name="Channel"> 20 <value name="R" value="0"/> 21 <value name="G" value="1"/> 22 <value name="B" value="2"/> 23 <value name="A" value="3"/> 24 <value name="0" value="4"/> 25 <value name="1" value="5"/> 26 </enum> 27 28 <enum name="Depth Source"> 29 <value name="None" value="0"/> 30 <value name="Fixed function" value="2"/> 31 <value name="Shader" value="3"/> 32 </enum> 33 34 <enum name="Job Type"> 35 <value name="Not started" value="0"/> 36 <value name="Null" value="1"/> 37 <value name="Write value" value="2"/> 38 <value name="Cache flush" value="3"/> 39 <value name="Compute" value="4"/> 40 <value name="Vertex" value="5"/> 41 <value name="Geometry" value="6"/> 42 <value name="Tiler" value="7"/> 43 <value name="Fused" value="8"/> 44 <value name="Fragment" value="9"/> 45 </enum> 46 47 <enum name="Draw Mode"> 48 <value name="None" value="0"/> 49 <value name="Points" value="1"/> 50 <value name="Lines" value="2"/> 51 <value name="Line strip" value="4"/> 52 <value name="Line loop" value="6"/> 53 <value name="Triangles" value="8"/> 54 <value name="Triangle strip" value="10"/> 55 <value name="Triangle fan" value="12"/> 56 <value name="Polygon" value="13"/> 57 <value name="Quads" value="14"/> 58 <value name="Quad strip" value="15"/> 59 </enum> 60 61 <enum name="Exception Access"> 62 <value name="None" value="0"/> 63 <value name="Execute" value="2"/> 64 <value name="Read" value="1"/> 65 <value name="Write" value="3"/> 66 </enum> 67 68 <enum name="Func"> 69 <value name="Never" value="0"/> 70 <value name="Less" value="1"/> 71 <value name="Equal" value="2"/> 72 <value name="Lequal" value="3"/> 73 <value name="Greater" value="4"/> 74 <value name="Not Equal" value="5"/> 75 <value name="Gequal" value="6"/> 76 <value name="Always" value="7"/> 77 </enum> 78 79 <enum name="Format"> 80 <value name="ETC2 RGB8" value="1"/> 81 <value name="ETC2 R11 UNORM" value="2"/> 82 <value name="ETC2 RGBA8" value="3"/> 83 <value name="ETC2 RG11 UNORM" value="4"/> 84 <!--- Formats 5-6 new in v7 *--> 85 <value name="R4A4 UNORM" value="5"/> 86 <value name="A4R4 UNORM" value="6"/> 87 <value name="BC1 UNORM" value="7"/> 88 <value name="BC2 UNORM" value="8"/> 89 <value name="BC3 UNORM" value="9"/> 90 <value name="BC4 UNORM" value="10"/> 91 <value name="BC4 SNORM" value="11"/> 92 <value name="BC5 UNORM" value="12"/> 93 <value name="BC5 SNORM" value="13"/> 94 <value name="BC6H UF16" value="14"/> 95 <value name="BC6H SF16" value="15"/> 96 <value name="BC7 UNORM" value="16"/> 97 <value name="ETC2 R11 SNORM" value="17"/> 98 <value name="ETC2 RG11 SNORM" value="18"/> 99 <value name="ETC2 RGB8A1" value="19"/> 100 <value name="ASTC 3D LDR" value="20"/> 101 <value name="ASTC 3D HDR" value="21"/> 102 <value name="ASTC 2D LDR" value="22"/> 103 <value name="ASTC 2D HDR" value="23"/> 104 <!--- Formats 24-31 new in v7 * *--> 105 <value name="R8A8 UNORM" value="24"/> 106 <value name="A8R8 UNORM" value="25"/> 107 <value name="A8 UNORM" value="26"/> 108 <value name="RAW10" value="28"/> 109 <value name="RAW12" value="29"/> 110 <value name="R8G8B8G8" value="30"/> 111 <value name="G8R8G8B8" value="31"/> 112 <value name="RGB565" value="64"/> 113 <value name="RGB5 A1 UNORM" value="65"/> 114 <value name="A1 BGR5 UNORM" value="66"/> 115 <value name="RGB10 A2 UNORM" value="67"/> 116 <value name="A2 BGR10 UNORM" value="68"/> 117 <value name="RGB10 A2 SNORM" value="69"/> 118 <value name="A2 BGR10 SNORM" value="70"/> 119 <value name="RGB10 A2UI" value="71"/> 120 <value name="A2 BGR10UI" value="72"/> 121 <value name="RGB10 A2I" value="73"/> 122 <value name="A2 BGR10I" value="74"/> 123 <value name="RGB332 UNORM" value="75"/> 124 <value name="BGR233 UNORM" value="76"/> 125 <value name="Z24X8 UNORM" value="77"/> 126 <value name="X8Z24" value="78"/> 127 <value name="X32 S8X24" value="79"/> 128 <value name="X24S8 X32" value="80"/> 129 <value name="R32 FIXED" value="81"/> 130 <value name="RG32 FIXED" value="82"/> 131 <value name="RGB32 FIXED" value="83"/> 132 <value name="RGBA32 FIXED" value="84"/> 133 <!--- On v7, X24S8 --> 134 <value name="Tilebuffer Native" value="85"/> 135 <value name="S8X24" value="86"/> 136 <value name="Z32 X32" value="87"/> 137 <value name="X32 Z32" value="88"/> 138 <value name="R11F G11F B10F" value="89"/> 139 <value name="B10F G11F R11F" value="90"/> 140 <value name="R9F G9F B9F E5F" value="91"/> 141 <value name="E5F B9F G9F R9F" value="92"/> 142 <!--- Format 93 avaible v7+. On Midgard, acts as a RG16F + snap --> 143 <value name="S8" value="93"/> 144 <!--- RGBA32F + snap to 2^-8, used for vertex writes --> 145 <value name="Snap 4" value="94"/> 146 <value name="Constant" value="95"/> 147 <value name="R1 SNORM" value="96"/> 148 <value name="R2 SNORM" value="97"/> 149 <value name="R4 SNORM" value="98"/> 150 <value name="R8 SNORM" value="99"/> 151 <value name="R16 SNORM" value="100"/> 152 <value name="R32 SNORM" value="101"/> 153 <value name="R64 SNORM" value="102"/> 154 <!--- 103 reserved --> 155 <value name="RG1 SNORM" value="104"/> 156 <value name="RG2 SNORM" value="105"/> 157 <value name="RG4 SNORM" value="106"/> 158 <value name="RG8 SNORM" value="107"/> 159 <value name="RG16 SNORM" value="108"/> 160 <value name="RG32 SNORM" value="109"/> 161 <value name="RG64 SNORM" value="110"/> 162 <!-- 111 reserved --> 163 <value name="RGB1 SNORM" value="112"/> 164 <value name="RGB2 SNORM" value="113"/> 165 <value name="RGB4 SNORM" value="114"/> 166 <value name="RGB8 SNORM" value="115"/> 167 <value name="RGB16 SNORM" value="116"/> 168 <value name="RGB32 SNORM" value="117"/> 169 <value name="RGB64 SNORM" value="118"/> 170 <!-- 119 reserved --> 171 <value name="RGBA1 SNORM" value="120"/> 172 <value name="RGBA2 SNORM" value="121"/> 173 <value name="RGBA4 SNORM" value="122"/> 174 <value name="RGBA8 SNORM" value="123"/> 175 <value name="RGBA16 SNORM" value="124"/> 176 <value name="RGBA32 SNORM" value="125"/> 177 <value name="RGBA64 SNORM" value="126"/> 178 <!-- 127 reserved --> 179 <value name="R1UI" value="128"/> 180 <value name="R2UI" value="129"/> 181 <value name="R4UI" value="130"/> 182 <value name="R8UI" value="131"/> 183 <value name="R16UI" value="132"/> 184 <value name="R32UI" value="133"/> 185 <value name="R64UI" value="134"/> 186 <value name="R64F" value="135"/> 187 <value name="RG1UI" value="136"/> 188 <value name="RG2UI" value="137"/> 189 <value name="RG4UI" value="138"/> 190 <value name="RG8UI" value="139"/> 191 <value name="RG16UI" value="140"/> 192 <value name="RG32UI" value="141"/> 193 <value name="RG64UI" value="142"/> 194 <value name="RG64F" value="143"/> 195 <value name="RGB1UI" value="144"/> 196 <value name="RGB2UI" value="145"/> 197 <value name="RGB4UI" value="146"/> 198 <value name="RGB8UI" value="147"/> 199 <value name="RGB16UI" value="148"/> 200 <value name="RGB32UI" value="149"/> 201 <value name="RGB64UI" value="150"/> 202 <value name="RGB64F" value="151"/> 203 <value name="RGBA1UI" value="152"/> 204 <value name="RGBA2UI" value="153"/> 205 <value name="RGBA4UI" value="154"/> 206 <value name="RGBA8UI" value="155"/> 207 <value name="RGBA16UI" value="156"/> 208 <value name="RGBA32UI" value="157"/> 209 <value name="RGBA64UI" value="158"/> 210 <value name="RGBA64F" value="159"/> 211 <value name="R1 UNORM" value="160"/> 212 <value name="R2 UNORM" value="161"/> 213 <value name="R4 UNORM" value="162"/> 214 <value name="R8 UNORM" value="163"/> 215 <value name="R16 UNORM" value="164"/> 216 <value name="R32 UNORM" value="165"/> 217 <value name="R64 UNORM" value="166"/> 218 <value name="R32F" value="167"/> 219 <value name="RG1 UNORM" value="168"/> 220 <value name="RG2 UNORM" value="169"/> 221 <value name="RG4 UNORM" value="170"/> 222 <value name="RG8 UNORM" value="171"/> 223 <value name="RG16 UNORM" value="172"/> 224 <value name="RG32 UNORM" value="173"/> 225 <value name="RG64 UNORM" value="174"/> 226 <value name="RG32F" value="175"/> 227 <value name="RGB1 UNORM" value="176"/> 228 <value name="RGB2 UNORM" value="177"/> 229 <value name="RGB4 UNORM" value="178"/> 230 <value name="RGB8 UNORM" value="179"/> 231 <value name="RGB16 UNORM" value="180"/> 232 <value name="RGB32 UNORM" value="181"/> 233 <value name="RGB64 UNORM" value="182"/> 234 <value name="RGB32F" value="183"/> 235 <value name="RGBA1 UNORM" value="184"/> 236 <value name="RGBA2 UNORM" value="185"/> 237 <value name="RGBA4 UNORM" value="186"/> 238 <value name="RGBA8 UNORM" value="187"/> 239 <value name="RGBA16 UNORM" value="188"/> 240 <value name="RGBA32 UNORM" value="189"/> 241 <value name="RGBA64 UNORM" value="190"/> 242 <value name="RGBA32F" value="191"/> 243 <value name="R1I" value="192"/> 244 <value name="R2I" value="193"/> 245 <value name="R4I" value="194"/> 246 <value name="R8I" value="195"/> 247 <value name="R16I" value="196"/> 248 <value name="R32I" value="197"/> 249 <value name="R64I" value="198"/> 250 <value name="R16F" value="199"/> 251 <value name="RG1I" value="200"/> 252 <value name="RG2I" value="201"/> 253 <value name="RG4I" value="202"/> 254 <value name="RG8I" value="203"/> 255 <value name="RG16I" value="204"/> 256 <value name="RG32I" value="205"/> 257 <value name="RG64I" value="206"/> 258 <value name="RG16F" value="207"/> 259 <value name="RGB1I" value="208"/> 260 <value name="RGB2I" value="209"/> 261 <value name="RGB4I" value="210"/> 262 <value name="RGB8I" value="211"/> 263 <value name="RGB16I" value="212"/> 264 <value name="RGB32I" value="213"/> 265 <value name="RGB64I" value="214"/> 266 <value name="RGB16F" value="215"/> 267 <value name="RGBA1I" value="216"/> 268 <value name="RGBA2I" value="217"/> 269 <value name="RGBA4I" value="218"/> 270 <value name="RGBA8I" value="219"/> 271 <value name="RGBA16I" value="220"/> 272 <value name="RGBA32I" value="221"/> 273 <value name="RGBA64I" value="222"/> 274 <value name="RGBA16F" value="223"/> 275 <value name="RGB5 A1 AU" value="224"/> 276 <value name="RGB5 A1 PU" value="225"/> 277 <value name="R5G6B5 AU" value="226"/> 278 <value name="R5G6B5 PU" value="227"/> 279 <value name="Snap4 V" value="230"/> 280 <value name="R32F RTZ" value="231"/> 281 <value name="RGBA4 AU" value="232"/> 282 <value name="RGBA4 PU" value="233"/> 283 <value name="RGBA8 TB" value="237"/> 284 <value name="RGB10 A2 TB" value="238"/> 285 <value name="RG32F RTZ" value="239"/> 286 <value name="Tess Vertex Pack" value="240"/> 287 <value name="RGB8 A2 AU" value="241"/> 288 <value name="RGB8 A2 PU" value="242"/> 289 <value name="RGB32F RTZ" value="247"/> 290 <value name="RGBA32F RTZ" value="255"/> 291 </enum> 292 293 <enum name="RGB Component Order"> 294 <value name="RGBA" value="0"/> 295 <value name="GRBA" value="2"/> 296 <value name="BGRA" value="4"/> 297 <value name="ARGB" value="8"/> 298 <value name="AGRB" value="10"/> 299 <value name="ABGR" value="12"/> 300 <value name="RGB1" value="16"/> 301 <value name="GRB1" value="18"/> 302 <value name="BGR1" value="20"/> 303 <value name="1RGB" value="24"/> 304 <value name="1GRB" value="26"/> 305 <value name="1BGR" value="28"/> 306 <value name="RRRR" value="226"/> 307 <value name="RRR1" value="227"/> 308 <value name="RRRA" value="228"/> 309 <value name="000A" value="229"/> 310 <value name="0001" value="230"/> 311 <value name="0000" value="231"/> 312 <value name="Snap4 v9" value="232"/> 313 <value name="Snap4 v10" value="233"/> 314 <value name="Snap4 v11" value="234"/> 315 <value name="Snap4 v12" value="235"/> 316 <value name="Snap4 v13" value="236"/> 317 <value name="Snap4 v14" value="237"/> 318 <value name="Snap4 v15" value="238"/> 319 <value name="Snap4 v16" value="239"/> 320 <!-- Internal only, do not use --> 321 <value name="R000" value="240"/> 322 <value name="RBGA" value="242"/> 323 </enum> 324 325 <enum name="YUV Swizzle"> 326 <value name="YUVA" value="0"/> 327 <value name="YVUA" value="1"/> 328 <value name="UYVA" value="2"/> 329 <value name="UVYA" value="3"/> 330 <value name="VUYA" value="4"/> 331 <value name="VYUA" value="5"/> 332 <value name="Y00A" value="6"/> 333 <value name="YXXA" value="7"/> 334 </enum> 335 336 <enum name="YUV Conversion Mode"> 337 <value name="No Conversion" value="0"/> 338 <value name="BT 601" value="3"/> 339 <value name="BT 709" value="4"/> 340 <value name="BT 2020" value="6"/> 341 </enum> 342 343 <enum name="YUV Cr Siting"> 344 <value name="Co-Sited" value="0"/> 345 <value name="Center Y" value="1"/> 346 <value name="Center X" value="2"/> 347 <value name="Center" value="3"/> 348 <value name="One Quarter" value="4"/> 349 <value name="Three Quarters" value="5"/> 350 <value name="Replicated" value="7"/> 351 </enum> 352 353 <enum name="Pixel Kill"> 354 <value name="Force Early" value="0"/> 355 <value name="Strong Early" value="1"/> 356 <value name="Weak Early" value="2"/> 357 <value name="Force Late" value="3"/> 358 </enum> 359 360 <struct name="Pixel Format" no-direct-packing="true"> 361 <field name="RGB Component Order" size="8" start="0" type="RGB Component Order"/> 362 <field name="YUV Component Order" size="3" start="0" type="YUV Swizzle"/> 363 <field name="YUV Component Swap" size="1" start="3" type="bool"/> 364 <field name="YUV Cr Siting" size="3" start="0" type="YUV Cr Siting"/> 365 <field name="Swizzle" size="12" start="0" type="uint"/> 366 <field name="Format" size="8" start="12" type="Format"/> 367 <field name="sRGB" size="1" start="20" type="bool"/> 368 <field name="Big Endian" size="1" start="21" type="bool"/> 369 </struct> 370 371 <enum name="Block Format"> 372 <!--- 16x16 block u-interleaved --> 373 <value name="Tiled U-Interleaved" value="0"/> 374 <value name="Tiled Linear" value="1"/> 375 <value name="Linear" value="2"/> 376 <value name="AFBC" value="3"/> 377 </enum> 378 379 <enum name="Block Format v7"> 380 <value name="No Write" value="0"/> 381 <value name="Tiled U-Interleaved" value="1"/> 382 <value name="Linear" value="2"/> 383 <value name="AFBC" value="12"/> 384 <value name="AFBC Tiled" value="13"/> 385 </enum> 386 387 <enum name="Mipmap Mode"> 388 <value name="Nearest" value="0"/> 389 <value name="None" value="1"/> 390 <value name="Trilinear" value="3"/> 391 </enum> 392 393 <enum name="MSAA"> 394 <value name="Single" value="0"/> 395 <!-- N samples, 1 surface, resolved --> 396 <value name="Average" value="1"/> 397 <!-- N samples, 1 surface, unresolved --> 398 <value name="Multiple" value="2"/> 399 <!-- N samples, N surfaces --> 400 <value name="Layered" value="3"/> 401 </enum> 402 403 <enum name="Index Type"> 404 <value name="None" value="0"/> 405 <value name="UINT8" value="1"/> 406 <value name="UINT16" value="2"/> 407 <value name="UINT32" value="3"/> 408 </enum> 409 410 <enum name="Occlusion Mode"> 411 <value name="Disabled" value="0"/> 412 <value name="Predicate" value="1"/> 413 <value name="Counter" value="3"/> 414 </enum> 415 416 <enum name="Sample Count"> 417 <value name="Samples 1x" value="0"/> 418 <value name="Samples 4x" value="2"/> 419 <value name="Samples 8x" value="3"/> 420 <value name="Samples 16x" value="4"/> 421 </enum> 422 423 <enum name="Stencil Op"> 424 <value name="Keep" value="0"/> 425 <value name="Replace" value="1"/> 426 <value name="Zero" value="2"/> 427 <value name="Invert" value="3"/> 428 <value name="Incr Wrap" value="4"/> 429 <value name="Decr Wrap" value="5"/> 430 <value name="Incr Sat" value="6"/> 431 <value name="Decr Sat" value="7"/> 432 </enum> 433 434 <enum name="Texture Dimension"> 435 <value name="Cube" value="0"/> 436 <value name="1D" value="1"/> 437 <value name="2D" value="2"/> 438 <value name="3D" value="3"/> 439 </enum> 440 441 <enum name="Texture Layout"> 442 <!--- 16x16 block u-interleaved --> 443 <value name="Tiled" value="1"/> 444 <value name="Linear" value="2"/> 445 <value name="AFBC" value="12"/> 446 </enum> 447 448 <enum name="Wrap Mode"> 449 <value name="Repeat" value="8"/> 450 <value name="Clamp to Edge" value="9"/> 451 <value name="Clamp" value="10"/> 452 <value name="Clamp to Border" value="11"/> 453 <value name="Mirrored Repeat" value="12"/> 454 <value name="Mirrored Clamp to Edge" value="13"/> 455 <value name="Mirrored Clamp" value="14"/> 456 <value name="Mirrored Clamp to Border" value="15"/> 457 </enum> 458 459 <struct name="Attribute"> 460 <field name="Buffer index" size="9" start="0" type="uint"/> 461 <field name="Offset enable" size="1" start="9" type="bool" default="true"/> 462 <field name="Format" size="22" start="10" type="uint"/> 463 <field name="Offset" size="32" start="32" type="int"/> 464 </struct> 465 466 <struct name="Attribute Buffer"> 467 <field name="Special" size="8" start="0" type="Attribute Special"/> 468 <field name="Type" size="6" start="0" type="Attribute Type" default="1D"/> 469 <field name="Pointer" size="50" start="6" type="address" modifier="shr(6)"/> 470 <field name="Stride" size="32" start="64" type="uint"/> 471 <field name="Size" size="32" start="96" type="uint"/> 472 473 <field name="Divisor" size="8" start="56" type="padded" default="1"/> 474 <field name="Divisor R" size="5" start="56" type="uint"/> 475 <field name="Divisor P" size="3" start="61" type="uint"/> 476 <field name="Divisor E" size="1" start="61" type="uint"/> 477 </struct> 478 479 <struct name="Attribute Buffer Continuation NPOT"> 480 <field name="Type" size="6" start="0:0" type="Attribute Type" default="Continuation"/> 481 <field name="Divisor Numerator" size="32" start="1:0" type="uint"/> 482 <field name="Divisor" size="32" start="3:0" type="uint"/> 483 </struct> 484 485 <enum name="Blend Operand A"> 486 <value name="Zero" value="1"/> 487 <value name="Src" value="2"/> 488 <value name="Dest" value="3"/> 489 </enum> 490 491 <enum name="Blend Operand B"> 492 <value name="Src Minus Dest" value="0"/> 493 <value name="Src Plus Dest" value="1"/> 494 <value name="Src" value="2"/> 495 <value name="Dest" value="3"/> 496 </enum> 497 498 <enum name="Blend Operand C"> 499 <value name="Zero" value="1"/> 500 <value name="Src" value="2"/> 501 <value name="Dest" value="3"/> 502 <value name="Src x 2" value="4"/> 503 <value name="Src Alpha" value="5"/> 504 <value name="Dest Alpha" value="6"/> 505 <value name="Constant" value="7"/> 506 </enum> 507 508 <struct name="Blend Function" no-direct-packing="true"> 509 <!-- Blend equation: A + (B * C) --> 510 <field name="A" size="2" start="0" type="Blend Operand A"/> 511 <field name="Negate A" size="1" start="3" type="bool"/> 512 <field name="B" size="2" start="4" type="Blend Operand B"/> 513 <field name="Negate B" size="1" start="7" type="bool"/> 514 <field name="C" size="3" start="8" type="Blend Operand C"/> 515 <field name="Invert C" size="1" start="11" type="bool"/> 516 </struct> 517 518 <struct name="Blend Equation" size="1"> 519 <field name="RGB" size="12" start="0:0" type="Blend Function"/> 520 <field name="Alpha" size="12" start="0:12" type="Blend Function"/> 521 <field name="Color Mask" size="4" start="0:28" type="uint"/> 522 </struct> 523 524 <struct name="Midgard Blend Overlay" size="4" no-direct-packing="true"> 525 <field name="Blend Shader" size="1" start="0:1" type="bool" default="false"/> 526 <field name="Blend Shader Contains Discard" size="1" start="0:2" type="bool" default="false"/> 527 <field name="Shader PC" size="64" start="2:0" type="address"/> 528 <field name="Equation" size="32" start="2:0" type="Blend Equation"/> 529 <field name="Constant" size="32" start="3:0" type="float"/> 530 </struct> 531 532 <enum name="Bifrost Register File Format"> 533 <value name="F16" value="0"/> 534 <value name="F32" value="1"/> 535 <value name="I32" value="2"/> 536 <value name="U32" value="3"/> 537 <value name="I16" value="4"/> 538 <value name="U16" value="5"/> 539 </enum> 540 541 <enum name="Bifrost Blend Mode"> 542 <value name="Shader" value="0"/> 543 <value name="Opaque" value="1"/> 544 <value name="Fixed-Function" value="2"/> 545 <value name="Off" value="3"/> 546 </enum> 547 548 <struct name="Bifrost Blend Shader" size="2"> 549 <field name="Return Value" size="29" start="0:3" type="uint" modifier="shr(3)"/> 550 <field name="PC" size="28" start="1:4" type="uint" modifier="shr(4)"/> 551 </struct> 552 553 <struct name="Bifrost Internal Conversion" size="1"> 554 <field name="Memory Format" size="22" start="0" type="Pixel Format"/> 555 <field name="Raw" size="1" start="22" type="bool"/> 556 <field name="Register Format" size="3" start="24" type="Bifrost Register File Format"/> 557 </struct> 558 559 <struct name="Bifrost Blend Fixed-Function" size="2"> 560 <field name="Num Comps" size="2" start="0:3" type="uint" modifier="minus(1)" default="1"/> 561 <field name="Alpha Zero NOP" size="1" start="0:5" type="bool"/> 562 <field name="Alpha One Store" size="1" start="0:6" type="bool"/> 563 <field name="RT" size="4" start="0:16" type="uint"> 564 <value name="MALI_BIFROST_BLEND_MAX_RT" value="8"/> 565 </field> 566 <field name="Conversion" size="32" start="1:0" type="Bifrost Internal Conversion"/> 567 </struct> 568 569 <struct name="Bifrost Internal Blend"> 570 <field name="Mode" size="2" start="0:0" type="Bifrost Blend Mode"/> 571 <field name="Shader" size="64" start="0:0" type="Bifrost Blend Shader"/> 572 <field name="Fixed-Function" size="64" start="0:0" type="Bifrost Blend Fixed-Function"/> 573 </struct> 574 575 <struct name="Bifrost Blend Overlay" no-direct-packing="true"> 576 <field name="Constant" size="16" start="0:16" type="uint"/> 577 <field name="Equation" size="32" start="1:0" type="Blend Equation"/> 578 <field name="Internal" size="64" start="2:0" type="Bifrost Internal Blend"/> 579 </struct> 580 581 <struct name="Blend" size="4"> 582 <field name="Load Destination" size="1" start="0:0" type="bool" default="false"/> 583 <field name="Alpha To One" size="1" start="0:8" type="bool"/> 584 <field name="Enable" size="1" start="0:9" type="bool" default="true"/> 585 <field name="sRGB" size="1" start="0:10" type="bool" default="false"/> 586 <field name="Round to FB precision" size="1" start="0:11" type="bool" default="false"/> 587 <field name="Midgard" size="1" start="0:0" type="Midgard Blend Overlay"/> 588 <field name="Bifrost" size="1" start="0:0" type="Bifrost Blend Overlay"/> 589 </struct> 590 591 <struct name="Invocation"> 592 <!-- Dynamic bitfield containing WorkGroupSize.xyz, NumWorkGroups.xyz 593 The number of bits allocated for each number is based on the *_shift 594 fields. For example, workgroups_y_shift gives the bit that 595 gl_NumWorkGroups.y starts at, and workgroups_z_shift gives the bit 596 that gl_NumWorkGroups.z starts at (and therefore one after the bit 597 that gl_NumWorkGroups.y ends at). The actual value for each 598 is one more than the stored value, since if any of the values 599 are zero, then there would be no invocations (and hence no job). --> 600 <field name="Invocations" size="32" start="0:0" type="uint"/> 601 <field name="Size Y shift" size="5" start="1:0" type="uint"/> 602 <field name="Size Z shift" size="5" start="1:5" type="uint"/> 603 <field name="Workgroups X shift" size="6" start="1:10" type="uint"/> 604 <field name="Workgroups Y shift" size="6" start="1:16" type="uint"/> 605 <field name="Workgroups Z shift" size="6" start="1:22" type="uint"/> 606 <field name="Unknown shift" size="4" start="1:28" type="uint"/> 607 </struct> 608 609 <enum name="Point Size Array Format"> 610 <value name="None" value="0"/> 611 <value name="FP16" value="2"/> 612 <value name="FP32" value="3"/> 613 </enum> 614 615 <enum name="Primitive Restart"> 616 <value name="None" value="0"/> 617 <value name="Implicit" value="2"/> 618 <value name="Explicit" value="3"/> 619 </enum> 620 621 <struct name="Primitive"> 622 <field name="Draw mode" size="8" start="0:0" type="Draw Mode" default="None"/> 623 <field name="Index type" size="3" start="0:8" type="Index Type" default="None"/> 624 <field name="Point size array format" size="2" start="0:11" type="Point Size Array Format"/> 625 <field name="Primitive Index Enable" size="1" start="0:13" type="bool"/> 626 <field name="Primitive Index Writeback" size="1" start="0:14" type="bool"/> 627 <field name="First provoking vertex" size="1" start="0:15" type="bool" default="true"/> 628 <field name="Low Depth Cull" size="1" start="0:16" type="bool" default="true"/> 629 <field name="High Depth Cull" size="1" start="0:17" type="bool" default="true"/> 630 <field name="Secondary Shader" size="1" start="0:18" type="bool"/> 631 <field name="Primitive restart" size="2" start="0:19" type="Primitive Restart"/> 632 <field name="Job Task Split" size="6" start="0:26" type="uint"/> 633 <field name="Base vertex offset" size="32" start="1:0" type="uint"/> 634 <field name="Primitive Restart Index" size="32" start="2:0" type="uint"/> 635 <field name="Index count" size="32" start="3:0" type="uint" modifier="minus(1)"/> 636 <field name="Indices" size="64" start="4:0" type="address"/> 637 </struct> 638 639 <struct name="Draw" size="32"> 640 <field name="Four Components Per Vertex" size="1" start="0:0" type="bool"/> 641 <field name="Draw Descriptor Is 64b" size="1" start="0:1" type="bool"/> 642 <field name="Texture Descriptor Is 64b" size="1" start="0:2" type="bool"/> 643 <field name="Occlusion query" size="2" start="0:3" type="Occlusion Mode" default="Disabled"/> 644 <field name="Front face CCW" size="1" start="0:5" type="bool"/> 645 <field name="Cull front face" size="1" start="0:6" type="bool"/> 646 <field name="Cull back face" size="1" start="0:7" type="bool"/> 647 <field name="Flat Shading Vertex" size="1" start="0:8" type="uint"/> 648 <field name="Exclude Filtered Perf Counters" size="1" start="0:9" type="bool"/> 649 <field name="Primitive Barrier" size="1" start="0:10" type="bool"/> 650 <field name="Clean Fragment Write" size="1" start="0:11" type="bool"/> 651 <field name="Instance Size" size="8" start="0:16" type="padded" default="1"/> 652 <field name="Instance Primitive Size" size="8" start="0:24" type="padded" default="1"/> 653 <field name="Offset start" size="32" start="1:0" type="uint"/> 654 <field name="Primitive Index Base" size="32" start="2:0" type="uint"/> 655 <field name="Position" size="64" start="4:0" type="address"/> 656 <field name="Uniform buffers" size="64" start="6:0" type="address"/> 657 <field name="Textures" size="64" start="8:0" type="address"/> 658 <field name="Samplers" size="64" start="10:0" type="address"/> 659 <field name="Push uniforms" size="64" start="12:0" type="address"/> 660 <field name="State" size="64" start="14:0" type="address"/> 661 <field name="Attribute buffers" size="64" start="16:0" type="address"/> 662 <field name="Attributes" size="64" start="18:0" type="address"/> 663 <field name="Varying buffers" size="64" start="20:0" type="address"/> 664 <field name="Varyings" size="64" start="22:0" type="address"/> 665 <field name="Viewport" size="64" start="24:0" type="address"/> 666 <field name="Occlusion" size="64" start="26:0" type="address"/> 667 <field name="Thread Storage" size="64" start="28:0" type="address"/> 668 <field name="FBD" size="64" start="28:0" type="address"/> 669 </struct> 670 671 <struct name="Midgard Sampler"> 672 <field name="Magnify Nearest" size="1" start="0" type="bool" default="true"/> 673 <field name="Minify Nearest" size="1" start="1" type="bool" default="true"/> 674 <field name="Mipmap Mode" size="2" start="3" type="Mipmap Mode" default="Nearest"/> 675 <field name="Normalized Coordinates" size="1" start="5" type="bool" default="true"/> 676 <field name="LOD Bias" size="16" start="0:16" type="int" default="0"/> 677 <field name="Minimum LOD" size="16" start="1:0" type="uint" default="0"/> 678 <field name="Maximum LOD" size="16" start="1:16" type="uint" default="1"/> 679 <field name="Wrap Mode S" size="4" start="2:0" type="Wrap Mode" default="Clamp to Edge"/> 680 <field name="Wrap Mode T" size="4" start="2:4" type="Wrap Mode" default="Clamp to Edge"/> 681 <field name="Wrap Mode R" size="4" start="2:8" type="Wrap Mode" default="Clamp to Edge"/> 682 <field name="Compare Function" size="3" start="2:12" type="Func" default="Never"/> 683 <field name="Seamless Cube Map" size="1" start="2:15" type="bool" default="true"/> 684 <field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/> 685 <field name="Border Color G" size="32" start="5:0" type="float" default="0.0"/> 686 <field name="Border Color B" size="32" start="6:0" type="float" default="0.0"/> 687 <field name="Border Color A" size="32" start="7:0" type="float" default="0.0"/> 688 </struct> 689 690 <struct name="Midgard Texture" size="8"> 691 <field name="Width" size="16" start="0:0" type="uint" modifier="minus(1)"/> 692 <field name="Height" size="16" start="0:16" type="uint" modifier="minus(1)"/> 693 <field name="Depth" size="16" start="1:0" type="uint" modifier="minus(1)"/> 694 <field name="Array size" size="16" start="1:16" type="uint" modifier="minus(1)"/> 695 <field name="Format" size="22" start="2:0" type="uint"/> 696 <field name="Dimension" size="2" start="2:22" type="Texture Dimension"/> 697 <field name="Texel ordering" size="4" start="2:24" type="Texture Layout"/> 698 <field name="Unknown" size="1" start="2:28" type="bool" default="true"/> 699 <field name="Manual stride" size="1" start="2:29" type="bool" default="false"/> 700 <field name="Levels" size="8" start="3:24" type="uint"/> 701 <field name="Swizzle" size="12" start="4:0" type="uint"/> 702 </struct> 703 704 <struct name="Bifrost Sampler" size="8"> 705 <field name="Type" size="4" start="0:0" type="uint" default="1"/> 706 <field name="Wrap Mode R" size="4" start="0:8" type="Wrap Mode" default="Clamp to Edge"/> 707 <field name="Wrap Mode T" size="4" start="0:12" type="Wrap Mode" default="Clamp to Edge"/> 708 <field name="Wrap Mode S" size="4" start="0:16" type="Wrap Mode" default="Clamp to Edge"/> 709 <field name="Round to nearest even" size="1" start="0:21" type="bool" default="false"/> 710 <!--- Disable sRGB-to-linear conversion (assume linear) --> 711 <field name="sRGB override" size="1" start="0:22" type="bool" default="false"/> 712 <field name="Seamless Cube Map" size="1" start="0:23" type="bool" default="true"/> 713 <field name="Clamp integer coordinates" size="1" start="0:24" type="bool"/> 714 <field name="Normalized Coordinates" size="1" start="0:25" type="bool" default="true"/> 715 <field name="Clamp integer array indices" size="1" start="0:26" type="bool" default="true"/> 716 <field name="Point sample minify" size="1" start="0:27" type="bool" default="false"/> 717 <field name="Point sample magnify" size="1" start="0:28" type="bool" default="false"/> 718 <!--- Set for 0.5, clear for 0.0 --> 719 <field name="Magnify cutoff" size="1" start="0:29" type="bool" default="false"/> 720 <field name="Mipmap Mode" size="2" start="0:30" type="Mipmap Mode" default="Nearest"/> 721 <field name="Minimum LOD" size="13" start="1:0" type="uint" default="0"/> 722 <field name="Compare Function" size="3" start="1:13" type="Func" default="Never"/> 723 <field name="Maximum LOD" size="13" start="1:16" type="uint" default="0"/> 724 <field name="LOD bias" size="16" start="2:0" type="uint" default="0"/> 725 <field name="Maximum anisotropy" size="5" start="2:16" type="uint"/> 726 <field name="Anisotropy" size="1" start="2:25" type="bool"/> 727 <field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/> 728 <field name="Border Color G" size="32" start="5:0" type="float" default="0.0"/> 729 <field name="Border Color B" size="32" start="6:0" type="float" default="0.0"/> 730 <field name="Border Color A" size="32" start="7:0" type="float" default="0.0"/> 731 </struct> 732 733 <struct name="Bifrost Texture" size="8"> 734 <field name="Type" size="4" start="0:0" type="uint" default="2"/> 735 <field name="Dimension" size="2" start="0:4" type="Texture Dimension"/> 736 <field name="Sample corner position" size="1" start="0:8" type="bool" default="false"/> 737 <field name="Normalize coordinatess" size="1" start="0:9" type="bool" default="false"/> 738 <field name="Format" size="22" start="0:10" type="uint"/> 739 <field name="Width" size="16" start="1:0" type="uint" modifier="minus(1)"/> 740 <field name="Height" size="16" start="1:16" type="uint" modifier="minus(1)"/> 741 <field name="Swizzle" size="12" start="2:0" type="uint"/> 742 <field name="Texel ordering" size="4" start="2:12" type="Texture Layout"/> 743 <field name="Levels" size="5" start="2:16" type="uint"/> 744 <field name="Minimum level" size="5" start="2:24" type="uint"/> 745 <field name="Minimum LOD" size="13" start="3:0" type="uint" default="0"/> 746 <field name="Multisample count" size="3" start="3:13" type="Sample Count" default="Samples 1x"/> 747 <field name="Maximum LOD" size="13" start="3:16" type="uint" default="0"/> 748 <field name="Surfaces" size="64" start="4:0" type="address"/> 749 <field name="Array size" size="16" start="6:0" type="uint" modifier="minus(1)" default="1"/> 750 </struct> 751 752 <enum name="FP Mode"> 753 <value name="GL Inf/NaN Allowed" value="0"/> 754 <value name="GL Inf/NaN Suppressed" value="1"/> 755 <value name="CL" value="2"/> 756 <value name="D3D11" value="3"/> 757 </enum> 758 759 <struct name="Midgard Renderer Properties" size="1" no-direct-packing="true"> 760 <field name="Force early-z" size="1" start="10" type="bool"/> 761 <field name="Shader contains discard" size="1" start="12" type="bool"/> 762 <field name="Shader has side-effects" size="1" start="13" type="bool"/> 763 <field name="Shader reads tilebuffer" size="1" start="14" type="bool"/> 764 <field name="Forward pixel kill" size="1" start="15" type="bool"/> 765 <field name="Work register count" size="5" start="16" type="uint"/> 766 <field name="Uniform count" size="5" start="21" type="uint"/> 767 <field name="FP mode" size="3" start="29" type="FP Mode"/> 768 </struct> 769 770 <enum name="Shader Register Allocation"> 771 <value name="64 Per Thread" value="0"/> 772 <value name="32 Per Thread" value="2"/> 773 </enum> 774 775 <struct name="Bifrost Renderer Properties" size="1" no-direct-packing="true"> 776 <field name="Shader register allocation" size="2" start="12" type="Shader Register Allocation"/> 777 <field name="Secondary shader register allocation" size="2" start="14" type="Shader Register Allocation"/> 778 <field name="Shader modifies coverage" size="1" start="16" type="bool"/> 779 <field name="Allow forward pixel to kill" size="1" start="19" type="bool"/> 780 <field name="Allow forward pixel to be killed" size="1" start="20" type="bool"/> 781 <field name="Pixel kill operation" size="2" start="21" type="Pixel Kill"/> 782 <field name="ZS update operation" size="2" start="23" type="Pixel Kill"/> 783 <field name="Point sprite coord origin max Y" size="1" start="27" type="bool"/> 784 <field name="Shader wait dependency 6" size="1" start="30" type="bool"/> 785 <field name="Shader wait dependency 7" size="1" start="31" type="bool"/> 786 </struct> 787 788 <struct name="Renderer Properties" size="1"> 789 <field name="Midgard" size="32" start="0" type="Midgard Renderer Properties"/> 790 <field name="Bifrost" size="32" start="0" type="Bifrost Renderer Properties"/> 791 <field name="Uniform buffer count" size="8" start="0" type="uint"/> 792 <field name="Depth source" size="2" start="8" type="Depth Source" default="None"/> 793 <field name="Shader contains barrier" size="1" start="11" type="bool"/> 794 <field name="Stencil from shader" size="1" start="28" type="bool"/> 795 </struct> 796 797 <struct name="Compute Preload" size="1" no-direct-packing="true"> 798 <field name="PC" size="1" start="6" type="bool"/> 799 <field name="Local Invocation XY" size="1" start="7" type="bool"/> 800 <field name="Local Invocation Z" size="1" start="8" type="bool"/> 801 <field name="Work group X" size="1" start="9" type="bool"/> 802 <field name="Work group Y" size="1" start="10" type="bool"/> 803 <field name="Work group Z" size="1" start="11" type="bool"/> 804 <field name="Global Invocation X" size="1" start="12" type="bool"/> 805 <field name="Global Invocation Y" size="1" start="13" type="bool"/> 806 <field name="Global Invocation Z" size="1" start="14" type="bool"/> 807 </struct> 808 809 <enum name="Warp Limit"> 810 <value name="None" value="0"/> 811 <value name="2" value="1"/> 812 <value name="4" value="2"/> 813 <value name="8" value="3"/> 814 </enum> 815 816 <struct name="Vertex Preload" size="1" no-direct-packing="true"> 817 <field name="Warp limit" size="2" start="0" type="Warp Limit"/> 818 <field name="PC" size="1" start="6" type="bool"/> 819 <field name="Position result address lo" size="1" start="10" type="bool"/> 820 <field name="Position result address hi" size="1" start="11" type="bool"/> 821 <field name="Vertex ID" size="1" start="13" type="bool"/> 822 <field name="Instance ID" size="1" start="14" type="bool"/> 823 </struct> 824 825 <struct name="Fragment Preload" size="1" no-direct-packing="true"> 826 <field name="PC" size="1" start="6" type="bool"/> 827 <field name="Coverage" size="1" start="7" type="bool"/> 828 <field name="Primitive ID" size="1" start="9" type="bool"/> 829 <field name="Primitive flags" size="1" start="10" type="bool"/> 830 <field name="Fragment position" size="1" start="11" type="bool"/> 831 <field name="Sample mask/ID" size="1" start="13" type="bool"/> 832 </struct> 833 834 <struct name="Preload" size="1"> 835 <field name="Compute" size="32" start="0" type="Compute Preload"/> 836 <field name="Vertex" size="32" start="0" type="Vertex Preload"/> 837 <field name="Fragment" size="32" start="0" type="Fragment Preload"/> 838 <field name="Uniform count" size="7" start="15" type="uint"/> 839 </struct> 840 841 <struct name="Shader" size="4"> 842 <field name="Shader" size="64" start="0:0" type="address"/> 843 <field name="Sampler count" size="16" start="2:0" type="uint"/> 844 <field name="Texture count" size="16" start="2:16" type="uint"/> 845 <field name="Attribute count" size="16" start="3:0" type="uint"/> 846 <field name="Varying count" size="16" start="3:16" type="uint"/> 847 </struct> 848 849 <struct name="Multisample, Misc" size="1"> 850 <field name="Sample mask" size="16" start="0" type="uint"/> 851 <field name="Multisample enable" size="1" start="16" type="bool"/> 852 <field name="Multisample late coverage" size="1" start="17" type="bool"/> 853 <field name="Evaluate per-sample" size="1" start="18" type="bool"/> 854 <field name="Fixed-function depth range fixed" size="1" start="19" type="bool"/> 855 <field name="Shader depth range fixed" size="1" start="20" type="bool"/> 856 <field name="SFBD Load destination" size="1" start="21" type="bool"/> 857 <field name="SFBD Blend shader" size="1" start="22" type="bool"/> 858 <field name="SFBD Blend shader discard" size="1" start="23" type="bool"/> 859 <field name="Depth function" size="3" start="24" type="Func"/> 860 <field name="Depth write mask" size="1" start="27" type="bool"/> 861 <field name="Fixed-function near discard" size="1" start="28" type="bool"/> 862 <field name="Fixed-function far discard" size="1" start="29" type="bool"/> 863 <field name="Fragment near discard" size="1" start="30" type="bool"/> 864 <field name="Fragment far discard" size="1" start="31" type="bool"/> 865 </struct> 866 867 <struct name="Stencil Mask, Misc" size="1"> 868 <field name="Stencil mask front" size="8" start="0" type="uint"/> 869 <field name="Stencil mask back" size="8" start="8" type="uint"/> 870 <field name="Stencil enable" size="1" start="16" type="bool"/> 871 <field name="Alpha-to-coverage" size="1" start="17" type="bool"/> 872 <field name="Alpha-to-coverage Invert" size="1" start="18" type="bool"/> 873 <field name="Alpha to one" size="1" start="19" type="bool"/> 874 <field name="SFBD Write enable" size="1" start="20" type="bool"/> 875 <field name="Alpha test compare function" size="3" start="21" type="Func"/> 876 <field name="SFBD sRGB" size="1" start="24" type="bool"/> 877 <field name="SFBD Dither disable" size="1" start="25" type="bool"/> 878 <field name="Force seamless cubemaps" size="1" start="26" type="bool"/> 879 <field name="Depth Range 1" size="1" start="28" type="bool"/> 880 <field name="Depth Range 2" size="1" start="29" type="bool"/> 881 <field name="Single-sampled lines" size="1" start="30" type="bool"/> 882 <field name="Point snap" size="1" start="31" type="bool"/> 883 </struct> 884 885 <struct name="Stencil"> 886 <field name="Reference Value" size="8" start="0" type="uint"/> 887 <field name="Mask" size="8" start="8" type="uint"/> 888 <field name="Compare Function" size="3" start="16" type="Func"/> 889 <field name="Stencil Fail" size="3" start="19" type="Stencil Op"/> 890 <field name="Depth Fail" size="3" start="22" type="Stencil Op"/> 891 <field name="Depth Pass" size="3" start="25" type="Stencil Op"/> 892 </struct> 893 894 <struct name="Renderer State"> 895 <field name="Shader" size="128" start="0:0" type="Shader"/> 896 <field name="Properties" size="32" start="4:0" type="Renderer Properties"/> 897 <field name="Depth units" size="32" start="5:0" type="float"/> 898 <field name="Depth factor" size="32" start="6:0" type="float"/> 899 <field name="Depth bias clamp" size="32" start="7:0" type="float"/> 900 <field name="Multisample, Misc" size="32" start="8:0" type="Multisample, Misc"/> 901 <field name="Stencil Mask, Misc" size="32" start="9:0" type="Stencil Mask, Misc"/> 902 <field name="Stencil front" size="32" start="10:0" type="Stencil"/> 903 <field name="Stencil back" size="32" start="11:0" type="Stencil"/> 904 <field name="Preload" size="32" start="12:0" type="Preload"/> 905 <field name="Thread Balancing" size="16" start="13:0" type="uint"/> 906 <field name="SFBD Blend Shader" size="64" start="14:0" type="address"/> 907 <field name="SFBD Blend Equation" size="32" start="14:0" type="Blend Equation"/> 908 <field name="SFBD Blend Constant" size="32" start="15:0" type="float"/> 909 </struct> 910 911 <struct name="Uniform Buffer"> 912 <field name="Entries" size="12" start="0" type="uint" modifier="minus(1)"/> 913 <field name="Pointer" size="52" start="12" type="address" modifier="shr(4)" element="16" count="Entries"/> 914 </struct> 915 916 <struct name="Viewport"> 917 <field name="Minimum X" size="32" start="0:0" default="-INFINITY" type="float"/> 918 <field name="Minimum Y" size="32" start="1:0" default="-INFINITY" type="float"/> 919 <field name="Maximum X" size="32" start="2:0" default="+INFINITY" type="float"/> 920 <field name="Maximum Y" size="32" start="3:0" default="+INFINITY" type="float"/> 921 <field name="Minimum Z" size="32" start="4:0" default="0.0" type="float"/> 922 <field name="Maximum Z" size="32" start="5:0" default="1.0" type="float"/> 923 <field name="Scissor Minimum X" size="16" start="6:0" default="0" type="uint"/> 924 <field name="Scissor Minimum Y" size="16" start="6:16" default="0" type="uint"/> 925 <field name="Scissor Maximum X" size="16" start="7:0" type="uint"/> 926 <field name="Scissor Maximum Y" size="16" start="7:16" type="uint"/> 927 </struct> 928 929 <struct name="Local Storage" size="8"> 930 <field name="TLS Size" size="5" start="0:0" type="uint"/> 931 <field name="TLS Initial Stack Pointer Offset" size="27" start="0:5" type="uint"/> 932 <field name="WLS Instances" size="5" start="1:0" type="uint" modifier="log2" prefix="MALI_LOCAL_STORAGE"> 933 <value name="No Workgroup Mem" value="0x80000000"/> 934 </field> 935 <field name="WLS Size Base" size="2" start="1:5" type="uint"/> 936 <field name="WLS Size Scale" size="5" start="1:8" type="uint"/> 937 <field name="TLS Base Pointer" size="64" start="2:0" type="address"/> 938 <field name="WLS Base Pointer" size="64" start="4:0" type="address"/> 939 </struct> 940 941 <struct name="Midgard Tiler" size="10"> 942 <field name="Polygon List Size" size="32" start="0:0" type="uint" prefix="MALI_MIDGARD_TILER"> 943 <value name="Minimum Header Size" value="512"/> 944 </field> 945 <field name="Hierarchy Mask" size="16" start="1:0" type="uint" prefix="MALI_MIDGARD_TILER"> 946 <value name="Disabled" value="4096"/> 947 <value name="User" value="4095"/> 948 <value name="Hierarchy Mask" value="511"/> 949 </field> 950 <field name="Polygon List" size="64" start="2:0" type="address"/> 951 <field name="Polygon List Body" size="64" start="4:0" type="address"/> 952 <field name="Heap Start" size="64" start="6:0" type="address"/> 953 <field name="Heap End" size="64" start="8:0" type="address"/> 954 </struct> 955 956 <struct name="Midgard Tiler Weights"> 957 <field name="Weight0" size="32" start="0:0" type="uint"/> 958 <field name="Weight1" size="32" start="1:0" type="uint"/> 959 <field name="Weight2" size="32" start="2:0" type="uint"/> 960 <field name="Weight3" size="32" start="3:0" type="uint"/> 961 <field name="Weight4" size="32" start="4:0" type="uint"/> 962 <field name="Weight5" size="32" start="5:0" type="uint"/> 963 <field name="Weight6" size="32" start="6:0" type="uint"/> 964 <field name="Weight7" size="32" start="7:0" type="uint"/> 965 </struct> 966 967 <enum name="Color Buffer Internal Format"> 968 <value name="Raw Value" value="0"/> 969 <value name="R8G8B8A8" value="1"/> 970 <value name="R10G10B10A2" value="2"/> 971 <value name="R8G8B8A2" value="3"/> 972 <value name="R4G4B4A4" value="4"/> 973 <value name="R5G6B5A0" value="5"/> 974 <value name="R5G5B5A1" value="6"/> 975 <value name="RAW8" value="32"/> 976 <value name="RAW16" value="33"/> 977 <value name="RAW32" value="34"/> 978 <value name="RAW64" value="35"/> 979 <value name="RAW128" value="36"/> 980 </enum> 981 982 <enum name="SFBD Color Format"> 983 <value name="4_32B_CHANNELS" value="0"/> 984 <value name="3_32B_CHANNELS" value="1"/> 985 <value name="2_32B_CHANNELS" value="2"/> 986 <value name="1_32B_CHANNEL" value="3"/> 987 <value name="4_16B_CHANNELS" value="4"/> 988 <value name="3_16B_CHANNELS" value="5"/> 989 <value name="2_16B_CHANNELS" value="6"/> 990 <value name="1_16B_CHANNEL" value="7"/> 991 <value name="R8" value="16"/> 992 <value name="R8G8" value="17"/> 993 <value name="R8G8B8" value="18"/> 994 <value name="R8G8B8A8" value="19"/> 995 <value name="R4G4B4A4" value="20"/> 996 <value name="R5G6B5" value="21"/> 997 <value name="R8G8B8_FROM_R8G8B8A2" value="22"/> 998 <value name="R10G10B10A2" value="24"/> 999 <value name="A2B10G10R10" value="25"/> 1000 <value name="R5G5B5A1" value="28"/> 1001 <value name="A1B5G5R5" value="29"/> 1002 </enum> 1003 1004 <enum name="MFBD Color Format"> 1005 <value name="RAW8" value="0"/> 1006 <value name="RAW16" value="1"/> 1007 <value name="RAW24" value="2"/> 1008 <value name="RAW32" value="3"/> 1009 <value name="RAW48" value="4"/> 1010 <value name="RAW64" value="5"/> 1011 <value name="RAW96" value="6"/> 1012 <value name="RAW128" value="7"/> 1013 <value name="RAW192" value="8"/> 1014 <value name="RAW256" value="9"/> 1015 <value name="RAW384" value="10"/> 1016 <value name="RAW512" value="11"/> 1017 <value name="RAW768" value="12"/> 1018 <value name="RAW1024" value="13"/> 1019 <value name="RAW1536" value="14"/> 1020 <value name="RAW2048" value="15"/> 1021 <value name="R8" value="16"/> 1022 <value name="R8G8" value="17"/> 1023 <value name="R8G8B8" value="18"/> 1024 <value name="R8G8B8A8" value="19"/> 1025 <value name="R4G4B4A4" value="20"/> 1026 <value name="R5G6B5" value="21"/> 1027 <value name="R8G8B8_FROM_R8G8B8A2" value="22"/> 1028 <value name="R10G10B10A2" value="24"/> 1029 <value name="A2B10G10R10" value="25"/> 1030 <value name="R5G5B5A1" value="28"/> 1031 <value name="A1B5G5R5" value="29"/> 1032 <value name="NATIVE" value="31"/> 1033 </enum> 1034 1035 <enum name="Downsampling Accumulation Mode"> 1036 <value name="Unsigned normalized integer" value="0"/> 1037 <value name="Signed normalized integer" value="1"/> 1038 </enum> 1039 1040 <enum name="Sample Layout"> 1041 <value name="Ordered 4x Grid" value="0"/> 1042 <value name="Rotated 4x Grid" value="1"/> 1043 <value name="D3D 8x Grid" value="2"/> 1044 <value name="D3D 16x Grid" value="3"/> 1045 </enum> 1046 1047 <enum name="ZS Format"> 1048 <value name="D16" value="1"/> 1049 <value name="D24" value="2"/> 1050 <value name="D24X8" value="4"/> 1051 <value name="D24S8" value="5"/> 1052 <value name="X8D24" value="6"/> 1053 <value name="S8D24" value="7"/> 1054 <value name="D32_X8X24" value="13"/> 1055 <value name="D32" value="14"/> 1056 <value name="D32_S8X24" value="15"/> 1057 </enum> 1058 1059 <enum name="ZS Preload Format"> 1060 <value name="D32_S8X24" value="4"/> 1061 </enum> 1062 1063 <enum name="S Format"> 1064 <value name="S8" value="1"/> 1065 <value name="S8X8" value="2"/> 1066 <value name="S8X24" value="3"/> 1067 <value name="X24S8" value="4"/> 1068 <value name="X8S8" value="5"/> 1069 <value name="X32_S8X24" value="6"/> 1070 </enum> 1071 1072 <enum name="Tie-Break Rule"> 1073 <value name="0_IN_180_OUT" value="0"/> 1074 <value name="0_OUT_180_IN" value="1"/> 1075 <value name="MINUS_180_IN_0_OUT" value="2"/> 1076 <value name="MINUS_180_OUT_0_IN" value="3"/> 1077 <value name="90_IN_270_OUT" value="4"/> 1078 <value name="90_OUT_270_IN" value="5"/> 1079 <value name="MINUS_90_IN_90_OUT" value="6"/> 1080 <value name="MINUS_90_OUT_90_IN" value="7"/> 1081 </enum> 1082 1083 <struct name="RT Buffer"> 1084 <field name="Base" size="64" start="0:0" type="address"/> 1085 <field name="Row Stride" size="32" start="2:0" type="uint"/> 1086 <field name="Surface Stride" size="32" start="3:0" type="uint"/> 1087 </struct> 1088 1089 <struct name="Single-Target Framebuffer Parameters" size="40"> 1090 <field name="Internal Format" size="3" start="0:0" default="Raw Value" type="Color Buffer Internal Format"/> 1091 <field name="Sample Count" size="3" start="0:3" type="uint" default="1" modifier="log2"/> 1092 <field name="Swizzle" size="12" start="0:6" type="uint"/> 1093 <field name="Color Writeback Format" size="5" start="0:18" default="4_32B_CHANNELS" type="SFBD Color Format"/> 1094 <field name="MSAA" size="2" start="0:23" default="Single" type="MSAA"/> 1095 <field name="sRGB" size="1" start="0:25" type="bool"/> 1096 <field name="Color Block Format" size="2" start="0:26" type="Block Format"/> 1097 <field name="Dithering Enable" size="1" start="0:28" type="bool"/> 1098 <field name="Clean Pixel Write Enable" size="1" start="0:29" type="bool"/> 1099 <field name="Color Preload Enable" size="1" start="0:30" type="bool"/> 1100 <field name="Color Write Enable" size="1" start="0:31" type="bool"/> 1101 <field name="X Downsampling Scale" size="3" start="1:0" type="uint"/> 1102 <field name="Y Downsampling Scale" size="3" start="1:3" type="uint"/> 1103 <field name="Downsampling Accumulation Mode" size="2" start="1:6" type="Downsampling Accumulation Mode"/> 1104 <field name="Sample Layout" size="2" start="1:8" type="Sample Layout"/> 1105 <field name="Big Endian" size="1" start="1:10" type="bool"/> 1106 <field name="Tie-Break Rule" size="3" start="1:11" type="Tie-Break Rule"/> 1107 <field name="CRC Read Enable" size="1" start="1:14" type="bool"/> 1108 <field name="CRC Write Enable" size="1" start="1:15" type="bool"/> 1109 <field name="ZS Block Format" size="2" start="1:16" type="Block Format"/> 1110 <field name="ZS Format" size="4" start="1:18" type="ZS Format" default="D24S8"/> 1111 <field name="ZS Preload Enable" size="1" start="1:22" type="bool"/> 1112 <field name="ZS Write Enable" size="1" start="1:23" type="bool"/> 1113 <field name="S Block Format" size="2" start="1:24" type="Block Format"/> 1114 <field name="S Format" size="4" start="1:26" type="S Format"/> 1115 <field name="S Write Enable" size="1" start="1:31" type="bool"/> 1116 <field name="Bound Min X" size="16" start="2:0" type="uint"/> 1117 <field name="Bound Min Y" size="16" start="2:16" type="uint"/> 1118 <field name="Bound Max X" size="16" start="3:0" type="uint"/> 1119 <field name="Bound Max Y" size="16" start="3:16" type="uint"/> 1120 <field name="DCD Offset" size="32" start="4:0" type="uint"/> 1121 <field name="CRC Buffer" size="128" start="8:0" type="RT Buffer"/> 1122 <field name="Color Writeback" size="128" start="12:0" type="RT Buffer"/> 1123 <field name="ZS Writeback" size="128" start="16:0" type="RT Buffer"/> 1124 <field name="S Writeback" size="128" start="20:0" type="RT Buffer"/> 1125 <field name="Color Load Address" size="64" start="24:0" type="address"/> 1126 <field name="Color Load Row Stride" size="32" start="26:0" type="uint"/> 1127 <field name="Color Load Surface Stride" size="32" start="27:0" type="uint"/> 1128 <field name="Clear Color 0" size="32" start="24:0" type="uint"/> 1129 <field name="Clear Color 1" size="32" start="25:0" type="uint"/> 1130 <field name="Clear Color 2" size="32" start="26:0" type="uint"/> 1131 <field name="Clear Color 3" size="32" start="27:0" type="uint"/> 1132 <field name="ZS Load Address" size="64" start="28:0" type="address"/> 1133 <field name="ZS Load Row Stride" size="32" start="30:0" type="uint"/> 1134 <field name="ZS Load Surface Stride" size="32" start="31:0" type="uint"/> 1135 <field name="Z Clear" size="32" start="28:0" type="float"/> 1136 <field name="S Clear" size="8" start="32:0" type="uint"/> 1137 </struct> 1138 1139 <struct name="Single-Target Framebuffer Padding 1" size="6"> 1140 </struct> 1141 1142 <struct name="Single-Target Framebuffer Padding 2" size="8"> 1143 </struct> 1144 1145 <aggregate name="Single-Target Framebuffer" size="320"> 1146 <section name="Local Storage" offset="0" type="Local Storage"/> 1147 <section name="Parameters" offset="32" type="Single-Target Framebuffer Parameters"/> 1148 <section name="Tiler" offset="192" type="Midgard Tiler"/> 1149 <section name="Padding 1" offset="232" type="Single-Target Framebuffer Padding 1"/> 1150 <section name="Tiler Weights" offset="256" type="Midgard Tiler Weights"/> 1151 <section name="Padding 2" offset="288" type="Single-Target Framebuffer Padding 2"/> 1152 </aggregate> 1153 1154 <enum name="Sample Pattern"> 1155 <value name="Single-sampled" value="0"/> 1156 <value name="Ordered 4x Grid" value="1"/> 1157 <value name="Rotated 4x Grid" value="2"/> 1158 <value name="D3D 8x Grid" value="3"/> 1159 <value name="D3D 16x Grid" value="4"/> 1160 </enum> 1161 1162 <enum name="Z Internal Format"> 1163 <value name="D16" value="0"/> 1164 <value name="D24" value="1"/> 1165 <value name="D32" value="2"/> 1166 </enum> 1167 1168 <enum name="FBD Tag"> 1169 <value name="IS_MFBD" value="1"/> 1170 <value name="HAS_ZS_RT" value="2"/> 1171 <value name="MASK" value="63"/> 1172 </enum> 1173 1174 <struct name="Multi-Target Framebuffer Parameters"> 1175 <field name="Width" size="16" start="0:0" type="uint" modifier="minus(1)"/> 1176 <field name="Height" size="16" start="0:16" type="uint" modifier="minus(1)"/> 1177 <field name="Bound Min X" size="16" start="1:0" type="uint"/> 1178 <field name="Bound Min Y" size="16" start="1:16" type="uint"/> 1179 <field name="Bound Max X" size="16" start="2:0" type="uint"/> 1180 <field name="Bound Max Y" size="16" start="2:16" type="uint"/> 1181 <field name="Sample Count" size="3" start="3:0" type="uint" default="1" modifier="log2"/> 1182 <field name="Sample Pattern" size="3" start="3:3" type="Sample Pattern"/> 1183 <field name="Tie-Break Rule" size="3" start="3:6" type="Tie-Break Rule"/> 1184 <field name="Effective Tile Size" size="4" start="3:9" type="uint" modifier="log2"/> 1185 <field name="X Downsampling Scale" size="3" start="3:13" type="uint"/> 1186 <field name="Y Downsampling Scale" size="3" start="3:16" type="uint"/> 1187 <field name="Render Target Count" size="4" start="3:19" type="uint" modifier="minus(1)"/> 1188 <field name="Color Buffer Allocation" size="8" start="3:24" type="uint" modifier="shr(10)"/> 1189 <field name="S Clear" size="8" start="4:0" type="uint"/> 1190 <field name="S Write Enable" size="1" start="4:8" type="bool"/> 1191 <field name="S Preload Enable" size="1" start="4:9" type="bool"/> 1192 <field name="S Unload Enable" size="1" start="4:10" type="bool"/> 1193 <field name="Z Internal Format" size="2" start="4:16" type="Z Internal Format"/> 1194 <field name="Z Write Enable" size="1" start="4:18" type="bool"/> 1195 <field name="Z Preload Enable" size="1" start="4:19" type="bool"/> 1196 <field name="Z Unload Enable" size="1" start="4:20" type="bool"/> 1197 <field name="Has ZS CRC Extension" size="1" start="4:21" type="bool"/> 1198 <field name="CRC Read Enable" size="1" start="4:30" type="bool"/> 1199 <field name="CRC Write Enable" size="1" start="4:31" type="bool"/> 1200 <field name="Z Clear" size="32" start="5:0" type="float"/> 1201 </struct> 1202 1203 <struct name="ZS CRC Extension"> 1204 <field name="CRC Base" size="64" start="0:0" type="address"/> 1205 <field name="CRC Row Stride" size="32" start="2:0" type="uint"/> 1206 <field name="ZS Write Format" size="4" start="3:0" type="ZS Format"/> 1207 <field name="ZS Block Format" size="2" start="3:4" type="Block Format"/> 1208 <field name="ZS Block Format v7" size="2" start="3:4" type="Block Format v7"/> 1209 <field name="ZS MSAA" size="2" start="3:6" default="Single" type="MSAA"/> 1210 <field name="ZS Big Endian" size="1" start="3:8" type="bool"/> 1211 <field name="ZS Clean Pixel Write Enable" size="1" start="3:10" type="bool"/> 1212 <field name="CRC Render Target" size="4" start="3:11" type="uint"/> 1213 <field name="S Write Format" size="4" start="3:16" type="S Format"/> 1214 <field name="S Block Format" size="2" start="3:20" type="Block Format"/> 1215 <field name="S MSAA" size="2" start="3:22" default="Single" type="MSAA"/> 1216 <field name="ZS Preload Format" size="4" start="3:28" type="ZS Preload Format"/> 1217 <field name="ZS Writeback Base" size="64" start="4:0" type="address"/> 1218 <field name="ZS Writeback Row Stride" size="32" start="6:0" type="uint"/> 1219 <field name="ZS Writeback Surface Stride" size="32" start="7:0" type="uint"/> 1220 <field name="S Writeback Base" size="64" start="8:0" type="address"/> 1221 <field name="S Writeback Row Stride" size="32" start="10:0" type="uint"/> 1222 <field name="S Writeback Surface Stride" size="32" start="11:0" type="uint"/> 1223 <field name="ZS AFBC Header" size="64" start="4:0" type="address"/> 1224 <field name="ZS AFBC Row Stride" size="13" start="6:0" type="uint"/> 1225 <field name="ZS AFBC Chunk Size" size="12" start="7:0" type="uint"/> 1226 <field name="ZS AFBC Sparse" size="1" start="7:16" type="bool"/> 1227 <field name="ZS AFBC Body" size="64" start="8:0" type="address"/> 1228 <field name="ZS AFBC Body Size" size="32" start="10:0" type="uint"/> 1229 <field name="ZS Preload Base" size="64" start="12:0" type="address"/> 1230 <field name="ZS Preload Row Stride" size="32" start="14:0" type="uint"/> 1231 <field name="ZS Preload Surface Stride" size="32" start="15:0" type="uint"/> 1232 <field name="CRC Clear Color" size="64" start="12:0" type="uint"/> 1233 </struct> 1234 1235 <enum name="RT Endianness"> 1236 <value name="Little Endian" value="0"/> 1237 <value name="Big Endian 2B" value="1"/> 1238 <value name="Big Endian 4B" value="2"/> 1239 <value name="Big Endian 8B" value="3"/> 1240 </enum> 1241 1242 <enum name="YUV Conv K6"> 1243 <value name="0" value="0"/> 1244 <value name="16" value="1"/> 1245 </enum> 1246 1247 <enum name="YUV Conv K7 Clamp"> 1248 <value name="MINUS_128_TO_127" value="0"/> 1249 <value name="MINUS_112_TO_111" value="1"/> 1250 <value name="0_TO_255" value="2"/> 1251 <value name="16_TO_239" value="3"/> 1252 </enum> 1253 1254 <enum name="YUV Conv K8"> 1255 <value name="220" value="0"/> 1256 <value name="256" value="1"/> 1257 </enum> 1258 1259 <struct name="Render Target Midgard Overlay" size="16"> 1260 <field name="Writeback Endianness" size="2" start="1:8" type="RT Endianness"/> 1261 <field name="Writeback Block Format" size="2" start="1:10" type="Block Format"/> 1262 <field name="Writeback Sampling Mode" size="2" start="1:29" type="Downsampling Accumulation Mode"/> 1263 <field name="Preload Enable" size="1" start="2:0" type="bool"/> 1264 <field name="Unload Enable" size="1" start="2:1" type="bool"/> 1265 <field name="Preload Format" size="5" start="2:3" type="MFBD Color Format"/> 1266 <field name="Preload Endianness" size="2" start="2:8" type="RT Endianness"/> 1267 <field name="Preload Block Format" size="4" start="2:10" type="Block Format"/> 1268 <field name="Preload MSAA" size="2" start="2:14" type="MSAA"/> 1269 </struct> 1270 1271 <struct name="Render Target Midgard YUV Overlay" size="16"> 1272 <field name="Conv K5" size="8" start="2:16" type="uint"/> 1273 <field name="Conv K6" size="1" start="2:24" type="YUV Conv K6"/> 1274 <field name="Conv K7 Clamp" size="2" start="2:25" type="YUV Conv K7 Clamp"/> 1275 <field name="Conv K8" size="1" start="2:27" type="YUV Conv K8"/> 1276 <field name="Conv Disable" size="1" start="2:31" type="bool"/> 1277 <field name="Conv K1" size="8" start="3:0" type="uint"/> 1278 <field name="Conv K2" size="8" start="3:8" type="uint"/> 1279 <field name="Conv K3" size="8" start="3:16" type="uint"/> 1280 <field name="Conv K4" size="8" start="3:24" type="uint"/> 1281 </struct> 1282 1283 <struct name="Render Target Bifrost YUV Overlay" size="16"> 1284 <field name="Swizzle" size="3" start="2:16" type="YUV Swizzle"/> 1285 <field name="Full Range" size="1" start="2:20" type="bool"/> 1286 <field name="Conversion Mode" size="4" start="2:21" type="YUV Conversion Mode"/> 1287 <field name="Cr Siting" size="3" start="2:25" type="YUV Cr Siting"/> 1288 <field name="Unsigned Cr Range" size="1" start="2:28" type="bool"/> 1289 </struct> 1290 1291 <struct name="Render Target Bifrost v7 Overlay" size="16"> 1292 <field name="Writeback Block Format" size="4" start="1:8" type="Block Format v7"/> 1293 <field name="Dithered Clear" size="1" start="0:25" type="bool"/> 1294 </struct> 1295 1296 <struct name="Render Target Bifrost v6 Overlay" size="16"> 1297 <field name="Writeback Endianness" size="2" start="1:8" type="RT Endianness"/> 1298 <field name="Writeback Block Format" size="2" start="1:10" type="Block Format"/> 1299 <field name="Dithered Clear" size="1" start="0:25" type="bool"/> 1300 </struct> 1301 1302 <struct name="Render Target YUV Overlay" size="16"> 1303 <field name="Plane 0 Base" size="64" start="4:0" type="address"/> 1304 <field name="Plane 1 Base" size="64" start="6:0" type="address"/> 1305 <field name="Plane 2 Base" size="64" start="8:0" type="address"/> 1306 <field name="Plane 0 Stride" size="32" start="10:0" type="uint"/> 1307 <field name="Plane 1 2 Stride" size="32" start="11:0" type="uint"/> 1308 </struct> 1309 1310 <struct name="Render Target AFBC Overlay" size="16"> 1311 <field name="Header" size="64" start="4:0" type="address"/> 1312 <field name="Row Stride" size="13" start="6:0" type="uint"/> 1313 <field name="Chunk Size" size="12" start="7:0" type="uint"/> 1314 <field name="YUV Transform Enable" size="1" start="7:17" type="bool"/> 1315 <field name="Body" size="64" start="8:0" type="address"/> 1316 <field name="Body Size" size="32" start="10:0" type="uint"/> 1317 </struct> 1318 1319 <struct name="Render Target Midgard AFBC Overlay" size="16"> 1320 <field name="Sparse" size="1" start="7:16" type="bool"/> 1321 </struct> 1322 1323 <struct name="Render Target Bifrost AFBC Overlay" size="16"> 1324 <field name="AFBC Split Block Enable" size="1" start="7:18" type="bool"/> 1325 <field name="AFBC Wide Block Enable" size="1" start="7:19" type="bool"/> 1326 </struct> 1327 1328 <struct name="RT Clear"> 1329 <field name="Color 0" size="32" start="0:0" type="uint"/> 1330 <field name="Color 1" size="32" start="1:0" type="uint"/> 1331 <field name="Color 2" size="32" start="2:0" type="uint"/> 1332 <field name="Color 3" size="32" start="3:0" type="uint"/> 1333 </struct> 1334 1335 <struct name="Render Target"> 1336 <field name="Midgard" size="512" start="0:0" type="Render Target Midgard Overlay"/> 1337 <field name="Bifrost v6" size="512" start="0:0" type="Render Target Bifrost v6 Overlay"/> 1338 <field name="Bifrost v7" size="512" start="0:0" type="Render Target Bifrost v7 Overlay"/> 1339 <field name="YUV" size="512" start="0:0" type="Render Target YUV Overlay"/> 1340 <field name="Midgard YUV" size="512" start="0:0" type="Render Target Midgard YUV Overlay"/> 1341 <field name="Bifrost YUV" size="512" start="0:0" type="Render Target Bifrost YUV Overlay"/> 1342 <field name="AFBC" size="512" start="0:0" type="Render Target AFBC Overlay"/> 1343 <field name="Midgard AFBC" size="512" start="0:0" type="Render Target Midgard AFBC Overlay"/> 1344 <field name="Bifrost AFBC" size="512" start="0:0" type="Render Target Bifrost AFBC Overlay"/> 1345 <field name="Internal Buffer Offset" size="12" start="0:4" type="uint" modifier="shr(4)"/> 1346 <field name="YUV Enable" size="1" start="0:24" type="bool"/> 1347 <field name="Internal Format" size="6" start="0:26" type="Color Buffer Internal Format"/> 1348 <field name="Write Enable" size="1" start="1:0" type="bool"/> 1349 <field name="Writeback Format" size="5" start="1:3" type="MFBD Color Format"/> 1350 <field name="Writeback MSAA" size="2" start="1:12" type="MSAA"/> 1351 <field name="sRGB" size="1" start="1:14" type="bool"/> 1352 <field name="Dithering Enable" size="1" start="1:15" type="bool"/> 1353 <field name="Swizzle" size="12" start="1:16" type="uint"/> 1354 <field name="Clean Pixel Write Enable" size="1" start="1:31" type="bool"/> 1355 <field name="RGB" size="128" start="8:0" type="RT Buffer"/> 1356 <field name="Midgard Preload" size="128" start="12:0" type="RT Buffer"/> 1357 <field name="Clear" size="128" start="12:0" type="RT Clear"/> 1358 </struct> 1359 1360 <enum name="Pre Post Frame Shader Mode"> 1361 <value name="Never" value="0"/> 1362 <value name="Always" value="1"/> 1363 <value name="Intersect" value="2"/> 1364 </enum> 1365 1366 <struct name="Bifrost Framebuffer Parameters"> 1367 <field name="Pre Frame 0" size="3" start="0:0" type="Pre Post Frame Shader Mode"/> 1368 <field name="Pre Frame 1" size="3" start="0:3" type="Pre Post Frame Shader Mode"/> 1369 <field name="Post Frame" size="3" start="0:6" type="Pre Post Frame Shader Mode"/> 1370 <field name="Sample Locations" size="64" start="4:0" type="address"/> 1371 <field name="Frame Shader DCDs" size="64" start="6:0" type="address"/> 1372 </struct> 1373 1374 <struct name="Bifrost Tiler Heap"> 1375 <field name="Size" size="32" start="1:0" type="uint" modifier="align(4096)"/> 1376 <field name="Base" size="64" start="2:0" type="address"/> 1377 <field name="Bottom" size="64" start="4:0" type="address"/> 1378 <field name="Top" size="64" start="6:0" type="address"/> 1379 </struct> 1380 1381 <struct name="Bifrost Tiler Weights" size="8"> 1382 <field name="Weight0" size="16" start="0:16" type="uint"/> 1383 <field name="Weight1" size="16" start="1:16" type="uint"/> 1384 <field name="Weight2" size="16" start="2:16" type="uint"/> 1385 <field name="Weight3" size="16" start="3:16" type="uint"/> 1386 <field name="Weight4" size="16" start="4:16" type="uint"/> 1387 <field name="Weight5" size="16" start="5:16" type="uint"/> 1388 <field name="Weight6" size="16" start="6:16" type="uint"/> 1389 <field name="Weight7" size="16" start="7:16" type="uint"/> 1390 </struct> 1391 1392 <struct name="Bifrost Tiler State" size="16"> 1393 <field name="Word0" size="32" start="0:0" type="uint"/> 1394 <field name="Word1" size="32" start="1:0" type="uint"/> 1395 <field name="Word2" size="32" start="2:0" type="uint"/> 1396 <field name="Word3" size="32" start="3:0" type="uint"/> 1397 <field name="Word4" size="32" start="4:0" type="uint"/> 1398 <field name="Word5" size="32" start="5:0" type="uint"/> 1399 <field name="Word6" size="32" start="6:0" type="uint"/> 1400 <field name="Word7" size="32" start="7:0" type="uint"/> 1401 <field name="Word8" size="32" start="8:0" type="uint"/> 1402 <field name="Word9" size="32" start="9:0" type="uint"/> 1403 <field name="Word10" size="32" start="10:0" type="uint"/> 1404 <field name="Word11" size="32" start="11:0" type="uint"/> 1405 <field name="Word12" size="32" start="12:0" type="uint"/> 1406 <field name="Word13" size="32" start="13:0" type="uint"/> 1407 <field name="Word14" size="32" start="14:0" type="uint"/> 1408 <field name="Word15" size="32" start="15:0" type="uint"/> 1409 </struct> 1410 1411 <struct name="Bifrost Tiler" size="48"> 1412 <field name="Polygon List" size="64" start="0:0" type="address"/> 1413 <field name="Hierarchy Mask" size="13" start="2:0" type="uint"/> 1414 <field name="Sample Pattern" size="3" start="2:13" type="Sample Pattern"/> 1415 <field name="Update Cost Table" size="1" start="2:16" type="bool"/> 1416 <field name="FB Width" size="16" start="3:0" type="uint" modifier="minus(1)"/> 1417 <field name="FB Height" size="16" start="3:16" type="uint" modifier="minus(1)"/> 1418 <field name="Heap" size="64" start="6:0" type="address"/> 1419 <field name="Weights" size="256" start="8:0" type="Bifrost Tiler Weights"/> 1420 <field name="State" size="512" start="32:0" type="Bifrost Tiler State"/> 1421 </struct> 1422 1423 <struct name="Bifrost Tiler Pointer"> 1424 <field name="Address" size="64" start="0:0" type="address"/> 1425 </struct> 1426 1427 <struct name="Bifrost Framebuffer Padding" size="16"> 1428 </struct> 1429 1430 <aggregate name="Multi-Target Framebuffer"> 1431 <section name="Local Storage" offset="0" type="Local Storage"/> 1432 <section name="Bifrost Parameters" offset="0" type="Bifrost Framebuffer Parameters"/> 1433 <section name="Parameters" offset="32" type="Multi-Target Framebuffer Parameters"/> 1434 <section name="Tiler" offset="56" type="Midgard Tiler"/> 1435 <section name="Tiler Weights" offset="96" type="Midgard Tiler Weights"/> 1436 <section name="Bifrost Tiler Pointer" offset="56" type="Bifrost Tiler Pointer"/> 1437 <section name="Bifrost Padding" offset="64" type="Bifrost Framebuffer Padding"/> 1438 </aggregate> 1439 1440 <struct name="Job Header"> 1441 <field name="Exception Status" size="32" start="0:0" type="uint"/> 1442 <field name="First Incomplete Task" size="32" start="1:0" type="uint"/> 1443 <field name="Fault Pointer" size="64" start="2:0" type="address"/> 1444 <field name="Is 64b" size="1" start="4:0" type="bool" default="true"/> 1445 <field name="Type" size="7" start="4:1" type="Job Type"/> 1446 <field name="Barrier" size="1" start="4:8" type="bool"/> 1447 <field name="Invalidate Cache" size="1" start="4:9" type="bool"/> 1448 <field name="Suppress Prefetch" size="1" start="4:11" type="bool"/> 1449 <field name="Enable Texture Mapper" size="1" start="4:12" type="bool"/> 1450 <field name="Relax Dependency 1" size="1" start="4:14" type="bool"/> 1451 <field name="Relax Dependency 2" size="1" start="4:15" type="bool"/> 1452 <field name="Index" size="16" start="4:16" type="uint"/> 1453 <field name="Dependency 1" size="16" start="5:0" type="uint"/> 1454 <field name="Dependency 2" size="16" start="5:16" type="uint"/> 1455 <field name="Next" size="64" start="6:0" type="address"/> 1456 </struct> 1457 1458 <struct name="Fragment Job Payload" size="8"> 1459 <field name="Bound Min X" size="12" start="0:0" type="uint"/> 1460 <field name="Bound Min Y" size="12" start="0:16" type="uint"/> 1461 <field name="Bound Max X" size="12" start="1:0" type="uint"/> 1462 <field name="Bound Max Y" size="12" start="1:16" type="uint"/> 1463 <field name="Has Tile Enable Map" size="1" start="1:31" type="bool"/> 1464 <field name="Framebuffer" size="64" start="2:0" type="address"/> 1465 <field name="Tile Enable Map" size="64" start="4:0" type="address"/> 1466 <field name="Tile Enable Map Row Stride" size="8" start="6:0" type="uint"/> 1467 </struct> 1468 1469 <aggregate name="Fragment Job"> 1470 <section name="Header" offset="0" type="Job Header"/> 1471 <section name="Payload" offset="32" type="Fragment Job Payload"/> 1472 </aggregate> 1473 1474 <enum name="Write Value Type"> 1475 <value name="Cycle Counter" value="1"/> 1476 <value name="System Timestamp" value="2"/> 1477 <value name="Zero" value="3"/> 1478 <value name="Immediate 8" value="4"/> 1479 <value name="Immediate 16" value="5"/> 1480 <value name="Immediate 32" value="6"/> 1481 <value name="Immediate 64" value="7"/> 1482 </enum> 1483 1484 <struct name="Write Value Job Payload"> 1485 <field name="Address" size="64" start="0:0" type="address"/> 1486 <field name="Type" size="32" start="2:0" type="Write Value Type"/> 1487 <field name="Immediate Value" size="64" start="4:0" type="uint"/> 1488 </struct> 1489 1490 <aggregate name="Write Value Job"> 1491 <section name="Header" offset="0" type="Job Header"/> 1492 <section name="Payload" offset="32" type="Write Value Job Payload"/> 1493 </aggregate> 1494 1495 <struct name="Compute Job Parameters" size="6"> 1496 <field name="Job Task Split" size="4" start="0:26" type="uint"/> 1497 </struct> 1498 1499 <!-- Compute job also covers vertex and geometry operations --> 1500 <aggregate name="Compute Job"> 1501 <section name="Header" offset="0" type="Job Header"/> 1502 <section name="Invocation" offset="32" type="Invocation"/> 1503 <section name="Parameters" offset="40" type="Compute Job Parameters"/> 1504 <section name="Draw" offset="64" type="Draw"/> 1505 </aggregate> 1506 1507 <struct name="Primitive Size"> 1508 <field name="Constant" size="32" start="0:0" type="float"/> 1509 <field name="Size Array" size="64" start="0:0" type="uint"/> 1510 </struct> 1511 1512 <aggregate name="Midgard Tiler Job" size="192"> 1513 <section name="Header" offset="0" type="Job Header"/> 1514 <section name="Invocation" offset="32" type="Invocation"/> 1515 <section name="Primitive" offset="40" type="Primitive"/> 1516 <section name="Draw" offset="64" type="Draw"/> 1517 <section name="Primitive Size" offset="184" type="Primitive Size"/> 1518 </aggregate> 1519 1520 <struct name="Bifrost Tiler Job Padding" size="12"> 1521 </struct> 1522 1523 <aggregate name="Bifrost Tiler Job" size="256"> 1524 <section name="Header" offset="0" type="Job Header"/> 1525 <section name="Invocation" offset="32" type="Invocation"/> 1526 <section name="Primitive" offset="40" type="Primitive"/> 1527 <section name="Primitive Size" offset="64" type="Primitive Size"/> 1528 <section name="Tiler" offset="72" type="Bifrost Tiler Pointer"/> 1529 <section name="Padding" offset="80" type="Bifrost Tiler Job Padding"/> 1530 <section name="Draw" offset="128" type="Draw"/> 1531 </aggregate> 1532</panxml> 1533