AMD MIMG_NSA2
amd_gpu_isa)AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
2026-official
Summary
Official AMD 128-bit instruction encoding format MIMG_NSA2 across RDNA1, RDNA2.
Syntax / Encoding
MIMG_NSA2 (128b) mask=0x000000000000000000000000fdfc0000 match=0x000000000000000000000000f0000000
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 128 | MIMG_NSA2 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx111100x0000000xxxxxxxxxxxxxxxxxx | 0x000000000000000000000000fdfc0000 / 0x000000000000000000000000f0000000 |
Bitfields (27)
| Bits | Field | Description |
|---|---|---|
127:120 | VADDRH | Address source - may carry an offset or an index. |
119:112 | VADDRG | Address source - may carry an offset or an index. |
111:104 | VADDRF | Address source - may carry an offset or an index. |
103:96 | VADDRE | Address source - may carry an offset or an index. |
95:88 | VADDRD | Address source - may carry an offset or an index. |
87:80 | VADDRC | Address source - may carry an offset or an index. |
79:72 | VADDRB | Address source - may carry an offset or an index. |
71:64 | VADDRA | Address source - may carry an offset or an index. |
63 | D16 | If set, convert 32 bit floating point texture return data to 16 bit. |
62 | A16 | Texture coordinates size: 1=16b, 0=32b |
57:53 | SSAMP | Scalar GPR that specifies the sampler constant, in units of 4 SGPRs. |
52:48 | SRSRC | Scalar GPR that specifies the resource constant, in units of 4 SGPRs. |
47:40 | VDATA | Vector GPR to write result to. |
39:32 | VADDR | Address source - may carry an offset or an index. |
31:26 | ENCODING | Encoding. |
25 | SLC | System Level Coherent. |
24:18,0 | OP | Opcode. |
17 | LWE | LOD Warning Enable (for partially resident textures). |
16 | TFE | Texture Fail Enable (for partially resident textures). |
15 | R128 | Texture resource size: 1=128b, 0=256b |
14 | DA | Declare Array: 1=shader declared this texture to be an array and SH sends array-index (slice#) to TA; 0=shader declared non-array type and does not send out arr |
13 | GLC | If set, operation is globally coherent. |
12 | UNORM | Force address to be un-normalized regardless of texture sampler setting. Must be set to 1 for image store and atomic operations. |
11:8 | DMASK | Enable mask for image read/write data components. bit0=red, 1=green, 2=blue, 3=alpha. At least 1 bit must be on. Data is assumed to be packed into consecutive V |
7 | DLC | If set, operation is L1-coherent (synced between WGPs in a shader engine). |
5:3 | DIM | Dimensionality of resource constant, used to determine the number of addresses supplied for this instruction. |
2:1 | NSA | Non Sequential Address mode: triggers reading additional dwords in the instruction stream to obtain all the address components. Specifies the number of addition |