Shaders: follow paired dword mask copies #702
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!702
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-702"
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?
@Flyander on GitHub · 2026-11-25 05:03 UTC · original
Flyander:fix/paired-dword-mask-provenance→main· +95 −13 · 1 files · 1 commits · openSummary
Track lane-mask provenance when two adjacent
s_mov_b32instructions copy the low and high dwords into an adjacent SGPR pair in the same block. The source pair is reused only when its symbolic mask contains no opaque atoms, so unknown values remain conservative.Adds a positive regression test and a negative test for unknown source values.
Retail shader pack results
Windows 11, RTX 5070 Ti,
VICTORY_HOST_WAVE=32,victory translate --validate --pipelines --list --jobs 8:The previously failing
PS_VoxelizeVisiblityvariant now emits, validates, and creates a host pipeline. Two volumetric water shaders now emit and validate too. Their default D3D12 pipeline creation is still refused on this 32-lane host.Targeted integration with #695
I stacked this commit locally on #695's
e5b43c4head. With globalVICTORY_WAVE_WIDEunset andVICTORY_WAVE_WIDE_ONLY=6871d6e4b3ac9a10,926c46bab3b86bd6, both newly unblocked water shaders create pipelines and validate.Negative control: the unlisted
CS_TransmissionVolumetrics_Tiledshader (5dc3b25986622949) validates but its pipeline remains refused. This confirms the per-hash setting does not enable the wide form for unlisted programs. These are targeted offline checks; no in-game visual comparison was made.Checks
cargo test -p victory-shader --lib --locked: 216 passed, 3 ignoredcargo clippy -p victory-shader --all-targets --locked -- -D warnings: cleanvictory-gpudead-code warning)git diff --check: clean@JRamos1993 on GitHub · 2026-11-25 05:54 UTC · original
Offline check on the retail shader pack: your result reproduces.
victory translate --validate --listover the title's full shader pack on an RTX 5090,main310c6ebagainst this head merged onto it, default settings:AI use: Claude Code with Claude Opus 5.5 ran the pack and wrote this. Nothing from the title is in it.
@Dathinel on GitHub · 2026-11-25 22:57 UTC · original
Synthetic numerical A/B on RTX 3050 Laptop, native wave32. On the local Series S base with the allocator from #561 and the backward permute path from #1166 held fixed, adding only this PR's structure.rs change fixes 18 wrong output words in a wave64 group of 64 threads. Both variants emitted DXIL.
Reproducer: initialize v1 to 42, save EXEC, narrow EXEC to thread IDs below 47, save that mask in s[20:21], restore full EXEC, copy s20 and s21 into s22 and s23 with separate s_mov_b32 instructions, then restore EXEC from s[22:23]. Run ds_bpermute_b32 with address 4*(tid+33) and source tid, restore full EXEC, and store v1 by thread ID. Before: lane 46 reads 47 from an inactive source instead of 0, and lanes 47–63 overwrite the sentinel. After: all 160 words across 16/33/47/64-thread groups match the expected values. The smaller groups also pass before the change.
Run 278 in the public diagnostics records hash 926c46bab3b86bd6 failing mask translation; this test exercises the paired-copy behavior independently. No visual or performance measurement. AI-assisted.
@Luigilt20 on GitHub · 2026-11-26 04:40 UTC · original · edited 2026-11-26 04:53 UTC
I also tested this change in the Neptune tree at LooperSalty/AnyXboxX@c4c93bd. The
structure.rschange applies cleanly. I built the original and patched translation tools and ran the same compute programs through both on Windows 11 using the Windows SDK DXIL validator (dxil.dll 1.9.2602.17).Both focused Rust tests for paired DWORD mask provenance also passed on the isolated Neptune test build. This is an offline compiler result. GPU pipeline creation, water appearance and frame rate were outside this measurement. AI-assisted testing and reporting with Codex.
Full-pack follow-up on the same Neptune build and validator, six CPU threads. Of 26,084 programs, 25,687 → 25,689 emitted and 25,616 → 25,618 validated. The two water compute variants were the only gains. Across the 25,889 individually listed programs, none lost either emission or validation. Another 195 export-stage programs had no individual result in either run. No GPU pipelines were created.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.