shader(gfx10): reject out-of-range VALU scalar destinations at decode #111
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/111"
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 Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T11:40:13Z.
Summary
>= 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 warningsImported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T12:03:49Z.
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).