ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

AGX Special Registers (sr0–sr147)

T3 apple-gpu register register
Apple GPU (AGX) Special Register Map (30 registers)
SourceApple GPU (AGX / G13+) ISA & Binary Encodings (dougallj/applegpu) (apple_gpu_agx)
Reliability TierT3 — Hardware-Verified
ISA / Silicon ScopeApple GPU G13+ (M1/M2/M3+ AGX)
Apple M1/M2/M3+ AGX (G13/G14/G15+)
License & VersionBSD-3-Clause
main
Upstreamhttps://github.com/dougallj/applegpu
Note: Reverse-engineered and hardware-verified on Apple M1/G13+ GPU (dougallj/applegpu).

Summary

Hardware-verified Apple AGX GPU special registers accessed via get_sr (thread/threadgroup IDs, dispatch grid, SIMD lane, clock, opfifo).

Syntax / Encoding

get_sr rD, srN

Bitfields (30)

BitsFieldDescription
sr0threadgroup_position_in_grid.x
sr1threadgroup_position_in_grid.y
sr2threadgroup_position_in_grid.z
sr4threads_per_threadgroup.x
sr5threads_per_threadgroup.y
sr6threads_per_threadgroup.z
sr8dispatch_threads_per_threadgroup.x
sr9dispatch_threads_per_threadgroup.y
sr10dispatch_threads_per_threadgroup.z
sr20core_index
sr21vm_slot
sr48thread_position_in_threadgroup.x
sr49thread_position_in_threadgroup.y
sr50thread_position_in_threadgroup.z
sr51thread_index_in_threadgroup
sr52thread_index_in_simdgroup
sr53simdgroup_index_in_threadgroup
sr56active_thread_index_in_quadgroup
sr58active_thread_index_in_simdgroup
sr60internal_coverage_mask
sr124input_coverage_mask
sr62backfacing
sr63is_active_thread
sr80thread_position_in_grid.x
sr81thread_position_in_grid.y
sr82thread_position_in_grid.z
sr124input_sample_mask
sr144opfifo_cmd
sr146opfifo_data_l
sr147opfifo_data_h