Recompiler tests: compare FMA modifiers against Scarlett Layer #1091
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1100"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by akimfomin on 2026-11-24T11:34:40Z.
PortBridge connected Scarlett Layer's synthetic case 02 with XCL's FMA tests. This test checks all 64 inputs with
abs,negandclamptogether, plus a plain FMA control. PortBridge tracks both projects.Update at
1b3fbc4Rebased onto
930e8b49and kept both the upstream structured-loop test and the original FMA fixture. The focused FMA check passed again on the exact published head on the RTX 4070 Ti SUPER in Wave32 and split Wave64, with no skips. The locked build passed. The workspace run on the identical source tree reported 752 passed, 0 failed and 41 ignored, with four runtime skips (two native Wave64 checks and two checks requiring the D3D12 debug layer).The independent AMD RDNA2 report below covers the earlier
c612b626revision. The Test Lab request tracks native RDNA4 on the current head. Previous tested revision · RDNA4 requestWhat is in it
crates/xcl/src/gpu/recomp/tests.rsusing XCL's test harness and GPU availability checks. The test credits the original Scarlett Layer case.Tested
RTX 4070 Ti SUPER (617.14), Intel i5-13600KF, Windows 11 Pro build 28000, Rust 1.100.0 gnullvm, DXC 1.9.2602.17, debug. Tested base
47efa2ewith the diff from this PR.cargo test -p xcl --lib gpu_fma_f32_abs_neg_clamp_oracle -- --nocapture: 1 passed. All 64 modified results and 64 plain controls matched within1e-5in each of Wave32 and split Wave64.cargo build --offline --locked --workspaceandcargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored. Two of the reported passes loggedSKIPPEDbecause native Wave64 was unavailable:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware. Sample variables were unset.A nonmatching adapter triggered the normal GPU skip path for the added test.
On exact head
c612b626, the focused test passed on RTX 4070 Ti SUPER without skips. With the fixture and expected outputs unchanged, three local translator controls that omittedabs,neg, orclampseparately each failed GPU readback. The clean head passed again after restoring the translator. The fixture exercises the lower clamp bound.bjarngard independently passed the focused test on AMD RDNA2 in native Wave64 at the same head. AMD report · PortBridge case
Not tested
AI use
Imported from ivall/xcl. Originally posted by akimfomin on 2026-11-24T12:09:43Z.
This test is ready for review. The one-file diff was checked on the current base, and the local GPU workspace suite completed with zero failures. Could a maintainer approve the pending Windows CI run when convenient? PortBridge found Scarlett Layer’s reference check and coordinated its replay here. The case record links the original result and the exact XCL test for anyone comparing it on another setup.
Imported from ivall/xcl. Originally posted by bjarngard on 2026-11-24T12:45:36Z.
Test report for head
c612b62(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_fma_f32_abs_neg_clamp_oraclepassedgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested: retail titles, RDNA3/RDNA4.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
Imported from ivall/xcl. Originally posted by Cecerw on 2026-11-24T14:09:30Z.
Tested on NVIDIA Ampere (32-lane waves, split wave64): passes
1b3fbc4(base930e8b4)main930e8b4.\scripts\test.ps1(cargo test --workspace -- --test-threads=4), no local changes; the merge was done locally, no conflictsgpu_fma_f32_abs_neg_clamp_oracle: okgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware)Not tested: AMD, any title (no smoke run).
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T14:35:06Z.
A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.
Tested
x86_64-pc-windows-gnu.1b3fbc4as it is (based on930e8b4), no uncommitted changes. The lib test binary runs under Wine, one test per process (--exact).gpu::recomp::tests::gpu_fma_f32_abs_neg_clamp_oracle: ok, no SKIPPED.Not tested
AI use
Imported from ivall/xcl. Originally posted by akimfomin on 2026-11-24T17:52:51Z.
@eizispark, your Windows RX 9070 XT report confirmed native Wave64 on the hardware this FMA check needs. Would you try the two synthetic checks at this PR's current head
1b3fbc4bc8c3088e69d78f85a2e73f1cccf4df51if that setup is available?PortBridge Test Lab opens the exact revision, instructions and expected output, and can copy the same task to an agent. The earlier AMD run covered RDNA2 at
c612b62. For this revision the useful result is native Wave64 withsplit=falseand 64/64 matching FMA values. A skip reason is useful too. A reply here with the toolchain and output is enough.Imported from ivall/xcl. Originally posted by PastiiJay on 2026-11-24T20:53:37Z.
Native RDNA4 check of exact head
1b3fbc4(PortBridge #14)XCL_ADAPTER=9070(an NVIDIA adapter is also present)1b3fbc4bc8c3088e69d78f85a2e73f1cccf4df51,--lockedEnvironment:
XCL_REQUIRE_GPU=wave64,XCL_NETWORK=0,XCL_ADAPTER=9070Same results with the default adapter (no
XCL_ADAPTER). Control: the wave64-hardware test withXCL_ADAPTERpointed at the NVIDIA card fails as intended ("no wave64, but XCL_REQUIRE_GPU=wave64"), so the requirement was active. Small note:gpu_fma_f32_abs_neg_clamp_oraclestill passes on the NVIDIA card underXCL_REQUIRE_GPU=wave64(it just leaves out the native-wave64 case), so it may be worth making it fail there too. Synthetic inputs only.Imported from ivall/xcl. Originally posted by akimfomin on 2026-11-24T21:08:02Z.
PastiiJay's PortBridge Test Lab report identified a coverage gap. I reproduced it at the same head
1b3fbc4bc8c3088e69d78f85a2e73f1cccf4df51using an RTX 4070 Ti SUPER, NVIDIA 617.14, Windows build 28000.3501 and DXC 1.9.2602.17. Both checks used synthetic inputs andXCL_NETWORK=0.The original FMA test passed even with
XCL_REQUIRE_GPU=wave64on this Wave32-only adapter. Its two available cases gave 64/64 each, and native Wave64 was omitted. The separate hardware probe correctly failed under the same requirement.I tried this test-only change at the end of
gpu_fma_f32_abs_neg_clamp_oracle, using the existing requirement-aware hardware helper:With the change, ordinary mode still passes both 64/64 cases and reports the missing native case. Strict Wave64 fails with the expected
no wave64, but XCL_REQUIRE_GPU=wave64. The separate probe behaves as before. The candidate has been run on RTX only. The published branch is unchanged, so PastiiJay's AMD report still covers its exact head.Codex helped prepare and run this check. PortBridge case and paired test evidence
Imported from ivall/xcl. Originally posted by PastiiJay on 2026-11-24T21:22:44Z.
Thanks @akimfomin for reproducing the gap and following up so quickly, glad the RDNA4 run helped. Happy to run the next AMD check whenever it's useful.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:22:00Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:38Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:48:45Z.
Triage (#1607) – head
1b3fbc4No open or merged PR tests V_FMA_F32 with ABS, NEG and CLAMP together. #1639 covers V_FMA_LEGACY_F32 / V_FMAC_LEGACY_F32 without modifiers, and main has no FMA modifier test. The expected values match the encoding (ABS bit 0 on src0, NEG bit 1 on src1, inline 0.5 as src2). No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.