Recompiler: emit wrapping packed 8-bit dot products in DXIL #2108
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!2108
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2108"
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?
@wasonidas on GitHub · 2026-11-25 04:34 UTC · original
wasonidas:xcl/direct-packed-dot8-cbc296a→main· +86 −3 · 2 files · 1 commits · openPart of #1269. Emit DXIL
dot4AddPackedfor the three RDNA2 8-bit dot forms with wrapping accumulation. The saturating forms retain the wide sum clamped to the destination range.What is in it
crates/xcl/src/gpu/dxil/lower_wide.rsandops.rsemit the packed intrinsic. Tests check its call counts in normal and compact DXIL, along with wrapping, saturation and the tied accumulator on GPU.Tested
cargo build --workspacesucceeded on main and the candidate. The exact patch tested was committed as42ba73188bdb60afd222270c51187abe8fbef598and rebuilt from that clean head.cargo test -p xcl --lib packed_dot8_ -- --nocapture --test-threads=1passed both new tests on each GPU with 0 failed, ignored or internally skipped. The emission test fails on main with the new tests applied. The existinggpu_packed_math_dots_movreltest also passed on each GPU with direct DXIL enabled.cargo test --workspace --no-fail-fast -- --test-threads=4 --nocaptureon RTX gave 1152 passed, 4 failed, 46 ignored and 27 internal skips. Integrated Radeon gave 1155 passed, 1 failed, 46 ignored and 10 internal skips. Main gave 1150/4/46 on RTX and 1153/1/46 on Radeon, with the same skips and identical fuzz failures (RTX seeds 70, 545, 1019 and 1507, Radeon seed 540). Internal skips are included in Cargo's passed totals and excluded from coverage.cargo test -p xcl --lib --release packed_dot8_translation_diagnostic -- --nocapture --test-threads=1) passed in all eight runs. Across three synthetic 96-dot cases, emitted DXIL was 34.86–39.12% smaller and median translation time fell 37.47–40.07% (48 samples per case and tree).Regression run
Official
scripts/smoke.ps1, 60 s on RTX 5080 with direct DXIL enabled.Main
PR head
Not tested
AI use
gpt-6.2-sol) wrote the implementation and tests, ran validation and prepared this draft. T3 Code / OpenAI Codex (gpt-6.1-sol) independently reran the base and candidate GPU suites.@Parakeet-Wheat on GitHub · 2026-11-25 04:45 UTC · original
NVIDIA RTX 3070 on native Windows, head
42ba731on its basecbc296a: the emission test fails without the change and passes with it, the GPU test passes on both, the whole suite passes, and the smoke pair is within the limits.Tested
610.88, 32-lane waves), Ryzen 5 5600X, 32 GB, Windows 11 26300, Rust 1.95.0stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11, retail 1.0.2.1. Head42ba731(one commit onmaincbc296a), checked out clean. Tests in the debug profile, smoke in release.cargo test -p xcl --lib packed_dot_tests -- --nocapture --test-threads=1:cbc296awith the PR'slower_wide.rsbut its twolower_wide.rshunks above the test module (thev_dot4*arms) reverted: 1 failed, 1 passed.packed_dot8_emits_intrinsics_for_wrapping_formsfails withleft: 0,right: 2(nodot4AddPackedcall with opcode 163).packed_dot8_matches_wrapping_and_saturating_cpu_results_on_gpupasses there too, not skipped: the old lowering gives the same results on this card, so only the emission test tells the two apart;42ba731: 2 passed, 0 failed, none skipped..\scripts\test.ps1(cargo build --workspace, thencargo test --workspace -- --test-threads=4) on42ba731: 1156 passed, 0 failed, 46 ignored, exit 0. SKIPPED, 25: 20 ×no wave64, 3 × per-lane form refused (V_CVT_F16_F32,V_PK_MUL_F16,V_MUL_F16: "its #1426 semantics differ from the console's"), 1 ×no heap windows, 1 × cannot disable the driver cache (Windows Developer Mode required). The fourfuzz_validate_and_gpu_*failures that the PR text lists on its RTX 5080 do not occur on this card.Regression run (
scripts/smoke.ps1 -Game <folder> -Seconds 60, the same title, back to back, menus, no input; unedited).maincbc296a:PR head
42ba731:That is 102 % of
main's frames and 100 % of its peak commit.Not tested
no wave64skips above), a world run (the smoke stays in the menus, so it does not show whether the title reaches av_dot4instruction), the tests on game data (XCL_SAMPLE_*not set).AI use
@JJAutoCompare on GitHub · 2026-11-25 04:46 UTC · original
Tested
PR #2108 was open at
42ba73188bdb60afd222270c51187abe8fbef598. The reused worktree was clean and detached at that SHA before and after the run. The PR discussion contained no prior same-head Arc report.STOR-WINLAB ran Windows 11 Enterprise Evaluation 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust and Cargo 1.100.0 MSVC x64, and DXC/DXIL 1.9.2609.5. The unoptimized build used two Cargo jobs with incremental compilation and debug info disabled.
dot4AddPackedcalls. The fixture used no GPU. It and the prebuild ran outside the mutex.Build and both fixtures exited
0. Each exact filter excluded 1,125 tests. Combined 2 passed, 0 failed, 0 ignored, 0 skipped. The GPU log confirms mutex release.Not tested
Other fixtures and adapters, the workspace suite, retail smoke, negative controls, and release timing.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the checked-in fixtures and wrote this report.@JoaoPauluu on GitHub · 2026-11-25 05:22 UTC · original
A run with vkd3d-proton as the host D3D12. The DXIL goes through dxil-spirv and then the NVIDIA Vulkan driver, not the native-Windows path: this PR's 2 new tests pass, none skipped.
Tested
x86_64-pc-windows-gnu.42ba731as it is (merge base withmaincbc296a), no uncommitted changes. The lib test binary runs under Wine, one test per process.packed_dot8_emits_intrinsics_for_wrapping_forms: okpacked_dot8_matches_wrapping_and_saturating_cpu_results_on_gpu: okNot tested
AI use
@luckyteagirl on GitHub · 2026-11-25 05:24 UTC · original
RX 6800M check on exact PR head
42ba73188bdb60afd222270c51187abe8fbef598(clean detached worktree).Tested: Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver
30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. Debug profile,XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1,XCL_DIRECT_DXIL=1, single test thread.cargo test --locked -p xcl --lib -j 2 packed_dot8_ -- --test-threads=1 --show-output: emission test passed; the new GPU result test failed atrunner::run/CreateComputePipelineStatewith device suspension0x887A0005(1 passed, 1 failed, 0 ignored, no skips). An isolated rerun of the GPU result test failed at the same call.gpu_packed_math_dots_movreltest passed on this same head and adapter (1 passed, 0 failed).v_dot4*lowering arms inlower_wide.rsto base6987e496while retaining both new tests andops.rs. The emission test then failed as expected with 0dot4AddPackedcalls versus 2 expected. The new GPU result test still failed with the same0x887A0005pipeline/device error. This shows the new intrinsic is not required to reproduce this fixture failure on this driver; it does not establish the underlying cause.I did not measure output values because the pipeline was never created. I did not test another driver or adapter, a full workspace suite on this head, or a retail title. The temporary control was not pushed or proposed as a fix.
AI use: OpenAI Codex (GPT-6, exact variant not exposed in this session) ran the tests, prepared the isolated old-lowering control, reviewed the diff, and drafted this report.
@DavidM1911 on GitHub · 2026-11-25 06:03 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
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.