Repository navigation
Conversation
Scalar logic in both widths, 64-bit shifts, carries through SCC, SOPK immediates, bit sets and tests, 16-bit integers, differences, permutes, 64-bit multiply-adds, f16 rounding, the literal multiply-adds, and the integer, 64-bit and f16 compares: the translator lowers them, and the semantics tests had no probe for them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Native Windows result, RTX 5090 + WARP Ran this branch (
All five new tests pass on the hardware adapter and on WARP: 0 model mismatches on either, 0 hardware/WARP differences. Validator: Windows SDK No game data; the title was not run. AI-assisted (Claude Code), run on my own machine. |
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. 125 more instructions covered by hardware checks — big test-coverage addition; the new checks are Windows-gated hardware tests so macOS only verifies compilation (144 green). Hardware run on Windows CI/dev machines is the real proof.
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into Previous verdict for this head: merge candidate. Generated by Claude Code |
Offline measurement on a retail dumpResult: no count change against I merged head 6c88e38 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). |
|
| Probe | Hardware mismatches | WARP mismatches |
|---|---|---|
v_fmamk_f32 v5, v1, lit(0x00000001), v2 |
56 of 144 | 0 |
v_fmaak_f32 v5, v1, v2, lit(0x00000001) |
28 of 144 | 0 |
The other literals (0x40400000, 0xbf800000) and the other new probes match on the hardware too.
Every mismatch fits one pattern. The driver seems to flush the literal to 0 and then fold the + 0 away:
fmamk(v1 * K + v2): the result isv2unchanged. For example,v1 = 0, v2 = -0gives0x80000000where the model wants+0.v2 = 0x00000001comes back as0x00000001where the model wants it flushed to0.fmaak(v1 * v2 + K): the result is the product, with no+ 0applied. For example,0 * -1gives-0(0x80000000) where the model wants+0.
@chemist6913's RTX 5090 with driver 32.0.16.1692 passes all five probes, so this may be fixed in newer drivers. I can't tell from these two runs whether the driver version or the GPU architecture makes the difference. Still, a merged test that fails on a current Ada driver will show up as red in NVIDIA test reports.
AI-assisted (Claude Code). Synthetic tests only.
The translator lowers 125 instructions that
semantics_testshad no probe for (10 of them appear in other test files). This adds five tests that run them on the host GPU against a model of the ISA:more_scalar_alu_matches_the_hardware: logic in both widths with SCC, 64-bit shifts and bit counts, carries and borrows through SCC, SOPK immediates, bit sets and tests, 64-bit compares and selects.more_integers_match_the_hardware: high 24-bit products,v_mad_u64_u32/v_mad_i64_i32,v_sad_*,v_perm_b32,v_swap_b32, the reversed borrows.sixteen_bit_integers_match_the_hardware: add, subtract, multiply, shifts, min and max, with the destination's high half kept.more_floats_match_the_hardware: f16 floor, ceil, trunc and rndne,v_subrev_f16, and the literal f32 multiply-adds over operands whose result is exact.more_compares_match_the_hardware: the i16, u16, i32, u32, i64 and u64 compares, and the f16 ones.All of them pass, so nothing in the translator changes. To see that they can fail, I broke the lowering seven ways (signedness of
v_mad_i64_i32,v_mul_hi_i32_i24and the compares,s_bitset,v_sad_u16,s_flbit_i32,s_addk_i32); each break fails a test.Left out:
v_msad_u8, whose masking rule I could not settle from a public source, andv_mbcnt, which needs the lane's index in the model.Tested on
940d32f, RTX 5080 (driver 620.73.04), MinGW build under Wine 11.22 with vkd3d-proton 3.1, no game data:cargo test -p victory-shader --lib -- --test-threads=1: 243 passed, 4 failed onmain; 248 passed and the same 4 failed here. One of the 4 is fixed by Shaders: floor, ceil and fract read denormals as zeros #1994.x86_64-pc-windows-msvc, also with--all-features: clean.cargo xtask policy: ok. The file stays rustfmt-clean.Not tested on Windows, on WARP (there is none under Wine, so "warp" is the same GPU there) or on AMD.
🌴 AI-assisted, made with Claude Code · from astrosteveo/VIctory