AMD ENC_VSAMPLE
amd_gpu_isa)AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
2026-official
Summary
Official AMD 96-bit instruction encoding format ENC_VSAMPLE across RDNA4.
Syntax / Encoding
ENC_VSAMPLE (96b) mask=0x0000000000000000fc3fc000 match=0x0000000000000000e4060000
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 96 | ENC_VSAMPLE | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx111001xxxx00011000xxxxxxxxxxxxxx | 0x0000000000000000fc3fc000 / 0x0000000000000000e4060000 |
Bitfields (20)
| Bits | Field | Description |
|---|---|---|
95:88 | VADDR3 | Fourth address source. |
87:80 | VADDR2 | Third address source. |
79:72 | VADDR1 | Second address source. |
71:64 | VADDR0 | First VGPR component to provide address information. |
63:55 | SAMP | Scalar GPR that specifies the sampler constant. Must be aligned to a multiple of 4. |
54:52 | TH | Temporal hints and atomic return request. |
51:50 | SCOPE | Scope of memory operation. |
49:41 | RSRC | Specify SGPR that contains resource descriptor. Must be aligned to a multiple of 4. |
40 | LWE | LOD Warning Enable (for partially resident textures). |
39:32 | VDATA | Vector GPR to write result/read input from. |
31:26 | ENCODING | Encoding. |
25:22 | DMASK | Enable mask for image read/write data components. Normally bit 0 is red, 1 is green, 2 is blue and 3 is alpha. At least 1 bit must be on. Data is assumed to be |
21:14 | OP | Opcode. |
13 | UNORM | Force address to be un-normalized regardless of texture sampler setting. Must be set to 1 for image store and atomic operations. 0: for image ops with samplers, |
7 | NV | Non-volatile bit. |
6 | A16 | Texture coordinates size: 1 = 16 bit, 0 = 32 bit. |
5 | D16 | If set, convert 32 bit floating point texture return data to 16 bit. |
4 | R128 | Texture resource size: 1 = 128 bit (4 SGPRs), 0 = 256 bit (8 SGPRs). |
3 | TFE | Texture Fail Enable (for partially resident textures). |
2:0 | DIM | Dimensionality of resource constant, used to determine the number of addresses supplied for this instruction. |