Geometry (TA) kick registers
Register-level hardware specification of the Geometry / Tiling Accelerator
(TA / VDM, DM 2) kick (docsClean/BXE-2-32/kick-geometry-ta, experimentally verified in
E027–E040 under -DEXP_TA).
Register-bank addressing note: geometry registers sit at fixed offsets
(0x0400, 0x0C00, …) in the geometry core’s bank
(0xCF800000 + core * 0x80000; on single-core BXE-2-32, always the
primary core bank). The trace’s Setup register set = N refers to BIF
catalogue slot N + 1 (CAT_BASE{N+1}), not an extra register offset.
Mandatory kick phases (A–G)
Each phase depends on the completion of the previous phase:
A. Preconditions
GPU power domain on and GPU units initialised (GPU bring-up).
If this is the first kick after GPU units init and
rf_cmd_addr != 0, run the firmware compute job first (no-op on mainlinepowervr).Bind the memory context to a BIF slot (1–7) and select it in
ROGUE_CR_BIF_CAT_BASE_INDEXTA field (bits 2:0).ROGUE_CR_MULTICORE_GEOMETRY_CTRL_COMMON(0xF320) remains0on single-core BXE-2-32 ([spec]Q16i, E034).
B. Load render target into PM context 0
First kick of an HWRTData (
GEOM_FLAGS_FIRSTKICK):Load local and global freelists into PM context 0 (bases, stack tops, counts + load commands
0x0208and0x20B0; Parameter Manager (PM), freelists and SPM).Program
0x0240/0x0244 = 0x80_0000_0000,PM_VHEAP_TABLE(0x0248),PM_MLIST0_BASE(0x02D8),CONTEXT_PB_BASE(0x02B0 = 3for separate freelists,0for shared-PB subpasses; E040), and0x03D0 = 0x100/0x03D4 = 1.Load zero ALIST/MLIST stack pointers via
0x0278/0x02C8and commands0x0288/0x0190(E037), and clearPM_CAT_BASE_*0so the PM allocates fresh catalogue pages from the local freelist.
Non-first kick on the same HWRTData (
First kick:0, e.g. layered renders): skip the PM load — PM context 0 keeps its live stack pointers, catalogues and freelist state (E039,[spec]Q16m).PM handshakes (after PM writes, never around them; E032):
CR[0x0250] = 1(poll bit 0 =1);CR[0x0258] = 1(poll bit 0 =0).
C. Geometry (TE / PPP / VDM) registers
Compiled from rogue_fwif_cmd_geom (0x70 B),
rogue_fwif_hwrtdata, rogue_fwif_hwrtdata_common and
rogue_fwif_geom_ctx_state_per_geom (docsClean/BXE-2-32/kick-geometry-ta, E027,
E028, E029):
Offset (core bank) |
Data source / value |
Notes & scaling |
|---|---|---|
|
|
VDM control stream base |
|
Read-only VDM current stream pointer |
Observed at |
|
|
|
|
Hardware geometry kick counter ( |
Read-only telemetry (E029) |
|
Candidate |
40-bit 16 B mask (E008) |
|
|
Scales ×4 per side ( |
|
|
Max X/Y in 16×16 tiles ( |
|
|
Scales with area ( |
|
|
|
|
Constants |
Unchanged across 256×256 and 1024×1024 |
|
|
|
|
|
|
|
Constants |
Fixed geometry unit constants (E029) |
|
|
Observed |
|
|
|
|
|
Constant 64-bit pattern (E029) |
|
|
|
|
|
TA context-state base; read at |
|
|
Context-switch control |
|
|
Shared register with fragment kick |
D. Context-switch state and post-HWR zeroing [spec]
New kick vs. resume programs
0x0CE0,0x0CB0,0x0CB8 = 1,0x0C48and0x0D20(state buffer address,0if none); on resume the TA state buffer flips between A and B.After HWR, if
hwrtdata.geom_caches_need_zeroingis set, the first kick zeroes the TPC (tail_ptrs_dev_addr,tpc_sizebytes) and the RTC (rtc_dev_addr,0x300bytes) with the CPU, through the GPU MMU (geom_zero_caches(), E053).CR[0x40A8] = (primary_core & 1)selects core/TE routing.
E. Context enable (mandatory poll)
Write CR[0x0C68] = 1 and poll CR[0x0C68] until bit 0 = 1
(context acceptance, must succeed before trigger). On hardware, 0x0C68
reads 1 for ≤ 20 µs while 0x0D00 drops from 0x3F to 0x1F,
then returns to 0 about 60 µs before 0x0420 increments
([spec] Q16l, E028, E038).
F. Trace, timing and watchdog
Emit trace MAIN_119 (Kick TA), sample ROGUE_CR_TIMER, arm the
DM 2 watchdog deadline and record DM 2 execution state.
G. Trigger (last write)
Write CR[0x0400] = 1 (TA/VDM run trigger). Everything in phases A–F must
be complete before this store.
Geometry completion
MTS_DM2_INTERRUPT_ENABLE = 0xA0routes onlyTA_FINISHED(bit 5) andPM_OUT_OF_MEMORY(bit 7) to HW2;TA_TERMINATE(bit 6) is not routed.Geometry completion updates
hwrtdata.state, flushes the TA caches (0x0688 = 1,0x0668 = 5,SLC_CTRL_FLUSH_INVAL = DM_TA[spec]), retires the cCCB command and applies UFO updates.The freelist state reached by geometry is stored back from PM context 0 at the subsequent fragment kick of the same HWRTData (not at
TA_FINISHED).