Recompiler tests: GPU check for v_dot4c_i32_i8 #748
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!748
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-748"
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?
@13hourstilliland on GitHub · 2026-11-24 04:33 UTC · original
13hourstilliland:recomp-tests-dot4c-i32-i8→main· +38 −0 · 1 files · 1 commits · openAdds a GPU test for the RDNA2 instruction
v_dot4c_i32_i8(VOP2, the destination is the accumulator), whichemit.rstranslates withdot4add_i8packedbut no test runs. Test only, no runtime change.What is in it
gpu_valu_dot4c_i32_i8incrates/xcl/src/gpu/recomp/tests.rs, aftergpu_global_atomics_and_sub_dword_access(away from the lines open PRs add to): run as wave64 where the adapter has it and as wave32 everywhere (gpu_waves), 32 rounds of per-lane operands, half random and half edges (bytes of0x7Fand0x80,0xFF00FF00,0x00FF00FF,0x01020304, and accumulators at 0,i32::MAX,i32::MINand -1 so the sum wraps), each lane compared with the RDNA2 definition computed on the CPU: the four signed byte products added to the old destination, wrapping, with no clamp (LLVMVOP2Instructions.tdties$vdstto$src2and maps sdot4 to the e32 form only without clamp).wave32, 842 wrong (V_DOT4C_I32_I8: 842)); with the accumulator replaced by 0 inemit.rsit fails (wave32, 973 wrong (V_DOT4C_I32_I8: 973)). Those edits are not in the PR.v_ashrrev_i32,v_lshrrev_b64andv_ashrrev_i64are covered by the open #703 and #682, so they are not here.Tested
stable-x86_64-pc-windows-gnu(MinGW linker), DXC 1.9.2609.5, debug build, commitbf9f34b8c2(on main64b3f35599)cargo test --workspace --no-fail-fast -- --test-threads=4, run in the interactive desktop session: 702 passed, 0 failed, 41 ignored (lib: 661 passed, 0 failed, 21 ignored;e2e3 of 3;gpu_valu_dot4c_i32_i8ok).main64b3f35599on the same machine: 701 passed, 0 failed, 41 ignored (lib: 660 passed, 0 failed, 21 ignored)SKIPPED(no wave64 on this GPU):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested
stable-x86_64-pc-windows-msvc): built with the GNU toolchain only.crates/xcl/srcruntime file changes).AI use
@MesshM on GitHub · 2026-11-24 04:39 UTC · original
Test run of
bf9f34b8c2863572ca57bf18bf0272d4323888efon AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 702 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 661 passed, 0 failed, 21 ignoredSKIPPED;gpu_valu_dot4c_i32_i8passes, as wave64 and wave32.Review: The reference adds the four signed byte products to the old destination with wrap-around, which is
v_dot4c_i32_i8's definition. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@futurepro62 on GitHub · 2026-11-24 04:46 UTC · original
An NVIDIA run, since the report above is on RDNA4 (native wave64). Tested exact head
bf9f34b(on its basef4ce27c).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 702 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.gpu::recomp::tests::gpu_valu_dot4c_i32_i8 ... ok.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 06:03 UTC · original
Empirical test report (
bf9f34b8)Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09).dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).bf9f34b8c2863572ca57bf18bf0272d4323888ef, clean detached checkout. Cargo test profile, unoptimized, with incremental compilation and debug info disabled.Commands and results
cargo test -p xcl --lib --no-run --message-format=json-render-diagnosticsexited 0 before the GPU lock was acquired. The build emitted one deprecation warning forAtomicU32::fetch_updatein XGameRuntime.With
XCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1, ran the Cargo-produced library test executable insideInvoke-ArcTest.ps1:The focused run exited 0. 1 passed, 0 failed, 0 ignored, 0 GPU skips, 681 filtered out. Libtest reported 0.60 s. The log records acquisition and release of the Arc lock.
Observed behavior
The translated shader ran with DXC 1.9.2609.5. Across 32 rounds per wave configuration exercised by the fixture, every checked lane matched the Rust reference for signed packed-byte multiplication and addition to the previous destination with 32-bit wrapping. The fixture mixes pseudorandom operands and edge values. The log does not identify the wave sizes exercised.
Not tested
Full GPU workspace suite and game smoke runs were omitted. The run was limited to the Arc A770 and the exact PR test.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr748-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 11:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)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.