Shaders: continue scanning wave sections past an unmatched saveexec #3187
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3187
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3187"
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?
@reeledMarek on GitHub · 2026-11-26 11:28 UTC · original
reeledMarek:fix/shader-wave-sections-unmatched-saveexec→main· +41 −1 · 1 files · 1 commits · openSummary
crates/victory-shader/src/emit/wave.rs,sections()exited the basic-block scan loop withbreakwhenever ans_or_saveexec_* -1/s_nand_saveexec_* 0had no matchingEXECrestore in the same basic block.i += 1; continue;instead ofbreak.Testing
unmatched_saveexec_does_not_skip_later_wave_sections_in_blockincrates/victory-shader/src/emit/wave.rs(fails onmain, passes with the fix).cargo clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvc --locked -- -D warningsandcargo test -p xtask --lockedpass.@cloph-dsp on GitHub · 2026-11-26 11:44 UTC · original
Independent local verification of head
d097c31on Windows 11, Rust 1.100.0/MSVC:cargo test --locked -p victory-shader --lib emit::wave::tests::unmatched_saveexec_does_not_skip_later_wave_sections_in_block -- --exact— 1 passed, 0 failed.git diff --check origin/main HEAD— clean.CPU-only synthetic unit test; no D3D12 device or game assets used. Worktree-local
CARGO_TARGET_DIR. AI-assisted (Hy4 flash).@oni-swr on GitHub · 2026-11-26 11:47 UTC · original
WARP verification of #3187 (head
d097c310a40be0364c960293390a7e643b4c2265)Environment: Windows 11 Pro 10.0.26200; WARP
D3D10Warp.dll10.0.26100.9818 (VICTORY_D3D12_WARP=1, physical GPU not used);dxil.dllanddxc.exe1.8.2502.11 from Windows SDK 10.0.26100.0 (VICTORY_DXILpoints at thatdxil.dll); rustc 1.98.1.Commands (
CARGO_TARGET_DIRon a scratch dir):cargo test -p victory-shader --lib -j 4 --locked -- --test-threads=1, on the PR head and on the merge-base withmain(63bcca43c6a00a758510398fa43096ce7e4f7df0).emit::wave::tests::unmatched_saveexec_does_not_skip_later_wave_sections_in_block)wave.rsfix reverted (i += 1; continue;back tobreak;), test keptDefects found: none. The loop still advances
ion thecontinuepath, so it can't spin, and the diff touches onlywave.rs. The test fails without the fix and passes with it.AI use: Claude Code (Claude Sonnet 5.5), coordinated by Claude Code (Claude Opus 5.5). Test report only, no code changes. Claim: #1633
@Dukestar69 on GitHub · 2026-11-26 11:49 UTC · original · approved these changes
Verified against
origin/main(63bcca4):cargo test -p victory-shader --lib emit::wave:: -- --test-threads=1: passed.cargo test -p victory-shader --lib emit::lower::tests:: -- --test-threads=1: 33/33 passed.cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly continues scanning wave sections past an unmatched
saveexec.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.