Repository navigation
Shaders: hardware test for the s_cmpk_* scalar comparisons - #1046
Conversation
|
Independent Linux/Wine hardware run of Rust 1.98.1, Windows MSVC target, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton Separately, I combined #1046, #1048, #1050, #1052 and #1053 (all patches applied cleanly) and ran all 14 generated workspace unit/integration test executables with all features. Combined: 345 passed, 5 failed, 6 ignored; matched baseline: 341 passed, 5 failed, 6 ignored. This full-suite result belongs to the combined tree. The five failures match baseline: empty pipeline library (#347), Wine Winsock export (#217), checksum-rejection expectation, nested Cargo fixture build, and Windows xtask launching host Git. Native Linux checks of that tree pass: shader 96 passed / 1 ignored, xtask 4 passed, asset policy clean. Windows-target shader Clippy with all targets/features and Offline and offscreen; no game data, gameplay, native Windows or Wine doctests. Native AI-assisted testing with Codex. |
|
Tested head
AI-assisted (Claude Code). |
mercuryVM
left a comment
There was a problem hiding this comment.
Read only, not built. It conflicts in valu_tests.rs once #1050 and #1048 are applied (all three append at the same spot), so I couldn't merge it into our fork. Please rebase once either of those lands.
From reading: the immediates 0x0005 and 0x8000, against operands around both extension points (0x7fff/0x8000, 0xffff8000/0xffffffff), are what tell the sign-extended forms from the zero-extended ones. s_cselect_b32 on SCC is a clean way to read the result.
AI-assisted (Claude Code).
5f9a0d2 to
006290b
Compare
|
Automated triage for the maintainers. Recommended for a maintainer's look. This adds a test-only hardware/WARP check, Generated by Claude Code |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
144 passed / 0 failed / 2 ignored. Hardware test for the s_cmpk_* scalar comparisons — RDNA2-matched encoding checks; Windows-gated execution, macOS compile green.
Fixes #867.
The twelve
s_cmpk_*compares (SOPK 0x003..0x00e) share a branch withs_cmp_*inlower.rs, but nothing ran them. The signed forms sign-extend the 16-bit immediate and the unsigned forms zero-extend it, which is the part worth pinning.New test
s_cmpk_compares_against_the_extended_immediate: for each condition (eq, lg, gt, ge, lt, le) in both types, with immediates0x0005and0x8000, it runs nine operands around the sign boundaries (0, 4..6, 0x7FFF, 0x8000, 0xFFFF8000, 0xFFFFFFFF, 0x80000000). SCC is read back withs_cselect_b32, and the expected value comes from comparingi64s in Rust. Adds a smallsopkencoder next tosop2.Test only, no production change.
Verify:
cargo test -p victory-shader s_cmpk(Windows, hardware GPU or WARP). I could not run it locally: the shader test module is Windows-only.🤖 Generated with Claude Code