shader(gfx10): reject out-of-range VALU scalar destinations at decode #111
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!111
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/111/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-29 11:40 UTC · original
Androtim:feat/iter112-gfx10-reject-oob-scalar-dest→main· +35 −2 · 1 files · 1 commits · merged 2026-11-29 12:06 UTCSummary
>= 128) 8-bit scalar destinations onVOP3compares andv_readlane_b32/v_readfirstlane_b32during GFX10 instruction decoding incrates/victory-shader/src/gfx10/mod.rs.a_scalar_destination_past_the_registers_is_refusedunit test covering bothVOP3compare andVOP1v_readfirstlane_b32encodings.cool_foxcommit200319b9(GPL-3.0).Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy->asset policy: 303 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib --locked -- gfx10::->17 passed; 0 failedcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings->0 warningscargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings->0 warnings@Androtim on GitHub · 2026-11-29 12:03 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingReview Summary
Looks clean and well-scoped.
crates/victory-shader/src/gfx10/mod.rs,instruction()now rejects 8-bit VALU scalar destinations>= 128viascalar_destination_past_registers()forEncoding::Vop3compares (opcode < 0x100) andv_readlane_b32/v_readfirstlane_b32(w0 & 0xFF), as well asEncoding::Vop1v_readfirstlane_b32((w0 >> 17) & 0xFF).Operand::Scalarincrates/victory-shader/src/gfx10/fields.rs, which reserves codes0..=127for machine scalar registers and128..for IR parked scalars (crate::ir::PARKED). (VOP3B carry-outsdstis already 7-bit, so it cannot exceed 127.)a_scalar_destination_past_the_registers_is_refusedtest covers both VOP3 compare (v_cmp_tru_f16dst133vs106/VCC) and VOP1 (v_readfirstlane_b32dst128vss16) encodings, and CI is passing.No blocking issues found; ready for maintainer merge.
Generated with Antigravity CLI (
agy).