Repository navigation
Shaders: hardware test for the VOP2 shifts, min/max and logic ops - #1876
LouisRiverstone wants to merge 1 commit into
Conversation
b3eb725 to
136ecd5
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 VOP2 shifts, min/max and logic ops: RDNA2-matched (Windows-gated).
|
Automated triage for the maintainers. This is a test-only change: This inserts at the same place in the file as #1874 and #1875, 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 136ecd5 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 because almost all of it is already covered. Six of the nine operations are on If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
v_min_i32,v_max_i32,v_min_u32,v_max_u32,v_lshrrev_b32,v_ashrrev_i32,v_or_b32,v_xor_b32andv_xnor_b32(VOP2 0x11..0x14, 0x16, 0x18, 0x1c..0x1e) are lowered inlower.rs, but no hardware test ran them. The reversed shifts take the amount from the first operand and mask it to five bits.New test
v_vop2_shifts_min_max_and_logic_match_rdna2runs all 36 ordered pairs of{0, 1, 31, 32, 0x80000001, 0xFFFFFFFF}through each op, in its VOP3 form. Expected values come from plain Rust operators.Test only, no production change.
Verify:
cargo test -p victory-shader v_vop2_shifts(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