ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

DS_BVH_STACK_RTN_B32

T1 amd-gpu alu insn
AMD GPU DS_BVH_STACK_RTN_B32 (ENC_DS)
SourceAMD Official Machine-Readable GPU ISA XMLs (RDNA & CDNA) (amd_gpu_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRDNA3, RDNA3_5
AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
License & VersionAMD GPUOpen / MIT (isa_spec_manager)
2026-official
Upstreamhttps://gpuopen.com/machine-readable-isa/
Privilegeuser
ExtensionsRDNA3, RDNA3_5, VMEM

Summary

Ray tracing involves traversing a BVH which is a kind of tree where nodes have up to 4 children. Each shader thread processes one child at a time, and overflow nodes are stored temporarily in LDS using a stack. This instruction supports pushing/popping the stack to reduce the number of VALU instructions required per traversal and reduce VMEM bandwidth requirements.

Syntax / Encoding

DS_BVH_STACK_RTN_B32 VDST, ADDR, DATA0, DATA1 | ENC_DS op=173 [RDNA3,RDNA3_5]

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64ENC_DSxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx11011010101101xxxxxxxxxxxxxxxxxx0x00000000fffc0000 / 0x00000000dab40000

Operands

NameDescription
VDST
ADDR
DATA0
DATA1