Repository navigation
Shaders: align GFX10 opcode tables with RDNA2 ISA and add synthetic tests - #1301
geiyiliyabumo wants to merge 1 commit into
Conversation
|
Independent check on Linux of head |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 106 passed, 0 failed. Execution/valu tests are #[cfg(all(test, windows))] and only run on Windows; macOS covers lowering/structure/IR unit tests.
Aligns the GFX10 opcode tables with the RDNA2 ISA and adds synthetic decode tests: table reachability/unique mnemonics, VOP3 aliases only where a long form exists, older-generation opcodes reserved, fused/signed dot decode, VOP3 interpolation fields, SOPK/VOP2 literal boundaries, buffer widths across split fields. Exactly the kind of table audit the translator needs.
|
This PR (head cacb8d2) merges cleanly onto the new main (70564ae) but breaks two of main's new tests there: What they report: The table renames VOP2 0x006 So after a rebase, the lowering (and the semantics tests' expectations) would need to follow the renames. That includes deciding whether the Unit tests only, no game files. AI-assisted (Claude; I ran it on my machine). |
|
Measured offline on the title's shaders, as in #1247 (
On The |
Summary
Audits all 19 GFX10 opcode tables in \crates/victory-shader/src/gfx10/opcodes.rs\ against AMD's RDNA2 ISA specification and cross-checks synthetic instruction words with LLVM \gfx1030:
Verification
AI-assisted; synthetic tests only, no game files.