shader: per-lane mask joins through joins of masks, or of data a region loads, are refused (22 compute programs) #434
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Tarraga on 2026-11-27T18:04:12Z.
What went wrong
Some compute programs are refused at a per-lane join of a lane mask, with "a lane-mask join of an untracked mask: a value the translation could not make" or "...: data, at a join of several edges". Three shapes are behind it:
no_mask_lane_on_edgealready gives 0 there when the other edges bring tracked masks, but not through joins.s_buffer_load_dword,s_load_dword), and the code after the join reads the register as a mask again. The lanes coming along that edge read no mask from it.On my own dump of the title's containers (19,127, Series S), main
b998bb65refuses 22 compute programs for these. Among them are 3 of the 7 ray-traced shadow traces (CS_RTShadowTrace32*:534b3645dd344ab2,d50c03da6d935d87,ffd9788ba9fec033), which need all three shapes. The other 19 need only the first (0a5ecfee6b79e13b,17af15c4015cb4b6,a53a7977fe762268and others). In runs of our own branch, 10 of the 22 are bound in the world: the prop and tree batch culling, the irradiance cache's shading and the hair shadow masks. I haven't mapped them to the hashes of main's own runs, which differ.VIctory-macOS handles the same shapes (6f8fe556). I plan to port its three arms onto main's join lowering (
fill_phis), with a unit test for each that fails without it, and to sweep the corpus before and after. Shape 2 rests on the same reasoning asno_mask_lane_on_edge.Steps to reproduce
VICTORY_DUMP_ALL_SHADERS=1 VICTORY_DUMP_REFUSED=<folder>on a run, to get a corpus.cargo run --release -p victory-shader --example sweep -- <folder> -j 4 > main.tsvon main.Mac, macOS version and commit
M4 Pro, 48 GB, macOS 27.0, commit
b998bb65Output or log
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Tarraga on 2026-11-27T18:04:20Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T18:04:30Z.
Claimed by @Tarraga. Open a draft pull request with
Refs #434in its description within 24 hours, or the claim expires.