Iter 23: Fix scalar code bounds panic in ir::unspill #8
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
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
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
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/Androtim--MiniVI!8
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/8/head"
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?
@Androtim on GitHub · 2026-11-28 02:07 UTC · original
Androtim:feat/iter23-ir-unspill-scalar-bounds→main· +18 −1 · 1 files · 1 commits · merged 2026-11-28 13:16 UTCSummary
Ports
fxceless/victory-forkcommit2f3f399(8ddcf35, PR #1495backport/shader-scalar-code-bounds) intocrates/victory-shader/src/ir.rs:usedinunspill()from[false; 128]to[false; 256]so scalar destination codes>= 128(constants / special codes) do not panic with index-out-of-bounds during scalar parking.ir::tests::scalar_codes_past_the_registers_do_not_paniccovering both wave64 and wave32 opcodes.Rig Specs Tested On
33,304,932KiB)10.0.26300/ NVIDIA Driver32.0.16.2124Run Settings & Profile
feat/iter23-ir-unspill-scalar-bounds(source-level shader IR panic fix; no runtime gameplay playtest conducted for this single-file IR fix)VICTORY_*Overrides: N/AMeasurements & Verification
0(ir::tests::scalar_codes_past_the_registers_do_not_panicpassed)cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policycargo +1.98.1-x86_64-pc-windows-gnu test -p xtaskcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warningscargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warningscargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader -- ir::tests@Androtim on GitHub · 2026-11-28 02:11 UTC · original
Verification complete for PR #8 (
2628b0f):@Androtim on GitHub · 2026-11-28 03:02 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingReview Summary
Clean, minimal panic fix in
crates/victory-shader/src/ir.rswith CI passing.ir::unspill): Atir.rs:336,Reg::S(c) => used[usize::from(c)] = trueindexesusedwith anyu8scalar code emitted byeffects()/operand()(which allows codes>= 128, e.g., constants/special codes or>= PARKED). Expandingusedfrom[false; 128]to[false; 256]prevents an index-out-of-bounds panic for all possibleu8codes.usedis only read atir.rs:544-546for indices(0..105).chain(108..=123), so programs that did not previously panic produce identical IR and shader output.ir::tests::scalar_codes_past_the_registers_do_not_panic, exercisingv_writelane_b32parking alongside wave64 and wave32 instructions with scalar codes past 127.Automated triage review; not a formal maintainer approval.
Generated with Antigravity CLI (
agy).github-bot referenced this pull request2026-12-01 22:43:57 +00:00
github-bot referenced this pull request2026-12-02 16:11:33 +00:00