Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
2af56c5
Unreal Engine 5.6 Switch 2 shader records (SF_GLSL_SWITCH2)
uncraftablexd Nov 5, 2026
eb40054
shader: Ampere instructions and fixes from Orbitals, PRAGMATA and Don…
uncraftablexd Nov 5, 2026
8ff8fc3
shader: compute threads that exit before a barrier keep taking part i…
uncraftablexd Nov 5, 2026
455b6ea
dmsh_build: scalar storage-buffer loads keep their index
uncraftablexd Nov 5, 2026
ca227f5
shader: NVN2 compute c0 with two push blocks; push-constant storage b…
uncraftablexd Nov 5, 2026
8b4707b
Shader build: a simdgroup-scope fence after each threadgroup store
uncraftablexd Nov 5, 2026
5362d0f
host: GPU watchdog; the shaders of a stuck or failed submission are n…
uncraftablexd Nov 5, 2026
319ebe3
host: clamp GPU-written indirect dispatch counts
uncraftablexd Nov 5, 2026
61745aa
hid: the controller applet disconnects controllers past its maximum
uncraftablexd Nov 5, 2026
070f700
NVN2: fence and acquire syncs cover only their own queue's work
uncraftablexd Nov 5, 2026
888c4f2
NVN: 32-bit integer buffer and linear textures get the format-view us…
uncraftablexd Nov 5, 2026
ee62cc2
host: report a SyncWait that times out
uncraftablexd Nov 5, 2026
6120968
GameChat: nn::chat::Initialize answers success
uncraftablexd Nov 5, 2026
add19a4
nvn: Metal host work for Orbitals and Donkey Kong Bananza (feedback s…
uncraftablexd Nov 5, 2026
0c833c7
mac: display link rescue after the window is visible; fullscreen on a…
uncraftablexd Nov 5, 2026
1bfde97
host: NVN2 builder getters, ListFrameHistory, H.264 parameter sets, h…
uncraftablexd Nov 5, 2026
5baf078
host: a copy into a block encoder's integer texture in a CPU_NO_ACCES…
uncraftablexd Nov 5, 2026
b6f59ac
Pipelines with integer bits in float colour outputs are built whole, …
uncraftablexd Nov 5, 2026
4ac6b10
Translator binaries and chain 74287e9f3a31
uncraftablexd Nov 6, 2026
c432a5a
Orbitals (040004F027560000, Switch 2 v327680): game profile, note, ga…
uncraftablexd Nov 5, 2026
c762655
Reference entries for the Orbitals bring-up
uncraftablexd Nov 5, 2026
6c43f01
t_thermal checks the cap with its own 60 fps target, not the profile's
uncraftablexd Nov 4, 2026
16c42ab
shader: LDC .IS / .ISL with Ra = RZ, FMNMX.NAN, and PRAGMATA's LDC.64…
uncraftablexd Nov 5, 2026
0b636dd
Deferred writes: a register written again starts its shadow from the …
uncraftablexd Nov 5, 2026
1138f81
Mesh stage: find the kernel's stage memory after the loop guard's cou…
uncraftablexd Nov 5, 2026
00ba624
Mesh stage storage buffers: the hull stage's c0 table (0x210) for a m…
uncraftablexd Nov 5, 2026
bcd9f67
shader_split: RE Engine KPKA 4.2 packages and Switch 2 SDF shader def…
uncraftablexd Nov 5, 2026
297a8f0
shader: Ampere SURED.MAX.U64 / MIN.U64 as Metal 64-bit texture atomics
uncraftablexd Nov 5, 2026
db821a7
Emit integer add, subtract and multiply on uint so overflow wraps
uncraftablexd Nov 5, 2026
dd9cfbf
Build matchers accept the wrapping spelling of integer add and multiply
uncraftablexd Nov 5, 2026
9d7e39c
Keep a loop exit's subgroup block in the iteration that left the loop
uncraftablexd Nov 5, 2026
62d2889
Mesh stage memory: room for per-primitive system values, primitive bl…
uncraftablexd Nov 5, 2026
206d25b
Mesh stage: hand the per-primitive id to Metal as the primitive's [[p…
uncraftablexd Nov 5, 2026
eca874d
shader_split: read the NVN2 shaders in RE Engine's OCIO colour manage…
uncraftablexd Nov 5, 2026
7ff20b2
Ampere I2F: the immediate form has no byte select
uncraftablexd Nov 5, 2026
3c5c595
dmsh_build: one-lane subgroups for domain shaders too
uncraftablexd Nov 5, 2026
d1faa2a
Ampere ISBERD: .O reads of the stage output area in task and mesh sha…
uncraftablexd Nov 5, 2026
512993a
Ampere SUATOM.CAS (0x595, bindless 0x396)
uncraftablexd Nov 5, 2026
1b7b50a
Barycentric coordinates: attributes 0x3a8 (no perspective) and 0x3b4
uncraftablexd Nov 5, 2026
a526344
Ampere IPA.OFFSET: interpolation at an offset from the pixel centre
uncraftablexd Nov 5, 2026
8a08103
Tests for the PRAGMATA translator fixes
uncraftablexd Nov 5, 2026
e9ba2af
NVN2 sample position table: signed offsets from the pixel centre
uncraftablexd Nov 5, 2026
62e66d5
DrawMeshTasksIndirect: draw it, converting the GPU-written record bef…
uncraftablexd Nov 5, 2026
1a84fe8
Integer entry point for pixel shaders that write integer bits through…
uncraftablexd Nov 5, 2026
a9ddbd8
NVN2 push constants: the block word picks the block (compute block 1,…
uncraftablexd Nov 5, 2026
9414f12
Loop guard: a loop with a barrier counts its own iterations
uncraftablexd Nov 5, 2026
80a5c33
MEMBAR becomes a device-scope fence, not a threadgroup barrier
uncraftablexd Nov 5, 2026
c5ac943
Float slots on integer textures get a float view of the same bytes (D…
uncraftablexd Nov 5, 2026
a384ea5
Send loads through the memory pool table when a phi source of their a…
uncraftablexd Nov 5, 2026
72d9ac1
Bind buffers in sparse pools through their physical pages
uncraftablexd Nov 5, 2026
8f3dc1a
Sparse pools: bind buffers in several physical pieces through their m…
uncraftablexd Nov 5, 2026
2774e4c
docs: regenerate the symptom index
uncraftablexd Nov 5, 2026
7273f25
shader: one handle read 2D and 2D array declares the array; the 2D re…
uncraftablexd Nov 5, 2026
b31cece
Reference entries for the PRAGMATA bring-up
uncraftablexd Nov 5, 2026
de855e3
PRAGMATA (0400C76024710000): game note
uncraftablexd Nov 5, 2026
7540af7
Translator binaries and chain 7bdd33b7caf2
uncraftablexd Nov 6, 2026
8651e68
Host memory safety: no page or pool-table change under live GPU work …
uncraftablexd Nov 5, 2026
b93d4d5
Swizzled textures are deswizzled on the CPU by default; DM_NVN_DESWZ_…
uncraftablexd Nov 5, 2026
d227b45
DM_NVN_BREADCRUMB: name the dispatch in flight at the first command-b…
uncraftablexd Nov 5, 2026
dbb3531
DrawMeshTasksIndirect: read each proven record type from workgroup 0,…
uncraftablexd Nov 5, 2026
9f9dcdb
PRAGMATA (0400C76024710000): status after the tower ring; open issues
uncraftablexd Nov 5, 2026
39f0553
Residency: a removed allocation lives until its removal is committed
uncraftablexd Nov 5, 2026
32b60a9
Pool entries: drain the autorelease pool where they are made
uncraftablexd Nov 5, 2026
8a1c3a6
Sparse pools: keep 8 physical-run lookups per thread
uncraftablexd Nov 6, 2026
7ec2c66
Profile key fb_pool_dread: texture-pool shaders as depth readers, per…
uncraftablexd Nov 6, 2026
3f0b70f
nvn: read CPU-rewritten read-only storage from one copy per frame
uncraftablexd Nov 6, 2026
87da298
0x80d: Kirby's guard band cull and PRAGMATA's CSMTEST both translate
uncraftablexd Nov 6, 2026
267cec1
Ampere ALU: SETP pairs on their accumulator, IMAD's B, directed round…
uncraftablexd Nov 6, 2026
7340444
Ampere ALU: IADD3's carry predicates, PLOP3's second result, POPC / F…
uncraftablexd Nov 6, 2026
00f144b
Fix Ocarina of Time foliage jitter by preserving live shader inputs
uncraftablexd Nov 6, 2026
8eb9bac
Translator: PIXLD.COVMASK reads the pixel's coverage mask
uncraftablexd Nov 6, 2026
7eb4181
Diagnostic loop guard: loops that run out name themselves
uncraftablexd Nov 6, 2026
8ff901a
Diagnostic loop guard: pool-table miss reports, GMEM_POISON, the frag…
uncraftablexd Nov 6, 2026
0c6feb4
dmsh_dsl: the data_sized_loop analysis in the build's tools
uncraftablexd Nov 6, 2026
a5f4bbb
Automatic loop guard: data-sized loops report through the debug buffe…
uncraftablexd Nov 6, 2026
3c5d636
Host: the loop guard's buffer for library shaders with automatic sites
uncraftablexd Nov 6, 2026
ae52c66
dmsh_dsl / dmsh_loopdiag: no new lint findings
uncraftablexd Nov 6, 2026
3341821
Translator binaries and chain 29cc394f89fe
uncraftablexd Nov 6, 2026
af568a4
DM_MSL_OVERRIDE: load a side-built shader library from a plain folder
uncraftablexd Nov 6, 2026
59e4680
Mesh shaders that also write their vertices as records no longer over…
uncraftablexd Nov 6, 2026
4221b93
test_dmsh_hmma: the LDSM row address in either multiply spelling
uncraftablexd Nov 6, 2026
996be04
Translator binaries and chain bab9601ce9cf
uncraftablexd Nov 6, 2026
e31d682
MUFU.SIN and MUFU.COS of a large number of turns keep their fraction …
lunks Nov 4, 2026
1fd3301
Translator binaries and chain 916e8d674d87
uncraftablexd Nov 6, 2026
2c479a2
Large pools: a pool-table segment takes the buffer of a lookup chunk …
seedds Nov 7, 2026
b06ea7b
Large pools: one buffer over the whole pool once its chunks and segme…
seedds Nov 7, 2026
fbeacf8
Large pools: a grown pool keeps its whole-pool buffer as a wide entry…
seedds Nov 7, 2026
9e103a6
docs: large pools held twice in the residency set (memory.md), PRAGMA…
seedds Nov 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Shader build: a simdgroup-scope fence after each threadgroup store
Symptom: in Orbitals, Niagara's sorted particle list was wrong every frame (broken beams), and
single views of the split screen flashed for a frame.

Cause: Ampere compilers rely on lockstep warps for small shared-memory scans with no barrier. Unreal's
GPU radix sort downsweep (d032ce5090303e01) does STS, then LDS of the neighbouring lane's word, then
STS. In MSL the load and the thread's own earlier store do not alias, so Metal moves the load above
the store and reads another lane's old value: a Metal reproduction sorted 12 of 100 keys.

Fix: dmsh_build.py tg_fence puts a simdgroup-scope memory fence (not an execution barrier, so safe
in divergent code) after each store to a threadgroup array; kernels without one are unchanged (about
7.5% of Orbitals' shaders are touched). tg_spill runs after it and widens the fence to device memory
for an array it moves to the spill buffer. Its declaration regex is TG_FENCE_DECL, separate from
tg_spill's TG_DECL.

Measured: 100 of 100 keys sorted with the fence. With only the fenced downsweep in the library the
beams were right; with the fence in every shader, three 80-frame samples of stage 2 had 0 flash views
(22 in 80 on the build before, which also lacked the split texture / sampler handle fix).

Test: test_dmsh_tg_fence.py (CPU: the rewrite and the fence's scope after tg_spill; with the Metal
compiler, both compile). Reference entry: shaders.md, Warp-synchronous
shared memory without a barrier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • Loading branch information
uncraftablexd and claude committed Nov 6, 2026
commit 8b4707be96b3eff98d4ffd2320167eee4a34f930
98 changes: 98 additions & 0 deletions dm/gfx/tests/test_dmsh_tg_fence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
"""Warp-synchronous shared memory (dmsh_build.py tg_fence): Ampere compilers drop the barrier in small scans whose lanes run in lockstep (Unreal's GPU radix sort downsweep,
Orbitals' d032ce5090303e01: STS, then LDS of the neighbouring lane's word, then STS). For one thread such a load and its own earlier store do not alias, so Metal may move the
load above the store. tg_fence puts a simdgroup-scope memory fence (not an execution barrier) after each threadgroup store. When the Metal compiler is installed, the result
is compiled as the build compiles it (dmsh_build.py MAC_METAL), and a kernel whose array spills to device memory (tg_spill, after tg_fence) gets fences that order device memory as well."""
import ast
from pathlib import Path
import re
import shutil
import subprocess
import sys
import tempfile
import unittest

TOOLS = Path(__file__).resolve().parents[1] / 'tools'
sys.path.insert(0, str(TOOLS))
import dmsh_abi as abi
tree = ast.parse((TOOLS / 'dmsh_build.py').read_text())
selected = [n for n in tree.body if (isinstance(n, ast.FunctionDef) and n.name in ('tg_fence', 'tg_spill'))
or (isinstance(n, ast.Assign) and any(getattr(t, 'id', None) in ('TG_FENCE_DECL', 'TG_FENCE', 'TG_DECL', 'TG_BYTES') for t in n.targets))]
scope = {'re': re, 'abi': abi}
exec(compile(ast.Module(body=selected, type_ignores=[]), str(TOOLS / 'dmsh_build.py'), 'exec'), scope)
tg_fence, tg_spill, FENCE = scope['tg_fence'], scope['tg_spill'], scope['TG_FENCE']

ARRAY = """template<typename T, size_t Num>
struct spvUnsafeArray
{
T elements[Num ? Num : 1];
thread T& operator [] (size_t pos) thread { return elements[pos]; }
device T& operator [] (size_t pos) device { return elements[pos]; }
threadgroup T& operator [] (size_t pos) threadgroup { return elements[pos]; }
};
"""
# The downsweep's shape: each lane stores its word, reads its neighbour's, adds and stores again, with no barrier
SCAN = """#include <metal_stdlib>
using namespace metal;
""" + ARRAY + """
struct B { uint _m0[1]; };
kernel void main0(device B& out [[buffer(1)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
{
threadgroup spvUnsafeArray<uint, %d> _39;
uint _10 = gl_LocalInvocationID.x;
_39[_10] = out._m0[_10];
uint _11 = _39[_10 - 1u] + _39[_10];
_39[_10] = _11;
out._m0[_10] = _39[_10];
}
"""
PLAIN = """#include <metal_stdlib>
using namespace metal;
struct B { uint _m0[1]; };
kernel void main0(device B& out [[buffer(1)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
{
uint _10 = gl_LocalInvocationID.x;
out._m0[_10] = _10;
}
"""


def lines_after_stores(src):
ls = src.split('\n')
return [(ls[i].strip(), ls[i + 1].strip()) for i in range(len(ls) - 1) if re.match(r'\s*_39\[[^\]]*\]\s*=(?!=)', ls[i])]


class TgFence(unittest.TestCase):
def test_a_fence_follows_each_threadgroup_store(self):
out = tg_fence(SCAN % 64)
pairs = lines_after_stores(out)
self.assertEqual(len(pairs), 2)
for _, nxt in pairs:
self.assertEqual(nxt, FENCE)
self.assertEqual(out.count(FENCE), 2) # not after the loads, nor after the device store

def test_it_is_a_simdgroup_memory_fence_not_a_barrier(self):
self.assertIn('thread_scope_simdgroup', FENCE)
self.assertNotIn('barrier', FENCE)
self.assertNotIn('threadgroup_barrier', tg_fence(SCAN % 64))

def test_a_kernel_without_threadgroup_memory_is_left_as_it_is(self):
self.assertEqual(tg_fence(PLAIN), PLAIN)

def test_spilled_arrays_get_device_fences(self): # tg_spill runs after tg_fence: an array past abi.TG_MAX moves to device memory, and so must the fence's scope
n = abi.TG_MAX // 4 + 1024
src, spill = tg_spill(tg_fence(SCAN % n))
self.assertGreater(spill, abi.TG_MAX)
self.assertEqual(src.count('mem_flags::mem_device | mem_flags::mem_threadgroup, memory_order_seq_cst, thread_scope_simdgroup'), 2)

@unittest.skipUnless(shutil.which('xcrun') and subprocess.run(['xcrun', '-f', 'metal'], capture_output=True).returncode == 0, 'no Metal compiler')
def test_compiles(self):
for src in (tg_fence(SCAN % 64), tg_spill(tg_fence(SCAN % (abi.TG_MAX // 4 + 1024)))[0]):
with tempfile.TemporaryDirectory() as d:
p = Path(d) / 'k.metal'
p.write_text(src)
r = subprocess.run(['xcrun', '-sdk', 'macosx', 'metal', '-c', '-O1', '-fpreserve-invariance', str(p), '-o', str(Path(d) / 'k.air')], capture_output=True, text=True)
self.assertEqual(r.returncode, 0, r.stderr[-2000:])


if __name__ == '__main__':
unittest.main()
19 changes: 19 additions & 0 deletions dm/gfx/tools/dmsh_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,24 @@ def save(suffix, text, meta):
return 'ok', '', base


TG_FENCE_DECL = re.compile(r'\bthreadgroup\s+(?:spvUnsafeArray<[^;&]*?>|[A-Za-z_][\w<>, ]*?)\s*&?\s*(\w+)\s*(?:\[[^\]]*\])?\s*[;,)]')
TG_FENCE = 'atomic_thread_fence(mem_flags::mem_threadgroup, memory_order_seq_cst, thread_scope_simdgroup);'
def tg_fence(src):
"""A store to threadgroup memory followed by a load of another lane's word, with no barrier between them (Ampere compilers rely on lockstep warps for small
scans, e.g. Unreal's GPU radix sort downsweep d032ce5090303e01 at 0x2eb0: STS / LDS [x-4] / STS / LDS [x-8]): for one thread the load and the earlier store do not
alias, so Metal moves the load above the store and reads another lane's old value (Orbitals: Niagara's sorted index list wrong every frame, beams and particles broken).
A simdgroup-scope memory fence after each threadgroup store keeps the order; it is not an execution barrier, so it is safe in divergent code. Only kernels with a
threadgroup array are touched"""
names = {m.group(1) for m in TG_FENCE_DECL.finditer(src) if m.group(1) not in ('operator',)}
if not names: return src
store = re.compile(r'^(\s*)(?:%s)\s*\[[^\n;]*\]\s*=(?!=)[^\n]*;\s*$' % '|'.join(map(re.escape, sorted(names))))
out = []
for ln in src.split('\n'):
out.append(ln)
m = store.match(ln)
if m: out.append(m.group(1) + TG_FENCE)
return '\n'.join(out)

def finish(key, w, j, c1):
name, k = loc[key]
msl = os.path.join(w, key + '.metal'); lib = os.path.join(out, key + '_b.metallib')
Expand Down Expand Up @@ -1560,6 +1578,7 @@ def finish(key, w, j, c1):
try: src = pool_arrays(src) # handles traced to no slot read the pools the replay keeps (see pool_arrays)
except ValueError as e: return 'pool rewrite failed', str(e)[:160], None
src = dmsh_wide.wide_loads(src) # storage words the translator split, read whole again (see dmsh_wide.py)
src = tg_fence(src) # warp-synchronous shared memory: a simdgroup-scope fence after each threadgroup store (see tg_fence)
src = border_emu(src); open(msl, 'w').write(src) # border colours Metal lacks (see border_emu)
first, spill = [], 0
mesh = j.get('mesh_stage')
Expand Down
1 change: 1 addition & 0 deletions docs/agents/symptoms.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ One line per symptom in the [subsystem references](../reference/): what you see
- `Ampere instruction 80d ... (000fc80003fe0000c43211110000780d) is not implemented` for every vertex shader of the game, so nothing draws. → [A guard band cull in every vertex shader (0x80d)](../reference/shaders.md#a-guard-band-cull-in-every-vertex-shader-0x80d)
- `Ampere instruction <op> at 0x… is not implemented`, `F2FP.MERGE_C` or `F2I from a float that is not 32-bit` in the shader build; those shaders are left out and their draws and dispatches skipped. → [Ampere instructions new in Pokémon Pokopia](../reference/shaders.md#ampere-instructions-new-in-pokémon-pokopia)
- single bright dots at thin far geometry (railings, track edges), changing frame to frame as the camera moves, already in the lit picture before anti-aliasing. Most of them come from another cause (below). → [Comparisons with .FTZ](../reference/shaders.md#comparisons-with-ftz)
- a compute shader's small scan or sort over shared memory gives wrong results on the Mac: Niagara's sorted particle list is wrong every frame (broken beams, particles drawn in the wrong order), and one-frame flashes of a view. → [Warp-synchronous shared memory without a barrier](../reference/shaders.md#warp-synchronous-shared-memory-without-a-barrier)
- `Ampere instruction f55 at 0x… (000fe20000000000000000001a0f7f55) is not implemented` in the shader build; those shaders are left out. → [Barrier moves around warp shuffles](../reference/shaders.md#barrier-moves-around-warp-shuffles)
- `Ampere b82 at 0x…: LDC with a bindless bank or an address mode (…00008a00…7b82)` in the shader build; those shaders are left out. → [LDC with the bank in its address register (`.IS`)](../reference/shaders.md#ldc-with-the-bank-in-its-address-register-is)
- 64-bit arithmetic in a shader gives wild results: the 64-bit division behind an exposure average returned 893011 for 218, so the exposure stayed at the end of its range. With only the pair fixed it still gave 2 for 340 / 1. → [IMAD.HI adds a register pair, and IMAD.X its carry](../reference/shaders.md#imadhi-adds-a-register-pair-and-imadx-its-carry)
Expand Down
8 changes: 8 additions & 0 deletions docs/reference/shaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,14 @@ Finding, keying and translating shaders (`dm/gfx/tools/shader_split.py`, `dmsh_b
- **Found on:** [Mario Kart World](../../dm/games/0400C3F00006E000/README.md): its deferred lighting `635061c90d75a8d1` normalises four depth-weighted half-resolution samples by `1 / sum` only where `FSETP.NEU.FTZ` says the sum is not zero. No Switch 1 game has shown the symptom; Maxwell's comparisons follow for the same semantics (the flag is on all of them in the 8 Switch 1 games counted).
- **Check:** `DMSH_TEST_XLATE=<translator> python3 dm/gfx/tests/test_dmsh_ampere_alu.py` (`CompareFtz`, on the game's encoding) and `test_dmsh_maxwell_ftz.py`.

### Warp-synchronous shared memory without a barrier

- **Symptom:** a compute shader's small scan or sort over shared memory gives wrong results on the Mac: Niagara's sorted particle list is wrong every frame (broken beams, particles drawn in the wrong order), and one-frame flashes of a view.
- **Cause:** Ampere compilers drop the barrier in scans whose lanes run in lockstep: Unreal's GPU radix sort downsweep stores a word (STS), loads the neighbouring lane's (LDS `[x-4]`), adds and stores again, with no BAR between them. In the MSL the load and the thread's own earlier store do not alias, so Metal may move the load above the store, and the lane reads its neighbour's old value. A Metal reproduction of the downsweep sorted 12 of 100 keys.
- **Fix:** `dmsh_build.py` `tg_fence` puts a simdgroup-scope memory fence (`atomic_thread_fence(mem_threadgroup, seq_cst, thread_scope_simdgroup)`), not an execution barrier, after each store to a threadgroup array, so it is safe in divergent code. Only kernels with a threadgroup array are touched (about 7.5% of Orbitals' shaders). `tg_spill` runs after it, so a fence on an array moved to device memory orders device memory too.
- **Found on:** [Orbitals](../../dm/games/040004F027560000/README.md#found-on-this-game): the GPU sort downsweep `d032ce5090303e01` (181 fences): 100 of 100 keys sorted with the fence. With only the fenced downsweep swapped into the library the beams were right (by eye); with the fence in every shader, three 80-frame samples of stage 2 had 0 flash views, against 22 in 80 on the build before (which also lacked the split texture / sampler handle fix).
- **Check:** `python3 dm/gfx/tests/test_dmsh_tg_fence.py` (the rewrite, the fence's scope after `tg_spill`, and, with the Metal compiler, that both compile).

### Barrier moves around warp shuffles

- **Symptom:** `Ampere instruction f55 at 0x… (000fe20000000000000000001a0f7f55) is not implemented` in the shader build; those shaders are left out.
Expand Down