Files
VIctory/crates
T
MarvisandClaude Opus 5.5 4a3166e680 Shaders: lanes skipping a compare's region read 0 of its lane mask
A lane mask made by a compare inside a region some lanes skip, joined
after it with whatever the register held on the skip edge (the compiler
reuses the register: a float, a descriptor word), stopped programs on "a
lane-mask join of an untracked mask". The console wave runs one path:
where some lane ran the region, the skipping lanes read their bit of the
compare, 0 (a compare writes 0 for inactive lanes); the compiler merges no
value for them, so where the whole wave skips they hold none either.

A lane-mask phi at a per-lane join now takes false along an edge bringing
data when some edge brings a mask and no lane taking the data edge is in
any of those masks (proved on the lane conditions, `Bools::meet`). Masks
that do hold such lanes (a saved EXEC) stay refused: the console would
give those lanes 1.

Test: `a_compare_mask_joined_with_data_on_the_skip_edge_is_0_there` (the
shape on hardware and WARP; the saved-EXEC variant refused).

Shader list against bcebd1ce: 0 newly failing; newly emitted
`rtdirectionalshadows:CS_RTShadowTrace32TemporalHQ_OneOver4RPP` and
`_OneOver2RPP_TiledFarOnly`, `shadowmask:CS_TraceShadowRays_FullAdaptive`.
The other 13 `RTShadowTrace*HQ` stay refused: their register is reused on
paths that reach a real mask read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4a3166e680 · 2026-11-25 10:24:28 +01:00
History
..