Repository navigation
Shaders: hardware test for the 32-bit scalar logic ops and s_ashr_i32 - #1874
LouisRiverstone wants to merge 1 commit into
Conversation
480da97 to
adc971b
Compare
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 (940d32f), cargo test → 144 passed, 0 failed. GPU execution tests are #[cfg(all(test, windows))] and run only on Windows.
victory-shader. Hardware test for the 32-bit scalar logic ops and s_…: RDNA2-matched GPU test (Windows-gated).
|
Automated triage for the maintainers. This is a test-only change: This inserts at the same place in the file as #1875 and #1876, so whichever merges later needs a trivial rebase. CI: passing. Generated by Claude Code |
Offline measurement on a retail dumpResult: no count change against I merged head adc971b onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Automated triage for the maintainers, second look (a review against current Closing as covered by #2015, whose If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
s_and_b32,s_xor_b32,s_andn2_b32,s_orn2_b32,s_nand_b32,s_nor_b32,s_xnor_b32(SOP2),s_not_b32(SOP1 0x07) ands_ashr_i32(SOP2 0x22) share two arms inlower.rs: then2/nand/nor/xnorforms are built from an inversion and a base op, and the shift masks its amount to five bits. No hardware test ran them.New test
s_logic_not_and_ashr_b32_match_rdna2runs all 49 ordered pairs of seven values (including shift amounts 31, 32 and a value with the sign bit set) through each SOP2 op, and the same values throughs_not_b32. Expected values come from plain Rust operators. Adds a smallsop1encoder next tosop2.Test only, no production change.
Verify:
cargo test -p victory-shader s_logic_not_and_ashr(Windows, hardware GPU or WARP). I type-checked it with clippy forx86_64-pc-windows-msvc, but could not run it locally: the shader test module is Windows-only.🤖 Generated with Claude Code