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

ldc.k

T2 adreno-gpu load_store insn
Qualcomm Adreno ir3 CAT6: ldc.k
SourceQualcomm Adreno ir3 GPU ISA Specification (Mesa Freedreno) (adreno_ir3_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeQualcomm Adreno ir3 (a300+, a500+, a600+)
Qualcomm Adreno a3xx / a4xx / a5xx / a6xx / a7xx / a8xx GPUs
License & VersionMIT
mesa/main
Upstreamhttps://gitlab.freedesktop.org/mesa/mesa/-/tree/main/src/freedreno/isa
Privilegeuser
Extensionsir3-CAT6, a300+, a500+, a600+

Summary

ldc.k copies a series of UBO values to constants. In other words, it acts the same as a series of ldc followed by stc. It's also similar to a CP_LOAD_STATE with a UBO source but executed in the shader. Like CP_LOAD_STATE, the UBO offset and const file offset must be a multiple of 4 vec4's but it can load any number of vec4's. The UBO descriptor and offset are the same as a normal ldc. The const file offset is…

Syntax / Encoding

{SY}{JP}ldc.{LOAD_SIZE}.k.{MODE}{BASE} c[a1.x], {SRC1}, {UBO}

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64ir3-CAT6110xx0000011x11xxxxxxxx0xxxxxxxxxxxxxxxxx1xx011110xxxxxxxx00xxxx0xe7f60100004fc030 / 0xc036000000478000

Operands

NameDescription
SRC1