Tests: cover the v_fma_mix family's halves, modifiers and clamp #1570
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!1570
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1570"
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?
@Rj45n on GitHub · 2026-11-24 17:46 UTC · original
Rj45n:tests/fma-mix-gpu-coverage→main· +101 −0 · 1 files · 1 commits · openSuperseded by #1122, which came first and covers more. I wrote this before seeing that PR;
it also exercises SGPR operands, both wave32 and wave64, the dynamic
S_ROUND_MODErounding andchained
mixlo+mixhi, none of which are here. I ran #1122 on an RTX 5070 Ti and it catches eightdeliberate
emit.rsregressions out of eight (report in that thread). Close this one in its favour.The only thing this test reaches that #1122 does not:
NEG = 0b111andNEG_HI = 0b111, themodifiers set on all three sources at once. If that is worth having, it belongs as two encodings
added to #1122, not as a second test.
What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_fma_mix_halves_modifiers_clamp_and_preserved_half,12 encodings on each of the three MIX opcodes against a CPU reference —
OP_SEL_HI,OP_SEL,OP_SELon a non-f16 source (ignored),NEG,NEG_HI(which isabshere, applied beforeNEG),CLAMPabove 1 and below 0, and the untouched half of the destination.Tested
stable-x86_64-pc-windows-msvc, DXC 1.9.2602.17, debug. No game data.cargo test --workspace --no-fail-fast -- --test-threads=4: 752 passed, 0 failed, 41 ignoredover 18 test binaries.
SKIPPED, 2, both "no wave64":gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.emit.rs(NEG/NEG_HI swapped; NEG_HI not doingabs; abs after neg; OP_SEL taking the other half; OP_SEL_HI ignored; MIXLO writing the high half;
the other half not preserved; CLAMP ignored) are each caught.
emit.rsis unchanged here.Not tested
scripts/smoke.ps1; the diff touches onlytests.rs, whichpr_check.pyexempts.AI use
this description. I checked the diff and every count against the logs.
@DarkPanda69 on GitHub · 2026-11-24 18:11 UTC · original
AMD run with 64-lane waves, which this PR lists as not tested.
Tested: pass, head
f6a575bapplied on its basemain9e3831e, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --lib -- gpu::recomp --test-threads=4:gpu_fma_mix_halves_modifiers_clamp_and_preserved_halfok.Not tested: release profile; Intel; the whole workspace suite.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@DavidM1911 on GitHub · 2026-11-24 19:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
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.