Repository navigation
Shaders: hardware test for the integer v_min3/v_max3/v_med3 - #1052
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 type Pick = fn([u32; 3]) -> u32;
let ops: [(&str, u16, Pick); 6] = [The alias was removed afterward and is not part of the runtime results. Combined workspace Clippy reports the same issue. Offline and offscreen; no game data, gameplay, native Windows or Wine doctests. Native AI-assisted testing with Codex. |
clippy::type_complexity rejected the inline tuple type that upstream Marvisak#1052 added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Applied as the net diff of upstream PR Marvisak#1052 (head 41b2472), 2 commits: 41b2472,8610ffb8.
|
Ran on RDNA2 hardware through vkd3d-proton on a Steam Deck (not native Windows): AMD Van Gogh, RADV 26.1.99, SteamOS 3.8.28, Proton 11.0-3 (wine-11.0) with its vkd3d-proton 212991fc. Windows MSVC test binary (rustc 1.100.0) built from head
Not tested: native Windows AMD drivers; WARP (this setup has none, so the WARP leg ran on RADV too). AI-assisted (Claude Code, Claude Opus 5.5); no game data. |
|
Tested head
AI-assisted (Claude Code). |
…er v_min3/v_max3/v_med3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 41b2472 on Windows 11, RTX 5070, MSVC:
cargo test -p victory-shader -- --test-threads=1passes on the head (121 passed, 1 ignored). The new test runs all 125 ordered triples through the six integer forms on hardware and WARP.- Merged into our fork: workspace tests and shader tests are clean.
Using values with and without the sign bit (0x7fffffff, 0x80000000 and 0xffffffff) makes every signed/unsigned predicate mix-up fail. The test is a good one.
AI-assisted (Claude Code).
…fied together Merges Marvisak#156 Marvisak#162 Marvisak#168 Marvisak#169 Marvisak#368 Marvisak#379 Marvisak#456 Marvisak#587 Marvisak#990 Marvisak#1021 Marvisak#1048 Marvisak#1052 Marvisak#1053 Marvisak#1095 Marvisak#1142 Marvisak#1190 Marvisak#1211 Marvisak#1223 Marvisak#1259 Marvisak#1293 on top of the bundle of Marvisak#1402 (which is on Marvisak#1319, on main ffe310e), each head unchanged. Hunks that conflicted in emit/lower.rs, emit/valu_tests.rs and emit/diff_tests.rs were merged by keeping both sides (additions next to each other); a PR was kept only if cargo clippy -p victory-shader --all-targets -- -D warnings still passed with it. No instruction name is handled in two places. Marvisak#98 is not in this version: an offline measurement on a retail dump showed it loses 31 programs that validate on Marvisak#1402. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (381 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fixes #800.
v_min3_i32,v_min3_u32,v_max3_i32,v_max3_u32,v_med3_i32andv_med3_u32(VOP3 0x152, 0x153, 0x155, 0x156, 0x158, 0x159) had no hardware test. Only the predicate (SLT/SGTagainstIULT/IUGT) separates them from the float forms.New test
v_min3_max3_med3_integer_forms_match_rdna2runs all 125 ordered triples of{0, 1, 0x7FFFFFFF, 0x80000000, 0xFFFFFFFF}through each opcode. The set puts the sign bit on some values so the signed and unsigned answers differ. Expected values come frommin/max/sort in Rust.Test only, no production change.
Verify:
cargo test -p victory-shader v_min3_max3_med3_integer(Windows, hardware GPU or WARP). I type-checked it withcargo check --target x86_64-pc-windows-msvc, but could not run it locally.🤖 Generated with Claude Code