Recompiler tests: compare FMA modifiers against Scarlett Layer #1100
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1100
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@akimfomin on GitHub · 2026-11-24 11:34 UTC · original
akimfomin:portbridge/scarlett-fma-oracle→main· +62 −0 · 1 files · 1 commits · openPortBridge 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
@akimfomin on GitHub · 2026-11-24 12:09 UTC · original
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.
@bjarngard on GitHub · 2026-11-24 12:45 UTC · original
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.
@Cecerw on GitHub · 2026-11-24 14:09 UTC · original
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.
@JoaoPauluu on GitHub · 2026-11-24 14:35 UTC · original
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
@akimfomin on GitHub · 2026-11-24 17:52 UTC · original
@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.@PastiiJay on GitHub · 2026-11-24 20:53 UTC · original
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.@akimfomin on GitHub · 2026-11-24 21:08 UTC · original
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
@PastiiJay on GitHub · 2026-11-24 21:22 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 08:22 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.