| 1 |
<!-- |
| 2 |
Copyright (C) 2021 Collabora Ltd. |
| 3 |
Copyright (C) 2026 Arm Ltd. |
| 4 |
SPDX-License-Identifier: MIT |
| 5 |
--> |
| 6 |
|
| 7 |
<valhall> |
| 8 |
<lut name="Immediates"> |
| 9 |
<desc> |
| 10 |
This immediates are accessible in (almost) any instruction, provided the |
| 11 |
immediate mode is kept to the default. They optimize for the most common |
| 12 |
immediate values; any immediate listed here may be used without taking up |
| 13 |
a uniform slot or a register. Most integer instructions can access |
| 14 |
separate half-words and individual bytes via swizzles on the source. |
| 15 |
</desc> |
| 16 |
<constant desc="Zero">0x00000000</constant> |
| 17 |
<constant desc="All ones; integer $-1$">0xFFFFFFFF</constant> |
| 18 |
<constant desc="Maximum integer; floating-point NaN">0x7FFFFFFF</constant> |
| 19 |
<constant desc="Integers $(-2, -3, -4, -6)$">0xFAFCFDFE</constant> |
| 20 |
<constant desc="16-bit integer $2^8$">0x01000000</constant> |
| 21 |
<constant desc="Multiples of 16 $(0, 32, 0, 128)$">0x80002000</constant> |
| 22 |
<constant desc="Multiples of 16 $(48, 80, 96, 112)$">0x70605030</constant> |
| 23 |
<constant desc="Multiples of 16 $(144, 160, 176, 192)$">0xC0B0A090</constant> |
| 24 |
<constant desc="Integers $(0, 1, 2, 3)$">0x03020100</constant> |
| 25 |
<constant desc="Integers $(4, 5, 6, 7)$">0x07060504</constant> |
| 26 |
<constant desc="Integers $(8, 9, 10, 11)$">0x0B0A0908</constant> |
| 27 |
<constant desc="Integers $(12, 13, 14, 15)$">0x0F0E0D0C</constant> |
| 28 |
<constant desc="Integers $(16, 17, 18, 19)$">0x13121110</constant> |
| 29 |
<constant desc="Integers $(20, 21, 22, 23)$">0x17161514</constant> |
| 30 |
<constant desc="Integers $(24, 25, 26, 27)$">0x1B1A1918</constant> |
| 31 |
<constant desc="Integers $(28, 29, 30, 31)$">0x1F1E1D1C</constant> |
| 32 |
<constant desc="Float $1.0$">0x3F800000</constant> |
| 33 |
<constant desc="Float $0.1$">0x3DCCCCCD</constant> |
| 34 |
<constant desc="Float $1 / \pi$">0x3EA2F983</constant> |
| 35 |
<constant desc="Float $\log(2)$">0x3F317218</constant> |
| 36 |
<constant desc="Float $\pi$">0x40490FDB</constant> |
| 37 |
<constant desc="Float $0.0$">0x00000000</constant> |
| 38 |
<constant desc="Float $65535.0 = 2^{16} - 1$">0x477FFF00</constant> |
| 39 |
<constant desc="Half-float $(255.0, 256.0) = (2^8 - 1, 2^8)$">0x5C005BF8</constant> |
| 40 |
<constant desc="Half-float $0.1 = 1 / 10$">0x2E660000</constant> |
| 41 |
<constant desc="Half-float $0.25 = 2^{-2}$">0x34000000</constant> |
| 42 |
<constant desc="Half-float $0.5 = 2^{-1}$">0x38000000</constant> |
| 43 |
<constant desc="Half-float $1.0 = 2^0$">0x3C000000</constant> |
| 44 |
<constant desc="Half-float $2.0 = 2^1$">0x40000000</constant> |
| 45 |
<constant desc="Half-float $4.0 = 2^2$">0x44000000</constant> |
| 46 |
<constant desc="Half-float $8.0 = 2^3$">0x48000000</constant> |
| 47 |
<constant desc="Half-float $\pi$">0x42480000</constant> |
| 48 |
</lut> |
| 49 |
|
| 50 |
<enum name="Flow"> |
| 51 |
<desc> |
| 52 |
Every Valhall instruction can wait on dependency |
| 53 |
slots. A few special flows are available, specified in the instruction |
| 54 |
metadata from this enum. The `wait0126` flow is required to wait on |
| 55 |
dependency slot #6 and should be set on the instruction immediately |
| 56 |
preceding `ATEST`. The `wait` flow should be set for barriers. |
| 57 |
The `discard` flow only applies to fragment shaders and is used to |
| 58 |
terminate helper invocations, it should be set as early as possible after |
| 59 |
helper invocations are no longer needed as determined by data flow |
| 60 |
analysis. The `end` flow is used to terminate the shader, although it |
| 61 |
may be overloaded by the `BLEND` instruction. |
| 62 |
|
| 63 |
The `reconverge` flow is required on any instruction immediately |
| 64 |
preceding a possible change to the mask of active threads in a subgroup. |
| 65 |
This includes all divergent branches, but it also includes the final |
| 66 |
instruction at the end of any basic block where the immediate successor |
| 67 |
(fallthrough) is the target of a divergent branch. |
| 68 |
</desc> |
| 69 |
<value name="None" default="true">none</value> |
| 70 |
<value name="Wait on slot 0">wait0</value> |
| 71 |
<value name="Wait on slot 1">wait1</value> |
| 72 |
<value name="Wait on slots 0, 1">wait01</value> |
| 73 |
<value name="Wait on slot 2">wait2</value> |
| 74 |
<value name="Wait on slots 0, 2">wait02</value> |
| 75 |
<value name="Wait on slots 1, 2">wait12</value> |
| 76 |
<value name="Wait on slots 0, 1, 2">wait012</value> |
| 77 |
<value name="Wait on slots 0, 1, 2, 6">wait0126</value> |
| 78 |
<value name="Wait on slots 0, 1, 2, 6, 7">wait</value> |
| 79 |
<value name="Perform branch reconverge">reconverge</value> |
| 80 |
<reserved/> |
| 81 |
<value name="Wait for resource read">wait_resource</value> |
| 82 |
<value name="Terminate discarded threads">discard</value> |
| 83 |
<reserved/> |
| 84 |
<value name="Return from shader">end</value> |
| 85 |
</enum> |
| 86 |
|
| 87 |
<enum name="FAU special page 0"> |
| 88 |
<desc> |
| 89 |
Situated between the immediates hard-coded in the hardware and the |
| 90 |
uniforms defined purely in software, Valhall has a some special |
| 91 |
"constants" passing through data structures. These are encoded like the |
| 92 |
table of immediates, as if special constant $i$ were lookup table entry |
| 93 |
$32 + i$. |
| 94 |
</desc> |
| 95 |
<reserved/> |
| 96 |
<reserved/> |
| 97 |
<value desc="Warp ID and warps/core - 1">warp_id</value> |
| 98 |
<reserved/> |
| 99 |
<value desc="Bounding box maximum X/Y">framebuffer_size</value> |
| 100 |
<value desc="ATEST datum">atest_datum</value> |
| 101 |
<value desc="Sample positions">sample</value> |
| 102 |
<reserved/> |
| 103 |
<value desc="Blend descriptor 0">blend_descriptor_0</value> |
| 104 |
<value desc="Blend descriptor 1">blend_descriptor_1</value> |
| 105 |
<value desc="Blend descriptor 2">blend_descriptor_2</value> |
| 106 |
<value desc="Blend descriptor 3">blend_descriptor_3</value> |
| 107 |
<value desc="Blend descriptor 4">blend_descriptor_4</value> |
| 108 |
<value desc="Blend descriptor 5">blend_descriptor_5</value> |
| 109 |
<value desc="Blend descriptor 6">blend_descriptor_6</value> |
| 110 |
<value desc="Blend descriptor 7">blend_descriptor_7</value> |
| 111 |
</enum> |
| 112 |
|
| 113 |
<enum name="FAU special page 1"> |
| 114 |
<desc> |
| 115 |
Situated between the immediates hard-coded in the hardware and the |
| 116 |
uniforms defined purely in software, Valhall has a some special |
| 117 |
"constants" passing through data structures. These are encoded like the |
| 118 |
table of immediates, as if special constant $i$ were lookup table entry |
| 119 |
$32 + i$. |
| 120 |
</desc> |
| 121 |
<reserved/> |
| 122 |
<value desc="Thread local storage base pointer">thread_local_pointer</value> |
| 123 |
<reserved/> |
| 124 |
<value desc="Workgroup local storage base pointer">workgroup_local_pointer</value> |
| 125 |
<reserved/> |
| 126 |
<reserved/> |
| 127 |
<reserved/> |
| 128 |
<value desc="Shader resource table base pointer">resource_table_pointer</value> |
| 129 |
<reserved/> |
| 130 |
<reserved/> |
| 131 |
<reserved/> |
| 132 |
<reserved/> |
| 133 |
<reserved/> |
| 134 |
<reserved/> |
| 135 |
<reserved/> |
| 136 |
<reserved/> |
| 137 |
</enum> |
| 138 |
|
| 139 |
<enum name="FAU special page 3"> |
| 140 |
<desc> |
| 141 |
Situated between the immediates hard-coded in the hardware and the |
| 142 |
uniforms defined purely in software, Valhall has a some special |
| 143 |
"constants" passing through data structures. These are encoded like the |
| 144 |
table of immediates, as if special constant $i$ were lookup table entry |
| 145 |
$32 + i$. |
| 146 |
</desc> |
| 147 |
<reserved/> |
| 148 |
<value desc="Lane ID">lane_id</value> |
| 149 |
<reserved/> |
| 150 |
<value desc="Core ID">core_id</value> |
| 151 |
<value desc="Shader Output">shader_output</value> |
| 152 |
<reserved/> |
| 153 |
<reserved/> |
| 154 |
<reserved/> |
| 155 |
<reserved/> |
| 156 |
<reserved/> |
| 157 |
<reserved/> |
| 158 |
<reserved/> |
| 159 |
<reserved/> |
| 160 |
<reserved/> |
| 161 |
<reserved/> |
| 162 |
<value desc="Program counter">program_counter</value> |
| 163 |
</enum> |
| 164 |
|
| 165 |
<enum name="Swizzles (8-bit)"> |
| 166 |
<value default="true">b0123</value> |
| 167 |
<value>b3210</value> |
| 168 |
<value>b0101</value> |
| 169 |
<value>b2323</value> |
| 170 |
<value>b0000</value> |
| 171 |
<value>b1111</value> |
| 172 |
<value>b2222</value> |
| 173 |
<value>b3333</value> |
| 174 |
<value>b2301</value> |
| 175 |
<value>b1032</value> |
| 176 |
<value>b0011</value> |
| 177 |
<value>b2233</value> |
| 178 |
<reserved/> |
| 179 |
<reserved/> |
| 180 |
<reserved/> |
| 181 |
<reserved/> |
| 182 |
</enum> |
| 183 |
|
| 184 |
<enum name="Lanes (8-bit)"> |
| 185 |
<desc>Used to select the 2 bytes for shifts of 16-bit vectors</desc> |
| 186 |
<reserved/> |
| 187 |
<reserved/> |
| 188 |
<reserved/> |
| 189 |
<reserved/> |
| 190 |
<value>b00</value> |
| 191 |
<value>b11</value> |
| 192 |
<value>b22</value> |
| 193 |
<value>b33</value> |
| 194 |
<reserved/> |
| 195 |
<reserved/> |
| 196 |
<reserved/> |
| 197 |
<reserved/> |
| 198 |
<reserved/> |
| 199 |
<reserved/> |
| 200 |
<reserved/> |
| 201 |
<reserved/> |
| 202 |
</enum> |
| 203 |
|
| 204 |
<enum name="Half-swizzles (8-bit)"> |
| 205 |
<desc> |
| 206 |
Used to select the 2 bytes to convert for conversions from 8-bit vectors |
| 207 |
to 16-bit vectors |
| 208 |
</desc> |
| 209 |
<value>b00</value> |
| 210 |
<value>b10</value> |
| 211 |
<value>b20</value> |
| 212 |
<value>b30</value> |
| 213 |
<value>b01</value> |
| 214 |
<value>b11</value> |
| 215 |
<value>b21</value> |
| 216 |
<value>b31</value> |
| 217 |
<value>b02</value> |
| 218 |
<value>b12</value> |
| 219 |
<value>b22</value> |
| 220 |
<value>b32</value> |
| 221 |
<value>b03</value> |
| 222 |
<value>b13</value> |
| 223 |
<value>b23</value> |
| 224 |
<value>b33</value> |
| 225 |
</enum> |
| 226 |
|
| 227 |
<enum name="Swizzles (16-bit)"> |
| 228 |
<value>h00</value> <!-- 0,2 --> |
| 229 |
<value>h10</value> |
| 230 |
<value default="true">h01</value> |
| 231 |
<value>h11</value> |
| 232 |
<value>b00</value> <!-- 0,0 --> |
| 233 |
<value>b20</value> <!-- 1,1 --> |
| 234 |
<value>b02</value> <!-- 2,2 --> |
| 235 |
<value>b22</value> <!-- 3,3 --> |
| 236 |
<value>b11</value> |
| 237 |
<value>b31</value> |
| 238 |
<value>b13</value> <!-- 0,1 --> |
| 239 |
<value>b33</value> <!-- 2,3 --> |
| 240 |
<value>b01</value> |
| 241 |
<value>b23</value> |
| 242 |
<reserved/> |
| 243 |
<reserved/> |
| 244 |
</enum> |
| 245 |
|
| 246 |
<enum name="Swizzles (32-bit)"> |
| 247 |
<value default="true">none</value> |
| 248 |
<reserved/> |
| 249 |
<value>h0</value> |
| 250 |
<value>h1</value> |
| 251 |
<value>b0</value> |
| 252 |
<value>b1</value> |
| 253 |
<value>b2</value> |
| 254 |
<value>b3</value> |
| 255 |
</enum> |
| 256 |
|
| 257 |
<enum name="Swizzles (64-bit)"> |
| 258 |
<value default="true">none</value> |
| 259 |
<reserved/> |
| 260 |
<value>h0</value> |
| 261 |
<value>h1</value> |
| 262 |
<value>b0</value> |
| 263 |
<value>b1</value> |
| 264 |
<value>b2</value> |
| 265 |
<value>b3</value> |
| 266 |
<value>w0</value> |
| 267 |
<reserved/> |
| 268 |
<reserved/> |
| 269 |
<reserved/> |
| 270 |
<reserved/> |
| 271 |
<reserved/> |
| 272 |
<reserved/> |
| 273 |
<reserved/> |
| 274 |
</enum> |
| 275 |
|
| 276 |
<enum name="Lane (8-bit)" implied="true"> |
| 277 |
<value>b0</value> |
| 278 |
<value>b1</value> |
| 279 |
<value>b2</value> |
| 280 |
<value>b3</value> |
| 281 |
</enum> |
| 282 |
|
| 283 |
<enum name="Combine"> |
| 284 |
<desc> |
| 285 |
Used for the lane select of `BRANCHZ`. To use an 8-bit condition, a |
| 286 |
separate `ICMP` is required to cast to 16-bit. |
| 287 |
</desc> |
| 288 |
<value default="true">none</value> |
| 289 |
<value>h0</value> |
| 290 |
<value>h1</value> |
| 291 |
<value>and</value> |
| 292 |
<value>lowbits</value> |
| 293 |
</enum> |
| 294 |
|
| 295 |
<enum name="Lane (16-bit)" implied="true"> |
| 296 |
<value>h0</value> |
| 297 |
<value>h1</value> |
| 298 |
</enum> |
| 299 |
|
| 300 |
<enum name="Load lane (8-bit)"> |
| 301 |
<value default="true">b0</value> |
| 302 |
<value>b1</value> |
| 303 |
<value>b2</value> |
| 304 |
<value>b3</value> |
| 305 |
<value desc="Zero-extend to 16-bit, low-half">h0</value> |
| 306 |
<value desc="Zero-extend to 16-bit, high-half">h1</value> |
| 307 |
<value desc="Zero-extend to 32-bit">w0</value> |
| 308 |
<value desc="Zero-extend to 64-bit">d0</value> |
| 309 |
</enum> |
| 310 |
|
| 311 |
<enum name="Load lane (16-bit)"> |
| 312 |
<value desc="Low half" default="true">h0</value> |
| 313 |
<value desc="High half">h1</value> |
| 314 |
<value desc="Zero-extend to 32-bit">w0</value> |
| 315 |
<value desc="Zero-extend to 64-bit">d0</value> |
| 316 |
<reserved/> |
| 317 |
<reserved/> |
| 318 |
<reserved/> |
| 319 |
<reserved/> |
| 320 |
</enum> |
| 321 |
|
| 322 |
<enum name="Load lane (24-bit)" implied="true"> |
| 323 |
<value default="true">identity</value> |
| 324 |
<reserved/> |
| 325 |
<reserved/> |
| 326 |
<reserved/> |
| 327 |
<reserved/> |
| 328 |
<reserved/> |
| 329 |
<reserved/> |
| 330 |
</enum> |
| 331 |
|
| 332 |
<enum name="Load lane (32-bit)"> |
| 333 |
<value default="true">w0</value> |
| 334 |
<value desc="Zero-extend to 64-bit">d0</value> |
| 335 |
<reserved/> |
| 336 |
<reserved/> |
| 337 |
<reserved/> |
| 338 |
<reserved/> |
| 339 |
<reserved/> |
| 340 |
<reserved/> |
| 341 |
</enum> |
| 342 |
|
| 343 |
<enum name="Load lane (48-bit)"> |
| 344 |
<reserved/> |
| 345 |
<reserved/> |
| 346 |
<reserved/> |
| 347 |
<reserved/> |
| 348 |
<value default="true">identity</value> |
| 349 |
<reserved/> |
| 350 |
<reserved/> |
| 351 |
<reserved/> |
| 352 |
</enum> |
| 353 |
|
| 354 |
<enum name="Load lane (64-bit)"> |
| 355 |
<reserved/> |
| 356 |
<reserved/> |
| 357 |
<reserved/> |
| 358 |
<reserved/> |
| 359 |
<reserved/> |
| 360 |
<reserved/> |
| 361 |
<reserved/> |
| 362 |
<value default="true">identity</value> |
| 363 |
</enum> |
| 364 |
|
| 365 |
<enum name="Load lane (96-bit)"> |
| 366 |
<reserved/> |
| 367 |
<reserved/> |
| 368 |
<reserved/> |
| 369 |
<reserved/> |
| 370 |
<reserved/> |
| 371 |
<reserved/> |
| 372 |
<value default="true">identity</value> |
| 373 |
<reserved/> |
| 374 |
</enum> |
| 375 |
|
| 376 |
<enum name="Load lane (128-bit)"> |
| 377 |
<reserved/> |
| 378 |
<reserved/> |
| 379 |
<reserved/> |
| 380 |
<reserved/> |
| 381 |
<reserved/> |
| 382 |
<reserved/> |
| 383 |
<reserved/> |
| 384 |
<value default="true">identity</value> |
| 385 |
</enum> |
| 386 |
|
| 387 |
<enum name="Round mode"> |
| 388 |
<desc>Corresponds to IEEE 754 rounding modes</desc> |
| 389 |
<value desc="Round to nearest even" default="true">rte</value> |
| 390 |
<value desc="Round to positive infinity">rtp</value> |
| 391 |
<value desc="Round to negative infinity">rtn</value> |
| 392 |
<value desc="Round to zero">rtz</value> |
| 393 |
</enum> |
| 394 |
|
| 395 |
<enum name="Result type"> |
| 396 |
<desc> |
| 397 |
Comparison instructions like `FCMP` return a boolean but may encode this |
| 398 |
boolean in a variety of ways. `i1` gives a OpenGL style `0/1` boolean. |
| 399 |
`m1` gives a Direct3D style `0/~0` boolean. `f1` gives a floating-point |
| 400 |
`0.0f / 1.0f` boolean. Switching between these modes is useful to fold a |
| 401 |
boolean type convert into a comparison. `u1` is used internally to |
| 402 |
implement 64-bit comparisons. |
| 403 |
</desc> |
| 404 |
<value desc="Integer 1">i1</value> |
| 405 |
<value desc="Float 1">f1</value> |
| 406 |
<value desc="Minus 1">m1</value> |
| 407 |
<value desc="Low half of 64-bit compare">u1</value> |
| 408 |
</enum> |
| 409 |
|
| 410 |
<enum name="Widen"> |
| 411 |
<value default="true">none</value> |
| 412 |
<value>h0</value> |
| 413 |
<value>h1</value> |
| 414 |
<reserved/> |
| 415 |
<reserved/> |
| 416 |
<reserved/> |
| 417 |
<reserved/> |
| 418 |
<reserved/> |
| 419 |
</enum> |
| 420 |
|
| 421 |
<enum name="Clamp"> |
| 422 |
<desc> |
| 423 |
Clamp applied to the destination of a floating-point instruction. Note the |
| 424 |
clamps may be decomposed as two independent bits for `clamp_0_inf` and |
| 425 |
`clamp_m1_1`, with `clamp_0_1` arising as the composition of `clamp_0_inf` |
| 426 |
and `clamp_m1_1` in either order. |
| 427 |
|
| 428 |
Clamps are implemented per the SPIR-V specification: |
| 429 |
|
| 430 |
$$\text{clamp} \; (x, \ell, h) = \min( \max( x, \ell ), h)$$ |
| 431 |
|
| 432 |
The min/max functions return the other operand if one operand is NaN, and |
| 433 |
compare $-0 < +0$. That means the following identities hold for Valhall |
| 434 |
clamps: |
| 435 |
|
| 436 |
\begin{align*} |
| 437 |
\text{clamp}(-0.0, 0.0, 1.0) & = +0.0 \\ |
| 438 |
\text{clamp}(-\text{NaN}, 0.0, 1.0) & = +0.0 \\ |
| 439 |
\text{clamp}(\text{NaN}, 0.0, 1.0) & = +0.0 \\ |
| 440 |
& \\ |
| 441 |
\text{clamp}(-0.0, -1.0, 1.0) & = -0.0 \\ |
| 442 |
\text{clamp}(\text{NaN}, -1.0, 1.0) & = -1.0 \\ |
| 443 |
\text{clamp}(-\text{NaN}, -1.0, 1.0) & = -1.0 \\ |
| 444 |
& \\ |
| 445 |
\max(\text{NaN}, 0.0) & = +0.0 \\ |
| 446 |
\max(-\text{NaN}, 0.0) & = +0.0 \\ |
| 447 |
\max(-0.0, 0.0) & = +0.0 \\ |
| 448 |
\end{align*} |
| 449 |
|
| 450 |
This behaviour is consistent with the FMin/FMax/FClamp and |
| 451 |
NMin/NMax/NClamp rules prescribed by SPIR-V and governed by IEEE-754. As |
| 452 |
a consequence, substituting these clamps for equivalent minimum/maximum |
| 453 |
exprssions is legal even with strict floating point rules. |
| 454 |
</desc> |
| 455 |
<value default="true" desc="Identity">none</value> |
| 456 |
<value desc="Clamp positive">clamp_0_inf</value> |
| 457 |
<value desc="Clamp to $[-1, 1]$">clamp_m1_1</value> |
| 458 |
<value desc="Clamp to $[0, 1]$">clamp_0_1</value> |
| 459 |
</enum> |
| 460 |
|
| 461 |
<enum name="Condition"> |
| 462 |
<desc> |
| 463 |
Condition code. Type must be inferred from the instruction. IEEE 754 total |
| 464 |
ordering only applies to floating point compares. "Not equal" and "greater |
| 465 |
than or less than" are distinguished by NaN behaviour conforming to |
| 466 |
the IEEE 754 specification. |
| 467 |
</desc> |
| 468 |
<value desc="Equal">eq</value> |
| 469 |
<value desc="Greater than">gt</value> |
| 470 |
<value desc="Greater than or equal">ge</value> |
| 471 |
<value desc="Not equal">ne</value> |
| 472 |
<value desc="Less than">lt</value> |
| 473 |
<value desc="Less than or equal">le</value> |
| 474 |
<value desc="Greater than or less than">gtlt</value> |
| 475 |
<value desc="Totally ordered">total</value> |
| 476 |
</enum> |
| 477 |
|
| 478 |
<enum name="Dimension"> |
| 479 |
<desc>Texture dimension.</desc> |
| 480 |
<value desc="1D or buffer">1d</value> |
| 481 |
<value desc="2D or 2D array">2d</value> |
| 482 |
<value desc="3D or 3D array">3d</value> |
| 483 |
<value desc="Cube map or cube map array">cube</value> |
| 484 |
</enum> |
| 485 |
|
| 486 |
<enum name="LOD mode"> |
| 487 |
<desc>Level-of-detail selection mode in a texture instruction.</desc> |
| 488 |
<value desc="Set to zero">zero</value> |
| 489 |
<value desc="Computed based on neighboring fragments">computed</value> |
| 490 |
<reserved/> |
| 491 |
<reserved/> |
| 492 |
<value desc="Explicitly specified in a register">explicit</value> |
| 493 |
<value desc="Computed based on neighboring fragments added with bias in a register">computed_bias</value> |
| 494 |
<value desc="Derived from a gradient descriptor in registers">grdesc</value> |
| 495 |
<reserved/> |
| 496 |
</enum> |
| 497 |
|
| 498 |
<enum name="Register format"> |
| 499 |
<desc>Format of data loaded to / stored from registers for general memory access.</desc> |
| 500 |
<value desc="32-bit type based on descriptor format">auto</value> |
| 501 |
<reserved/> |
| 502 |
<value desc="32-bit floats">f32</value> |
| 503 |
<value desc="16-bit floats">f16</value> |
| 504 |
<value desc="32-bit signed integers">s32</value> |
| 505 |
<value desc="16-bit signed integers">s16</value> |
| 506 |
<value desc="32-bit unsigned integers">u32</value> |
| 507 |
<value desc="16-bit unsigned integers">u16</value> |
| 508 |
</enum> |
| 509 |
|
| 510 |
<enum name="Staging register count" implied="true"> |
| 511 |
<value>sr0</value> |
| 512 |
<value>sr1</value> |
| 513 |
<value>sr2</value> |
| 514 |
<value>sr3</value> |
| 515 |
<value>sr4</value> |
| 516 |
<value>sr5</value> |
| 517 |
<value>sr6</value> |
| 518 |
<value>sr7</value> |
| 519 |
</enum> |
| 520 |
|
| 521 |
<enum name="Staging register write count" implied="true"> |
| 522 |
<value>write1</value> |
| 523 |
<value>write2</value> |
| 524 |
<value>write3</value> |
| 525 |
<value>write4</value> |
| 526 |
<value>write5</value> |
| 527 |
<value>write6</value> |
| 528 |
<value>write7</value> |
| 529 |
<value>write8</value> |
| 530 |
</enum> |
| 531 |
|
| 532 |
<enum name="Write mask"> |
| 533 |
<reserved/> |
| 534 |
<value>r</value> |
| 535 |
<value>g</value> |
| 536 |
<value>rg</value> |
| 537 |
<value>b</value> |
| 538 |
<value>rb</value> |
| 539 |
<value>gb</value> |
| 540 |
<value>rgb</value> |
| 541 |
<value>a</value> |
| 542 |
<value>ra</value> |
| 543 |
<value>ga</value> |
| 544 |
<value>rga</value> |
| 545 |
<value>ba</value> |
| 546 |
<value>rba</value> |
| 547 |
<value>gba</value> |
| 548 |
<value default="true">rgba</value> |
| 549 |
</enum> |
| 550 |
|
| 551 |
<enum name="Fetch component"> |
| 552 |
<value desc="Red">gather4_r</value> |
| 553 |
<value desc="Green">gather4_g</value> |
| 554 |
<value desc="Blue">gather4_b</value> |
| 555 |
<value desc="Alpha">gather4_a</value> |
| 556 |
</enum> |
| 557 |
|
| 558 |
<enum name="Register type"> |
| 559 |
<desc>Unsized type, part of a register format.</desc> |
| 560 |
<reserved/> |
| 561 |
<value name="Float">f</value> |
| 562 |
<value name="Unsigned">u</value> |
| 563 |
<value name="Signed">s</value> |
| 564 |
</enum> |
| 565 |
|
| 566 |
<enum name="Register width"> |
| 567 |
<desc>Untyped size, part of a register format.</desc> |
| 568 |
<value>16</value> |
| 569 |
<value>32</value> |
| 570 |
</enum> |
| 571 |
|
| 572 |
<enum name="Varying texture register width"> |
| 573 |
<desc> |
| 574 |
Size of results for varying texture instructions. For dual 16-bit results |
| 575 |
use "16-bit". |
| 576 |
</desc> |
| 577 |
<value desc="16-bit">16</value> |
| 578 |
<value desc="32-bit">32</value> |
| 579 |
<value desc="16-bit, 32-bit">16.32</value> |
| 580 |
<value desc="32-bit, 32-bit">32.32</value> |
| 581 |
</enum> |
| 582 |
|
| 583 |
<enum name="Vector size"> |
| 584 |
<desc>Number of channels loaded/stored for general memory access.</desc> |
| 585 |
<value default="true" desc="Scalar">none</value> |
| 586 |
<value desc="2 channels">v2</value> |
| 587 |
<value desc="3 channels">v3</value> |
| 588 |
<value desc="4 channels">v4</value> |
| 589 |
</enum> |
| 590 |
|
| 591 |
<enum name="Slot"> |
| 592 |
<desc> |
| 593 |
Dependency slot set on a message-passing instruction that writes to |
| 594 |
registers. Before reading the destination, a future instruction must wait |
| 595 |
on the specified slot. Slot #7 is for `BARRIER` instructions only. |
| 596 |
</desc> |
| 597 |
<value desc="Slot #0">slot0</value> |
| 598 |
<value desc="Slot #1">slot1</value> |
| 599 |
<value desc="Slot #2">slot2</value> |
| 600 |
<reserved/> |
| 601 |
<reserved/> |
| 602 |
<reserved/> |
| 603 |
<reserved/> |
| 604 |
<value desc="Slot #7">slot7</value> |
| 605 |
</enum> |
| 606 |
|
| 607 |
<enum name="Memory access"> |
| 608 |
<desc>Memory access hint for a `LOAD` or `STORE` instruction.</desc> |
| 609 |
<value desc="No hint (global)" default="true">none</value> |
| 610 |
<value desc="Internally streaming (position output)">istream</value> |
| 611 |
<value desc="Externally streaming (varying output)">estream</value> |
| 612 |
<value desc="Force access in discarded threads (thread local storage)">force</value> |
| 613 |
</enum> |
| 614 |
|
| 615 |
<enum name="Subgroup size"> |
| 616 |
<desc> |
| 617 |
Selects the effective subgroup size from subgroup operations. The hardware |
| 618 |
warps are sixteen threads on Valhall, but subdividing a warp may be useful |
| 619 |
for API requirements. In particular, derivatives may be calculated with |
| 620 |
quads (four threads). |
| 621 |
</desc> |
| 622 |
<value desc="Two threads">subgroup2</value> |
| 623 |
<value desc="Four threads">subgroup4</value> |
| 624 |
<value desc="Eight threads">subgroup8</value> |
| 625 |
<value desc="Sixteen threads" default="true">subgroup16</value> |
| 626 |
</enum> |
| 627 |
|
| 628 |
<enum name="Lane operation"> |
| 629 |
<desc> |
| 630 |
Acts as a modifier on the lane specificier for a `CLPER` instruction. The |
| 631 |
`accumulate` mode is required for efficient subgroup reductions. |
| 632 |
</desc> |
| 633 |
<value name="No operation" default="true">none</value> |
| 634 |
<value name="Exclusive-or">xor</value> |
| 635 |
<value name="Accumulate">accumulate</value> |
| 636 |
<value name="Shift">shift</value> |
| 637 |
</enum> |
| 638 |
|
| 639 |
<enum name="Inactive result"> |
| 640 |
<desc> |
| 641 |
Accesses to inactive lanes (due to divergence) in a subgroup is generally |
| 642 |
undefined in APIs. However, the results of permuting with an inactive lane |
| 643 |
with `CLPER.i32` are well-defined in Valhall: they return one of the |
| 644 |
following values, as specified in the `CLPER.i32` instructions. Sometimes |
| 645 |
certain values enable small optimizations. |
| 646 |
</desc> |
| 647 |
<value name="0x00000000" default="true">zero</value> |
| 648 |
<value name="0xFFFFFFFF">umax</value> |
| 649 |
<value name="0x00000001">i1</value> |
| 650 |
<value name="0x00010001">v2i1</value> |
| 651 |
<value name="0x80000000">smin</value> |
| 652 |
<value name="0x7FFFFFFF">smax</value> |
| 653 |
<value name="0x80008000">v2smin</value> |
| 654 |
<value name="0x7FFF7FFF">v2smax</value> |
| 655 |
<value name="0x80808080">v4smin</value> |
| 656 |
<value name="0x7F7F7F7F">v4smax</value> |
| 657 |
<value name="0x3F800000">f1</value> |
| 658 |
<value name="0x3C003C00">v2f1</value> |
| 659 |
<value name="0xFF800000">infn</value> |
| 660 |
<value name="0x7F800000">inf</value> |
| 661 |
<value name="0xFC00FC00">v2infn</value> |
| 662 |
<value name="0x7C007C00">v2inf</value> |
| 663 |
</enum> |
| 664 |
|
| 665 |
<enum name="Mux"> |
| 666 |
<desc> |
| 667 |
Condition to use for a `MUX` instruction. `neg` checks the sign bit, |
| 668 |
`int_zero` compares to `0x00000000`, `fp_zero` compares to $\pm 0.0$ as |
| 669 |
an IEEE 754 float, and `bit` checks each bit separately. The `bit` mode |
| 670 |
acts like an imaginary `CSEL.v32u1` instruction, and implements |
| 671 |
`bitselect()` in OpenCL. |
| 672 |
</desc> |
| 673 |
<value desc="Negative">neg</value> |
| 674 |
<value desc="Integer zero" default="true">int_zero</value> |
| 675 |
<value desc="Floating point zero">fp_zero</value> |
| 676 |
<value desc="Bitwise">bit</value> |
| 677 |
</enum> |
| 678 |
|
| 679 |
<enum name="Sample mode"> |
| 680 |
<desc> |
| 681 |
Varying interpolation mode, for choosing the correct sample to |
| 682 |
interpolate at, allowing the `sample` and `centroid` qualifiers to be |
| 683 |
implemented, as well as the `interpolateAt*` functions. |
| 684 |
</desc> |
| 685 |
<value desc="Center">center</value> |
| 686 |
<value desc="Centroid">centroid</value> |
| 687 |
<value desc="Sample">sample</value> |
| 688 |
<value desc="Explicit">explicit</value> |
| 689 |
</enum> |
| 690 |
|
| 691 |
<enum name="Update mode"> |
| 692 |
<desc> |
| 693 |
The Valhall GPU maintains hidden state when interpolating varyings, to |
| 694 |
allow reusing sample location calculations. The update mode of a varying |
| 695 |
load controls this hidden state. |
| 696 |
</desc> |
| 697 |
<value desc="Store interpolation position">store</value> |
| 698 |
<value desc="Retrieve interpolation position">retrieve</value> |
| 699 |
<reserved/> |
| 700 |
<value desc="Clobber saved position">clobber</value> |
| 701 |
</enum> |
| 702 |
|
| 703 |
<enum name="Sample and update mode"> |
| 704 |
<desc> |
| 705 |
For fused varying/texture instructions, only the following specific |
| 706 |
combinations of sample and update modes are permitted. |
| 707 |
</desc> |
| 708 |
<value desc="Center, store">center_store</value> |
| 709 |
<value desc="Centroid, store">centroid_store</value> |
| 710 |
<value desc="Sample, store">sample_store</value> |
| 711 |
<value desc="Explicit, store">explicit_store</value> |
| 712 |
<value desc="Center, clobber">center_clobber</value> |
| 713 |
<reserved/> |
| 714 |
<value desc="Sample, clobber">sample_clobber</value> |
| 715 |
<value desc="Retrieve previous state">retrieve</value> |
| 716 |
</enum> |
| 717 |
|
| 718 |
<enum name="Source"> |
| 719 |
<desc> |
| 720 |
Clock source for LD_GCLK instruction. |
| 721 |
</desc> |
| 722 |
<reserved/> |
| 723 |
<reserved/> |
| 724 |
<reserved/> |
| 725 |
<reserved/> |
| 726 |
<reserved/> |
| 727 |
<reserved/> |
| 728 |
<value desc="Cycle counter">cycle_counter</value> |
| 729 |
<value desc="System timestamp">system_timestamp</value> |
| 730 |
</enum> |
| 731 |
|
| 732 |
<enum name="Source format"> |
| 733 |
<desc> |
| 734 |
In-memory format of varyings. |
| 735 |
|
| 736 |
Note: src_flat32 is only valid with 32-bit varying instructions and |
| 737 |
src_flat16 is only valid with 16-bit varying instructions. |
| 738 |
</desc> |
| 739 |
<value desc="Uninterpreted 32-bit values">src_flat32</value> |
| 740 |
<value desc="Uninterpreted 16-bit values">src_flat16</value> |
| 741 |
<value desc="Interpolated 32-bit floats">src_f32</value> |
| 742 |
<value desc="Interpolated 16-bit floats">src_f16</value> |
| 743 |
</enum> |
| 744 |
|
| 745 |
<enum name="Atomic operation"> |
| 746 |
<desc> |
| 747 |
Operation performed in a general computational atomic instruction. |
| 748 |
</desc> |
| 749 |
<reserved/> |
| 750 |
<reserved/> |
| 751 |
<value desc="Add">aadd</value> |
| 752 |
<reserved/> |
| 753 |
<reserved/> |
| 754 |
<reserved/> |
| 755 |
<reserved/> |
| 756 |
<reserved/> |
| 757 |
<value desc="Signed minimum">asmin</value> |
| 758 |
<value desc="Signed maximum">asmax</value> |
| 759 |
<value desc="Unsigned minimum">aumin</value> |
| 760 |
<value desc="Unsigned maximum">aumax</value> |
| 761 |
<value desc="Bitwise and">aand</value> |
| 762 |
<value desc="Bitwise or">aor</value> |
| 763 |
<value desc="Bitwise exclusive-or">axor</value> |
| 764 |
<value desc="Exchange (must return the value)">axchg</value> |
| 765 |
</enum> |
| 766 |
|
| 767 |
<enum name="Atomic operation with 1"> |
| 768 |
<desc> |
| 769 |
Operation performed in a computational atomic-with-1 instruction. |
| 770 |
</desc> |
| 771 |
<value desc="Increment">ainc</value> |
| 772 |
<value desc="Decrement">adec</value> |
| 773 |
<value desc="Unsigned maximum with 1">aumax1</value> |
| 774 |
<value desc="Signed maximum with 1">asmax1</value> |
| 775 |
<value desc="Set bottom bit">aor1</value> |
| 776 |
</enum> |
| 777 |
|
| 778 |
<enum name="NaN mode"> |
| 779 |
<desc> |
| 780 |
Flush specific NaN values in FLUSH.f32 and FLUSH.v2f16. flush_nan flushes |
| 781 |
all NaN values to zero. quiet_nan flushes signaling NaNs to quiet NaNs. |
| 782 |
</desc> |
| 783 |
<value desc="None">none</value> |
| 784 |
<value desc="Flush NaN">flush_nan</value> |
| 785 |
<value desc="Quiet NaN">quiet_nan</value> |
| 786 |
</enum> |
| 787 |
|
| 788 |
<!-- note that the `unused="true"` annotation here just means that this |
| 789 |
particular entry is unused by the compiler. This may be because the |
| 790 |
instruction isn't generated yet, but it may also be because there |
| 791 |
is a duplicate instruction in the Bifrost or pseudo XML files |
| 792 |
--> |
| 793 |
<ins name="NOP" title="No operation" dests="0" unused="true" unit="CVT"> |
| 794 |
<opcode> |
| 795 |
<op val="0x00" start="48" mask="0x1FF"/> |
| 796 |
</opcode> |
| 797 |
<desc> |
| 798 |
Do nothing. Useful at the start of a block for waiting on slots required |
| 799 |
by the first actual instruction of the block, to reconcile dependencies |
| 800 |
after a branch. Also useful as the sole instruction of an empty shader. |
| 801 |
</desc> |
| 802 |
</ins> |
| 803 |
|
| 804 |
<ins name="BRANCHZ" title="Compare to zero and branch" dests="0" unused="true" unit="CVT"> |
| 805 |
<opcode> |
| 806 |
<op val="0x1F" start="48" mask="0x1FF"/> |
| 807 |
</opcode> |
| 808 |
<desc> |
| 809 |
Branches to a specified relative offset if its source is nonzero (default) |
| 810 |
or if its source is zero (if `.eq` is set). The offset is 27-bits and |
| 811 |
sign-extended, giving an effective range of ±26-bits. The offset is |
| 812 |
specified in units of instructions, relative to the *next* instruction. |
| 813 |
Positive offsets may be interpreted as "number of instructions to skip". |
| 814 |
Since Valhall instructions are 8 bytes, this operates as: |
| 815 |
|
| 816 |
$$PC := \begin{cases} PC + 8 \cdot (\text{offset} \; + 1) & \text{if} \; |
| 817 |
\text{src} \stackrel{?}{=} 0 \\ PC + 8 & \text{otherwise} \end{cases}$$ |
| 818 |
|
| 819 |
Used with comparison instructions to implement control flow. Tie the |
| 820 |
source to a nonzero constant to implement a jump. May introduce |
| 821 |
divergence, so generally requires `.reconverge` flow control. |
| 822 |
</desc> |
| 823 |
<src combine="true">Value to compare against zero</src> |
| 824 |
<imm name="offset" start="8" size="27" signed="true"/> |
| 825 |
<conservative/> |
| 826 |
<va_mod name="eq" start="36" size="1"/> |
| 827 |
</ins> |
| 828 |
|
| 829 |
<ins name="DISCARD.f32" title="Discard fragment" dests="0" unused="true" unit="CVT"> |
| 830 |
<opcode> |
| 831 |
<op val="0x20" start="48" mask="0x1FF"/> |
| 832 |
</opcode> |
| 833 |
<desc> |
| 834 |
Evaluates the given condition, and if it passes, discards the current |
| 835 |
fragment and terminates the thread. Only valid in a **fragment** shader. |
| 836 |
</desc> |
| 837 |
<cmp/> |
| 838 |
<src absneg="true" swizzle="true">Left value to compare</src> |
| 839 |
<src absneg="true" swizzle="true">Right value to compare</src> |
| 840 |
</ins> |
| 841 |
|
| 842 |
<ins name="BRANCHZI" title="Compare to zero and branch indirect" dests="0" last="true" unit="CVT"> |
| 843 |
<opcode> |
| 844 |
<op val="0x2F" start="48" mask="0x1FF"/> |
| 845 |
</opcode> |
| 846 |
<desc> |
| 847 |
Jump to an indirectly specified (absolute or relative) address. Used to |
| 848 |
jump to blend shaders at the end of a fragment shader. |
| 849 |
</desc> |
| 850 |
<src combine="true">Value to compare against zero</src> |
| 851 |
<src>Branch target</src> |
| 852 |
<conservative/> |
| 853 |
<va_mod name="eq" start="36" size="1"/> |
| 854 |
<va_mod name="absolute" start="40" size="1"/> |
| 855 |
</ins> |
| 856 |
|
| 857 |
<ins name="BARRIER" title="Execution and memory barrier" unused="true" unit="NONE"> |
| 858 |
<opcode> |
| 859 |
<op val="0x45" start="48" mask="0x1FF"/> |
| 860 |
</opcode> |
| 861 |
<desc> |
| 862 |
General-purpose barrier. Must use slot #7. Must be paired with a |
| 863 |
`.wait` flow on the instruction. |
| 864 |
</desc> |
| 865 |
<slot/> |
| 866 |
</ins> |
| 867 |
|
| 868 |
<group name="CSEL" title="Floating-point conditional select" dests="1" unused="true" unit="CVT"> |
| 869 |
<ins name="CSEL.f32"> |
| 870 |
<opcode> |
| 871 |
<op val="0x154" start="48" mask="0x1FF"/> |
| 872 |
</opcode> |
| 873 |
</ins> |
| 874 |
<ins name="CSEL.v2f16"> |
| 875 |
<opcode> |
| 876 |
<op val="0x155" start="48" mask="0x1FF"/> |
| 877 |
</opcode> |
| 878 |
</ins> |
| 879 |
<desc> |
| 880 |
Evaluates the given condition and outputs either the true source or the |
| 881 |
false source. |
| 882 |
</desc> |
| 883 |
<cmp/> |
| 884 |
<src float="true">Left value to compare</src> |
| 885 |
<src float="true">Right value to compare</src> |
| 886 |
<src float="true">Return value if true</src> |
| 887 |
<src float="true">Return value if false</src> |
| 888 |
</group> |
| 889 |
|
| 890 |
<group name="CSEL" title="Integer conditional select" dests="1" unused="true" unit="CVT"> |
| 891 |
<ins name="CSEL.u32"> |
| 892 |
<opcode> |
| 893 |
<op val="0x150" start="48" mask="0x1FF"/> |
| 894 |
</opcode> |
| 895 |
</ins> |
| 896 |
<ins name="CSEL.v2u16"> |
| 897 |
<opcode> |
| 898 |
<op val="0x151" start="48" mask="0x1FF"/> |
| 899 |
</opcode> |
| 900 |
</ins> |
| 901 |
<ins name="CSEL.s32"> |
| 902 |
<opcode> |
| 903 |
<op val="0x158" start="48" mask="0x1FF"/> |
| 904 |
</opcode> |
| 905 |
</ins> |
| 906 |
<ins name="CSEL.v2s16"> |
| 907 |
<opcode> |
| 908 |
<op val="0x159" start="48" mask="0x1FF"/> |
| 909 |
</opcode> |
| 910 |
</ins> |
| 911 |
<desc> |
| 912 |
Evaluates the given condition and outputs either the true source or the |
| 913 |
false source. |
| 914 |
|
| 915 |
Valhall lacks integer minimum/maximum instructions. `CSEL` instructions |
| 916 |
with tied operands form the canonical implementations of these |
| 917 |
instructions. Similarly, the integer $\text{sign}$ function is canonically |
| 918 |
implemented with a pair of `CSEL` instructions. |
| 919 |
</desc> |
| 920 |
<cmp/> |
| 921 |
<src>Left value to compare</src> |
| 922 |
<src>Right value to compare</src> |
| 923 |
<src>Return value if true</src> |
| 924 |
<src>Return value if false</src> |
| 925 |
</group> |
| 926 |
|
| 927 |
<ins name="LD_VAR_SPECIAL" title="Load special varying" unused="true" unit="V"> |
| 928 |
<opcode> |
| 929 |
<op val="0x56" start="48" mask="0x1FF"/> |
| 930 |
</opcode> |
| 931 |
<sr write="true"/> |
| 932 |
<sr_count/> |
| 933 |
<vecsize/> |
| 934 |
<regfmt/> |
| 935 |
<sample/> |
| 936 |
<update/> |
| 937 |
<slot/> |
| 938 |
<src/> |
| 939 |
<imm name="index" start="12" size="4"/> <!-- 0 for pointx, 1 for pointy, 2 for fragw, 3 for fragz --> |
| 940 |
</ins> |
| 941 |
|
| 942 |
<group name="LD_VAR_BUF_IMM" title="Load immediate varying" message="varying" unit="V"> |
| 943 |
<desc>Interpolates a given varying from hardware buffer</desc> |
| 944 |
<ins name="LD_VAR_BUF_IMM.f32"> |
| 945 |
<opcode> |
| 946 |
<op val="0x5C" start="48" mask="0x1FF"/> |
| 947 |
</opcode> |
| 948 |
</ins> |
| 949 |
<ins name="LD_VAR_BUF_IMM.f16"> |
| 950 |
<opcode> |
| 951 |
<op val="0x5D" start="48" mask="0x1FF"/> |
| 952 |
</opcode> |
| 953 |
</ins> |
| 954 |
<slot/> |
| 955 |
<vecsize/> |
| 956 |
<source_format/> |
| 957 |
<regfmt pseudo="true"/> |
| 958 |
<sample/> |
| 959 |
<update/> |
| 960 |
<sr write="true"/> |
| 961 |
<sr_count count="format"/> |
| 962 |
<src/> |
| 963 |
<imm name="index" start="16" size="8"/> |
| 964 |
</group> |
| 965 |
|
| 966 |
<group name="LD_VAR_BUF" title="Load indirect varying" message="varying" unit="V"> |
| 967 |
<desc>Interpolates a given varying from hardware buffer</desc> |
| 968 |
<ins name="LD_VAR_BUF.f32"> |
| 969 |
<opcode> |
| 970 |
<op val="0x6C" start="48" mask="0x1FF"/> |
| 971 |
</opcode> |
| 972 |
</ins> |
| 973 |
<ins name="LD_VAR_BUF.f16"> |
| 974 |
<opcode> |
| 975 |
<op val="0x6D" start="48" mask="0x1FF"/> |
| 976 |
</opcode> |
| 977 |
</ins> |
| 978 |
<slot/> |
| 979 |
<vecsize/> |
| 980 |
<source_format/> |
| 981 |
<regfmt pseudo="true"/> |
| 982 |
<sample/> |
| 983 |
<update/> |
| 984 |
<sr write="true"/> |
| 985 |
<sr_count count="format"/> |
| 986 |
<src/> |
| 987 |
<src/> |
| 988 |
</group> |
| 989 |
|
| 990 |
<ins name="LD_VAR" title="Load indirect varying" unused="true" unit="V"> |
| 991 |
<opcode> |
| 992 |
<op val="0x64" start="48" mask="0x1FF"/> |
| 993 |
</opcode> |
| 994 |
<desc>Interpolates a given varying from a software buffer</desc> |
| 995 |
<slot/> |
| 996 |
<vecsize/> |
| 997 |
<regfmt/> |
| 998 |
<sample/> |
| 999 |
<update/> |
| 1000 |
<sr write="true"/> |
| 1001 |
<sr_count/> |
| 1002 |
<src/> |
| 1003 |
<src>Varying index and table</src> |
| 1004 |
</ins> |
| 1005 |
|
| 1006 |
<ins name="LD_VAR_IMM" title="Load immediate varying" unused="true" unit="V"> |
| 1007 |
<opcode> |
| 1008 |
<op val="0x54" start="48" mask="0x1FF"/> |
| 1009 |
</opcode> |
| 1010 |
<desc>Interpolates a given varying from a software buffer</desc> |
| 1011 |
<slot/> |
| 1012 |
<vecsize/> |
| 1013 |
<regfmt/> |
| 1014 |
<sample/> |
| 1015 |
<update/> |
| 1016 |
<sr write="true"/> |
| 1017 |
<sr_count/> |
| 1018 |
<src/> |
| 1019 |
<imm name="table" start="8" size="4"/> |
| 1020 |
<imm name="index" start="12" size="8"/> |
| 1021 |
</ins> |
| 1022 |
|
| 1023 |
<ins name="LD_VAR_FLAT" title="Load indirect varying" unused="true" unit="V"> |
| 1024 |
<opcode> |
| 1025 |
<op val="0x55" start="48" mask="0x1FF"/> |
| 1026 |
</opcode> |
| 1027 |
<desc>Fetches a given varying from a software buffer</desc> |
| 1028 |
<slot/> |
| 1029 |
<vecsize/> |
| 1030 |
<regfmt/> |
| 1031 |
<sr write="true"/> |
| 1032 |
<sr_count/> |
| 1033 |
<src>Varying index and table</src> |
| 1034 |
</ins> |
| 1035 |
|
| 1036 |
<ins name="LD_VAR_FLAT_IMM" title="Load immediate varying" unused="true" unit="V"> |
| 1037 |
<opcode> |
| 1038 |
<op val="0x41" start="48" mask="0x1FF"/> |
| 1039 |
</opcode> |
| 1040 |
<desc>Fetches a given varying from a software buffer</desc> |
| 1041 |
<slot/> |
| 1042 |
<vecsize/> |
| 1043 |
<regfmt/> |
| 1044 |
<sr write="true"/> |
| 1045 |
<sr_count/> |
| 1046 |
<imm name="table" start="8" size="4"/> |
| 1047 |
<imm name="index" start="12" size="8"/> |
| 1048 |
</ins> |
| 1049 |
|
| 1050 |
<ins name="LD_ATTR_IMM" title="Load immediate attribute" unused="true" unit="LS"> |
| 1051 |
<opcode> |
| 1052 |
<op val="0x66" start="48" mask="0x1FF"/> |
| 1053 |
<op val="0x0" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1054 |
</opcode> |
| 1055 |
<desc> |
| 1056 |
Load `vecsize` components from the attribute descriptor at entry `index` |
| 1057 |
of resource table `table` at index (vertex ID, instance ID), converting |
| 1058 |
to the specified register format. |
| 1059 |
</desc> |
| 1060 |
<sr_count/> |
| 1061 |
<vecsize/> |
| 1062 |
<regfmt/> |
| 1063 |
<slot/> |
| 1064 |
<sr write="true"/> |
| 1065 |
<src>Vertex ID</src> |
| 1066 |
<src>Instance ID</src> |
| 1067 |
<imm name="index" start="20" size="4"/> |
| 1068 |
<imm name="table" start="16" size="4"/> |
| 1069 |
</ins> |
| 1070 |
|
| 1071 |
<ins name="LD_ATTR" title="Load indirect attribute" unused="true" unit="LS"> |
| 1072 |
<opcode> |
| 1073 |
<op val="0x76" start="48" mask="0x1FF"/> |
| 1074 |
<op val="0x0" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1075 |
</opcode> |
| 1076 |
<desc> |
| 1077 |
Load `vecsize` components from the attribute descriptor at the specified |
| 1078 |
location at index (vertex ID, instance ID), converting |
| 1079 |
to the specified register format. |
| 1080 |
|
| 1081 |
The index must not diverge within a warp. |
| 1082 |
</desc> |
| 1083 |
<sr_count/> |
| 1084 |
<vecsize/> |
| 1085 |
<regfmt/> |
| 1086 |
<slot/> |
| 1087 |
<sr write="true"/> |
| 1088 |
<src>Vertex ID</src> |
| 1089 |
<src>Instance ID</src> |
| 1090 |
<src>Index and table</src> |
| 1091 |
</ins> |
| 1092 |
|
| 1093 |
<ins name="LD_GCLK_U64" title="Global clock load" unused="true" unit="LS"> |
| 1094 |
<opcode> |
| 1095 |
<op val="0x44" start="48" mask="0x1FF"/> |
| 1096 |
</opcode> |
| 1097 |
<desc>Load the 64-bit global clock, either a cycle counter or the system clock.</desc> |
| 1098 |
<sr write="true"/> |
| 1099 |
<sr_count count="2"/> |
| 1100 |
<slot/> |
| 1101 |
</ins> |
| 1102 |
|
| 1103 |
<ins name="LD_TEX_IMM" title="Load immediate texture" message="attribute" unit="LS"> |
| 1104 |
<opcode> |
| 1105 |
<op val="0x66" start="48" mask="0x1FF"/> |
| 1106 |
<op val="0x1" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1107 |
</opcode> |
| 1108 |
<desc> |
| 1109 |
Load `vecsize` components from the texture descriptor at entry `index` |
| 1110 |
of resource table `table`, converting |
| 1111 |
to the specified register format. |
| 1112 |
</desc> |
| 1113 |
<sr_count count="format"/> |
| 1114 |
<vecsize/> |
| 1115 |
<regfmt/> |
| 1116 |
<slot/> |
| 1117 |
<sr write="true"/> |
| 1118 |
<src>X/Y coordinates (16:16)</src> |
| 1119 |
<src>Z/W coordinates (16:16)</src> |
| 1120 |
<imm name="index" ir_name="texture_index" start="20" size="4"/> |
| 1121 |
<imm name="table" ir_name="" start="16" size="4"/> |
| 1122 |
</ins> |
| 1123 |
|
| 1124 |
<ins name="LD_TEX" title="Load indirect texture" message="attribute" unit="LS"> |
| 1125 |
<opcode> |
| 1126 |
<op val="0x76" start="48" mask="0x1FF"/> |
| 1127 |
<op val="0x1" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1128 |
</opcode> |
| 1129 |
<desc> |
| 1130 |
Load `vecsize` components from the texture descriptor at the specified |
| 1131 |
location at index, converting |
| 1132 |
to the specified register format. |
| 1133 |
</desc> |
| 1134 |
<sr_count count="format"/> |
| 1135 |
<vecsize/> |
| 1136 |
<regfmt/> |
| 1137 |
<slot/> |
| 1138 |
<sr write="true"/> |
| 1139 |
<src>X/Y coordinates (16:16)</src> |
| 1140 |
<src>Z/W coordinates (16:16)</src> |
| 1141 |
<src>Index and table</src> |
| 1142 |
</ins> |
| 1143 |
|
| 1144 |
<ins name="LEA_ATTR_IMM" title="Load effective address of image texel" unused="true" unit="LS"> |
| 1145 |
<opcode> |
| 1146 |
<op val="0x67" start="48" mask="0x1FF"/> |
| 1147 |
<op val="0x0" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1148 |
</opcode> |
| 1149 |
<desc> |
| 1150 |
Load the effective address of an attribute specified with the |
| 1151 |
given immediate index. Returns three staging register: the low/high |
| 1152 |
32-bits of the address and the internal conversion descriptor. |
| 1153 |
</desc> |
| 1154 |
<slot/> |
| 1155 |
<sr_count/> |
| 1156 |
<sr write="true"/> |
| 1157 |
<src>Vertex index</src> |
| 1158 |
<src>Instance index</src> |
| 1159 |
<imm name="table" start="16" size="4"/> |
| 1160 |
<imm name="index" start="20" size="4"/> |
| 1161 |
</ins> |
| 1162 |
|
| 1163 |
<ins name="LEA_ATTR" title="Load effective address of image texel" unused="true" unit="LS"> |
| 1164 |
<opcode> |
| 1165 |
<op val="0x77" start="48" mask="0x1FF"/> |
| 1166 |
<op val="0x0" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1167 |
</opcode> |
| 1168 |
<desc> |
| 1169 |
Load the effective address of an attribute specified with the |
| 1170 |
given index. Returns three staging register: the low/high |
| 1171 |
32-bits of the address and the internal conversion descriptor. |
| 1172 |
</desc> |
| 1173 |
<vecsize/> |
| 1174 |
<slot/> |
| 1175 |
<sr_count/> |
| 1176 |
<sr write="true"/> |
| 1177 |
<src>Vertex index</src> |
| 1178 |
<src>Instance index</src> |
| 1179 |
<src>Attribute index and table</src> |
| 1180 |
</ins> |
| 1181 |
|
| 1182 |
<ins name="LEA_TEX_IMM" title="Load effective address of image texel" unused="true" unit="LS"> |
| 1183 |
<opcode> |
| 1184 |
<op val="0x67" start="48" mask="0x1FF"/> |
| 1185 |
<op val="0x1" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1186 |
</opcode> |
| 1187 |
<desc> |
| 1188 |
Load the effective address of a texel from the image specified with the |
| 1189 |
given immediate index. Returns three staging registers: the low/high |
| 1190 |
32-bits of the address and the internal conversion descriptor. The format |
| 1191 |
of the internal conversion descriptor is compatible with Bifrost but |
| 1192 |
omits the register format, as this is specified with the ST_CVT |
| 1193 |
instruction on Valhall. |
| 1194 |
|
| 1195 |
Coordinates are specified as 16-bit integers, packed into 32-bit sources. |
| 1196 |
</desc> |
| 1197 |
<slot/> |
| 1198 |
<sr_count/> |
| 1199 |
<sr write="true"/> |
| 1200 |
<src>X/Y coordinates (16:16)</src> |
| 1201 |
<src>Z/W coordinates (16:16)</src> |
| 1202 |
<imm name="table" start="16" size="4"/> |
| 1203 |
<imm name="index" start="20" size="4"/> |
| 1204 |
</ins> |
| 1205 |
|
| 1206 |
<ins name="LEA_TEX" title="Load effective address of image texel" unused="true" unit="LS"> |
| 1207 |
<opcode> |
| 1208 |
<op val="0x77" start="48" mask="0x1FF"/> |
| 1209 |
<op val="0x1" start="37" mask="0x3"/> <!-- opcode2 --> |
| 1210 |
</opcode> |
| 1211 |
<desc> |
| 1212 |
Load the effective address of a texel from the image specified with the |
| 1213 |
given index. Returns three staging register: the low/high |
| 1214 |
32-bits of the address and the internal conversion descriptor. The format |
| 1215 |
of the internal conversion descriptor is compatible with Bifrost but |
| 1216 |
omits the register format, as this is specified with the ST_CVT |
| 1217 |
instruction on Valhall. |
| 1218 |
|
| 1219 |
Coordinates are specified as 16-bit integers, packed into 32-bit sources. |
| 1220 |
</desc> |
| 1221 |
<vecsize/> |
| 1222 |
<slot/> |
| 1223 |
<sr_count/> |
| 1224 |
<sr write="true"/> |
| 1225 |
<src size="16">X/Y coordinates (16:16)</src> |
| 1226 |
<src>Z/W coordinates (16:16)</src> |
| 1227 |
<src>Index and table</src> |
| 1228 |
</ins> |
| 1229 |
|
| 1230 |
<ins name="LD_PKA.i8" title="Global memory load" message="load" unit="LS"> |
| 1231 |
<opcode> |
| 1232 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1233 |
<op val="0x0" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1234 |
</opcode> |
| 1235 |
<desc> |
| 1236 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1237 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1238 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1239 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1240 |
the mode descriptor. |
| 1241 |
</desc> |
| 1242 |
<sr write="true"/> |
| 1243 |
<sr_count count="1"/> |
| 1244 |
<va_mod name="load_lane_8_bit" start="36" size="3"/> |
| 1245 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1246 |
<slot/> |
| 1247 |
<src size="32">Address to load from after adding offset</src> |
| 1248 |
<src size="32">Mode descriptor</src> |
| 1249 |
</ins> |
| 1250 |
|
| 1251 |
<ins name="LD_PKA.i16" title="Global memory load" message="load" unit="LS"> |
| 1252 |
<opcode> |
| 1253 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1254 |
<op val="0x1" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1255 |
</opcode> |
| 1256 |
<desc> |
| 1257 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1258 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1259 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1260 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1261 |
the mode descriptor. |
| 1262 |
</desc> |
| 1263 |
<sr write="true"/> |
| 1264 |
<sr_count count="1"/> |
| 1265 |
<va_mod name="load_lane_16_bit" start="36" size="3"/> |
| 1266 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1267 |
<slot/> |
| 1268 |
<src size="32">Byte offset</src> |
| 1269 |
<src size="32">Mode descriptor</src> |
| 1270 |
</ins> |
| 1271 |
|
| 1272 |
<ins name="LD_PKA.i24" title="Global memory load" message="load" unit="LS"> |
| 1273 |
<opcode> |
| 1274 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1275 |
<op val="0x2" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1276 |
</opcode> |
| 1277 |
<desc> |
| 1278 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1279 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1280 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1281 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1282 |
the mode descriptor. |
| 1283 |
</desc> |
| 1284 |
<sr write="true"/> |
| 1285 |
<sr_count count="1"/> |
| 1286 |
<va_mod name="load_lane_24_bit" start="36" size="3"/> |
| 1287 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1288 |
<slot/> |
| 1289 |
<src size="32">Byte offset</src> |
| 1290 |
<src size="32">Mode descriptor</src> |
| 1291 |
</ins> |
| 1292 |
|
| 1293 |
<ins name="LD_PKA.i32" title="Global memory load" message="load" unit="LS"> |
| 1294 |
<opcode> |
| 1295 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1296 |
<op val="0x3" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1297 |
</opcode> |
| 1298 |
<desc> |
| 1299 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1300 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1301 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1302 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1303 |
the mode descriptor. |
| 1304 |
</desc> |
| 1305 |
<sr write="true"/> |
| 1306 |
<sr_count count="1"/> |
| 1307 |
<va_mod name="load_lane_32_bit" start="36" size="3"/> |
| 1308 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1309 |
<slot/> |
| 1310 |
<src size="32">Byte offset</src> |
| 1311 |
<src size="32">Mode descriptor</src> |
| 1312 |
</ins> |
| 1313 |
|
| 1314 |
<ins name="LD_PKA.i48" title="Global memory load" message="load" unit="LS"> |
| 1315 |
<opcode> |
| 1316 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1317 |
<op val="0x4" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1318 |
</opcode> |
| 1319 |
<desc> |
| 1320 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1321 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1322 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1323 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1324 |
the mode descriptor. |
| 1325 |
</desc> |
| 1326 |
<sr write="true"/> |
| 1327 |
<sr_count count="2"/> |
| 1328 |
<va_mod name="load_lane_48_bit" start="36" size="3"/> |
| 1329 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1330 |
<slot/> |
| 1331 |
<src size="32">Byte offset</src> |
| 1332 |
<src size="32">Mode descriptor</src> |
| 1333 |
</ins> |
| 1334 |
|
| 1335 |
<ins name="LD_PKA.i64" title="Global memory load" message="load" unit="LS"> |
| 1336 |
<opcode> |
| 1337 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1338 |
<op val="0x5" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1339 |
</opcode> |
| 1340 |
<desc> |
| 1341 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1342 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1343 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1344 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1345 |
the mode descriptor. |
| 1346 |
</desc> |
| 1347 |
<sr write="true"/> |
| 1348 |
<sr_count count="2"/> |
| 1349 |
<va_mod name="load_lane_64_bit" start="36" size="3"/> |
| 1350 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1351 |
<slot/> |
| 1352 |
<src size="32">Byte offset</src> |
| 1353 |
<src size="32">Mode descriptor</src> |
| 1354 |
</ins> |
| 1355 |
|
| 1356 |
<ins name="LD_PKA.i96" title="Global memory load" message="load" unit="LS"> |
| 1357 |
<opcode> |
| 1358 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1359 |
<op val="0x6" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1360 |
</opcode> |
| 1361 |
<desc> |
| 1362 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1363 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1364 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1365 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1366 |
the mode descriptor. |
| 1367 |
</desc> |
| 1368 |
<sr write="true"/> |
| 1369 |
<sr_count count="3"/> |
| 1370 |
<va_mod name="load_lane_96_bit" start="36" size="3"/> |
| 1371 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1372 |
<slot/> |
| 1373 |
<src size="32">Byte offset</src> |
| 1374 |
<src size="32">Mode descriptor</src> |
| 1375 |
</ins> |
| 1376 |
|
| 1377 |
<ins name="LD_PKA.i128" title="Global memory load" message="load" unit="LS"> |
| 1378 |
<opcode> |
| 1379 |
<op val="0x6A" start="48" mask="0x1FF"/> |
| 1380 |
<op val="0x7" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1381 |
</opcode> |
| 1382 |
<desc> |
| 1383 |
Loads a buffer descriptor. If bits 25...31 of the mode descriptor are |
| 1384 |
all-ones, load from the buffer descriptors in the table indexed by the |
| 1385 |
bottom byte of the mode descriptor. If they are all zeroes, load the |
| 1386 |
contents of the buffer in the first table indexed by the bottom byte of |
| 1387 |
the mode descriptor. |
| 1388 |
</desc> |
| 1389 |
<sr write="true"/> |
| 1390 |
<sr_count count="4"/> |
| 1391 |
<va_mod name="load_lane_128_bit" start="36" size="3"/> |
| 1392 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1393 |
<slot/> |
| 1394 |
<src size="32">Byte offset</src> |
| 1395 |
<src size="32">Mode descriptor</src> |
| 1396 |
</ins> |
| 1397 |
|
| 1398 |
|
| 1399 |
<ins name="LEA_BUF" title="Load buffer effective address" message="attribute" unit="LS"> |
| 1400 |
<opcode> |
| 1401 |
<op val="0x6E" start="48" mask="0x1FF"/> |
| 1402 |
</opcode> |
| 1403 |
<desc> |
| 1404 |
Load effective address of a buffer with an offset added. |
| 1405 |
</desc> |
| 1406 |
<sr write="true"/> |
| 1407 |
<sr_count count="2"/> |
| 1408 |
<slot/> |
| 1409 |
<src size="32">Structure index</src> |
| 1410 |
<src size="32">Mode descriptor</src> |
| 1411 |
</ins> |
| 1412 |
|
| 1413 |
<ins name="LEA_BUF_IMM" title="Load buffer effective address" message="attribute" unit="LS"> |
| 1414 |
<opcode> |
| 1415 |
<op val="0x5E" start="48" mask="0x1FF"/> |
| 1416 |
</opcode> |
| 1417 |
<desc> |
| 1418 |
Load effective address of a buffer with an immediate offset added. |
| 1419 |
</desc> |
| 1420 |
<sr write="true"/> |
| 1421 |
<sr_count count="2"/> |
| 1422 |
<slot/> |
| 1423 |
<imm name="table" ir_name="" start="8" size="4"/> |
| 1424 |
<imm name="index" ir_name="" start="12" size="8"/> |
| 1425 |
<src size="32">Structure index</src> |
| 1426 |
</ins> |
| 1427 |
|
| 1428 |
<ins name="LOAD.i8" title="Global memory load" unused="true" unit="LS"> |
| 1429 |
<opcode> |
| 1430 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1431 |
<op val="0x0" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1432 |
</opcode> |
| 1433 |
<desc>Loads from main memory</desc> |
| 1434 |
<sr write="true"/> |
| 1435 |
<memory_access/> |
| 1436 |
<sr_count/> |
| 1437 |
<va_mod name="load_lane_8_bit" start="36" size="3"/> |
| 1438 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1439 |
<slot/> |
| 1440 |
<src size="64">Address to load from after adding offset</src> |
| 1441 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1442 |
</ins> |
| 1443 |
|
| 1444 |
<ins name="LOAD.i16" title="Global memory load" unused="true" unit="LS"> |
| 1445 |
<opcode> |
| 1446 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1447 |
<op val="0x1" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1448 |
</opcode> |
| 1449 |
<desc>Loads from main memory</desc> |
| 1450 |
<sr write="true"/> |
| 1451 |
<memory_access/> |
| 1452 |
<sr_count/> |
| 1453 |
<va_mod name="load_lane_16_bit" start="36" size="3"/> |
| 1454 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1455 |
<slot/> |
| 1456 |
<src size="64">Address to load from after adding offset</src> |
| 1457 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1458 |
</ins> |
| 1459 |
|
| 1460 |
<ins name="LOAD.i24" title="Global memory load" unused="true" unit="LS"> |
| 1461 |
<opcode> |
| 1462 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1463 |
<op val="0x2" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1464 |
</opcode> |
| 1465 |
<desc>Loads from main memory</desc> |
| 1466 |
<sr write="true"/> |
| 1467 |
<memory_access/> |
| 1468 |
<sr_count/> |
| 1469 |
<va_mod name="load_lane_24_bit" start="36" size="3"/> |
| 1470 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1471 |
<slot/> |
| 1472 |
<src size="64">Address to load from after adding offset</src> |
| 1473 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1474 |
</ins> |
| 1475 |
|
| 1476 |
<ins name="LOAD.i32" title="Global memory load" unused="true" unit="LS"> |
| 1477 |
<opcode> |
| 1478 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1479 |
<op val="0x3" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1480 |
</opcode> |
| 1481 |
<desc>Loads from main memory</desc> |
| 1482 |
<sr write="true"/> |
| 1483 |
<memory_access/> |
| 1484 |
<sr_count/> |
| 1485 |
<va_mod name="load_lane_32_bit" start="36" size="3"/> |
| 1486 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1487 |
<slot/> |
| 1488 |
<src size="64">Address to load from after adding offset</src> |
| 1489 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1490 |
</ins> |
| 1491 |
|
| 1492 |
<ins name="LOAD.i48" title="Global memory load" unused="true" unit="LS"> |
| 1493 |
<opcode> |
| 1494 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1495 |
<op val="0x4" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1496 |
</opcode> |
| 1497 |
<desc>Loads from main memory</desc> |
| 1498 |
<sr write="true"/> |
| 1499 |
<memory_access/> |
| 1500 |
<sr_count/> |
| 1501 |
<va_mod name="load_lane_48_bit" start="36" size="3"/> |
| 1502 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1503 |
<slot/> |
| 1504 |
<src size="64">Address to load from after adding offset</src> |
| 1505 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1506 |
</ins> |
| 1507 |
|
| 1508 |
<ins name="LOAD.i64" title="Global memory load" unused="true" unit="LS"> |
| 1509 |
<opcode> |
| 1510 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1511 |
<op val="0x5" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1512 |
</opcode> |
| 1513 |
<desc>Loads from main memory</desc> |
| 1514 |
<sr write="true"/> |
| 1515 |
<memory_access/> |
| 1516 |
<sr_count/> |
| 1517 |
<va_mod name="load_lane_64_bit" start="36" size="3"/> |
| 1518 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1519 |
<slot/> |
| 1520 |
<src size="64">Address to load from after adding offset</src> |
| 1521 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1522 |
</ins> |
| 1523 |
|
| 1524 |
<ins name="LOAD.i96" title="Global memory load" unused="true" unit="LS"> |
| 1525 |
<opcode> |
| 1526 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1527 |
<op val="0x6" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1528 |
</opcode> |
| 1529 |
<desc>Loads from main memory</desc> |
| 1530 |
<sr write="true"/> |
| 1531 |
<memory_access/> |
| 1532 |
<sr_count/> |
| 1533 |
<va_mod name="load_lane_96_bit" start="36" size="3"/> |
| 1534 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1535 |
<slot/> |
| 1536 |
<src size="64">Address to load from after adding offset</src> |
| 1537 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1538 |
</ins> |
| 1539 |
|
| 1540 |
<ins name="LOAD.i128" title="Global memory load" unused="true" unit="LS"> |
| 1541 |
<opcode> |
| 1542 |
<op val="0x60" start="48" mask="0x1FF"/> |
| 1543 |
<op val="0x7" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1544 |
</opcode> |
| 1545 |
<desc>Loads from main memory</desc> |
| 1546 |
<sr write="true"/> |
| 1547 |
<memory_access/> |
| 1548 |
<sr_count/> |
| 1549 |
<va_mod name="load_lane_128_bit" start="36" size="3"/> |
| 1550 |
<va_mod name="unsigned" start="39" size="1"/> |
| 1551 |
<slot/> |
| 1552 |
<src size="64">Address to load from after adding offset</src> |
| 1553 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1554 |
</ins> |
| 1555 |
|
| 1556 |
<group name="STORE" title="Global memory store" unused="true" unit="LS"> |
| 1557 |
<desc>Stores to main memory</desc> |
| 1558 |
<sr read="true"/> |
| 1559 |
<ins name="STORE.i8"> |
| 1560 |
<opcode> |
| 1561 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1562 |
<op val="0x0" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1563 |
</opcode> |
| 1564 |
</ins> |
| 1565 |
<ins name="STORE.i16"> |
| 1566 |
<opcode> |
| 1567 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1568 |
<op val="0x1" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1569 |
</opcode> |
| 1570 |
</ins> |
| 1571 |
<ins name="STORE.i24"> |
| 1572 |
<opcode> |
| 1573 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1574 |
<op val="0x2" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1575 |
</opcode> |
| 1576 |
</ins> |
| 1577 |
<ins name="STORE.i32"> |
| 1578 |
<opcode> |
| 1579 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1580 |
<op val="0x3" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1581 |
</opcode> |
| 1582 |
</ins> |
| 1583 |
<ins name="STORE.i48"> |
| 1584 |
<opcode> |
| 1585 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1586 |
<op val="0x4" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1587 |
</opcode> |
| 1588 |
</ins> |
| 1589 |
<ins name="STORE.i64"> |
| 1590 |
<opcode> |
| 1591 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1592 |
<op val="0x5" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1593 |
</opcode> |
| 1594 |
</ins> |
| 1595 |
<ins name="STORE.i96"> |
| 1596 |
<opcode> |
| 1597 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1598 |
<op val="0x6" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1599 |
</opcode> |
| 1600 |
</ins> |
| 1601 |
<ins name="STORE.i128"> |
| 1602 |
<opcode> |
| 1603 |
<op val="0x61" start="48" mask="0x1FF"/> |
| 1604 |
<op val="0x7" start="27" mask="0x7"/> <!-- opcode2 --> |
| 1605 |
</opcode> |
| 1606 |
</ins> |
| 1607 |
<sr_count/> |
| 1608 |
<memory_access/> |
| 1609 |
<slot/> |
| 1610 |
<src size="64">Address to store to after adding offset</src> |
| 1611 |
<imm name="offset" start="8" size="16" signed="true"/> |
| 1612 |
</group> |
| 1613 |
|
| 1614 |
<ins name="LEA_PKA" title="Load buffer effective address" message="attribute" unit="LS"> |
| 1615 |
<opcode> |
| 1616 |
<op val="0x6B" start="48" mask="0x1FF"/> |
| 1617 |
</opcode> |
| 1618 |
<desc> |
| 1619 |
Load effective address of a simple buffer with an offset added. |
| 1620 |
</desc> |
| 1621 |
<sr write="true"/> |
| 1622 |
<sr_count count="2"/> |
| 1623 |
<slot/> |
| 1624 |
<src>Offset</src> |
| 1625 |
<src>Index</src> |
| 1626 |
</ins> |
| 1627 |
|
| 1628 |
<ins name="LD_CVT" title="Load with conversion" unused="true" unit="LS"> |
| 1629 |
<opcode> |
| 1630 |
<op val="0x70" start="48" mask="0x1FF"/> |
| 1631 |
</opcode> |
| 1632 |
<desc> |
| 1633 |
Load from memory with data conversion. The address to load from is given in |
| 1634 |
the first source, which must be a 64-bit register (a pair of 32-bit |
| 1635 |
registers). The other source is the conversion descriptor used for the load. |
| 1636 |
</desc> |
| 1637 |
<slot/> |
| 1638 |
<va_mod name="memory_access" start="37" size="3"/> |
| 1639 |
<vecsize/> |
| 1640 |
<regfmt/> |
| 1641 |
<sr write="true"/> |
| 1642 |
<sr_count/> |
| 1643 |
<src size="64">64-bit address to load from</src> |
| 1644 |
<imm name="offset" start="8" size="8"/> |
| 1645 |
<src>Internal conversion descriptor</src> |
| 1646 |
</ins> |
| 1647 |
|
| 1648 |
<ins name="ST_CVT" title="Store with conversion" unused="true" unit="LS"> |
| 1649 |
<opcode> |
| 1650 |
<op val="0x71" start="48" mask="0x1FF"/> |
| 1651 |
</opcode> |
| 1652 |
<desc> |
| 1653 |
Store to memory with data conversion. The address to store to is given in |
| 1654 |
the first source, which must be a 64-bit register (a pair of 32-bit |
| 1655 |
registers). The other source is the conversion descriptor used for the store. |
| 1656 |
|
| 1657 |
Used with LEA_TEX_IMM to implement image stores. |
| 1658 |
</desc> |
| 1659 |
<slot/> |
| 1660 |
<va_mod name="memory_access" start="37" size="3"/> |
| 1661 |
<vecsize/> |
| 1662 |
<regfmt/> |
| 1663 |
<sr read="true"/> |
| 1664 |
<sr_count/> |
| 1665 |
<src size="64">64-bit address to store to</src> |
| 1666 |
<imm name="offset" start="8" size="8"/> |
| 1667 |
<src>Internal conversion descriptor</src> |
| 1668 |
</ins> |
| 1669 |
|
| 1670 |
<ins name="LD_TILE" title="Load from tilebuffer" unused="true" unit="NONE"> |
| 1671 |
<opcode> |
| 1672 |
<op val="0x78" start="48" mask="0x1FF"/> |
| 1673 |
</opcode> |
| 1674 |
<desc> |
| 1675 |
Loads a given render target, specified in the pixel indices descriptor, at |
| 1676 |
a given location and sample, and convert to the format specified in the |
| 1677 |
internal conversion descriptor. Used to implement EXT_framebuffer_fetch |
| 1678 |
and internally in blend shaders. |
| 1679 |
</desc> |
| 1680 |
<sr write="true"/> |
| 1681 |
<sr_count/> |
| 1682 |
<vecsize/> |
| 1683 |
<regfmt/> |
| 1684 |
<slot/> |
| 1685 |
<src>Pixel indices descriptor</src> |
| 1686 |
<src>Coverage mask</src> |
| 1687 |
<src>Conversion descriptor</src> |
| 1688 |
</ins> |
| 1689 |
|
| 1690 |
<ins name="ST_TILE" title="Store to tilebuffer" unused="true" unit="NONE"> |
| 1691 |
<opcode> |
| 1692 |
<op val="0x79" start="48" mask="0x1FF"/> |
| 1693 |
</opcode> |
| 1694 |
<desc> |
| 1695 |
Store to given render target, specified in the pixel indices descriptor, at |
| 1696 |
a given location and sample, and convert to the format specified in the |
| 1697 |
internal conversion descriptor. Used internally in blend shaders. |
| 1698 |
</desc> |
| 1699 |
<sr read="true"/> |
| 1700 |
<sr_count/> |
| 1701 |
<vecsize/> |
| 1702 |
<regfmt/> |
| 1703 |
<slot/> |
| 1704 |
<src>Pixel indices descriptor</src> |
| 1705 |
<src>Coverage mask</src> |
| 1706 |
<src>Conversion descriptor</src> |
| 1707 |
</ins> |
| 1708 |
|
| 1709 |
<ins name="BLEND" title="Blend render target" unused="true" unit="NONE"> |
| 1710 |
<opcode> |
| 1711 |
<op val="0x7F" start="48" mask="0x1FF"/> |
| 1712 |
</opcode> |
| 1713 |
<desc> |
| 1714 |
Blends a given render target. This loads the API-specified blend state for |
| 1715 |
the render target from the first source. Blend descriptors are available |
| 1716 |
as special immediates. It then reads the colour to be blended from the |
| 1717 |
first staging register, with the specified vector size and register format |
| 1718 |
as desired. The resulting coverage mask is stored to the second set of |
| 1719 |
staging registers. |
| 1720 |
|
| 1721 |
In the fixed-function path, `BLEND` sends the colour to the blender to be |
| 1722 |
written to the tilebuffer. Then, if the instruction's flow control |
| 1723 |
specifies termination, the fragment program is ended. If it does not |
| 1724 |
specify termination, `BLEND` acts as a relative branch, branching with the |
| 1725 |
offset specified as `target`. This allows the subsequent instructions to |
| 1726 |
be skipped when fixed-function blending is used. Note this implicit branch |
| 1727 |
can never introduce divergence, so `.reconverge` is not required. |
| 1728 |
|
| 1729 |
In the blend shader path, `BLEND` ignores the specified flow control and |
| 1730 |
does not branch to the specified offset. Instead, execution continues |
| 1731 |
normally with the next instruction. The compiler should insert code for |
| 1732 |
calling a blend shader after the `BLEND` instruction unless it is known |
| 1733 |
that a blend shader will never be required. |
| 1734 |
|
| 1735 |
The indirection is required to support both fixed-function and blend |
| 1736 |
shaders efficiently and without shader variants. |
| 1737 |
</desc> |
| 1738 |
<sr read="true"/> |
| 1739 |
<src size="64">Blend descriptor</src> |
| 1740 |
<src>Sample coverage</src> |
| 1741 |
<imm name="target" start="8" size="8"/> |
| 1742 |
<slot/> |
| 1743 |
<sr_count/> |
| 1744 |
<vecsize/> |
| 1745 |
<regfmt/> |
| 1746 |
</ins> |
| 1747 |
|
| 1748 |
<ins name="ATEST" title="Alpha test" unused="true" unit="NONE"> |
| 1749 |
<opcode> |
| 1750 |
<op val="0x7D" start="48" mask="0x1FF"/> |
| 1751 |
</opcode> |
| 1752 |
<desc> |
| 1753 |
Does alpha-to-coverage testing, updating the sample coverage mask. ATEST |
| 1754 |
does not do an implicit discard. It should be executed before the first |
| 1755 |
ZS_EMIT or BLEND instruction. |
| 1756 |
</desc> |
| 1757 |
<sr write="true">Updated coverage mask</sr> |
| 1758 |
<src>Input coverage mask</src> |
| 1759 |
<src swizzle="true">Alpha value (render target 0)</src> |
| 1760 |
<src/> |
| 1761 |
<sr_count/> |
| 1762 |
</ins> |
| 1763 |
|
| 1764 |
<ins name="ZS_EMIT" title="Depth/stencil write" unused="true" unit="NONE"> |
| 1765 |
<opcode> |
| 1766 |
<op val="0x7E" start="48" mask="0x1FF"/> |
| 1767 |
</opcode> |
| 1768 |
<desc> |
| 1769 |
Programatically writes out depth, stencil, or both, depending on which |
| 1770 |
modifiers are set. Used to implement gl_FragDepth and gl_FragStencil. |
| 1771 |
</desc> |
| 1772 |
<va_mod name="z" start="25" size="1"/> |
| 1773 |
<va_mod name="stencil" start="24" size="1"/> |
| 1774 |
<sr write="true">Updated coverage mask</sr> |
| 1775 |
<src>Depth value</src> |
| 1776 |
<src>Stencil value</src> |
| 1777 |
<src>Input coverage mask</src> |
| 1778 |
<sr_count/> |
| 1779 |
<slot/> |
| 1780 |
</ins> |
| 1781 |
|
| 1782 |
<group name="CONVERT" title="Data conversions" dests="1" unused="true" unit="CVT"> |
| 1783 |
<desc> |
| 1784 |
Performs the given data conversion. Note that floating-point rounding is |
| 1785 |
handled via the same hardware and therefore shares an encoding. Round mode |
| 1786 |
is specified where it makes sense. |
| 1787 |
</desc> |
| 1788 |
|
| 1789 |
<!-- Removed on v11 --> |
| 1790 |
<ins name="V2S16_TO_V2F16"> |
| 1791 |
<opcode> |
| 1792 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1793 |
<op val="0x7" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1794 |
</opcode> |
| 1795 |
</ins> |
| 1796 |
|
| 1797 |
<ins name="S32_TO_F32"> |
| 1798 |
<opcode> |
| 1799 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1800 |
<op val="0x9" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1801 |
</opcode> |
| 1802 |
</ins> |
| 1803 |
|
| 1804 |
<!-- Removed on v11 --> |
| 1805 |
<ins name="V2U16_TO_V2F16"> |
| 1806 |
<opcode> |
| 1807 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1808 |
<op val="0x17" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1809 |
</opcode> |
| 1810 |
</ins> |
| 1811 |
|
| 1812 |
<ins name="U32_TO_F32"> |
| 1813 |
<opcode> |
| 1814 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1815 |
<op val="0x19" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1816 |
</opcode> |
| 1817 |
</ins> |
| 1818 |
|
| 1819 |
<roundmode/> |
| 1820 |
<src widen="true">Value to convert</src> |
| 1821 |
</group> |
| 1822 |
|
| 1823 |
<group name="CONVERT" title="16->32 integer data conversions" dests="1" unused="true" unit="CVT"> |
| 1824 |
<desc> |
| 1825 |
Performs the given data conversion. |
| 1826 |
</desc> |
| 1827 |
|
| 1828 |
<ins name="S16_TO_S32"> |
| 1829 |
<opcode> |
| 1830 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1831 |
<op val="0x4" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1832 |
</opcode> |
| 1833 |
</ins> |
| 1834 |
<!-- Removed on v11 --> |
| 1835 |
<ins name="S16_TO_F32"> |
| 1836 |
<opcode> |
| 1837 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1838 |
<op val="0x5" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1839 |
</opcode> |
| 1840 |
</ins> |
| 1841 |
|
| 1842 |
<ins name="U16_TO_U32"> |
| 1843 |
<opcode> |
| 1844 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1845 |
<op val="0x14" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1846 |
</opcode> |
| 1847 |
</ins> |
| 1848 |
|
| 1849 |
<!-- Removed on v11 --> |
| 1850 |
<ins name="U16_TO_F32"> |
| 1851 |
<opcode> |
| 1852 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1853 |
<op val="0x15" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1854 |
</opcode> |
| 1855 |
</ins> |
| 1856 |
|
| 1857 |
<src lane="28" size="16">Value to convert</src> |
| 1858 |
</group> |
| 1859 |
|
| 1860 |
<group name="CONVERT" title="Float-to-int data conversions" dests="1" unused="true" unit="CVT"> |
| 1861 |
<desc>Performs the given data conversion.</desc> |
| 1862 |
<ins name="F32_TO_S32"> |
| 1863 |
<opcode> |
| 1864 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1865 |
<op val="0xC" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1866 |
</opcode> |
| 1867 |
</ins> |
| 1868 |
<ins name="F32_TO_U32"> |
| 1869 |
<opcode> |
| 1870 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1871 |
<op val="0x1C" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1872 |
</opcode> |
| 1873 |
</ins> |
| 1874 |
<roundmode/> |
| 1875 |
<src absneg="true">Value to convert</src> |
| 1876 |
</group> |
| 1877 |
|
| 1878 |
<group name="CONVERT" title="Float-to-int data conversions" dests="1" unused="true" unit="CVT"> |
| 1879 |
<desc>Performs the given data conversion.</desc> |
| 1880 |
<!-- Removed on v11 --> |
| 1881 |
<ins name="V2F16_TO_V2S16"> |
| 1882 |
<opcode> |
| 1883 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1884 |
<op val="0xE" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1885 |
</opcode> |
| 1886 |
</ins> |
| 1887 |
<!-- Removed on v11 --> |
| 1888 |
<ins name="V2F16_TO_V2U16"> |
| 1889 |
<opcode> |
| 1890 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1891 |
<op val="0x1E" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1892 |
</opcode> |
| 1893 |
</ins> |
| 1894 |
<roundmode/> |
| 1895 |
<src swizzle="true" absneg="true" size="16">Value to convert</src> |
| 1896 |
</group> |
| 1897 |
|
| 1898 |
<group name="CONVERT" title="16-bit float to 32-bit int data conversions" dests="1" unused="true" unit="CVT"> |
| 1899 |
<desc>Performs the given data conversion.</desc> |
| 1900 |
<!-- Removed on v11 --> |
| 1901 |
<ins name="F16_TO_S32"> |
| 1902 |
<opcode> |
| 1903 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1904 |
<op val="0xA" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1905 |
</opcode> |
| 1906 |
</ins> |
| 1907 |
<!-- Removed on v11 --> |
| 1908 |
<ins name="F16_TO_U32"> |
| 1909 |
<opcode> |
| 1910 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1911 |
<op val="0x1A" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1912 |
</opcode> |
| 1913 |
</ins> |
| 1914 |
<roundmode/> |
| 1915 |
<src lane="28" size="16" absneg="true">Value to convert</src> |
| 1916 |
</group> |
| 1917 |
|
| 1918 |
<ins name="F16_TO_F32" title="16-bit float to 32-bit float conversion" dests="1" unused="true" unit="CVT"> |
| 1919 |
<opcode> |
| 1920 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1921 |
<op val="0xB" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1922 |
</opcode> |
| 1923 |
<desc>Converts up with the specified round mode.</desc> |
| 1924 |
<roundmode/> |
| 1925 |
<src lane="28" size="16" absneg="true">Value to convert</src> |
| 1926 |
</ins> |
| 1927 |
|
| 1928 |
<group name="CONVERT" title="8-bit to 32-bit data conversions" dests="1" unused="true" unit="CVT"> |
| 1929 |
<desc> |
| 1930 |
Performs the given data conversion. |
| 1931 |
</desc> |
| 1932 |
|
| 1933 |
<ins name="S8_TO_S32"> |
| 1934 |
<opcode> |
| 1935 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1936 |
<op val="0x0" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1937 |
</opcode> |
| 1938 |
</ins> |
| 1939 |
|
| 1940 |
<!-- Removed on v11 --> |
| 1941 |
<ins name="S8_TO_F32"> |
| 1942 |
<opcode> |
| 1943 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1944 |
<op val="0x1" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1945 |
</opcode> |
| 1946 |
</ins> |
| 1947 |
|
| 1948 |
<ins name="U8_TO_U32"> |
| 1949 |
<opcode> |
| 1950 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1951 |
<op val="0x10" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1952 |
</opcode> |
| 1953 |
</ins> |
| 1954 |
|
| 1955 |
<!-- Removed on v11 --> |
| 1956 |
<ins name="U8_TO_F32"> |
| 1957 |
<opcode> |
| 1958 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1959 |
<op val="0x11" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1960 |
</opcode> |
| 1961 |
</ins> |
| 1962 |
|
| 1963 |
<src lane="28" size="8">Value to convert</src> |
| 1964 |
</group> |
| 1965 |
|
| 1966 |
<group name="CONVERT" title="8-bit to 16-bit data conversions" dests="1" unused="true" unit="CVT"> |
| 1967 |
<desc> |
| 1968 |
Performs the given data conversion. |
| 1969 |
</desc> |
| 1970 |
|
| 1971 |
<ins name="V2S8_TO_V2S16"> |
| 1972 |
<opcode> |
| 1973 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1974 |
<op val="0x2" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1975 |
</opcode> |
| 1976 |
</ins> |
| 1977 |
<!-- Removed on v11 --> |
| 1978 |
<ins name="V2S8_TO_V2F16"> |
| 1979 |
<opcode> |
| 1980 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1981 |
<op val="0x3" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1982 |
</opcode> |
| 1983 |
</ins> |
| 1984 |
|
| 1985 |
<ins name="V2U8_TO_V2U16"> |
| 1986 |
<opcode> |
| 1987 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1988 |
<op val="0x12" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1989 |
</opcode> |
| 1990 |
</ins> |
| 1991 |
|
| 1992 |
<!-- Removed on v11 --> |
| 1993 |
<ins name="V2U8_TO_V2F16"> |
| 1994 |
<opcode> |
| 1995 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 1996 |
<op val="0x13" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 1997 |
</opcode> |
| 1998 |
</ins> |
| 1999 |
|
| 2000 |
<src halfswizzle="true" size="8">Value to convert</src> |
| 2001 |
</group> |
| 2002 |
|
| 2003 |
<group name="FROUND" title="Floating-point rounding" dests="1" unused="true" unit="CVT"> |
| 2004 |
<desc> |
| 2005 |
Performs the given rounding, using the convert unit. |
| 2006 |
</desc> |
| 2007 |
|
| 2008 |
<ins name="FROUND.f32"> |
| 2009 |
<opcode> |
| 2010 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 2011 |
<op val="0xD" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2012 |
</opcode> |
| 2013 |
</ins> |
| 2014 |
|
| 2015 |
<!-- Removed on v11 --> |
| 2016 |
<ins name="FROUND.v2f16"> |
| 2017 |
<opcode> |
| 2018 |
<op val="0x90" start="48" mask="0x1FF"/> |
| 2019 |
<op val="0xF" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2020 |
</opcode> |
| 2021 |
</ins> |
| 2022 |
|
| 2023 |
<roundmode/> |
| 2024 |
<src swizzle="true" absneg="true">Value to convert</src> |
| 2025 |
</group> |
| 2026 |
|
| 2027 |
<ins name="MOV.i32" title="Register move" dests="1" unused="true" unit="CVT"> |
| 2028 |
<opcode> |
| 2029 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2030 |
<op val="0x0" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2031 |
</opcode> |
| 2032 |
<desc>Canonical register-to-register move.</desc> |
| 2033 |
<src/> |
| 2034 |
</ins> |
| 2035 |
|
| 2036 |
<ins name="CLZ.u32" title="Count leading zeroes" dests="1" unused="true" unit="CVT"> |
| 2037 |
<opcode> |
| 2038 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2039 |
<op val="0x4" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2040 |
</opcode> |
| 2041 |
<desc> |
| 2042 |
Used as a primitive for various bitwise operations. |
| 2043 |
</desc> |
| 2044 |
<src/> |
| 2045 |
</ins> |
| 2046 |
|
| 2047 |
<ins name="CLZ.v2u16" title="Count leading zeroes" dests="1" unused="true" unit="CVT"> |
| 2048 |
<opcode> |
| 2049 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2050 |
<op val="0x5" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2051 |
</opcode> |
| 2052 |
<desc> |
| 2053 |
Used as a primitive for various bitwise operations. |
| 2054 |
</desc> |
| 2055 |
<src swizzle="true"/> |
| 2056 |
</ins> |
| 2057 |
|
| 2058 |
<ins name="CLZ.v4u8" title="Count leading zeroes" dests="1" unused="true" unit="CVT"> |
| 2059 |
<opcode> |
| 2060 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2061 |
<op val="0x6" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2062 |
</opcode> |
| 2063 |
<desc> |
| 2064 |
Used as a primitive for various bitwise operations. |
| 2065 |
</desc> |
| 2066 |
<src/> |
| 2067 |
</ins> |
| 2068 |
|
| 2069 |
<ins name="IABS.s32" title="Absolute value" dests="1" unused="true" unit="CVT"> |
| 2070 |
<opcode> |
| 2071 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2072 |
<op val="0x8" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2073 |
</opcode> |
| 2074 |
<desc> |
| 2075 |
64-bit abs may be constructed in 4 instructions (5 clocks) by checking the |
| 2076 |
sign with `ICMP.s32.lt.m1 hi, 0` and negating based on the result with |
| 2077 |
`IADD.s64` and `LSHIFT_XOR.i32` on each half. |
| 2078 |
</desc> |
| 2079 |
<src widen="true"/> |
| 2080 |
</ins> |
| 2081 |
|
| 2082 |
<ins name="IABS.v2s16" title="Absolute value" dests="1" unused="true" unit="CVT"> |
| 2083 |
<opcode> |
| 2084 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2085 |
<op val="0x9" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2086 |
</opcode> |
| 2087 |
<src widen="true"/> |
| 2088 |
</ins> |
| 2089 |
|
| 2090 |
<!-- Removed on v11 --> |
| 2091 |
<ins name="IABS.v4s8" title="Absolute value" dests="1" unused="true" unit="CVT"> |
| 2092 |
<opcode> |
| 2093 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2094 |
<op val="0xA" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2095 |
</opcode> |
| 2096 |
<src/> |
| 2097 |
</ins> |
| 2098 |
|
| 2099 |
<ins name="POPCOUNT.i32" title="Population count" dests="1" unused="true" unit="SFU"> |
| 2100 |
<opcode> |
| 2101 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2102 |
<op val="0xC" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2103 |
</opcode> |
| 2104 |
<desc> |
| 2105 |
Only available as 32-bit. Smaller bitsizes require explicit conversions. |
| 2106 |
64-bit popcount may be constructed in 3 clocks by separate 32-bit |
| 2107 |
popcounts of each half and a 32-bit add, which is guaranteed not to |
| 2108 |
overflow. |
| 2109 |
</desc> |
| 2110 |
<src/> |
| 2111 |
</ins> |
| 2112 |
|
| 2113 |
<ins name="BITREV.i32" title="Bitwise reverse" dests="1" unused="true" unit="SFU"> |
| 2114 |
<opcode> |
| 2115 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2116 |
<op val="0xD" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2117 |
</opcode> |
| 2118 |
<desc> |
| 2119 |
Only available as 32-bit. Other bitsizes may be derived with swizzles. |
| 2120 |
</desc> |
| 2121 |
<src/> |
| 2122 |
</ins> |
| 2123 |
|
| 2124 |
<ins name="NOT_OLD.i32" title="Bitwise complement" dests="1" unused="true" unit="SFU"> |
| 2125 |
<opcode> |
| 2126 |
<op val="0x91" start="48" mask="0x1FF"/> |
| 2127 |
<op val="0xE" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2128 |
</opcode> |
| 2129 |
<desc> |
| 2130 |
For fully featured bitwise operation, see the shift opcodes. |
| 2131 |
</desc> |
| 2132 |
<src/> |
| 2133 |
</ins> |
| 2134 |
|
| 2135 |
<ins name="NOT_OLD.i64" title="Bitwise complement" dests="1" unused="true" unit="SFU"> |
| 2136 |
<opcode> |
| 2137 |
<op val="0x191" start="48" mask="0x1FF"/> |
| 2138 |
<op val="0xE" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2139 |
</opcode> |
| 2140 |
<desc> |
| 2141 |
For fully featured bitwise operation, see the shift opcodes. |
| 2142 |
</desc> |
| 2143 |
<src/> |
| 2144 |
</ins> |
| 2145 |
|
| 2146 |
<ins name="WMASK" title="Warp mask" dests="1" unused="true" unit="CVT"> |
| 2147 |
<opcode> |
| 2148 |
<op val="0x95" start="48" mask="0x1FF"/> |
| 2149 |
</opcode> |
| 2150 |
<desc> |
| 2151 |
Returns the mask of lanes ever active within the warp (subgroup), such |
| 2152 |
that the source is nonzero. The number of work-items in a subgroup is |
| 2153 |
given as the popcount of this value with a nonzero input. |
| 2154 |
|
| 2155 |
An `all()` subgroup operation may be constructed as `WMASK` of the input |
| 2156 |
compared for equality with `WMASK` of an nonzero value. |
| 2157 |
|
| 2158 |
An `any()` subgroup operation may be constructed as `WMASK` of the input |
| 2159 |
compared against zero. |
| 2160 |
</desc> |
| 2161 |
<src/> |
| 2162 |
<subgroup/> |
| 2163 |
</ins> |
| 2164 |
|
| 2165 |
<group name = "FLUSH" title="Flush floats" dests="1" unit="CVT"> |
| 2166 |
<ins name="FLUSH.f32"> |
| 2167 |
<opcode> |
| 2168 |
<op val="0x98" start="48" mask="0x1FF"/> |
| 2169 |
<op val="0x0" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2170 |
</opcode> |
| 2171 |
</ins> |
| 2172 |
<ins name="FLUSH.v2f16"> |
| 2173 |
<opcode> |
| 2174 |
<op val="0x98" start="48" mask="0x1FF"/> |
| 2175 |
<op val="0x1" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2176 |
</opcode> |
| 2177 |
</ins> |
| 2178 |
<desc> |
| 2179 |
Flush special float values. The ftz modifier flushes subnormal values to |
| 2180 |
zero. The flush_inf modifier flushes +inf to the maximum finite value, and |
| 2181 |
-inf to the minimum finite value. nan_mode may flush either all NaN values |
| 2182 |
to zero or signaling NaNs to quiet NaNs depending on the mode. |
| 2183 |
</desc> |
| 2184 |
<va_mod name="nan_mode" start="8" size="2"/> |
| 2185 |
<va_mod name="ftz" start="10" size="1"/> |
| 2186 |
<va_mod name="flush_inf" start="11" size="1"/> |
| 2187 |
<src float="true" absneg="true" swizzle="true"/> |
| 2188 |
</group> |
| 2189 |
|
| 2190 |
<group name="FREXP" title="Fraction/exponent extract" dests="1" unused="true" unit="CVT"> |
| 2191 |
<ins name="FREXPM.f32"> |
| 2192 |
<opcode> |
| 2193 |
<op val="0x99" start="48" mask="0x1FF"/> |
| 2194 |
<op val="0x0" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2195 |
</opcode> |
| 2196 |
</ins> |
| 2197 |
<!-- Removed on v11 --> |
| 2198 |
<ins name="FREXPM.v2f16"> |
| 2199 |
<opcode> |
| 2200 |
<op val="0x99" start="48" mask="0x1FF"/> |
| 2201 |
<op val="0x1" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2202 |
</opcode> |
| 2203 |
</ins> |
| 2204 |
<ins name="FREXPE.f32"> |
| 2205 |
<opcode> |
| 2206 |
<op val="0x99" start="48" mask="0x1FF"/> |
| 2207 |
<op val="0x2" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2208 |
</opcode> |
| 2209 |
</ins> |
| 2210 |
<!-- Removed on v11 --> |
| 2211 |
<ins name="FREXPE.v2f16"> |
| 2212 |
<opcode> |
| 2213 |
<op val="0x99" start="48" mask="0x1FF"/> |
| 2214 |
<op val="0x3" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2215 |
</opcode> |
| 2216 |
</ins> |
| 2217 |
<desc> |
| 2218 |
Breaks up the floating-point input into its fractional (mantissa) and |
| 2219 |
exponent parts. By default, this is compatible with the `frexp()` function |
| 2220 |
in APIs. With the log/sqrt modifiers, the floating point format is |
| 2221 |
adjusted to be compatible with Valhall's argument reduction for logarithm |
| 2222 |
and square root computation respectively. |
| 2223 |
</desc> |
| 2224 |
<va_mod name="sqrt" start="24" size="1"/> |
| 2225 |
<va_mod name="log" start="25" size="1"/> |
| 2226 |
<src float="true" swizzle="true"/> |
| 2227 |
</group> |
| 2228 |
|
| 2229 |
<group name="SFU" title="Special function unit" dests="1" unused="true" unit="SFU"> |
| 2230 |
<ins name="FRCP.f32"> |
| 2231 |
<opcode> |
| 2232 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2233 |
<op val="0x0" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2234 |
</opcode> |
| 2235 |
</ins> |
| 2236 |
<ins name="FRCP.f16"> |
| 2237 |
<opcode> |
| 2238 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2239 |
<op val="0x1" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2240 |
</opcode> |
| 2241 |
</ins> |
| 2242 |
<ins name="FRSQ.f32"> |
| 2243 |
<opcode> |
| 2244 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2245 |
<op val="0x2" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2246 |
</opcode> |
| 2247 |
</ins> |
| 2248 |
<ins name="FRSQ.f16"> |
| 2249 |
<opcode> |
| 2250 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2251 |
<op val="0x3" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2252 |
</opcode> |
| 2253 |
</ins> |
| 2254 |
<ins name="FLOGD.f32"> |
| 2255 |
<opcode> |
| 2256 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2257 |
<op val="0x8" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2258 |
</opcode> |
| 2259 |
</ins> |
| 2260 |
<ins name="FPCLASS.f32"> |
| 2261 |
<opcode> |
| 2262 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2263 |
<op val="0xA" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2264 |
</opcode> |
| 2265 |
</ins> |
| 2266 |
<ins name="FPCLASS.f16"> |
| 2267 |
<opcode> |
| 2268 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2269 |
<op val="0xB" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2270 |
</opcode> |
| 2271 |
</ins> |
| 2272 |
<ins name="FLOG_TABLE.f32"> |
| 2273 |
<opcode> |
| 2274 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2275 |
<op val="0xC" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2276 |
</opcode> |
| 2277 |
</ins> |
| 2278 |
<ins name="FRCP_APPROX.f32"> |
| 2279 |
<opcode> |
| 2280 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2281 |
<op val="0xE" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2282 |
</opcode> |
| 2283 |
</ins> |
| 2284 |
<ins name="FRSQ_APPROX.f32"> |
| 2285 |
<opcode> |
| 2286 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2287 |
<op val="0xF" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2288 |
</opcode> |
| 2289 |
</ins> |
| 2290 |
<desc> |
| 2291 |
Performs a given special function. The floating-point reciprocal (`FRCP`) |
| 2292 |
and reciprocal square root (`FRSQ`) instructions may be freely used as-is. |
| 2293 |
The logarithm instruction (`FLOGD.f32`) requires an argument |
| 2294 |
reduction. See the transcendentals section for more information. Like the |
| 2295 |
Bifrost op, `FRSQ_APPROX.f32` does an implicit `FREXPM.f32.sqrt` on the |
| 2296 |
source. |
| 2297 |
</desc> |
| 2298 |
<src float="true" swizzle="true" absneg="true"/> |
| 2299 |
</group> |
| 2300 |
|
| 2301 |
<group name="SFU" title="Special function unit" dests="1" unused="true" unit="SFU"> |
| 2302 |
<ins name="FSIN_TABLE.u6"> |
| 2303 |
<opcode> |
| 2304 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2305 |
<op val="0x4" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2306 |
</opcode> |
| 2307 |
</ins> |
| 2308 |
<ins name="FCOS_TABLE.u6"> |
| 2309 |
<opcode> |
| 2310 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2311 |
<op val="0x5" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2312 |
</opcode> |
| 2313 |
</ins> |
| 2314 |
<ins name="FSINCOS_OFFSET.u6"> |
| 2315 |
<opcode> |
| 2316 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2317 |
<op val="0x6" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2318 |
</opcode> |
| 2319 |
</ins> |
| 2320 |
<ins name="FEXP_TABLE.u4"> |
| 2321 |
<opcode> |
| 2322 |
<op val="0x9C" start="48" mask="0x1FF"/> |
| 2323 |
<op val="0xD" start="16" mask="0x1F"/> <!-- opcode2 --> |
| 2324 |
</opcode> |
| 2325 |
</ins> |
| 2326 |
<desc> |
| 2327 |
Performs a given special function. The trigonometric tables |
| 2328 |
(`FSIN_TABLE.u6` and `FCOS_TABLE.u6`) are crude, requiring both an |
| 2329 |
argument reduction and postprocessing. |
| 2330 |
</desc> |
| 2331 |
<src/> |
| 2332 |
</group> |
| 2333 |
|
| 2334 |
<group name="FADD" title="Floating-point add" dests="1" unused="true" unit="FMA"> |
| 2335 |
<ins name="FADD.f32"> |
| 2336 |
<opcode> |
| 2337 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2338 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2339 |
</opcode> |
| 2340 |
</ins> |
| 2341 |
<ins name="FADD.v2f16"> |
| 2342 |
<opcode> |
| 2343 |
<op val="0xA5" start="48" mask="0x1FF"/> |
| 2344 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2345 |
</opcode> |
| 2346 |
</ins> |
| 2347 |
<desc>$A + B$</desc> |
| 2348 |
<roundmode/> |
| 2349 |
<clamp/> |
| 2350 |
<roundmode/> |
| 2351 |
<src absneg="true" swizzle="true">A</src> |
| 2352 |
<src absneg="true" swizzle="true">B</src> |
| 2353 |
</group> |
| 2354 |
|
| 2355 |
<group name="FMIN" title="Floating-point minimum" dests="1" unused="true" unit="CVT"> |
| 2356 |
<ins name="FMIN.f32"> |
| 2357 |
<opcode> |
| 2358 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2359 |
<op val="0x2" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2360 |
</opcode> |
| 2361 |
</ins> |
| 2362 |
<ins name="FMIN.v2f16"> |
| 2363 |
<opcode> |
| 2364 |
<op val="0xA5" start="48" mask="0x1FF"/> |
| 2365 |
<op val="0x2" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2366 |
</opcode> |
| 2367 |
</ins> |
| 2368 |
<desc>$\min \{ A, B \}$</desc> |
| 2369 |
<clamp/> |
| 2370 |
<src absneg="true" swizzle="true">A</src> |
| 2371 |
<src absneg="true" swizzle="true">B</src> |
| 2372 |
</group> |
| 2373 |
|
| 2374 |
<group name="FMAX" title="Floating-point maximum" dests="1" unused="true" unit="CVT"> |
| 2375 |
<ins name="FMAX.f32"> |
| 2376 |
<opcode> |
| 2377 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2378 |
<op val="0x3" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2379 |
</opcode> |
| 2380 |
</ins> |
| 2381 |
<ins name="FMAX.v2f16"> |
| 2382 |
<opcode> |
| 2383 |
<op val="0xA5" start="48" mask="0x1FF"/> |
| 2384 |
<op val="0x3" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2385 |
</opcode> |
| 2386 |
</ins> |
| 2387 |
<desc>$\max \{ A, B \}$</desc> |
| 2388 |
<clamp/> |
| 2389 |
<src absneg="true" swizzle="true">A</src> |
| 2390 |
<src absneg="true" swizzle="true">B</src> |
| 2391 |
</group> |
| 2392 |
|
| 2393 |
<!-- Removed on v11 --> |
| 2394 |
<group name="V2F32_TO_V2F16" title="Vectorized floating-point conversion" dests="1" unused="true" unit="CVT"> |
| 2395 |
<ins name="V2F32_TO_V2F16"> |
| 2396 |
<opcode> |
| 2397 |
<op val="0xA5" start="48" mask="0x1FF"/> |
| 2398 |
<op val="0x4" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2399 |
</opcode> |
| 2400 |
</ins> |
| 2401 |
<desc> |
| 2402 |
Given a pair of 32-bit floats, output a pair of 16-bit floats packed into |
| 2403 |
a 32-bit destination. |
| 2404 |
</desc> |
| 2405 |
<clamp/> |
| 2406 |
<roundmode/> |
| 2407 |
<src absneg="true">A</src> |
| 2408 |
<src absneg="true">B</src> |
| 2409 |
</group> |
| 2410 |
|
| 2411 |
<group name="LDEXP" title="Floating-point rescaling" dests="1" unused="true" unit="FMA"> |
| 2412 |
<ins name="LDEXP.f32"> |
| 2413 |
<opcode> |
| 2414 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2415 |
<op val="0x6" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2416 |
</opcode> |
| 2417 |
</ins> |
| 2418 |
<ins name="LDEXP.v2f16"> |
| 2419 |
<opcode> |
| 2420 |
<op val="0xA5" start="48" mask="0x1FF"/> |
| 2421 |
<op val="0x6" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2422 |
</opcode> |
| 2423 |
</ins> |
| 2424 |
<desc> |
| 2425 |
Computes $A \cdot 2^B$ by adding B to the exponent of A. Used to calculate |
| 2426 |
various special functions, particularly base-2 exponents. Special case |
| 2427 |
handling differs from an actual floating-point multiply, so this should |
| 2428 |
not be used outside fixed instruction sequences. |
| 2429 |
</desc> |
| 2430 |
<src absneg="true">A</src> |
| 2431 |
<src/> |
| 2432 |
<roundmode/> <!-- Also has rtna --> |
| 2433 |
<!-- Also has infinity handling for arctan --> |
| 2434 |
</group> |
| 2435 |
|
| 2436 |
<ins name="FEXP.f32" title="Floating-point exponent" dests="1" unused="true" unit="SFU"> |
| 2437 |
<opcode> |
| 2438 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2439 |
<op val="0x8" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2440 |
</opcode> |
| 2441 |
<desc> |
| 2442 |
Calculates the base-2 exponent of an argument specified as a 8:24 |
| 2443 |
fixed-point. The original argument is passed as well for correct handling |
| 2444 |
of special cases. |
| 2445 |
</desc> |
| 2446 |
<clamp/> |
| 2447 |
<src>Input as 8:24 fixed-point</src> |
| 2448 |
<src absneg="true">Input as 32-bit float</src> |
| 2449 |
</ins> |
| 2450 |
|
| 2451 |
<ins name="FADD_LSCALE.f32" title="Floating-point add with logarithm scale" dests="1" unused="true" unit="FMA"> |
| 2452 |
<opcode> |
| 2453 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2454 |
<op val="0x9" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2455 |
</opcode> |
| 2456 |
<desc> |
| 2457 |
Performs a floating-point addition specialized for logarithm computation. |
| 2458 |
</desc> |
| 2459 |
<clamp/> |
| 2460 |
<src absneg="true">A</src> |
| 2461 |
<src absneg="true">B</src> |
| 2462 |
</ins> |
| 2463 |
|
| 2464 |
<ins name="FATAN_ASSIST.f32" title="ATAN calculation helper" dests="1" unused="true" unit="SFU"> |
| 2465 |
<opcode> |
| 2466 |
<op val="0xA4" start="48" mask="0x1FF"/> |
| 2467 |
<op val="0xE" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2468 |
</opcode> |
| 2469 |
<desc> |
| 2470 |
Used for `atan2()` implementation. Destination is two 16-bit |
| 2471 |
values (int and float) for the first form, and a single 32-bit float when |
| 2472 |
`.second` is set (indicating the FATAN_TABLE.f32 instruction). |
| 2473 |
</desc> |
| 2474 |
<va_mod name="second" start="24" size="1"/> |
| 2475 |
<src>A</src> |
| 2476 |
<src>B</src> |
| 2477 |
</ins> |
| 2478 |
|
| 2479 |
<group name="IADD" title="Integer addition" dests="1" unused="true" unit="CVT"> |
| 2480 |
<desc> |
| 2481 |
$A + B$ with optional saturation. |
| 2482 |
|
| 2483 |
As Valhall lacks swizzle instructions, `IADD.v2i16` with zero is the |
| 2484 |
canonical lowering for swizzles. |
| 2485 |
</desc> |
| 2486 |
<ins name="IADD.u32"> |
| 2487 |
<opcode> |
| 2488 |
<op val="0xA0" start="48" mask="0x1FF"/> |
| 2489 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2490 |
</opcode> |
| 2491 |
</ins> |
| 2492 |
<ins name="IADD.v2u16"> |
| 2493 |
<opcode> |
| 2494 |
<op val="0xA1" start="48" mask="0x1FF"/> |
| 2495 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2496 |
</opcode> |
| 2497 |
</ins> |
| 2498 |
<!-- Removed on v11 --> |
| 2499 |
<ins name="IADD.v4u8"> |
| 2500 |
<opcode> |
| 2501 |
<op val="0xA2" start="48" mask="0x1FF"/> |
| 2502 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2503 |
</opcode> |
| 2504 |
</ins> |
| 2505 |
<ins name="IADD.s32"> |
| 2506 |
<opcode> |
| 2507 |
<op val="0xA8" start="48" mask="0x1FF"/> |
| 2508 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2509 |
</opcode> |
| 2510 |
</ins> |
| 2511 |
<ins name="IADD.v2s16"> |
| 2512 |
<opcode> |
| 2513 |
<op val="0xA9" start="48" mask="0x1FF"/> |
| 2514 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2515 |
</opcode> |
| 2516 |
</ins> |
| 2517 |
<!-- Removed on v11 --> |
| 2518 |
<ins name="IADD.v4s8"> |
| 2519 |
<opcode> |
| 2520 |
<op val="0xAA" start="48" mask="0x1FF"/> |
| 2521 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2522 |
</opcode> |
| 2523 |
</ins> |
| 2524 |
<ins name="IADD.u64"> |
| 2525 |
<opcode> |
| 2526 |
<op val="0x1A3" start="48" mask="0x1FF"/> |
| 2527 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2528 |
</opcode> |
| 2529 |
</ins> |
| 2530 |
<ins name="IADD.s64"> |
| 2531 |
<opcode> |
| 2532 |
<op val="0x1AB" start="48" mask="0x1FF"/> |
| 2533 |
<op val="0x0" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2534 |
</opcode> |
| 2535 |
</ins> |
| 2536 |
<src widen="true">A</src> |
| 2537 |
<src widen="true">B</src> |
| 2538 |
<saturate/> |
| 2539 |
</group> |
| 2540 |
|
| 2541 |
<ins name="MKVEC.v2i16" title="Make 16-bit vector" dests="1" unused="true" unit="CVT"> |
| 2542 |
<opcode> |
| 2543 |
<op val="0xA1" start="48" mask="0x1FF"/> |
| 2544 |
<op val="0x5" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2545 |
</opcode> |
| 2546 |
<desc>Calculates $A | (B \ll 16)$. Used to implement `(ushort2)(A, B)`</desc> |
| 2547 |
<src lane="28">A</src> |
| 2548 |
<src lane="26">B</src> |
| 2549 |
</ins> |
| 2550 |
|
| 2551 |
<group name="ISUB" title="Integer subtract" dests="1" unused="true" unit="CVT"> |
| 2552 |
<ins name="ISUB.u32"> |
| 2553 |
<opcode> |
| 2554 |
<op val="0xA0" start="48" mask="0x1FF"/> |
| 2555 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2556 |
</opcode> |
| 2557 |
</ins> |
| 2558 |
<ins name="ISUB.v2u16"> |
| 2559 |
<opcode> |
| 2560 |
<op val="0xA1" start="48" mask="0x1FF"/> |
| 2561 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2562 |
</opcode> |
| 2563 |
</ins> |
| 2564 |
<!-- Removed on v11 --> |
| 2565 |
<ins name="ISUB.v4u8"> |
| 2566 |
<opcode> |
| 2567 |
<op val="0xA2" start="48" mask="0x1FF"/> |
| 2568 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2569 |
</opcode> |
| 2570 |
</ins> |
| 2571 |
<ins name="ISUB.s32"> |
| 2572 |
<opcode> |
| 2573 |
<op val="0xA8" start="48" mask="0x1FF"/> |
| 2574 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2575 |
</opcode> |
| 2576 |
</ins> |
| 2577 |
<ins name="ISUB.v2s16"> |
| 2578 |
<opcode> |
| 2579 |
<op val="0xA9" start="48" mask="0x1FF"/> |
| 2580 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2581 |
</opcode> |
| 2582 |
</ins> |
| 2583 |
<!-- Removed on v11 --> |
| 2584 |
<ins name="ISUB.v4s8"> |
| 2585 |
<opcode> |
| 2586 |
<op val="0xAA" start="48" mask="0x1FF"/> |
| 2587 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2588 |
</opcode> |
| 2589 |
</ins> |
| 2590 |
<ins name="ISUB.u64"> |
| 2591 |
<opcode> |
| 2592 |
<op val="0x1A3" start="48" mask="0x1FF"/> |
| 2593 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2594 |
</opcode> |
| 2595 |
</ins> |
| 2596 |
<ins name="ISUB.s64"> |
| 2597 |
<opcode> |
| 2598 |
<op val="0x1AB" start="48" mask="0x1FF"/> |
| 2599 |
<op val="0x1" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2600 |
</opcode> |
| 2601 |
</ins> |
| 2602 |
<desc>$A - B$ with optional saturation</desc> |
| 2603 |
<src widen="true">A</src> |
| 2604 |
<src widen="true">B</src> |
| 2605 |
<saturate/> |
| 2606 |
</group> |
| 2607 |
|
| 2608 |
<group name="SEG_ADD" title="Segment addition" dests="1" unused="true" unit="CVT"> |
| 2609 |
<desc> |
| 2610 |
Similar to SHADDX, but especially used for loading offsets into |
| 2611 |
WLS. Usually this is only required for atomic operations, which cannot |
| 2612 |
directly use wls_pointer as an address. |
| 2613 |
|
| 2614 |
.neg indicates SEG_SUB instead. |
| 2615 |
</desc> |
| 2616 |
<ins name="SEG_ADD.u64"> |
| 2617 |
<opcode> |
| 2618 |
<op val="0x1A3" start="48" mask="0x1FF"/> |
| 2619 |
<op val="0x6" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2620 |
</opcode> |
| 2621 |
</ins> |
| 2622 |
<va_mod name="neg" start="38" size="1"/> |
| 2623 |
<va_mod name="preserve_null" start="39" size="1"/> |
| 2624 |
<src>A</src> |
| 2625 |
<src widen="true">B</src> |
| 2626 |
</group> |
| 2627 |
|
| 2628 |
<group name="SHADDX" title="Shift, extend, and 64-bit add" dests="1" unit="CVT"> |
| 2629 |
<desc> |
| 2630 |
Sign or zero extend B to 64-bits, left-shift by `shift`, and add the |
| 2631 |
64-bit value A. These instructions accelerate address arithmetic, but may |
| 2632 |
be used in full generality for 64-bit integer arithmetic. |
| 2633 |
</desc> |
| 2634 |
<ins name="SHADDX.u64"> |
| 2635 |
<opcode> |
| 2636 |
<op val="0x1A3" start="48" mask="0x1FF"/> |
| 2637 |
<op val="0x7" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2638 |
</opcode> |
| 2639 |
</ins> |
| 2640 |
<ins name="SHADDX.s64"> |
| 2641 |
<opcode> |
| 2642 |
<op val="0x1AB" start="48" mask="0x1FF"/> |
| 2643 |
<op val="0x7" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2644 |
</opcode> |
| 2645 |
</ins> |
| 2646 |
<imm name="shift" start="20" size="3"/> |
| 2647 |
<src>A</src> |
| 2648 |
<src widen="true">B</src> |
| 2649 |
</group> |
| 2650 |
|
| 2651 |
<group name="IMUL" title="Integer multiply" dests="1" unused="true" unit="SFU"> |
| 2652 |
<ins name="IMUL.i32"> |
| 2653 |
<opcode> |
| 2654 |
<op val="0xA0" start="48" mask="0x1FF"/> |
| 2655 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2656 |
</opcode> |
| 2657 |
</ins> |
| 2658 |
<ins name="IMUL.v2i16"> |
| 2659 |
<opcode> |
| 2660 |
<op val="0xA1" start="48" mask="0x1FF"/> |
| 2661 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2662 |
</opcode> |
| 2663 |
</ins> |
| 2664 |
<ins name="IMUL.v4i8"> |
| 2665 |
<opcode> |
| 2666 |
<op val="0xA2" start="48" mask="0x1FF"/> |
| 2667 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2668 |
</opcode> |
| 2669 |
</ins> |
| 2670 |
<ins name="IMUL.s32"> |
| 2671 |
<opcode> |
| 2672 |
<op val="0xA8" start="48" mask="0x1FF"/> |
| 2673 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2674 |
</opcode> |
| 2675 |
</ins> |
| 2676 |
<ins name="IMUL.v2s16"> |
| 2677 |
<opcode> |
| 2678 |
<op val="0xA9" start="48" mask="0x1FF"/> |
| 2679 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2680 |
</opcode> |
| 2681 |
</ins> |
| 2682 |
<ins name="IMUL.v4s8"> |
| 2683 |
<opcode> |
| 2684 |
<op val="0xAA" start="48" mask="0x1FF"/> |
| 2685 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2686 |
</opcode> |
| 2687 |
</ins> |
| 2688 |
<ins name="IMULD.u64"> |
| 2689 |
<opcode> |
| 2690 |
<op val="0x1A3" start="48" mask="0x1FF"/> |
| 2691 |
<op val="0xA" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2692 |
</opcode> |
| 2693 |
</ins> |
| 2694 |
<desc> |
| 2695 |
$A \cdot B$ with optional saturation. Note the multipliers can only handle up to |
| 2696 |
32-bit by 32-bit multiplies. The 64-bit "multiply" acts like IMUL.u32 but |
| 2697 |
additionally writes the high half of the product to the high half of the |
| 2698 |
64-bit destination. Along with IADD.u32 and IADD.u64, this allows the |
| 2699 |
construction of a 64-bit multiply in 5 instructions (6 clocks). |
| 2700 |
</desc> |
| 2701 |
<src widen="true">A</src> |
| 2702 |
<src widen="true">B</src> |
| 2703 |
<saturate/> |
| 2704 |
</group> |
| 2705 |
|
| 2706 |
<!-- Removed on v11 --> |
| 2707 |
<group name="HADD" title="Integer half-add" dests="1" unused="true" unit="CVT"> |
| 2708 |
<ins name="HADD.u32"> |
| 2709 |
<opcode> |
| 2710 |
<op val="0xA0" start="48" mask="0x1FF"/> |
| 2711 |
<op val="0xB" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2712 |
</opcode> |
| 2713 |
</ins> |
| 2714 |
<ins name="HADD.v2u16"> |
| 2715 |
<opcode> |
| 2716 |
<op val="0xA1" start="48" mask="0x1FF"/> |
| 2717 |
<op val="0xB" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2718 |
</opcode> |
| 2719 |
</ins> |
| 2720 |
<ins name="HADD.v4u8"> |
| 2721 |
<opcode> |
| 2722 |
<op val="0xA2" start="48" mask="0x1FF"/> |
| 2723 |
<op val="0xB" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2724 |
</opcode> |
| 2725 |
</ins> |
| 2726 |
<ins name="HADD.s32"> |
| 2727 |
<opcode> |
| 2728 |
<op val="0xA8" start="48" mask="0x1FF"/> |
| 2729 |
<op val="0xB" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2730 |
</opcode> |
| 2731 |
</ins> |
| 2732 |
<ins name="HADD.v2s16"> |
| 2733 |
<opcode> |
| 2734 |
<op val="0xA9" start="48" mask="0x1FF"/> |
| 2735 |
<op val="0xB" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2736 |
</opcode> |
| 2737 |
</ins> |
| 2738 |
<ins name="HADD.v4s8"> |
| 2739 |
<opcode> |
| 2740 |
<op val="0xAA" start="48" mask="0x1FF"/> |
| 2741 |
<op val="0xB" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2742 |
</opcode> |
| 2743 |
</ins> |
| 2744 |
<va_mod name="rhadd" start="30" size="1"/> |
| 2745 |
<src widen="true">A</src> |
| 2746 |
<src widen="true">B</src> |
| 2747 |
<desc> |
| 2748 |
$(A + B) \gg 1$ without intermediate overflow, corresponding to `hadd()` in |
| 2749 |
OpenCL. With the `.rhadd` modifier set, it instead calculates |
| 2750 |
$(A + B + 1) \gg 1$ corresponding to `rhadd()` in OpenCL. |
| 2751 |
</desc> |
| 2752 |
</group> |
| 2753 |
|
| 2754 |
<ins name="CLPER.i32" title="Cross-lane permute" dests="1" unused="true" unit="SFU"> |
| 2755 |
<opcode> |
| 2756 |
<op val="0xA0" start="48" mask="0x1FF"/> |
| 2757 |
<op val="0xF" start="16" mask="0xF"/> <!-- opcode2 --> |
| 2758 |
</opcode> |
| 2759 |
<desc> |
| 2760 |
Selects the value of A in the subgroup lane given by B. This implements |
| 2761 |
subgroup broadcasts. It may be used as a primitive for screen space |
| 2762 |
derivatives in fragment shaders. |
| 2763 |
</desc> |
| 2764 |
<src>A</src> |
| 2765 |
<src lanes="true" size="8">B</src> |
| 2766 |
<subgroup/> |
| 2767 |
<lane_op/> |
| 2768 |
<inactive_result/> |
| 2769 |
</ins> |
| 2770 |
|
| 2771 |
<group name="FMA" title="Fused floating-point multiply add" dests="1" unused="true" unit="FMA"> |
| 2772 |
<ins name="FMA.f32"> |
| 2773 |
<opcode> |
| 2774 |
<op val="0xB2" start="48" mask="0x1FF"/> |
| 2775 |
</opcode> |
| 2776 |
</ins> |
| 2777 |
<ins name="FMA.v2f16"> |
| 2778 |
<opcode> |
| 2779 |
<op val="0xB3" start="48" mask="0x1FF"/> |
| 2780 |
</opcode> |
| 2781 |
</ins> |
| 2782 |
<desc>$A \cdot B + C$</desc> |
| 2783 |
<clamp/> |
| 2784 |
<roundmode/> |
| 2785 |
<src absneg="true" swizzle="true">A</src> |
| 2786 |
<src absneg="true" swizzle="true">B</src> |
| 2787 |
<src absneg="true" swizzle="true">C</src> |
| 2788 |
</group> |
| 2789 |
|
| 2790 |
<group name="LSHIFT_AND" title="Left shift and bitwise AND" dests="1" unused="true" unit="SFU"> |
| 2791 |
<ins name="LSHIFT_AND.i32"> |
| 2792 |
<opcode> |
| 2793 |
<op val="0xB4" start="48" mask="0x1FF"/> |
| 2794 |
<op val="0x100" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2795 |
</opcode> |
| 2796 |
</ins> |
| 2797 |
<ins name="LSHIFT_AND.v2i16"> |
| 2798 |
<opcode> |
| 2799 |
<op val="0xB5" start="48" mask="0x1FF"/> |
| 2800 |
<op val="0x100" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2801 |
</opcode> |
| 2802 |
</ins> |
| 2803 |
<ins name="LSHIFT_AND.v4i8"> |
| 2804 |
<opcode> |
| 2805 |
<op val="0xB6" start="48" mask="0x1FF"/> |
| 2806 |
<op val="0x100" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2807 |
</opcode> |
| 2808 |
</ins> |
| 2809 |
<ins name="LSHIFT_AND.i64"> |
| 2810 |
<opcode> |
| 2811 |
<op val="0x1B7" start="48" mask="0x1FF"/> |
| 2812 |
<op val="0x100" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2813 |
</opcode> |
| 2814 |
</ins> |
| 2815 |
<desc> |
| 2816 |
Left shifts its first source by a specified amount and bitwise ANDs it with the |
| 2817 |
second source, optionally inverting the second source or the result. |
| 2818 |
</desc> |
| 2819 |
<not_result/> |
| 2820 |
<src widen="true">A</src> |
| 2821 |
<src lanes="true" size="8">shift</src> |
| 2822 |
<src not="true">B</src> |
| 2823 |
</group> |
| 2824 |
|
| 2825 |
<group name="RSHIFT_AND" title="Right shift and bitwise AND" dests="1" unused="true" unit="SFU"> |
| 2826 |
<ins name="RSHIFT_AND.i32"> |
| 2827 |
<opcode> |
| 2828 |
<op val="0xB4" start="48" mask="0x1FF"/> |
| 2829 |
<op val="0x000" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2830 |
</opcode> |
| 2831 |
</ins> |
| 2832 |
<ins name="RSHIFT_AND.v2i16"> |
| 2833 |
<opcode> |
| 2834 |
<op val="0xB5" start="48" mask="0x1FF"/> |
| 2835 |
<op val="0x000" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2836 |
</opcode> |
| 2837 |
</ins> |
| 2838 |
<ins name="RSHIFT_AND.v4i8"> |
| 2839 |
<opcode> |
| 2840 |
<op val="0xB6" start="48" mask="0x1FF"/> |
| 2841 |
<op val="0x000" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2842 |
</opcode> |
| 2843 |
</ins> |
| 2844 |
<ins name="RSHIFT_AND.i64"> |
| 2845 |
<opcode> |
| 2846 |
<op val="0x1B7" start="48" mask="0x1FF"/> |
| 2847 |
<op val="0x000" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2848 |
</opcode> |
| 2849 |
</ins> |
| 2850 |
<desc> |
| 2851 |
Right shifts its first source by a specified amount and bitwise ANDs it with the |
| 2852 |
second source, optionally inverting the second source or the result. If |
| 2853 |
`signed` is set, the hardware performs an arithmetic right shift; otherwise, |
| 2854 |
it performs an unsigned right shift. |
| 2855 |
</desc> |
| 2856 |
<va_mod name="signed" start="34" size="1"/> |
| 2857 |
<not_result/> |
| 2858 |
<src widen="true">A</src> |
| 2859 |
<src lanes="true" size="8">shift</src> |
| 2860 |
<src not="true">B</src> |
| 2861 |
</group> |
| 2862 |
|
| 2863 |
<group name="LSHIFT_OR" title="Left shift and bitwise OR" dests="1" unused="true" unit="SFU"> |
| 2864 |
<ins name="LSHIFT_OR.i32"> |
| 2865 |
<opcode> |
| 2866 |
<op val="0xB4" start="48" mask="0x1FF"/> |
| 2867 |
<op val="0x101" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2868 |
</opcode> |
| 2869 |
</ins> |
| 2870 |
<ins name="LSHIFT_OR.v2i16"> |
| 2871 |
<opcode> |
| 2872 |
<op val="0xB5" start="48" mask="0x1FF"/> |
| 2873 |
<op val="0x101" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2874 |
</opcode> |
| 2875 |
</ins> |
| 2876 |
<ins name="LSHIFT_OR.v4i8"> |
| 2877 |
<opcode> |
| 2878 |
<op val="0xB6" start="48" mask="0x1FF"/> |
| 2879 |
<op val="0x101" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2880 |
</opcode> |
| 2881 |
</ins> |
| 2882 |
<ins name="LSHIFT_OR.i64"> |
| 2883 |
<opcode> |
| 2884 |
<op val="0x1B7" start="48" mask="0x1FF"/> |
| 2885 |
<op val="0x101" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2886 |
</opcode> |
| 2887 |
</ins> |
| 2888 |
<desc> |
| 2889 |
Left shifts its first source by a specified amount and bitwise ORs it with the |
| 2890 |
second source, optionally inverting the second source or the result. |
| 2891 |
</desc> |
| 2892 |
<not_result/> |
| 2893 |
<src widen="true">A</src> |
| 2894 |
<src lanes="true" size="8">shift</src> |
| 2895 |
<src not="true">B</src> |
| 2896 |
</group> |
| 2897 |
|
| 2898 |
<group name="RSHIFT_OR" title="Right shift and bitwise OR" dests="1" unused="true" unit="SFU"> |
| 2899 |
<ins name="RSHIFT_OR.i32"> |
| 2900 |
<opcode> |
| 2901 |
<op val="0xB4" start="48" mask="0x1FF"/> |
| 2902 |
<op val="0x001" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2903 |
</opcode> |
| 2904 |
</ins> |
| 2905 |
<ins name="RSHIFT_OR.v2i16"> |
| 2906 |
<opcode> |
| 2907 |
<op val="0xB5" start="48" mask="0x1FF"/> |
| 2908 |
<op val="0x001" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2909 |
</opcode> |
| 2910 |
</ins> |
| 2911 |
<ins name="RSHIFT_OR.v4i8"> |
| 2912 |
<opcode> |
| 2913 |
<op val="0xB6" start="48" mask="0x1FF"/> |
| 2914 |
<op val="0x001" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2915 |
</opcode> |
| 2916 |
</ins> |
| 2917 |
<ins name="RSHIFT_OR.i64"> |
| 2918 |
<opcode> |
| 2919 |
<op val="0x1B7" start="48" mask="0x1FF"/> |
| 2920 |
<op val="0x001" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2921 |
</opcode> |
| 2922 |
</ins> |
| 2923 |
<desc> |
| 2924 |
Right shifts its first source by a specified amount and bitwise ORs it with the |
| 2925 |
second source, optionally inverting the second source or the result. If |
| 2926 |
`signed` is set, the hardware performs an arithmetic right shift; otherwise, |
| 2927 |
it performs an unsigned right shift. |
| 2928 |
</desc> |
| 2929 |
<va_mod name="signed" start="34" size="1"/> |
| 2930 |
<not_result/> |
| 2931 |
<src widen="true">A</src> |
| 2932 |
<src lanes="true" size="8">shift</src> |
| 2933 |
<src not="true">B</src> |
| 2934 |
</group> |
| 2935 |
|
| 2936 |
<group name="LSHIFT_XOR" title="Left shift and bitwise XOR" dests="1" unused="true" unit="SFU"> |
| 2937 |
<ins name="LSHIFT_XOR.i32"> |
| 2938 |
<opcode> |
| 2939 |
<op val="0xB4" start="48" mask="0x1FF"/> |
| 2940 |
<op val="0x102" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2941 |
</opcode> |
| 2942 |
</ins> |
| 2943 |
<ins name="LSHIFT_XOR.v2i16"> |
| 2944 |
<opcode> |
| 2945 |
<op val="0xB5" start="48" mask="0x1FF"/> |
| 2946 |
<op val="0x102" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2947 |
</opcode> |
| 2948 |
</ins> |
| 2949 |
<ins name="LSHIFT_XOR.v4i8"> |
| 2950 |
<opcode> |
| 2951 |
<op val="0xB6" start="48" mask="0x1FF"/> |
| 2952 |
<op val="0x102" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2953 |
</opcode> |
| 2954 |
</ins> |
| 2955 |
<ins name="LSHIFT_XOR.i64"> |
| 2956 |
<opcode> |
| 2957 |
<op val="0x1B7" start="48" mask="0x1FF"/> |
| 2958 |
<op val="0x102" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2959 |
</opcode> |
| 2960 |
</ins> |
| 2961 |
<desc> |
| 2962 |
Left shifts its first source by a specified amount and bitwise XORs it with the |
| 2963 |
second source, optionally inverting the second source or the result. |
| 2964 |
</desc> |
| 2965 |
<not_result/> |
| 2966 |
<src widen="true">A</src> |
| 2967 |
<src lanes="true" size="8">shift</src> |
| 2968 |
<src not="true">B</src> |
| 2969 |
</group> |
| 2970 |
|
| 2971 |
<group name="RSHIFT_XOR" title="Right shift and bitwise XOR" dests="1" unused="true" unit="SFU"> |
| 2972 |
<ins name="RSHIFT_XOR.i32"> |
| 2973 |
<opcode> |
| 2974 |
<op val="0xB4" start="48" mask="0x1FF"/> |
| 2975 |
<op val="0x002" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2976 |
</opcode> |
| 2977 |
</ins> |
| 2978 |
<ins name="RSHIFT_XOR.v2i16"> |
| 2979 |
<opcode> |
| 2980 |
<op val="0xB5" start="48" mask="0x1FF"/> |
| 2981 |
<op val="0x002" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2982 |
</opcode> |
| 2983 |
</ins> |
| 2984 |
<ins name="RSHIFT_XOR.v4i8"> |
| 2985 |
<opcode> |
| 2986 |
<op val="0xB6" start="48" mask="0x1FF"/> |
| 2987 |
<op val="0x002" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2988 |
</opcode> |
| 2989 |
</ins> |
| 2990 |
<ins name="RSHIFT_XOR.i64"> |
| 2991 |
<opcode> |
| 2992 |
<op val="0x1B7" start="48" mask="0x1FF"/> |
| 2993 |
<op val="0x002" start="24" mask="0x703"/> <!-- opcode2 --> |
| 2994 |
</opcode> |
| 2995 |
</ins> |
| 2996 |
<desc> |
| 2997 |
Right shifts its first source by a specified amount and bitwise XORs it with the |
| 2998 |
second source, optionally inverting the second source or the result. If |
| 2999 |
`signed` is set, the hardware performs an arithmetic right shift; otherwise, |
| 3000 |
it performs an unsigned right shift. |
| 3001 |
</desc> |
| 3002 |
<va_mod name="signed" start="34" size="1"/> |
| 3003 |
<not_result/> |
| 3004 |
<src widen="true">A</src> |
| 3005 |
<src lanes="true" size="8">shift</src> |
| 3006 |
<src not="true">B</src> |
| 3007 |
</group> |
| 3008 |
|
| 3009 |
<ins name="MUX.i32" title="Mux" dests="1" unused="true" unit="SFU"> |
| 3010 |
<opcode> |
| 3011 |
<op val="0xB8" start="48" mask="0x1FF"/> |
| 3012 |
</opcode> |
| 3013 |
<desc> |
| 3014 |
Mux between A and B based on the provided mask. The condition specified |
| 3015 |
as the `mux` modifier is evaluated on the mask. If true, `A` is chosen, |
| 3016 |
else `B` is chosen. The `bit` modifier acts bitwise, equivalent to |
| 3017 |
`bitselect()` in OpenCL, so `MUX.i32.bit A, B, mask` calculates |
| 3018 |
`(A & mask) | (B & ~mask)`. |
| 3019 |
</desc> |
| 3020 |
<va_mod name="mux" start="32" size="2"/> |
| 3021 |
<src>A</src> |
| 3022 |
<src>B</src> |
| 3023 |
<src>Mask</src> |
| 3024 |
</ins> |
| 3025 |
|
| 3026 |
<ins name="MUX.v2i16" title="Mux" dests="1" unused="true" unit="SFU"> |
| 3027 |
<opcode> |
| 3028 |
<op val="0xB9" start="48" mask="0x1FF"/> |
| 3029 |
</opcode> |
| 3030 |
<desc> |
| 3031 |
Mux between A and B based on the provided mask. The condition specified |
| 3032 |
as the `mux` modifier is evaluated on the mask. If true, `A` is chosen, |
| 3033 |
else `B` is chosen. The `bit` modifier acts bitwise, equivalent to |
| 3034 |
`bitselect()` in OpenCL, so `MUX.v2i16.bit A, B, mask` calculates |
| 3035 |
`(A & mask) | (B & ~mask)`. |
| 3036 |
</desc> |
| 3037 |
<va_mod name="mux" start="32" size="2"/> |
| 3038 |
<src swizzle="true">A</src> |
| 3039 |
<src swizzle="true">B</src> |
| 3040 |
<src swizzle="true">Mask</src> |
| 3041 |
</ins> |
| 3042 |
|
| 3043 |
<ins name="MUX.v4i8" title="Mux" dests="1" unused="true" unit="SFU"> |
| 3044 |
<opcode> |
| 3045 |
<op val="0xBA" start="48" mask="0x1FF"/> |
| 3046 |
</opcode> |
| 3047 |
<desc> |
| 3048 |
Mux between A and B based on the provided mask. The condition specified |
| 3049 |
as the `mux` modifier is evaluated on the mask. If true, `A` is chosen, |
| 3050 |
else `B` is chosen. The `bit` modifier acts bitwise, equivalent to |
| 3051 |
`bitselect()` in OpenCL, so `MUX.v4i8.bit A, B, mask` calculates |
| 3052 |
`(A & mask) | (B & ~mask)`. |
| 3053 |
</desc> |
| 3054 |
<va_mod name="mux" start="32" size="2"/> |
| 3055 |
<src>A</src> |
| 3056 |
<src>B</src> |
| 3057 |
<src>Mask</src> |
| 3058 |
</ins> |
| 3059 |
|
| 3060 |
<ins name="CUBE_SSEL" title="Cube S-coordinate select" dests="1" unused="true" unit="SFU"> |
| 3061 |
<opcode> |
| 3062 |
<op val="0xBC" start="48" mask="0x1FF"/> |
| 3063 |
<op val="0x0" start="24" mask="0x1"/> <!-- opcode2 --> |
| 3064 |
</opcode> |
| 3065 |
<desc>During a cube map transform, select the S coordinate given a selected face.</desc> |
| 3066 |
<src absneg="true">Z coordinate as 32-bit floating point</src> |
| 3067 |
<src absneg="true">X coordinate as 32-bit floating point</src> |
| 3068 |
<src>Cube face index</src> |
| 3069 |
</ins> |
| 3070 |
|
| 3071 |
<ins name="CUBE_TSEL" title="Cube T-coordinate select" dests="1" unused="true" unit="SFU"> |
| 3072 |
<opcode> |
| 3073 |
<op val="0xBC" start="48" mask="0x1FF"/> |
| 3074 |
<op val="0x1" start="24" mask="0x1"/> <!-- opcode2 --> |
| 3075 |
</opcode> |
| 3076 |
<desc>During a cube map transform, select the T coordinate given a selected face.</desc> |
| 3077 |
<src absneg="true">Y coordinate as 32-bit floating point</src> |
| 3078 |
<src absneg="true">Z coordinate as 32-bit floating point</src> |
| 3079 |
<src>Cube face index</src> |
| 3080 |
</ins> |
| 3081 |
|
| 3082 |
<ins name="MKVEC.v2i8" title="Make 8-bit vector" dests="1" unit="CVT"> |
| 3083 |
<opcode> |
| 3084 |
<op val="0xBD" start="48" mask="0x1FF"/> |
| 3085 |
</opcode> |
| 3086 |
<desc> |
| 3087 |
Calculates $A | (B \ll 8) | (CD \ll 16)$ for 8-bit A and B and 16-bit CD. |
| 3088 |
|
| 3089 |
To implement `(uchar4) (A, B, C, D)` in full generality, use the sequence |
| 3090 |
`MKVEC.v2i8 CD, C, D, #0; MKVEC.v2i8 out, A, B, CD` |
| 3091 |
|
| 3092 |
`MKVEC.v2i8` also allows zero extending arbitrary 8-bit lanes. For |
| 3093 |
example, to extend `r0.b3` to `r1`, use `MKVEC.v2i8 r1, r0.b3, 0x0.b0, 0x0`. |
| 3094 |
</desc> |
| 3095 |
<src lane="true">A</src> |
| 3096 |
<src lane="true">B</src> |
| 3097 |
<src>CD</src> |
| 3098 |
</ins> |
| 3099 |
|
| 3100 |
<ins name="CUBEFACE1" title="Cube map transform step 1" dests="1" unused="true" unit="SFU"> |
| 3101 |
<opcode> |
| 3102 |
<op val="0xC0" start="48" mask="0x1FF"/> |
| 3103 |
</opcode> |
| 3104 |
<desc>Select the maximum absolute value of its arguments.</desc> |
| 3105 |
<src absneg="true">X coordinate as 32-bit floating point</src> |
| 3106 |
<src absneg="true">Y coordinate as 32-bit floating point</src> |
| 3107 |
<src absneg="true">Z coordinate as 32-bit floating point</src> |
| 3108 |
</ins> |
| 3109 |
|
| 3110 |
<ins name="CUBEFACE2_V9" title="Cube map transform step 2" dests="1" unit="SFU"> |
| 3111 |
<opcode> |
| 3112 |
<op val="0xC1" start="48" mask="0x1FF"/> |
| 3113 |
</opcode> |
| 3114 |
<desc>Select the cube face index corresponding to the arguments.</desc> |
| 3115 |
<src absneg="true">X coordinate as 32-bit floating point</src> |
| 3116 |
<src absneg="true">Y coordinate as 32-bit floating point</src> |
| 3117 |
<src absneg="true">Z coordinate as 32-bit floating point</src> |
| 3118 |
</ins> |
| 3119 |
|
| 3120 |
<group name="IDPADD" title="8-bit dot product and accumulate" dests="1" unit="FMA"> |
| 3121 |
<desc> |
| 3122 |
8-bit integer dot product between 4 channel vectors, intended for machine |
| 3123 |
learning. Available in both unsigned and signed variants, controlling |
| 3124 |
sign-extension/zero-extension behaviour to the final 32-bit destination. |
| 3125 |
Saturation is available. Corresponds to the `cl_arm_integer_dot_product_*` |
| 3126 |
family of OpenCL extensions. |
| 3127 |
|
| 3128 |
For $A, B \in \{ 0, \ldots, 255 \}^4$ and $\text{Accumulator} \in |
| 3129 |
\mathbb{Z}$, calculates $(A \cdot B) + \text{Accumulator}$ and optionally |
| 3130 |
saturates. |
| 3131 |
</desc> |
| 3132 |
<ins name="IDPADD.v4s8"> |
| 3133 |
<opcode> |
| 3134 |
<op val="0xC2" start="48" mask="0x1FF"/> |
| 3135 |
<op val="0x0" start="24" mask="0x1"/> <!-- opcode2 --> |
| 3136 |
</opcode> |
| 3137 |
</ins> |
| 3138 |
<ins name="IDPADD.v4u8"> |
| 3139 |
<opcode> |
| 3140 |
<op val="0xC2" start="48" mask="0x1FF"/> |
| 3141 |
<op val="0x1" start="24" mask="0x1"/> <!-- opcode2 --> |
| 3142 |
</opcode> |
| 3143 |
</ins> |
| 3144 |
<src>A</src> |
| 3145 |
<src>B</src> |
| 3146 |
<src>Accumulator</src> |
| 3147 |
<saturate/> |
| 3148 |
</group> |
| 3149 |
|
| 3150 |
<group name="ICMP_OR" title="Unsigned integer compare" dests="1" unit="CVT"> |
| 3151 |
<desc> |
| 3152 |
Evaluates the given condition, do a logical or with the condition in |
| 3153 |
the result source, and return in the given result type (integer |
| 3154 |
one, integer minus one, or floating-point one). The third source is useful |
| 3155 |
for chaining together conditions without intermediate bitwise arithmetic; |
| 3156 |
when this is not desired, tie it to zero. |
| 3157 |
</desc> |
| 3158 |
<ins name="ICMP_OR.u32"> |
| 3159 |
<opcode> |
| 3160 |
<op val="0xF0" start="48" mask="0x1FF"/> |
| 3161 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3162 |
</opcode> |
| 3163 |
</ins> |
| 3164 |
<ins name="ICMP_OR.v2u16"> |
| 3165 |
<opcode> |
| 3166 |
<op val="0xF1" start="48" mask="0x1FF"/> |
| 3167 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3168 |
</opcode> |
| 3169 |
</ins> |
| 3170 |
<!-- Removed on v11 --> |
| 3171 |
<ins name="ICMP_OR.v4u8"> |
| 3172 |
<opcode> |
| 3173 |
<op val="0xF2" start="48" mask="0x1FF"/> |
| 3174 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3175 |
</opcode> |
| 3176 |
</ins> |
| 3177 |
<cmp int_only="true"/> |
| 3178 |
<result_type/> |
| 3179 |
<src widen="true">A</src> |
| 3180 |
<src widen="true">B</src> |
| 3181 |
<src>C</src> |
| 3182 |
</group> |
| 3183 |
|
| 3184 |
<group name="ICMP_AND" title="Unsigned integer compare" dests="1" unit="CVT"> |
| 3185 |
<desc> |
| 3186 |
Evaluates the given condition, do a logical and with the condition in |
| 3187 |
the result source, and return in the given result type (integer |
| 3188 |
one, integer minus one, or floating-point one). The third source is useful |
| 3189 |
for chaining together conditions without intermediate bitwise arithmetic. |
| 3190 |
</desc> |
| 3191 |
<ins name="ICMP_AND.u32"> |
| 3192 |
<opcode> |
| 3193 |
<op val="0xF0" start="48" mask="0x1FF"/> |
| 3194 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3195 |
</opcode> |
| 3196 |
</ins> |
| 3197 |
<ins name="ICMP_AND.v2u16"> |
| 3198 |
<opcode> |
| 3199 |
<op val="0xF1" start="48" mask="0x1FF"/> |
| 3200 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3201 |
</opcode> |
| 3202 |
</ins> |
| 3203 |
<!-- Removed on v11 --> |
| 3204 |
<ins name="ICMP_AND.v4u8"> |
| 3205 |
<opcode> |
| 3206 |
<op val="0xF2" start="48" mask="0x1FF"/> |
| 3207 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3208 |
</opcode> |
| 3209 |
</ins> |
| 3210 |
<cmp int_only="true"/> |
| 3211 |
<result_type/> |
| 3212 |
<src widen="true">A</src> |
| 3213 |
<src widen="true">B</src> |
| 3214 |
<src>C</src> |
| 3215 |
</group> |
| 3216 |
|
| 3217 |
<group name="FCMP_OR" title="Floating-point compare" dests="1" unit="CVT"> |
| 3218 |
<desc> |
| 3219 |
Evaluates the given condition, do a logical or with the condition in |
| 3220 |
the result source, and return in the given result type (integer |
| 3221 |
one, integer minus one, or floating-point one). The third source is useful |
| 3222 |
for chaining together conditions without intermediate bitwise arithmetic; |
| 3223 |
when this is not desired, tie it to zero. |
| 3224 |
</desc> |
| 3225 |
<ins name="FCMP_OR.f32"> |
| 3226 |
<opcode> |
| 3227 |
<op val="0xF4" start="48" mask="0x1FF"/> |
| 3228 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3229 |
</opcode> |
| 3230 |
</ins> |
| 3231 |
<ins name="FCMP_OR.v2f16"> |
| 3232 |
<opcode> |
| 3233 |
<op val="0xF5" start="48" mask="0x1FF"/> |
| 3234 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3235 |
</opcode> |
| 3236 |
</ins> |
| 3237 |
<cmp/> |
| 3238 |
<result_type/> |
| 3239 |
<src absneg="true" swizzle="true">A</src> |
| 3240 |
<src absneg="true" swizzle="true">B</src> |
| 3241 |
<src>C</src> |
| 3242 |
</group> |
| 3243 |
|
| 3244 |
<group name="FCMP_AND" title="Floating-point compare" dests="1" unit="CVT"> |
| 3245 |
<desc> |
| 3246 |
Evaluates the given condition, do a logical and/or with the condition in |
| 3247 |
the result source, and return in the given result type (integer |
| 3248 |
one, integer minus one, or floating-point one). The third source is useful |
| 3249 |
for chaining together conditions without intermediate bitwise arithmetic. |
| 3250 |
</desc> |
| 3251 |
<ins name="FCMP_AND.f32"> |
| 3252 |
<opcode> |
| 3253 |
<op val="0xF4" start="48" mask="0x1FF"/> |
| 3254 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3255 |
</opcode> |
| 3256 |
</ins> |
| 3257 |
<ins name="FCMP_AND.v2f16"> |
| 3258 |
<opcode> |
| 3259 |
<op val="0xF5" start="48" mask="0x1FF"/> |
| 3260 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3261 |
</opcode> |
| 3262 |
</ins> |
| 3263 |
<cmp/> |
| 3264 |
<result_type/> |
| 3265 |
<src absneg="true" swizzle="true">A</src> |
| 3266 |
<src absneg="true" swizzle="true">B</src> |
| 3267 |
<src>C</src> |
| 3268 |
</group> |
| 3269 |
|
| 3270 |
<group name="ICMP_OR" title="Signed integer compare" dests="1" unit="CVT"> |
| 3271 |
<desc> |
| 3272 |
Evaluates the given condition, do a logical or with the condition in |
| 3273 |
the result source, and return in the given result type (integer |
| 3274 |
one, integer minus one, or floating-point one). The third source is useful |
| 3275 |
for chaining together conditions without intermediate bitwise arithmetic. |
| 3276 |
</desc> |
| 3277 |
<ins name="ICMP_OR.s32"> |
| 3278 |
<opcode> |
| 3279 |
<op val="0xF8" start="48" mask="0x1FF"/> |
| 3280 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3281 |
</opcode> |
| 3282 |
</ins> |
| 3283 |
<ins name="ICMP_OR.v2s16"> |
| 3284 |
<opcode> |
| 3285 |
<op val="0xF9" start="48" mask="0x1FF"/> |
| 3286 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3287 |
</opcode> |
| 3288 |
</ins> |
| 3289 |
<!-- Removed on v11 --> |
| 3290 |
<ins name="ICMP_OR.v4s8"> |
| 3291 |
<opcode> |
| 3292 |
<op val="0xFA" start="48" mask="0x1FF"/> |
| 3293 |
<op val="0x0" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3294 |
</opcode> |
| 3295 |
</ins> |
| 3296 |
<cmp int_only="true"/> |
| 3297 |
<result_type/> |
| 3298 |
<src widen="true">A</src> |
| 3299 |
<src widen="true">B</src> |
| 3300 |
<src>C</src> |
| 3301 |
</group> |
| 3302 |
|
| 3303 |
<group name="ICMP_AND" title="Signed integer compare" dests="1" unit="CVT"> |
| 3304 |
<desc> |
| 3305 |
Evaluates the given condition, do a logical and with the condition in |
| 3306 |
the result source, and return in the given result type (integer |
| 3307 |
one, integer minus one, or floating-point one). The third source is useful |
| 3308 |
for chaining together conditions without intermediate bitwise arithmetic. |
| 3309 |
</desc> |
| 3310 |
<ins name="ICMP_AND.s32"> |
| 3311 |
<opcode> |
| 3312 |
<op val="0xF8" start="48" mask="0x1FF"/> |
| 3313 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3314 |
</opcode> |
| 3315 |
</ins> |
| 3316 |
<ins name="ICMP_AND.v2s16"> |
| 3317 |
<opcode> |
| 3318 |
<op val="0xF9" start="48" mask="0x1FF"/> |
| 3319 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3320 |
</opcode> |
| 3321 |
</ins> |
| 3322 |
<!-- Removed on v11 --> |
| 3323 |
<ins name="ICMP_AND.v4s8"> |
| 3324 |
<opcode> |
| 3325 |
<op val="0xFA" start="48" mask="0x1FF"/> |
| 3326 |
<op val="0x1" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3327 |
</opcode> |
| 3328 |
</ins> |
| 3329 |
<cmp int_only="true"/> |
| 3330 |
<result_type/> |
| 3331 |
<src widen="true">A</src> |
| 3332 |
<src widen="true">B</src> |
| 3333 |
<src>C</src> |
| 3334 |
</group> |
| 3335 |
|
| 3336 |
<group name="ICMP_MULTI" title="Integer compare" dests="1" unit="CVT"> |
| 3337 |
<desc> |
| 3338 |
Evaluates the given condition, do a logical and/or with the condition in |
| 3339 |
the result source, and return in the given result type (integer |
| 3340 |
one, integer minus one, or floating-point one). The third source is useful |
| 3341 |
for chaining together conditions without intermediate bitwise arithmetic; |
| 3342 |
when this is not desired, tie it to zero and use the OR combine mode (do |
| 3343 |
not set the `.and` modifier). |
| 3344 |
|
| 3345 |
Used to construct signed 64-bit compares |
| 3346 |
in 1 `ICMP.u32` and 1 `ICMP.s32` instruction, in conjunction with the `u1` |
| 3347 |
result type on the low half, the `m1` result type on the high half, and |
| 3348 |
the result of the low half comparison passed as the third source. |
| 3349 |
</desc> |
| 3350 |
<ins name="ICMP_MULTI.u32"> |
| 3351 |
<opcode> |
| 3352 |
<op val="0xF0" start="48" mask="0x1FF"/> |
| 3353 |
<op val="0x2" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3354 |
</opcode> |
| 3355 |
</ins> |
| 3356 |
<ins name="ICMP_MULTI.s32"> |
| 3357 |
<opcode> |
| 3358 |
<op val="0xF8" start="48" mask="0x1FF"/> |
| 3359 |
<op val="0x2" start="24" mask="0x3"/> <!-- opcode2 --> |
| 3360 |
</opcode> |
| 3361 |
</ins> |
| 3362 |
<cmp int_only="true"/> |
| 3363 |
<result_type/> |
| 3364 |
<src widen="true">A</src> |
| 3365 |
<src widen="true">B</src> |
| 3366 |
<src>C</src> |
| 3367 |
</group> |
| 3368 |
|
| 3369 |
<ins name="IADD_IMM.i32" title="Integer addition with immediate" dests="1" unit="CVT"> |
| 3370 |
<opcode> |
| 3371 |
<op val="0x110" start="48" mask="0x1FF"/> |
| 3372 |
</opcode> |
| 3373 |
<desc> |
| 3374 |
Adds an arbitrary 32-bit immediate embedded within the instruction stream. |
| 3375 |
If no modifiers are required, this is preferred to `IADD.i32` with a |
| 3376 |
constant accessed as a uniform. However, if the constant is available |
| 3377 |
inline, `IADD.i32` is preferred. |
| 3378 |
|
| 3379 |
`IADD_IMM.i32` with the source tied to zero is the canonical immediate move. |
| 3380 |
</desc> |
| 3381 |
<src>A</src> |
| 3382 |
<imm name="constant" ir_name="index" start="8" size="32"/> |
| 3383 |
</ins> |
| 3384 |
|
| 3385 |
<ins name="IADD_IMM.v2i16" title="Integer addition with immediate" dests="1" unit="CVT"> |
| 3386 |
<opcode> |
| 3387 |
<op val="0x111" start="48" mask="0x1FF"/> |
| 3388 |
</opcode> |
| 3389 |
<desc> |
| 3390 |
Adds an arbitrary pair of 16-bit immediates embedded within the |
| 3391 |
instruction stream. If no modifiers are required, this is preferred to |
| 3392 |
`IADD.v2i16` with a constant accessed as a uniform. However, if the |
| 3393 |
constant is available inline, `IADD.v2i16` is preferred. Adding only a |
| 3394 |
single 16-bit constant requires replication of the constant. |
| 3395 |
</desc> |
| 3396 |
<src>A</src> |
| 3397 |
<imm name="constant" ir_name="index" start="8" size="32"/> |
| 3398 |
</ins> |
| 3399 |
|
| 3400 |
<!-- Removed on v11 --> |
| 3401 |
<ins name="IADD_IMM.v4i8" title="Integer addition with immediate" dests="1" unit="CVT"> |
| 3402 |
<opcode> |
| 3403 |
<op val="0x112" start="48" mask="0x1FF"/> |
| 3404 |
</opcode> |
| 3405 |
<desc> |
| 3406 |
Adds an arbitrary quad of 8-bit immediates embedded within the |
| 3407 |
instruction stream. If no modifiers are required, this is preferred to |
| 3408 |
`IADD.v4i8` with a constant accessed as a uniform. However, if the |
| 3409 |
constant is available inline, `IADD.v4i8` is preferred. Adding only a |
| 3410 |
single 8-bit constant requires replication of the constant. |
| 3411 |
</desc> |
| 3412 |
<src>A</src> |
| 3413 |
<imm name="constant" ir_name="index" start="8" size="32"/> |
| 3414 |
</ins> |
| 3415 |
|
| 3416 |
<ins name="FADD_IMM.f32" title="Floating-point addition with immediate" dests="1" unit="FMA"> |
| 3417 |
<opcode> |
| 3418 |
<op val="0x114" start="48" mask="0x1FF"/> |
| 3419 |
</opcode> |
| 3420 |
<desc> |
| 3421 |
Adds an arbitrary 32-bit immediate embedded within the instruction stream. |
| 3422 |
If no modifiers are required, this is preferred to `FADD.f32` with a |
| 3423 |
constant accessed as a uniform. However, if the constant is available |
| 3424 |
inline, `FADD.f32` is preferred. |
| 3425 |
</desc> |
| 3426 |
<src>A</src> |
| 3427 |
<imm name="constant" ir_name="index" start="8" size="32"/> |
| 3428 |
</ins> |
| 3429 |
|
| 3430 |
<ins name="FADD_IMM.v2f16" title="Floating-point addition with immediate" dests="1" unit="FMA"> |
| 3431 |
<opcode> |
| 3432 |
<op val="0x115" start="48" mask="0x1FF"/> |
| 3433 |
</opcode> |
| 3434 |
<desc> |
| 3435 |
Adds an arbitrary pair of 16-bit immediates embedded within the |
| 3436 |
instruction stream. If no modifiers are required, this is preferred to |
| 3437 |
`FADD.v2f16` with a constant accessed as a uniform. However, if the |
| 3438 |
constant is available inline, `FADD.v2f16` is preferred. Adding only a |
| 3439 |
single 16-bit constant requires replication of the constant. |
| 3440 |
</desc> |
| 3441 |
<src float="true">A</src> |
| 3442 |
<imm name="constant" ir_name="index" start="8" size="32"/> |
| 3443 |
</ins> |
| 3444 |
|
| 3445 |
<ins name="ATOM1_RETURN.i32" title="Atomic operations on memory with 1" unused="true" unit="LS"> |
| 3446 |
<opcode> |
| 3447 |
<op val="0x69" start="48" mask="0x1FF"/> |
| 3448 |
<op val="0x3" start="27" mask="0x7"/> <!-- opcode2 --> |
| 3449 |
</opcode> |
| 3450 |
<slot/> |
| 3451 |
<sr_count/> |
| 3452 |
<atom_opc_1/> |
| 3453 |
|
| 3454 |
<!-- Optional for ATOM1.i32, in which sr_count must be 0 --> |
| 3455 |
<sr write="true"/> |
| 3456 |
<src size="64">64-bit address to operate on</src> |
| 3457 |
<imm name="offset" start="8" size="8"/> |
| 3458 |
</ins> |
| 3459 |
|
| 3460 |
<ins name="ATOM1_RETURN.i64" title="Atomic operations on memory with 1" unused="true" unit="LS"> |
| 3461 |
<opcode> |
| 3462 |
<op val="0x69" start="48" mask="0x1FF"/> |
| 3463 |
<op val="0x5" start="27" mask="0x7"/> <!-- opcode2 --> |
| 3464 |
</opcode> |
| 3465 |
<slot/> |
| 3466 |
<sr_count/> |
| 3467 |
<atom_opc_1/> |
| 3468 |
|
| 3469 |
<!-- Optional for ATOM1.i64, in which sr_count must be 0 --> |
| 3470 |
<sr write="true"/> |
| 3471 |
<src size="64">64-bit address to operate on</src> |
| 3472 |
<imm name="offset" start="8" size="8"/> |
| 3473 |
</ins> |
| 3474 |
|
| 3475 |
<ins name="ATOM.i32" title="Atomic operations on memory" unused="true" unit="LS"> |
| 3476 |
<opcode> |
| 3477 |
<op val="0x68" start="48" mask="0x1FF"/> |
| 3478 |
<op val="0x3" start="27" mask="0x7"/> <!-- opcode2 --> |
| 3479 |
</opcode> |
| 3480 |
<slot/> |
| 3481 |
<sr_count/> |
| 3482 |
<atom_opc/> |
| 3483 |
|
| 3484 |
<sr read="true"/> |
| 3485 |
<src size="64">64-bit address to operate on</src> |
| 3486 |
<imm name="offset" start="8" size="8"/> |
| 3487 |
</ins> |
| 3488 |
|
| 3489 |
<ins name="ATOM.i64" title="Atomic operations on memory" unused="true" unit="LS"> |
| 3490 |
<opcode> |
| 3491 |
<op val="0x68" start="48" mask="0x1FF"/> |
| 3492 |
<op val="0x5" start="27" mask="0x7"/> <!-- opcode2 --> |
| 3493 |
</opcode> |
| 3494 |
<slot/> |
| 3495 |
<sr_count/> |
| 3496 |
<atom_opc/> |
| 3497 |
|
| 3498 |
<sr read="true"/> |
| 3499 |
<src size="64">64-bit address to operate on</src> |
| 3500 |
<imm name="offset" start="8" size="8"/> |
| 3501 |
</ins> |
| 3502 |
|
| 3503 |
<ins name="ATOM_RETURN.i32" title="Atomic operations on memory" unused="true" unit="LS"> |
| 3504 |
<opcode> |
| 3505 |
<op val="0x120" start="48" mask="0x1FF"/> |
| 3506 |
<op val="0x3" start="27" mask="0x7"/> <!-- opcode2 --> |
| 3507 |
</opcode> |
| 3508 |
<slot/> |
| 3509 |
<sr_count/> |
| 3510 |
<sr_write_count/> |
| 3511 |
|
| 3512 |
<!-- Only valid with .xchg to implement ACMPXCHG --> |
| 3513 |
<va_mod name="compare" start="26" size="1"/> |
| 3514 |
|
| 3515 |
<atom_opc/> |
| 3516 |
|
| 3517 |
<sr write="true" flags="false"/> |
| 3518 |
<sr read="true" flags="rw"/> |
| 3519 |
<src size="64">64-bit address to operate on</src> |
| 3520 |
<imm name="offset" start="8" size="8"/> |
| 3521 |
</ins> |
| 3522 |
|
| 3523 |
<ins name="ATOM_RETURN.i64" title="Atomic operations on memory" unused="true" unit="LS"> |
| 3524 |
<opcode> |
| 3525 |
<op val="0x120" start="48" mask="0x1FF"/> |
| 3526 |
<op val="0x5" start="27" mask="0x7"/> <!-- opcode2 --> |
| 3527 |
</opcode> |
| 3528 |
<slot/> |
| 3529 |
<sr_count/> |
| 3530 |
<sr_write_count/> |
| 3531 |
|
| 3532 |
<!-- Only valid with .xchg to implement ACMPXCHG --> |
| 3533 |
<va_mod name="compare" start="26" size="1"/> |
| 3534 |
|
| 3535 |
<atom_opc/> |
| 3536 |
|
| 3537 |
<sr write="true" flags="false"/> |
| 3538 |
<sr read="true" flags="rw"/> |
| 3539 |
<src size="64">64-bit address to operate on</src> |
| 3540 |
<imm name="offset" start="8" size="8"/> |
| 3541 |
</ins> |
| 3542 |
|
| 3543 |
<ins name="TEX_FETCH" title="Texel fetch" message="tex" unit="T"> |
| 3544 |
<opcode> |
| 3545 |
<op val="0x125" start="48" mask="0x1FF"/> |
| 3546 |
</opcode> |
| 3547 |
<desc>Unfiltered textured instruction.</desc> |
| 3548 |
<slot/> |
| 3549 |
<skip/> |
| 3550 |
<register_type/> |
| 3551 |
<register_width/> |
| 3552 |
<write_mask/> |
| 3553 |
<dimension/> |
| 3554 |
<wide_indices/> |
| 3555 |
<array_enable/> |
| 3556 |
<texel_offset/> |
| 3557 |
<regfmt pseudo="true"/> |
| 3558 |
|
| 3559 |
<!-- Leave secondary_register_width as 0 --> |
| 3560 |
<sr_count/> |
| 3561 |
<sr_write_count/> |
| 3562 |
|
| 3563 |
<sr write="true" flags="false"/> |
| 3564 |
<sr read="true" flags="false"/> |
| 3565 |
<src size="64">Image to read from</src> |
| 3566 |
<src pseudo="true">Dummy for IR</src> |
| 3567 |
<immediate name="sr_count" size="4" pseudo="true"/> |
| 3568 |
</ins> |
| 3569 |
|
| 3570 |
<ins name="TEX_SINGLE" title="Texture load" message="tex" unit="T"> |
| 3571 |
<opcode> |
| 3572 |
<op val="0x128" start="48" mask="0x1FF"/> |
| 3573 |
</opcode> |
| 3574 |
<desc>Ordinary texturing instruction using a sampler.</desc> |
| 3575 |
<slot/> |
| 3576 |
<skip/> |
| 3577 |
<register_type/> |
| 3578 |
<register_width/> |
| 3579 |
<write_mask/> |
| 3580 |
<dimension/> |
| 3581 |
<wide_indices/> |
| 3582 |
<array_enable/> |
| 3583 |
<texel_offset/> |
| 3584 |
<regfmt pseudo="true"/> |
| 3585 |
<shadow/> |
| 3586 |
<lod_mode/> |
| 3587 |
|
| 3588 |
<!-- Leave secondary_register_width as 0 --> |
| 3589 |
<sr_count/> |
| 3590 |
<sr_write_count/> |
| 3591 |
|
| 3592 |
<sr write="true" flags="false"/> |
| 3593 |
<sr read="true" flags="false"/> |
| 3594 |
<src size="64">Image to read from</src> |
| 3595 |
<src pseudo="true">Dummy for IR</src> |
| 3596 |
<immediate name="sr_count" size="4" pseudo="true"/> |
| 3597 |
</ins> |
| 3598 |
|
| 3599 |
<ins name="TEX_GATHER" title="Texel gather" message="tex" unit="T"> |
| 3600 |
<opcode> |
| 3601 |
<op val="0x129" start="48" mask="0x1FF"/> |
| 3602 |
</opcode> |
| 3603 |
<desc>Texture gather instruction.</desc> |
| 3604 |
<slot/> |
| 3605 |
<skip/> |
| 3606 |
<register_type/> |
| 3607 |
<register_width/> |
| 3608 |
<write_mask/> |
| 3609 |
<dimension/> |
| 3610 |
<wide_indices/> |
| 3611 |
<array_enable/> |
| 3612 |
<texel_offset/> |
| 3613 |
<integer_coordinates/> |
| 3614 |
<fetch_component/> |
| 3615 |
<regfmt pseudo="true"/> |
| 3616 |
<shadow/> |
| 3617 |
|
| 3618 |
<!-- Leave secondary_register_width as 0 --> |
| 3619 |
<sr_count count="sr_count"/> |
| 3620 |
<sr_write_count/> |
| 3621 |
|
| 3622 |
<sr write="true" flags="false"/> |
| 3623 |
<sr read="true" flags="false"/> |
| 3624 |
<src size="64">Image to read from</src> |
| 3625 |
<src pseudo="true">Dummy source for IR</src> |
| 3626 |
<immediate name="sr_count" size="4" pseudo="true"/> |
| 3627 |
</ins> |
| 3628 |
|
| 3629 |
<ins name="TEX_GRADIENT" title="Texture gradient" message="tex" unit="T"> |
| 3630 |
<opcode> |
| 3631 |
<op val="0x12A" start="48" mask="0x1FF"/> |
| 3632 |
</opcode> |
| 3633 |
<desc>Texture sample with explicit gradient.</desc> |
| 3634 |
<slot/> |
| 3635 |
<skip/> |
| 3636 |
<register_type/> |
| 3637 |
<register_width/> |
| 3638 |
<write_mask/> |
| 3639 |
<dimension/> |
| 3640 |
<wide_indices/> |
| 3641 |
<force_delta_enable/> |
| 3642 |
<lod_bias_disable/> |
| 3643 |
<lod_clamp_disable/> |
| 3644 |
<derivative_enable/> |
| 3645 |
|
| 3646 |
<sr_count/> |
| 3647 |
<sr_write_count/> |
| 3648 |
|
| 3649 |
<sr write="true" flags="false"/> |
| 3650 |
<sr read="true" flags="false"/> |
| 3651 |
<src size="64">Image to read from</src> |
| 3652 |
<src pseudo="true">Dummy for IR</src> |
| 3653 |
<immediate name="sr_count" size="4" pseudo="true"/> |
| 3654 |
</ins> |
| 3655 |
|
| 3656 |
<ins name="TEX_DUAL" title="Dual texture" unused="true" unit="T"> |
| 3657 |
<opcode> |
| 3658 |
<op val="0x12F" start="48" mask="0x1FF"/> |
| 3659 |
</opcode> |
| 3660 |
<desc>Pair of texture instructions.</desc> |
| 3661 |
<slot/> |
| 3662 |
<skip/> |
| 3663 |
<register_type/> |
| 3664 |
<register_width/> |
| 3665 |
<secondary_register_width/> |
| 3666 |
<write_mask/> |
| 3667 |
<dimension/> |
| 3668 |
<wide_indices/> |
| 3669 |
<array_enable/> |
| 3670 |
<texel_offset/> |
| 3671 |
<shadow/> |
| 3672 |
<lod_mode/> |
| 3673 |
|
| 3674 |
<sr_count/> |
| 3675 |
<sr_write_count/> |
| 3676 |
|
| 3677 |
<sr write="true" flags="false"/> |
| 3678 |
<sr read="true" flags="false"/> |
| 3679 |
<src size="64">Image to read from</src> |
| 3680 |
</ins> |
| 3681 |
|
| 3682 |
<ins name="VAR_TEX_BUF_SINGLE" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3683 |
<opcode> |
| 3684 |
<op val="0x130" start="48" mask="0x1FF"/> |
| 3685 |
</opcode> |
| 3686 |
<desc> |
| 3687 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3688 |
to LD_VAR_BUF_IMM_F32.v2.f32 followed by TEX, using both V and T units. |
| 3689 |
</desc> |
| 3690 |
<slot/> |
| 3691 |
<skip/> |
| 3692 |
<sample_and_update/> |
| 3693 |
<register_type/> |
| 3694 |
<vartex_register_width/> |
| 3695 |
<dimension/> |
| 3696 |
<array_enable/> |
| 3697 |
<shadow/> |
| 3698 |
<lod_mode/> |
| 3699 |
|
| 3700 |
<sr_write_count/> |
| 3701 |
|
| 3702 |
<sr write="true"/> |
| 3703 |
<src size="64">Image to read from</src> |
| 3704 |
<src>Varying offset</src> |
| 3705 |
</ins> |
| 3706 |
|
| 3707 |
<ins name="VAR_TEX_BUF_GATHER" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3708 |
<opcode> |
| 3709 |
<op val="0x131" start="48" mask="0x1FF"/> |
| 3710 |
</opcode> |
| 3711 |
<desc> |
| 3712 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3713 |
to LD_VAR_BUF_IMM_F32.v2.f32 followed by TEX, using both V and T units. |
| 3714 |
</desc> |
| 3715 |
<slot/> |
| 3716 |
<skip/> |
| 3717 |
<sample_and_update/> |
| 3718 |
<register_type/> |
| 3719 |
<vartex_register_width/> |
| 3720 |
<dimension/> |
| 3721 |
<array_enable/> |
| 3722 |
<integer_coordinates/> |
| 3723 |
<fetch_component/> |
| 3724 |
<shadow/> |
| 3725 |
|
| 3726 |
<sr_write_count/> |
| 3727 |
|
| 3728 |
<sr write="true"/> |
| 3729 |
<src size="64">Image to read from</src> |
| 3730 |
<src>Varying offset</src> |
| 3731 |
</ins> |
| 3732 |
|
| 3733 |
<ins name="VAR_TEX_BUF_GRADIENT" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3734 |
<opcode> |
| 3735 |
<op val="0x132" start="48" mask="0x1FF"/> |
| 3736 |
</opcode> |
| 3737 |
<desc> |
| 3738 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3739 |
to LD_VAR_BUF_IMM_F32.v2.f32 followed by TEX, using both V and T units. |
| 3740 |
</desc> |
| 3741 |
<slot/> |
| 3742 |
<skip/> |
| 3743 |
<sample_and_update/> |
| 3744 |
<register_type/> |
| 3745 |
<vartex_register_width/> |
| 3746 |
<dimension/> |
| 3747 |
<array_enable/> |
| 3748 |
<shadow/> |
| 3749 |
<lod_bias_disable/> |
| 3750 |
<lod_clamp_disable/> |
| 3751 |
|
| 3752 |
<sr_write_count/> |
| 3753 |
|
| 3754 |
<sr write="true"/> |
| 3755 |
<src size="64">Image to read from</src> |
| 3756 |
<src>Varying offset</src> |
| 3757 |
</ins> |
| 3758 |
|
| 3759 |
<ins name="VAR_TEX_BUF_DUAL" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3760 |
<opcode> |
| 3761 |
<op val="0x137" start="48" mask="0x1FF"/> |
| 3762 |
</opcode> |
| 3763 |
<desc> |
| 3764 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3765 |
to LD_VAR_BUF_IMM_F32.v2.f32 followed by TEX_DUAL, using both V and T units. |
| 3766 |
</desc> |
| 3767 |
<slot/> |
| 3768 |
<skip/> |
| 3769 |
<sample_and_update/> |
| 3770 |
<register_type/> |
| 3771 |
<vartex_register_width/> |
| 3772 |
<dimension/> |
| 3773 |
<array_enable/> |
| 3774 |
<shadow/> |
| 3775 |
<lod_mode/> |
| 3776 |
|
| 3777 |
<sr_write_count/> |
| 3778 |
|
| 3779 |
<sr write="true"/> |
| 3780 |
<src size="64">Image to read from</src> |
| 3781 |
<src>Varying offset</src> |
| 3782 |
</ins> |
| 3783 |
|
| 3784 |
<ins name="VAR_TEX_SINGLE" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3785 |
<opcode> |
| 3786 |
<op val="0x138" start="48" mask="0x1FF"/> |
| 3787 |
</opcode> |
| 3788 |
<desc> |
| 3789 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3790 |
to LD_VAR_IMM_F32.v2.f32 followed by TEX, using both V and T units. |
| 3791 |
</desc> |
| 3792 |
<slot/> |
| 3793 |
<skip/> |
| 3794 |
<sample_and_update/> |
| 3795 |
<register_type/> |
| 3796 |
<vartex_register_width/> |
| 3797 |
<dimension/> |
| 3798 |
<array_enable/> |
| 3799 |
<shadow/> |
| 3800 |
<lod_mode/> |
| 3801 |
|
| 3802 |
<sr_write_count/> |
| 3803 |
|
| 3804 |
<sr write="true"/> |
| 3805 |
<src size="64">Image to read from</src> |
| 3806 |
<src>Varying offset</src> |
| 3807 |
</ins> |
| 3808 |
|
| 3809 |
<ins name="VAR_TEX_GATHER" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3810 |
<opcode> |
| 3811 |
<op val="0x139" start="48" mask="0x1FF"/> |
| 3812 |
</opcode> |
| 3813 |
<desc> |
| 3814 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3815 |
to LD_VAR_IMM_F32.v2.f32 followed by TEX, using both V and T units. |
| 3816 |
</desc> |
| 3817 |
<slot/> |
| 3818 |
<skip/> |
| 3819 |
<sample_and_update/> |
| 3820 |
<register_type/> |
| 3821 |
<vartex_register_width/> |
| 3822 |
<dimension/> |
| 3823 |
<array_enable/> |
| 3824 |
<integer_coordinates/> |
| 3825 |
<fetch_component/> |
| 3826 |
<shadow/> |
| 3827 |
|
| 3828 |
<sr_write_count/> |
| 3829 |
|
| 3830 |
<sr write="true"/> |
| 3831 |
<src size="64">Image to read from</src> |
| 3832 |
<src>Varying offset</src> |
| 3833 |
</ins> |
| 3834 |
|
| 3835 |
<ins name="VAR_TEX_GRADIENT" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3836 |
<opcode> |
| 3837 |
<op val="0x13A" start="48" mask="0x1FF"/> |
| 3838 |
</opcode> |
| 3839 |
<desc> |
| 3840 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3841 |
to LD_VAR_IMM_F32.v2.f32 followed by TEX, using both V and T units. |
| 3842 |
</desc> |
| 3843 |
<slot/> |
| 3844 |
<skip/> |
| 3845 |
<sample_and_update/> |
| 3846 |
<register_type/> |
| 3847 |
<vartex_register_width/> |
| 3848 |
<dimension/> |
| 3849 |
<array_enable/> |
| 3850 |
<shadow/> |
| 3851 |
<lod_bias_disable/> |
| 3852 |
<lod_clamp_disable/> |
| 3853 |
|
| 3854 |
<sr_write_count/> |
| 3855 |
|
| 3856 |
<sr write="true"/> |
| 3857 |
<src size="64">Image to read from</src> |
| 3858 |
<src>Varying offset</src> |
| 3859 |
</ins> |
| 3860 |
|
| 3861 |
<ins name="VAR_TEX_DUAL" title="Fused varying-texturing" unused="true" unit="VT"> |
| 3862 |
<opcode> |
| 3863 |
<op val="0x13F" start="48" mask="0x1FF"/> |
| 3864 |
</opcode> |
| 3865 |
<desc> |
| 3866 |
Only works for FP32 varyings. Performance characteristics are similar |
| 3867 |
to LD_VAR_IMM_F32.v2.f32 followed by TEX_DUAL, using both V and T units. |
| 3868 |
</desc> |
| 3869 |
<slot/> |
| 3870 |
<skip/> |
| 3871 |
<sample_and_update/> |
| 3872 |
<register_type/> |
| 3873 |
<vartex_register_width/> |
| 3874 |
<dimension/> |
| 3875 |
<array_enable/> |
| 3876 |
<shadow/> |
| 3877 |
<lod_mode/> |
| 3878 |
|
| 3879 |
<sr_write_count/> |
| 3880 |
|
| 3881 |
<sr write="true"/> |
| 3882 |
<src size="64">Image to read from</src> |
| 3883 |
<src>Varying offset</src> |
| 3884 |
</ins> |
| 3885 |
|
| 3886 |
<ins name="FMA_RSCALE.f32" title="Fused floating-point multiply add with exponent bias" dests="1" unused="true" unit="FMA"> |
| 3887 |
<opcode> |
| 3888 |
<op val="0x160" start="48" mask="0x1FF"/> |
| 3889 |
</opcode> |
| 3890 |
<desc> |
| 3891 |
First calculates $A \cdot B + C$ and then biases the exponent by D. Used in |
| 3892 |
special transcendental function sequences. It should not be used for |
| 3893 |
general code as its special case handling differs from two back-to-back |
| 3894 |
`FMA.f32` operations. Equivalent to `FMA.f32` back-to-back with |
| 3895 |
`LDEXP.f32` |
| 3896 |
</desc> |
| 3897 |
<clamp/> |
| 3898 |
<src absneg="true">A</src> |
| 3899 |
<src absneg="true">B</src> |
| 3900 |
<src absneg="true">C</src> |
| 3901 |
<src>D</src> |
| 3902 |
</ins> |
| 3903 |
|
| 3904 |
<ins name="FMA_RSCALE_N.f32" title="Fused floating-point multiply add with exponent bias and zero override" dests="1" unused="true" unit="FMA"> |
| 3905 |
<opcode> |
| 3906 |
<op val="0x161" start="48" mask="0x1FF"/> |
| 3907 |
</opcode> |
| 3908 |
<desc> |
| 3909 |
First calculates $A \cdot B + C$ and then biases the exponent by D. If $A |
| 3910 |
= 0$ or $B = 0$, the multiply $A \cdot B$ is treated as zero even if an |
| 3911 |
ordinary multiply would return NaN. Used in special transcendental |
| 3912 |
function sequences. It should not be used for general code as its special |
| 3913 |
case handling differs from two back-to-back `FMA.f32` operations. |
| 3914 |
Equivalent to `FMA.f32` back-to-back with `LDEXP.f32` |
| 3915 |
</desc> |
| 3916 |
<clamp/> |
| 3917 |
<src absneg="true">A</src> |
| 3918 |
<src absneg="true">B</src> |
| 3919 |
<src absneg="true">C</src> |
| 3920 |
<src>D</src> |
| 3921 |
</ins> |
| 3922 |
|
| 3923 |
<ins name="FMA_RSCALE_LEFT.f32" title="Fused floating-point multiply add with exponent bias and asymmetric zero handling" dests="1" unused="true" unit="FMA"> |
| 3924 |
<opcode> |
| 3925 |
<op val="0x162" start="48" mask="0x1FF"/> |
| 3926 |
</opcode> |
| 3927 |
<desc> |
| 3928 |
First calculates $A \cdot B + C$ and then biases the exponent by D. If $A |
| 3929 |
= 0$ or $B = 0$, the multiply is treated as $A$ even if an |
| 3930 |
ordinary multiply would return NaN. Used in special transcendental |
| 3931 |
function sequences. It should not be used for general code as its special |
| 3932 |
case handling differs from two back-to-back `FMA.f32` operations. |
| 3933 |
Equivalent to `FMA.f32` back-to-back with `LDEXP.f32` |
| 3934 |
</desc> |
| 3935 |
<clamp/> |
| 3936 |
<src absneg="true">A</src> |
| 3937 |
<src absneg="true">B</src> |
| 3938 |
<src absneg="true">C</src> |
| 3939 |
<src>D</src> |
| 3940 |
</ins> |
| 3941 |
|
| 3942 |
<ins name="FMA_RSCALE_SCALE16.f32" title="Fused floating-point multiply add with 16-bit exponent bias" dests="1" unused="true" unit="FMA"> |
| 3943 |
<opcode> |
| 3944 |
<op val="0x163" start="48" mask="0x1FF"/> |
| 3945 |
</opcode> |
| 3946 |
<desc> |
| 3947 |
First calculates $A \cdot B + C$ and then biases the exponent by D, |
| 3948 |
interpreted as a 16-bit value. Used in special transcendental function |
| 3949 |
sequences. It should not be used for general code as its special case |
| 3950 |
handling differs from two back-to-back `FMA.f32` operations. Equivalent |
| 3951 |
to `FMA.f32` back-to-back with `LDEXP.f32` |
| 3952 |
</desc> |
| 3953 |
<clamp/> |
| 3954 |
<src absneg="true">A</src> |
| 3955 |
<src absneg="true">B</src> |
| 3956 |
<src absneg="true">C</src> |
| 3957 |
<src>D</src> |
| 3958 |
</ins> |
| 3959 |
|
| 3960 |
</valhall> |