You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0341c55
Browse filesBrowse the repository at this point in the historyBrowse files
test(oot): W1 flatten pass in the translator — sgid->global-lane for addressing, block-scaled stage header
MeshStage.cs (behind TOTK_MESH_THREADS_SCALE): the mesh body's subgroup
lane id used for addressing becomes dm_lid (subgroup masks keep the
per-32-lane id), and the wrapper's mem[0] is scaled by threads/32 so one
group covers that many 32-blocks; 32-lane strides stay, stage layout
unchanged. fed302d7 variant: compiles, reflection matches the seed
except threadgroup_size, mode 3 loads it — but 64-thread execution still
faults at main+0x1c4280 (raw-pool address path still 32-lane). Documented
in mesh-threads-poc.md with the next step.
Copy file name to clipboardExpand all lines: games/oot/tools/totk_xlate/MeshStage.cs
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ sealed class MeshStage
10
10
{
11
11
readonlystringkind;
12
12
intthreads;readonlyintpayload,maxV,maxP;// threads is scaled by TOTK_MESH_THREADS_SCALE (PoC, 2026-11-26)
13
+
intflatShift;// W1 flattening (PoC): when threads>32, the body's 32-lane stride becomes 2^(5+flatShift) and the lane id becomes the global thread id (dm_lid); subgroup masks stay per-32-lane
13
14
readonlybooltask,deviceAllowed;// deviceAllowed: the request may say stage_device=false (tests reading the stage memory from a compute wrapper)
publicJsonObjectReflection()=>new(){["kind"]=kind,["threads"]=threads,["payload"]=payload,["task"]=task,["device"]=Device,["byte_stores"]=ByteStores};// flat_shift stays internal: the mode-3 loader requires the candidate reflection to equal the original except threadgroup_size / mesh_stage.threads
0 commit comments