Alyssa Rosenzweig | 9cb3a9e | 2020-08-05 18:16:38 -0400 | [diff] [blame] | 1 | <panxml> |
| 2 | |
Alyssa Rosenzweig | 3e7fd2a | 2020-08-13 14:44:11 -0400 | [diff] [blame] | 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 | |
Alyssa Rosenzweig | cdc3276 | 2020-08-12 16:46:07 -0400 | [diff] [blame] | 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> |
Alyssa Rosenzweig | 87c5951 | 2020-08-19 16:32:26 -0400 | [diff] [blame] | 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> |
Alyssa Rosenzweig | cdc3276 | 2020-08-12 16:46:07 -0400 | [diff] [blame] | 33 | |
Alyssa Rosenzweig | 4b7056b | 2020-08-05 18:40:44 -0400 | [diff] [blame] | 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 | |
Alyssa Rosenzweig | 32dbc80 | 2020-08-05 18:44:36 -0400 | [diff] [blame] | 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 | |
Alyssa Rosenzweig | 78445ce | 2020-08-11 21:19:52 -0400 | [diff] [blame] | 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 | |
Alyssa Rosenzweig | d182a60 | 2020-08-05 18:47:52 -0400 | [diff] [blame] | 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 | |
Alyssa Rosenzweig | 0c621dc | 2020-08-11 21:30:46 -0400 | [diff] [blame] | 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"/> |
Alyssa Rosenzweig | 0c621dc | 2020-08-11 21:30:46 -0400 | [diff] [blame] | 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="RGB565" value="64"/> |
| 102 | <value name="RGB5 X1 UNORM" value="65"/> |
| 103 | <value name="RGB5 A1 UNORM" value="66"/> |
| 104 | <value name="RGB10 A2 UNORM" value="67"/> |
| 105 | <value name="RGB10 A2 SNORM" value="69"/> |
| 106 | <value name="RGB10 A2UI" value="71"/> |
| 107 | <value name="RGB10 A2I" value="73"/> |
| 108 | <value name="RGB332 UNORM" value="75"/> |
| 109 | <value name="RGB233 UNORM" value="76"/> |
| 110 | <value name="Z24X8 UNORM" value="77"/> |
| 111 | <value name="R32 FIXED" value="81"/> |
| 112 | <value name="RG32 FIXED" value="82"/> |
| 113 | <value name="RGB32 FIXED" value="83"/> |
| 114 | <value name="RGBA32 FIXED" value="84"/> |
| 115 | <value name="R11F G11F B10F" value="89"/> |
| 116 | <value name="R9F G9F B9F E5F" value="91"/> |
| 117 | <value name="VARYING POS" value="94"/> |
| 118 | <value name="VARYING DISCARD" value="95"/> |
| 119 | <value name="R8 SNORM" value="99"/> |
| 120 | <value name="R16 SNORM" value="100"/> |
| 121 | <value name="R32 SNORM" value="101"/> |
| 122 | <value name="RG8 SNORM" value="107"/> |
| 123 | <value name="RG16 SNORM" value="108"/> |
| 124 | <value name="RG32 SNORM" value="109"/> |
| 125 | <value name="RGB8 SNORM" value="115"/> |
| 126 | <value name="RGB16 SNORM" value="116"/> |
| 127 | <value name="RGB32 SNORM" value="117"/> |
| 128 | <value name="RGBA8 SNORM" value="123"/> |
| 129 | <value name="RGBA16 SNORM" value="124"/> |
| 130 | <value name="RGBA32 SNORM" value="125"/> |
| 131 | <value name="R8UI" value="131"/> |
| 132 | <value name="R16UI" value="132"/> |
| 133 | <value name="R32UI" value="133"/> |
| 134 | <value name="RG8UI" value="139"/> |
| 135 | <value name="RG16UI" value="140"/> |
| 136 | <value name="RG32UI" value="141"/> |
| 137 | <value name="RGB8UI" value="147"/> |
| 138 | <value name="RGB16UI" value="148"/> |
| 139 | <value name="RGB32UI" value="149"/> |
| 140 | <value name="RGBA8UI" value="155"/> |
| 141 | <value name="RGBA16UI" value="156"/> |
| 142 | <value name="RGBA32UI" value="157"/> |
| 143 | <value name="R8 UNORM" value="163"/> |
| 144 | <value name="R16 UNORM" value="164"/> |
| 145 | <value name="R32 UNORM" value="165"/> |
| 146 | <value name="R32F" value="167"/> |
| 147 | <value name="RG8 UNORM" value="171"/> |
| 148 | <value name="RG16 UNORM" value="172"/> |
| 149 | <value name="RG32 UNORM" value="173"/> |
| 150 | <value name="RG32F" value="175"/> |
| 151 | <value name="RGB8 UNORM" value="179"/> |
| 152 | <value name="RGB16 UNORM" value="180"/> |
| 153 | <value name="RGB32 UNORM" value="181"/> |
| 154 | <value name="RGB32F" value="183"/> |
| 155 | <value name="RGBA4 UNORM" value="186"/> |
| 156 | <value name="RGBA8 UNORM" value="187"/> |
| 157 | <value name="RGBA16 UNORM" value="188"/> |
| 158 | <value name="RGBA32 UNORM" value="189"/> |
| 159 | <value name="RGBA32F" value="191"/> |
| 160 | <value name="R8I" value="195"/> |
| 161 | <value name="R16I" value="196"/> |
| 162 | <value name="R32I" value="197"/> |
| 163 | <value name="R16F" value="199"/> |
| 164 | <value name="RG8I" value="203"/> |
| 165 | <value name="RG16I" value="204"/> |
| 166 | <value name="RG32I" value="205"/> |
| 167 | <value name="RG16F" value="207"/> |
| 168 | <value name="RGB8I" value="211"/> |
| 169 | <value name="RGB16I" value="212"/> |
| 170 | <value name="RGB32I" value="213"/> |
| 171 | <value name="RGB16F" value="215"/> |
| 172 | <value name="RGBA8I" value="219"/> |
| 173 | <value name="RGBA16I" value="220"/> |
| 174 | <value name="RGBA32I" value="221"/> |
| 175 | <value name="RGBA16F" value="223"/> |
| 176 | <value name="RGBA4" value="232"/> |
| 177 | <value name="RGBA8 2" value="237"/> |
| 178 | <value name="RGB10 A2 2" value="238"/> |
| 179 | </enum> |
| 180 | |
Alyssa Rosenzweig | c9bdba2 | 2020-08-11 21:00:47 -0400 | [diff] [blame] | 181 | <enum name="Block Format"> |
| 182 | <!--- 16x16 block u-interleaved --> |
| 183 | <value name="Tiled" value="0"/> |
| 184 | <value name="Linear" value="2"/> |
| 185 | <value name="AFBC" value="3"/> |
| 186 | </enum> |
| 187 | |
Alyssa Rosenzweig | f74186b | 2020-08-11 18:23:12 -0400 | [diff] [blame] | 188 | <enum name="Mipmap Mode"> |
| 189 | <value name="Nearest" value="0"/> |
| 190 | <value name="None" value="1"/> |
| 191 | <value name="Trilinear" value="3"/> |
| 192 | </enum> |
| 193 | |
Alyssa Rosenzweig | 99d17fb | 2020-08-11 21:04:01 -0400 | [diff] [blame] | 194 | <enum name="MSAA"> |
| 195 | <value name="Single" value="0"/> |
| 196 | <!-- N samples, 1 surface, resolved --> |
| 197 | <value name="Average" value="1"/> |
| 198 | <!-- N samples, 1 surface, unresolved --> |
| 199 | <value name="Multiple" value="2"/> |
| 200 | <!-- N samples, N surfaces --> |
| 201 | <value name="Layered" value="3"/> |
| 202 | </enum> |
| 203 | |
Alyssa Rosenzweig | b60d567 | 2020-08-25 16:59:14 -0400 | [diff] [blame] | 204 | <enum name="Index Type"> |
| 205 | <value name="None" value="0"/> |
| 206 | <value name="UINT8" value="1"/> |
| 207 | <value name="UINT16" value="2"/> |
| 208 | <value name="UINT32" value="3"/> |
| 209 | </enum> |
| 210 | |
Alyssa Rosenzweig | d6a5df0 | 2020-08-24 13:13:33 -0400 | [diff] [blame] | 211 | <enum name="Occlusion Mode"> |
| 212 | <value name="Disabled" value="0"/> |
| 213 | <value name="Predicate" value="1"/> |
| 214 | <value name="Counter" value="3"/> |
| 215 | </enum> |
| 216 | |
Alyssa Rosenzweig | e9ca320 | 2020-08-05 18:51:27 -0400 | [diff] [blame] | 217 | <enum name="Stencil Op"> |
| 218 | <value name="Keep" value="0"/> |
| 219 | <value name="Replace" value="1"/> |
| 220 | <value name="Zero" value="2"/> |
| 221 | <value name="Invert" value="3"/> |
| 222 | <value name="Incr Wrap" value="4"/> |
| 223 | <value name="Decr Wrap" value="5"/> |
| 224 | <value name="Incr Sat" value="6"/> |
| 225 | <value name="Decr Sat" value="7"/> |
| 226 | </enum> |
| 227 | |
Alyssa Rosenzweig | f008a63 | 2020-08-11 17:27:36 -0400 | [diff] [blame] | 228 | <enum name="Texture Dimension"> |
| 229 | <value name="Cube" value="0"/> |
| 230 | <value name="1D" value="1"/> |
| 231 | <value name="2D" value="2"/> |
| 232 | <value name="3D" value="3"/> |
| 233 | </enum> |
| 234 | |
| 235 | <enum name="Texture Layout"> |
| 236 | <!--- 16x16 block u-interleaved --> |
| 237 | <value name="Tiled" value="1"/> |
| 238 | <value name="Linear" value="2"/> |
| 239 | <value name="AFBC" value="12"/> |
| 240 | </enum> |
| 241 | |
Alyssa Rosenzweig | ef20691 | 2020-08-05 18:53:41 -0400 | [diff] [blame] | 242 | <enum name="Wrap Mode"> |
| 243 | <value name="Repeat" value="8"/> |
| 244 | <value name="Clamp to Edge" value="9"/> |
| 245 | <value name="Clamp" value="10"/> |
| 246 | <value name="Clamp to Border" value="11"/> |
| 247 | <value name="Mirrored Repeat" value="12"/> |
| 248 | <value name="Mirrored Clamp to Edge" value="13"/> |
| 249 | <value name="Mirrored Clamp" value="14"/> |
| 250 | <value name="Mirrored Clamp to Border" value="15"/> |
| 251 | </enum> |
| 252 | |
Alyssa Rosenzweig | 2c8a722 | 2020-08-13 13:27:16 -0400 | [diff] [blame] | 253 | <struct name="Attribute"> |
| 254 | <field name="Buffer index" size="9" start="0" type="uint"/> |
| 255 | <field name="Unknown" size="1" start="9" type="bool" default="true"/> |
| 256 | <field name="Format" size="22" start="10" type="uint"/> |
| 257 | <field name="Offset" size="32" start="32" type="int"/> |
| 258 | </struct> |
| 259 | |
Alyssa Rosenzweig | 3e7fd2a | 2020-08-13 14:44:11 -0400 | [diff] [blame] | 260 | <struct name="Attribute Buffer"> |
| 261 | <field name="Special" size="8" start="0" type="Attribute Special"/> |
| 262 | <field name="Type" size="6" start="0" type="Attribute Type" default="1D"/> |
| 263 | <field name="Pointer" size="50" start="6" type="address" modifier="shr(6)"/> |
| 264 | <field name="Stride" size="32" start="64" type="uint"/> |
| 265 | <field name="Size" size="32" start="96" type="uint"/> |
| 266 | |
Alyssa Rosenzweig | 1513392 | 2020-08-25 12:48:12 -0400 | [diff] [blame] | 267 | <field name="Divisor" size="8" start="56" type="padded" default="1"/> |
Alyssa Rosenzweig | 3e7fd2a | 2020-08-13 14:44:11 -0400 | [diff] [blame] | 268 | <field name="Divisor R" size="5" start="56" type="uint"/> |
| 269 | <field name="Divisor P" size="3" start="61" type="uint"/> |
| 270 | <field name="Divisor E" size="1" start="61" type="uint"/> |
| 271 | </struct> |
| 272 | |
| 273 | <struct name="Attribute Buffer Continuation NPOT"> |
| 274 | <field name="Type" size="6" start="0:0" type="Attribute Type" default="Continuation"/> |
| 275 | <field name="Divisor Numerator" size="32" start="1:0" type="uint"/> |
| 276 | <field name="Divisor" size="32" start="3:0" type="uint"/> |
| 277 | </struct> |
| 278 | |
Alyssa Rosenzweig | bf6d548 | 2020-08-18 18:15:45 -0400 | [diff] [blame] | 279 | <struct name="Blend Equation" size="1"> |
| 280 | <field name="RGB Mode" size="12" start="0" type="uint"/> |
| 281 | <field name="Alpha Mode" size="12" start="12" type="uint"/> |
| 282 | <field name="Color mask" size="4" start="28" type="uint" default="15"/> |
| 283 | </struct> |
| 284 | |
Alyssa Rosenzweig | 94c9f87 | 2020-08-18 17:06:01 -0400 | [diff] [blame] | 285 | <struct name="Blend Flags" size="1"> |
| 286 | <field name="Load destination" size="1" start="0" type="bool" default="false"/> |
| 287 | <field name="Midgard blend shader" size="1" start="1" type="bool" default="false"/> |
| 288 | <field name="Enable" size="1" start="9" type="bool" default="true"/> |
| 289 | <field name="sRGB" size="1" start="10" type="bool" default="false"/> |
| 290 | <field name="Dither disable" size="1" start="11" type="bool" default="false"/> |
| 291 | </struct> |
| 292 | |
Alyssa Rosenzweig | 75a274d | 2020-08-24 12:06:04 -0400 | [diff] [blame] | 293 | <struct name="Midgard Blend" size="4" with_opaque="true"> |
| 294 | <field name="Flags" size="32" start="0:0" type="Blend Flags"/> |
| 295 | <field name="Equation" size="32" start="2:0" type="uint"/> <!-- XXX --> |
| 296 | <field name="Constant" size="32" start="3:0" type="float"/> |
| 297 | <field name="Shader" size="64" start="2:0" type="address"/> |
| 298 | </struct> |
| 299 | |
Alyssa Rosenzweig | 0225ed4 | 2020-08-26 12:45:38 -0400 | [diff] [blame] | 300 | <struct name="Invocation"> |
| 301 | <!-- Dynamic bitfield containing WorkGroupSize.xyz, NumWorkGroups.xyz |
| 302 | The number of bits allocated for each number is based on the *_shift |
| 303 | fields. For example, workgroups_y_shift gives the bit that |
| 304 | gl_NumWorkGroups.y starts at, and workgroups_z_shift gives the bit |
| 305 | that gl_NumWorkGroups.z starts at (and therefore one after the bit |
| 306 | that gl_NumWorkGroups.y ends at). The actual value for each |
| 307 | is one more than the stored value, since if any of the values |
| 308 | are zero, then there would be no invocations (and hence no job). --> |
| 309 | <field name="Invocations" size="32" start="0:0" type="uint"/> |
| 310 | <field name="Size Y shift" size="5" start="1:0" type="uint"/> |
| 311 | <field name="Size Z shift" size="5" start="1:5" type="uint"/> |
| 312 | <field name="Workgroups X shift" size="6" start="1:10" type="uint"/> |
| 313 | <field name="Workgroups Y shift" size="6" start="1:16" type="uint"/> |
| 314 | <field name="Workgroups Z shift" size="6" start="1:22" type="uint"/> |
| 315 | <field name="Unknown shift" size="4" start="1:28" type="uint"/> |
| 316 | </struct> |
| 317 | |
Alyssa Rosenzweig | b60d567 | 2020-08-25 16:59:14 -0400 | [diff] [blame] | 318 | <struct name="Primitive"> |
| 319 | <field name="Draw mode" size="4" start="0:0" type="Draw Mode" default="None"/> |
| 320 | <field name="Index type" size="2" start="0:8" type="Index Type" default="None"/> |
| 321 | <field name="Point size array" size="1" start="0:12" type="bool"/> |
| 322 | <!--- TODO --> |
| 323 | <field name="First provoking vertex" size="1" start="0:15" type="bool" default="true"/> |
| 324 | <field name="Unknown 1" size="1" start="0:16" type="bool" default="true"/> |
| 325 | <field name="Unknown 2" size="1" start="0:17" type="bool" default="true"/> |
| 326 | <!--- TODO --> |
| 327 | <field name="Primitive restart" size="1" start="0:20" type="bool"/> |
| 328 | <field name="Unknown 3" size="6" start="0:26" type="uint"/> |
| 329 | <field name="Base vertex offset" size="32" start="1:0" type="uint"/> |
| 330 | <!--- TODO: word 2 --> |
| 331 | <field name="Index count" size="32" start="3:0" type="uint" modifier="minus(1)"/> |
| 332 | <field name="Indices" size="64" start="4:0" type="address"/> |
| 333 | </struct> |
| 334 | |
Alyssa Rosenzweig | d6a5df0 | 2020-08-24 13:13:33 -0400 | [diff] [blame] | 335 | <struct name="Draw" size="30"> |
| 336 | <field name="Unknown 1" size="3" start="0:0" type="uint"/> |
| 337 | <field name="Occlusion query" size="2" start="0:3" type="Occlusion Mode" default="Disabled"/> |
| 338 | <field name="Front face CCW" size="1" start="0:5" type="bool"/> |
| 339 | <field name="Cull front face" size="1" start="0:6" type="bool"/> |
| 340 | <field name="Cull back face" size="1" start="0:7" type="bool"/> |
| 341 | <!-- TODO 0:7-0:15 --> |
| 342 | <field name="Instances" size="8" start="0:16" type="padded" default="1"/> |
| 343 | <!-- TODO: 0:16-0:24 --> |
| 344 | <field name="Offset start" size="32" start="1:0" type="uint"/> |
| 345 | <!-- TODO: 2-3 --> |
| 346 | <field name="Position" size="64" start="4:0" type="address"/> |
| 347 | <field name="Uniform buffers" size="64" start="6:0" type="address"/> |
| 348 | <field name="Textures" size="64" start="8:0" type="address"/> |
| 349 | <field name="Samplers" size="64" start="10:0" type="address"/> |
| 350 | <field name="Push uniforms" size="64" start="12:0" type="address"/> |
| 351 | <field name="State" size="64" start="14:0" type="address"/> |
| 352 | <field name="Attribute buffers" size="64" start="16:0" type="address"/> |
| 353 | <field name="Attributes" size="64" start="18:0" type="address"/> |
| 354 | <field name="Varying buffers" size="64" start="20:0" type="address"/> |
| 355 | <field name="Varyings" size="64" start="22:0" type="address"/> |
| 356 | <field name="Viewport" size="64" start="24:0" type="address"/> |
| 357 | <field name="Occlusion" size="64" start="26:0" type="address"/> |
| 358 | <field name="Shared" size="64" start="28:0" type="address"/> |
| 359 | </struct> |
| 360 | |
Alyssa Rosenzweig | f74186b | 2020-08-11 18:23:12 -0400 | [diff] [blame] | 361 | <struct name="Midgard Sampler"> |
| 362 | <field name="Magnify Nearest" size="1" start="0" type="bool" default="true"/> |
| 363 | <field name="Minify Nearest" size="1" start="1" type="bool" default="true"/> |
| 364 | <field name="Mipmap Mode" size="2" start="3" type="Mipmap Mode" default="Nearest"/> |
| 365 | <field name="Normalized Coordinates" size="1" start="5" type="bool" default="true"/> |
| 366 | <field name="LOD Bias" size="16" start="0:16" type="int" default="0"/> |
| 367 | <field name="Minimum LOD" size="16" start="1:0" type="uint" default="0"/> |
| 368 | <field name="Maximum LOD" size="16" start="1:16" type="uint" default="1"/> |
| 369 | <field name="Wrap Mode S" size="4" start="2:0" type="Wrap Mode" default="Clamp to Edge"/> |
| 370 | <field name="Wrap Mode T" size="4" start="2:4" type="Wrap Mode" default="Clamp to Edge"/> |
| 371 | <field name="Wrap Mode R" size="4" start="2:8" type="Wrap Mode" default="Clamp to Edge"/> |
| 372 | <field name="Compare Function" size="3" start="2:12" type="Func" default="Never"/> |
| 373 | <field name="Seamless Cube Map" size="1" start="2:15" type="bool" default="true"/> |
| 374 | <field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/> |
| 375 | <field name="Border Color G" size="32" start="5:0" type="float" default="0.0"/> |
| 376 | <field name="Border Color B" size="32" start="6:0" type="float" default="0.0"/> |
| 377 | <field name="Border Color A" size="32" start="7:0" type="float" default="0.0"/> |
| 378 | </struct> |
| 379 | |
Alyssa Rosenzweig | f008a63 | 2020-08-11 17:27:36 -0400 | [diff] [blame] | 380 | <struct name="Midgard Texture" size="8"> |
| 381 | <field name="Width" size="16" start="0:0" type="uint" modifier="minus(1)"/> |
| 382 | <field name="Height" size="16" start="0:16" type="uint" modifier="minus(1)"/> |
| 383 | <field name="Depth" size="16" start="1:0" type="uint" modifier="minus(1)"/> |
| 384 | <field name="Array size" size="16" start="1:16" type="uint" modifier="minus(1)"/> |
| 385 | <field name="Format" size="22" start="2:0" type="uint"/> |
| 386 | <field name="Dimension" size="2" start="2:22" type="Texture Dimension"/> |
| 387 | <field name="Texel ordering" size="4" start="2:24" type="Texture Layout"/> |
| 388 | <field name="Unknown" size="1" start="2:28" type="bool" default="true"/> |
| 389 | <field name="Manual stride" size="1" start="2:29" type="bool" default="false"/> |
| 390 | <field name="Levels" size="8" start="3:24" type="uint"/> |
| 391 | <field name="Swizzle" size="12" start="4:0" type="uint"/> |
| 392 | </struct> |
| 393 | |
Alyssa Rosenzweig | b10c3c8 | 2020-08-11 18:25:03 -0400 | [diff] [blame] | 394 | <struct name="Bifrost Sampler" size="8"> |
| 395 | <field name="Type" size="4" start="0:0" type="uint" default="1"/> |
| 396 | <field name="Wrap Mode R" size="4" start="0:8" type="Wrap Mode" default="Clamp to Edge"/> |
| 397 | <field name="Wrap Mode T" size="4" start="0:12" type="Wrap Mode" default="Clamp to Edge"/> |
| 398 | <field name="Wrap Mode S" size="4" start="0:16" type="Wrap Mode" default="Clamp to Edge"/> |
| 399 | <field name="Seamless Cube Map" size="1" start="0:23" type="bool" default="true"/> |
| 400 | <field name="Normalized Coordinates" size="1" start="0:25" type="bool" default="true"/> |
| 401 | <field name="Minify Linear" size="1" start="0:27" type="bool" default="false"/> |
| 402 | <field name="Magnify Linear" size="1" start="0:28" type="bool" default="false"/> |
| 403 | <field name="Mipmap Mode" size="2" start="0:30" type="Mipmap Mode" default="Nearest"/> |
| 404 | <field name="Minimum LOD" size="13" start="1:0" type="uint" default="0"/> |
| 405 | <field name="Compare Function" size="3" start="1:13" type="Func" default="Never"/> |
| 406 | <field name="Maximum LOD" size="13" start="1:16" type="uint" default="0"/> |
| 407 | <field name="LOD bias" size="16" start="2:0" type="uint" default="0"/> |
| 408 | </struct> |
| 409 | |
Alyssa Rosenzweig | ad0b32c | 2020-08-06 18:12:28 -0400 | [diff] [blame] | 410 | <struct name="Bifrost Texture" size="8"> |
| 411 | <field name="Type" size="4" start="0:0" type="uint" default="2"/> |
| 412 | <field name="Dimension" size="2" start="0:4" type="Texture Dimension"/> |
| 413 | <field name="Format" size="22" start="0:10" type="uint"/> |
| 414 | <field name="Width" size="16" start="1:0" type="uint" modifier="minus(1)"/> |
| 415 | <field name="Height" size="16" start="1:16" type="uint" modifier="minus(1)"/> |
| 416 | <field name="Swizzle" size="12" start="2:0" type="uint"/> |
| 417 | <field name="Texel ordering" size="4" start="2:12" type="Texture Layout"/> |
| 418 | <field name="Levels" size="5" start="2:16" type="uint"/> |
| 419 | <field name="Minimum LOD" size="13" start="3:0" type="uint" default="0"/> |
| 420 | <field name="Maximum LOD" size="13" start="3:16" type="uint" default="0"/> |
| 421 | <field name="Surfaces" size="64" start="4:0" type="address"/> |
| 422 | </struct> |
| 423 | |
Alyssa Rosenzweig | 87c5951 | 2020-08-19 16:32:26 -0400 | [diff] [blame] | 424 | <struct name="Midgard Properties" size="1"> |
| 425 | <field name="Uniform buffer count" size="8" start="0" type="uint"/> |
| 426 | <field name="Depth source" size="2" start="8" type="Depth Source" default="None"/> |
| 427 | <field name="Early-z enable" size="1" start="10" type="bool" default="false"/> |
| 428 | <field name="Helper invocation enable" size="1" start="11" type="bool" default="false"/> |
| 429 | <field name="Reads depth/stencil" size="1" start="12" type="bool" default="false"/> |
| 430 | <field name="Writes globals" size="1" start="13" type="bool" default="false"/> |
| 431 | <field name="Reads tilebuffer" size="1" start="14" type="bool" default="false"/> |
| 432 | <field name="Work register count" size="5" start="16" type="uint"/> |
| 433 | <field name="Uniform count" size="5" start="21" type="uint"/> |
| 434 | <field name="Stencil from shader" size="1" start="28" type="bool"/> |
| 435 | <field name="Suppress Inf/NaN" size="1" start="29" type="bool"/> |
| 436 | </struct> |
| 437 | |
Alyssa Rosenzweig | acf77cb | 2020-08-20 16:41:41 -0400 | [diff] [blame] | 438 | <struct name="Bifrost Properties" size="1"> |
| 439 | <field name="Uniform buffer count" size="8" start="0" type="uint"/> |
| 440 | <!--- If set, disables registers [R16, R47] for full thread count --> |
| 441 | <field name="Full thread" size="1" start="13" type="bool" default="false"/> |
| 442 | <field name="Early-z enable" size="1" start="19" type="bool" default="false"/> |
| 443 | <field name="First ATEST" size="1" start="30" type="bool" default="false"/> |
| 444 | <!-- XXX: This is awful --> |
| 445 | <field name="Unknown" size="32" start="0" type="uint"/> |
| 446 | </struct> |
| 447 | |
Alyssa Rosenzweig | 7a95ed2 | 2020-08-20 20:42:32 -0400 | [diff] [blame] | 448 | <struct name="Preload" size="1"> |
| 449 | <field name="Untyped" size="15" start="0" type="uint"/> |
| 450 | <field name="Uniform count" size="7" start="15" type="uint"/> |
| 451 | </struct> |
| 452 | |
| 453 | <struct name="Preload Compute" size="1"> |
| 454 | <field name="Local Invocation XY" size="1" start="7" type="bool"/> |
| 455 | <field name="Local Invocation Z" size="1" start="8" type="bool"/> |
| 456 | <field name="Work group X" size="1" start="9" type="bool"/> |
| 457 | <field name="Work group Y" size="1" start="10" type="bool"/> |
| 458 | <field name="Work group Z" size="1" start="11" type="bool"/> |
| 459 | <field name="Global Invocation X" size="1" start="12" type="bool"/> |
| 460 | <field name="Global Invocation Y" size="1" start="13" type="bool"/> |
| 461 | <field name="Global Invocation Z" size="1" start="14" type="bool"/> |
| 462 | <field name="Uniform count" size="7" start="15" type="uint"/> |
| 463 | </struct> |
| 464 | |
| 465 | <struct name="Preload Vertex" size="1"> |
| 466 | <field name="Vertex ID" size="1" start="13" type="bool"/> |
| 467 | <field name="Instance ID" size="1" start="14" type="bool"/> |
| 468 | <field name="Uniform count" size="7" start="15" type="uint"/> |
| 469 | </struct> |
| 470 | |
| 471 | <struct name="Preload Fragment" size="1"> |
| 472 | <field name="Unknown" size="1" start="7" type="bool" default="true"/> |
| 473 | <field name="Primitive ID" size="1" start="9" type="bool"/> |
| 474 | <field name="Front facing" size="1" start="10" type="bool"/> |
| 475 | <field name="Fragment position" size="1" start="11" type="bool"/> |
| 476 | <field name="Sample mask/ID" size="1" start="12" type="bool"/> |
| 477 | <field name="Uniform count" size="7" start="15" type="uint"/> |
| 478 | </struct> |
| 479 | |
Alyssa Rosenzweig | 661b469 | 2020-08-21 10:34:06 -0400 | [diff] [blame] | 480 | <struct name="Shader" size="4"> |
| 481 | <field name="Shader" size="64" start="0:0" type="address"/> |
| 482 | <field name="Sampler count" size="16" start="2:0" type="uint"/> |
| 483 | <field name="Texture count" size="16" start="2:16" type="uint"/> |
| 484 | <field name="Attribute count" size="16" start="3:0" type="uint"/> |
| 485 | <field name="Varying count" size="16" start="3:16" type="uint"/> |
| 486 | </struct> |
| 487 | |
Alyssa Rosenzweig | 754d543 | 2020-08-21 15:54:10 -0400 | [diff] [blame] | 488 | <struct name="Multisample, Misc" size="1"> |
| 489 | <field name="Sample mask" size="16" start="0" type="uint"/> |
| 490 | <field name="Multisample enable" size="1" start="16" type="bool"/> |
| 491 | <!-- TODO 17 --> |
| 492 | <field name="Evaluate per-sample" size="1" start="18" type="bool"/> |
| 493 | <field name="Unknown 1" size="1" start="19" type="bool"/> |
| 494 | <field name="Unknown 2" size="1" start="20" type="bool"/> |
| 495 | <field name="SFBD Load destination" size="1" start="21" type="bool"/> |
| 496 | <field name="SFBD Blend shader" size="1" start="22" type="bool"/> |
| 497 | <!-- TODO 23 --> |
| 498 | <field name="Depth function" size="3" start="24" type="Func"/> |
| 499 | <field name="Depth write mask" size="1" start="27" type="bool"/> |
| 500 | <field name="Near discard" size="1" start="28" type="bool"/> |
| 501 | <field name="Far discard" size="1" start="29" type="bool"/> |
| 502 | <!-- TODO: 30-31 --> |
| 503 | </struct> |
| 504 | |
| 505 | <struct name="Stencil Mask, Misc" size="1"> |
| 506 | <field name="Stencil mask front" size="8" start="0" type="uint"/> |
| 507 | <field name="Stencil mask back" size="8" start="8" type="uint"/> |
| 508 | <field name="Stencil enable" size="1" start="16" type="bool"/> |
| 509 | <field name="Alpha-to-coverage" size="1" start="17" type="bool"/> |
| 510 | <!-- TODO 18-19 --> |
| 511 | <field name="SFBD Write enable" size="1" start="20" type="bool"/> |
| 512 | <field name="Unknown 1" size="3" start="21" type="uint"/> |
| 513 | <field name="SFBD sRGB" size="1" start="24" type="bool"/> |
| 514 | <field name="SFBD Dither disable" size="1" start="25" type="bool"/> |
| 515 | <field name="Unknown 2" size="1" start="26" type="bool"/> |
| 516 | <field name="Depth Range 1" size="1" start="28" type="bool"/> |
| 517 | <field name="Depth Range 2" size="1" start="29" type="bool"/> |
| 518 | <field name="Single-sampled lines" size="1" start="30" type="bool"/> |
| 519 | <!-- TODO: 31 --> |
| 520 | </struct> |
| 521 | |
Alyssa Rosenzweig | 931e7b4 | 2020-08-05 22:02:32 -0400 | [diff] [blame] | 522 | <struct name="Stencil"> |
| 523 | <field name="Reference Value" size="8" start="0" type="uint"/> |
Alyssa Rosenzweig | 322ddbd | 2020-09-09 16:29:04 -0400 | [diff] [blame^] | 524 | <field name="Mask" size="8" start="8" type="uint"/> |
Alyssa Rosenzweig | 931e7b4 | 2020-08-05 22:02:32 -0400 | [diff] [blame] | 525 | <field name="Compare Function" size="3" start="16" type="Func"/> |
| 526 | <field name="Stencil Fail" size="3" start="19" type="Stencil Op"/> |
| 527 | <field name="Depth Fail" size="3" start="22" type="Stencil Op"/> |
| 528 | <field name="Depth Pass" size="3" start="25" type="Stencil Op"/> |
| 529 | </struct> |
| 530 | |
Alyssa Rosenzweig | 754d543 | 2020-08-21 15:54:10 -0400 | [diff] [blame] | 531 | <struct name="State" with_opaque="true"> |
| 532 | <field name="Shader" size="128" start="0:0" type="Shader"/> |
| 533 | <field name="Properties" size="32" start="4:0" type="uint"/> |
| 534 | <field name="Depth units" size="32" start="5:0" type="float"/> |
| 535 | <field name="Depth factor" size="32" start="6:0" type="float"/> |
| 536 | <!-- TODO: word 7 --> |
| 537 | <field name="Multisample, Misc" size="32" start="8:0" type="Multisample, Misc"/> |
| 538 | <field name="Stencil Mask, Misc" size="32" start="9:0" type="Stencil Mask, Misc"/> |
| 539 | <field name="Stencil front" size="32" start="10:0" type="Stencil"/> |
| 540 | <field name="Stencil back" size="32" start="11:0" type="Stencil"/> |
| 541 | <field name="Preload" size="32" start="12:0" type="Preload"/> |
| 542 | <!--- TODO: word 13 --> |
| 543 | <field name="SFBD Blend" size="64" start="14:0" type="uint"/> |
| 544 | </struct> |
| 545 | |
Alyssa Rosenzweig | fa94967 | 2020-08-05 21:39:25 -0400 | [diff] [blame] | 546 | <struct name="Uniform Buffer"> |
| 547 | <field name="Entries" size="12" start="0" type="uint" modifier="minus(1)"/> |
| 548 | <field name="Pointer" size="52" start="12" type="address" modifier="shr(4)" element="16" count="Entries"/> |
| 549 | </struct> |
| 550 | |
Alyssa Rosenzweig | 7f487e0 | 2020-08-05 19:33:20 -0400 | [diff] [blame] | 551 | <struct name="Viewport"> |
| 552 | <field name="Minimum X" size="32" start="0:0" default="-INFINITY" type="float"/> |
| 553 | <field name="Minimum Y" size="32" start="1:0" default="-INFINITY" type="float"/> |
| 554 | <field name="Maximum X" size="32" start="2:0" default="+INFINITY" type="float"/> |
| 555 | <field name="Maximum Y" size="32" start="3:0" default="+INFINITY" type="float"/> |
| 556 | <field name="Minimum Z" size="32" start="4:0" default="0.0" type="float"/> |
| 557 | <field name="Maximum Z" size="32" start="5:0" default="1.0" type="float"/> |
| 558 | <field name="Scissor Minimum X" size="16" start="6:0" default="0" type="uint"/> |
| 559 | <field name="Scissor Minimum Y" size="16" start="6:16" default="0" type="uint"/> |
| 560 | <field name="Scissor Maximum X" size="16" start="7:0" type="uint"/> |
| 561 | <field name="Scissor Maximum Y" size="16" start="7:16" type="uint"/> |
| 562 | </struct> |
| 563 | |
Alyssa Rosenzweig | 9cb3a9e | 2020-08-05 18:16:38 -0400 | [diff] [blame] | 564 | </panxml> |