Repository navigation
Shaders: hardware probe for s_mul_hi_i32 - #1364
LouisRiverstone wants to merge 1 commit into
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Hardware test only: s_mul_i32/s_mul_hi_u32/s_mul_hi_i32 (SOP2 0x26/0x35/0x36) with wrapping and 64-bit high-half references. Encodings match the ISA. Windows-only execution. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main ffe310e, cargo test -p <crate> --locked. Shader execution tests (valu_tests/host/diff_tests) are #[cfg(all(test, windows))], so macOS covers lowering/decode/unit tests only. 96 passed, 0 failed.
|
First GPU run of this PR's test that I could find, on an AMD GPU under Proton on Linux:
This is RADV, not AMD's Windows driver, so it adds to a Windows run rather than replacing it. Synthetic tests only, no game files. AI-assisted (Claude Code, Opus 5.5); every run was on this machine. |
|
Native Windows run on AMD RDNA2: RX 6750 XT (RDNA2, gfx1031), AMD driver 32.0.21045.29003, i5-13400F, Windows 11, Rust 1.98.1 MSVC. Head 26f7098 on main ffe310e (clean merge).
Synthetic tests only, no game files. AI-assisted (Claude picked the PRs and wrote the batch script; I ran it on my machine). |
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 → 96 passed, 0 failed. Hardware/valu tests are #[cfg(all(test, windows))] and only run on Windows; macOS covers structure/lowering unit tests.
Hardware test for s_mul_i32/s_mul_hi_u32/s_mul_hi_i32 (s_mul_and_s_mul_hi_match_rdna2).
26f7098 to
5a5cec0
Compare
|
Automated triage for the maintainers. Merge candidate. The PR is now what the last triage asked for: one CI: passing ( Generated by Claude Code |
5a5cec0 to
21dcdab
Compare
|
Automated triage for the maintainers, second look (a review against current Closing as covered by #2015, which adds the same probe (opcode 0x36, same model) among many others and was shown to fail when the signedness of the lowering is broken. The probe here is right and passes. If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
Adds
sop2_probe(0x36, ...)fors_mul_hi_i32(signed 64-bit product, high dword) next to the existings_mul_i32ands_mul_hi_u32probes inscalar_probes. Reduced after triage: the other two ops are already covered on main.