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