shader: pin the GFX10 operand-field decode rules with unit tests #305
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!305
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-305"
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?
@AnastasisKon on GitHub · 2026-11-27 10:49 UTC · original
AnastasisKon:vibe/gfx10-field-tests-f18f96→main· +577 −0 · 2 files · 1 commits · merged 2026-11-27 11:54 UTCfields.rs had no tests of its own; its rules were only exercised indirectly through whole-program lowering tests. Add gfx10/fields_tests.rs (declared under cfg(test), so the build hash is unchanged) pinning Instruction::fields on hand-assembled words: source codes and the literal, per-opcode dword counts, wave64 lane-mask sizing, the madmk/madak literal positions, the SDWA and DPP16/DPP8 forms, VOP3 source counts and the VOP3B carry-out, and the SMEM/MUBUF/MIMG/DS/VINTRP/EXP field layouts.
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documented