Recompiler: split wave64 compute groups of several waves across dispatches #2097
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!2097
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2097"
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?
@Kalmarv on GitHub · 2026-11-25 03:54 UTC · original
Kalmarv:direct-multiwave-split→main· +275 −19 · 5 files · 2 commits · openPart of #1269. Two commits on
mainb49be18:952e056(the change) andd98d2d4(a test by @WebIdentity1).#2080 splits wave64 programs only when the group is one 64×1×1 wave. In a 120 s title run, the longest cold compute builds are seven cascade-shadow programs with 8×16 and 16×16 groups (2 and 4 wave64s): 70–125k DXIL instructions each, 7–16 s per build, 87.5 s for all seven. They have no guest LDS, barriers or atomics. They are declined only because the wave64-on-wave32 emulation exchanges values between the two halves of each wave through translator-made group-shared counters and slots, and that state has to survive a dispatch boundary. With this change they split like the single-wave case and build in 1.7–2.5 s each.
What is in it
crates/xcl/src/gpu/dxil/module/split.rs:docs/wave64-on-wave32.md: describes the above.dispatch_chain_four_wave64s_preserves_partner_epochs. It runs four wave64s in a 16×16 group, where only the odd guest waves do every exchange, across repeated cuts. It compares every output word with the whole shader and a CPU reference. A single common exchange count for all waves would fail it.Tested
Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, release, DXC 1.9.2609.
Cold pipeline build (measured on
9498862, before the rebase), the seven cascade-shadow programs as the title emits them (byte-identical to the title's cache), fresh process, caches off; split pieces on 16 threads:All seven: 87.5 s whole against 15.3 s split, built one program after another. All 61 pieces passed the DXC 1.9 validator.
The same seven programs on this head, translated again in a fresh process with an empty translation cache for each: all seven still split, into 58 pieces, and the wholes and all pieces pass the DXC 1.9 validator. Since #2126, every carried value keeps its scratch slots for the whole chain, so these chains need 3.6–6.2× more scratch per group than before:
On
maina chained dispatch now runs in slabs of at most 256 MiB of scratch, with 384 MiB over all recordings, so a large grid takes more slabs rather than falling back to the whole pipeline. In the 120 sXCL_DIRECT_DXIL=1run ofd5c2781(see Regression run) the title creates these seven pipelines but does not dispatch them (unlike onmain, no whole-program driver compile is logged for them, so they took the chain path), so their slab counts on the title's grids are not measured.Two larger cascade-shadow programs that
mainleaves whole: this head splits 062468c09af883b9 (1.6 MB of DXIL) into 17 pieces of 34–170 KB and 73fb752d7f62c3a5 (1.8 MB) into 19 pieces; the wholes and all pieces pass the DXC 1.9 validator. Cold driver builds of 062468c09af883b9 on the machine under Tested (driver cache disabled, the chain's root signature, one after another in one job, pieces fromfb5e73a, this change on the previousmain; this head's pieces differ by a few bytes): the 17 pieces take 13.0 s in total and at most 1.43 s each (the others 0.19–0.89 s), against 55.9 s for the whole form in the same job (47.5 s in an earlier job). Builds of the same DXIL vary by 1–17 % within one job, and more between jobs. 73fb752d7f62c3a5 was not timed.Output on the GPU, 6f3a2502a8d6b129 (on
9498862) with a seeded input that reaches its shading store (8×16 group, four hardware waves): the whole and split forms each write 2048 words, 0 different, and both match the expected 256 texels. All six pieces ran (768 invocations against 128). A CPU trace of the signed pieces with their continuation tags shows all 128 lanes doing their work in pieces 1, 2, 4 and 6, and passing through 3 and 5 on the default continuation; the GPU's per-piece times agree (19–20 µs for 3 and 5, 34–418 µs for the others).The new 16×16 test: all 512 output words match the whole shader and the CPU reference.
dispatch_chain_exited_waves_preserve_other_waves_3d, a fixture by @WebIdentity1 (comment), test only. In a 16×16 group on a 2×2×2 grid, guest wave 0 returns at once, wave 2 returns after six exchanges, and waves 1 and 3 take different exchange counts. The whole shader and its 4-piece split both match the CPU calculation on all 2048 output words plus 16 guard words.On
d5c2781, release, with full validation:cargo test -p xcl --lib --release split: 34 passed, 0 failed, 1 ignored, no skips;... dispatch_chain: 11 passed, 0 failed, and the one skip is the native wave64 test, which this card cannot run. Run locally in slabs of 1, 2, 3, 5 and 7 groups withmain'sdispatch_split_by(not part of the commits), both multi-wave tests also match the CPU calculation.Intel Arc A770, measured by @JJAutoCompare (comment) on
9498862: the four-wave test passes, 512 of 512 words for the whole shader and the split chain.AMD RDNA4 (native wave64), measured by @bielfreedom (comment), RX 9070 XT, on
eafe39f: no change there, as expected. Of the title's 2,689 compute programs the same 462 split, with the same piece counts as #2080, because wave64 groups compile as nativeWaveSize(64)and chains are built only for 32-lane hardware waves. Thedispatch_chainandsplit::teststests pass, 6 of 6, with no skips; they build the split-wave64 form explicitly, so it ran on AMD hardware too.The branch was rebased onto
main0829441, which has #2080, #2107, #2126 and the slab scratch (e9ddf17,0829441). The conflicts, all insplit.rs, were with #2126's fixed payload slots (the exchange region now follows them, and the scratch counts every lane of the group), #2107's limit for an oversized component (it now applies to a signal and its wait as one unit) and the slab constants (the scratch index uses the slab's group, as for every chain). The module comment now describes #2126's slots.8524858andd5c2781arebcde3f0and8b2fa0erebased.Rebased again onto
mainb49be18, after #2371. There was one conflict, insplit.rswhere the chain's scratch layout is built: #2371's test-onlyXCL_SAMPLE_SLOT_REUSEstep now runs first, and the exchange region follows the payload slots as before.952e056andd98d2d4are8524858andd5c2781rebased.AMD Radeon RX 9070, regression pair by @Toons29 (comment), Ryzen 7 7800X3D, on
c8a6e3f(this branch before the latest rebase), 60 s of a title on the default route:main568e7db1566 frames and this PR 1631, peak commit 14592 / 14565 MB, no crash or device removal in either.cargo test --workspace -- --test-threads=4(debug) ond5c2781: 1274 passed, 0 failed, 46 ignored. 25 SKIPPED notices: no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows.cargo test --workspace --no-fail-fast -- --test-threads=4(debug, DXC 1.9.2609) ond98d2d4: 1437 passed, 0 failed, 47 ignored. 25 SKIPPED notices: 21 no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows. Both multi-wave tests (dispatch_chain_four_wave64s_preserves_partner_epochs,dispatch_chain_exited_waves_preserve_other_waves_3d) pass.AMD Radeon RX 6600 (RDNA2), warm pair by @thiagocalile (comment) on
d5c2781, each side's second run:main6d12f581563 frames and 16162 MB peak commit, this PR 1565 frames and 16751 MB (103.6 %). Their first pair (18573 against 11934 MB) had the PR's side compiling with a cold cache.Regression run
scripts/smoke.ps1(60 s), the same retail title, one after the other in one job on the machine under Tested, release builds from clean trees, default route. Both runs ran beside a CPU-bound precompile on the same machine (another job of ours, about 40 % CPU and no GPU load), which ran through both of them.mainb49be18:this PR,
d98d2d4:PR vs
main: 1281 / 1259 frames (102 %), peak commit 25422 / 25616 MB (99 %); device removals 0 and crashes 0 on both runs. On the default route neither run splits a program (compute split: 0 programs split), so this pair is a regression check only. On the previous headd5c2781withXCL_DIRECT_DXIL=1(120 s againstmain0829441), the PR run logged 130 programs split and 154 chained dispatches againstmain's 81 and 52, with 1490 / 1318 frames (113 %) and 30484 / 29999 MB peak commit (102 %). Its largest chained dispatch needed 1456 MiB of scratch and ran in 6 slabs of 256 MiB. A third run of that head with a local debug line, not part of the PR, logged each chained program's first dispatch: 9 programs, none of them one of the seven cascade-shadow programs.With
XCL_DIRECT_DXIL=1(the split path), same machine, title and length, one after the other in one job. Each exe had one run on this route just before (a warm-up pair), so this is the second run of each. Two other test jobs of ours ran beside both runs; a third ended 15 s intomain's run.mainb49be18:this PR,
d98d2d4:PR vs
main: 1428 / 1432 frames (99.7 %), peak commit 18002 / 20064 MB (90 %); device removals 0 and crashes 0 on both runs. At 60 s the PR run loggedcompute split: 163 programs split, 1695 pieces built, 0 chained dispatches issued in 0 slabsandmainlogged117 programs split, 1255 pieces built, 0 chained dispatches. In the warm-up pair just before it, the PR issued 9 chained dispatches in 9 slabs (2 MiB of scratch) andmainnone, with 1262 / 1342 frames and 24623 / 23721 MB peak commit.Not tested
XCL_DIRECT_DXIL=1run ond5c2781creates them but does not dispatch them.d98d2d4: in the 60 sXCL_DIRECT_DXIL=1pair under Regression run the PR builds 46 more split programs thanmainbut issues no chained dispatch (9 in the warm-up pair before it).9498862).AI use
OpenAI Codex (GPT-6) wrote the change and the test. Claude Code (Claude Opus 5.5) helpers ran the driver timings, GPU checks, the suite and the smoke pair, and did the rebase onto
b49be18; Claude Code wrote this description and opened the PR.🤖 Generated with Claude Code
@WebIdentity1 on GitHub · 2026-11-25 03:59 UTC · original · edited 2026-11-25 04:01 UTC
Native Ampere check of
9498862415d1bbbd219f3d0fcf92936f297087a4: the three existing chain tests and a new whole-guest-wave early-exit case pass. No runtime defect found in these cases. The attached test exercises participation in the new group-wide checkpoint barriers after guest waves return.Tested
XCL_ADAPTER=3090,XCL_DIRECT_COMPACT=0;XCL_REQUIRE_GPU,XCL_DIRECT_DXIL,XCL_SPLIT_WAVE64unset.cargo test --locked -p xcl --lib -- gpu::dxil::module::split::tests::dispatch_chain --test-threads=1 --nocapture: 4 passed / 0 failed / 0 ignored, zero SKIPPED notices, exit 0. Recompiled in 37.94s; harness 1.02s. These are harness timings, not pipeline-performance measurements.(2,2,2). Guest wave 0 returns immediately, wave 2 returns after six exchanges, wave 1 takes only even-numbered exchanges, wave 3 takes all 12. Per-group/lane inputs differ. The whole shader and five-piece split chain both match the CPU calculation on all 2048 output words plus 16 tail guards. The plan requests 4096 scratch dwords/group, or 128 KiB for this grid; this is the plan's storage requirement, not measured peak GPU memory.Not tested: real title inputs or retail smoke, full workspace suite, native wave64, AMD/Intel, production D3D12.X chain allocation/lifetimes or ExecuteIndirect, arbitrary per-lane exits within a guest wave, cold driver compilation or GPU throughput. This tests the synthetic module/runner path on Ampere, not game compatibility. The original #2080 forward-edge test remains a result of its older exact snapshot.
AI use: Codex (GPT-6) inspected the change, wrote the new fixture, ran native verification and prepared this report.
Portable test-only patch on 9498862
@JJAutoCompare on GitHub · 2026-11-25 04:05 UTC · original
Intel Arc A770 verification for XCL PR #2097
Tested
9498862415d1bbbd219f3d0fcf92936f297087a4before and after the run. The existing worktree was clean and detached at that SHA. I readAGENTS.mdandCONTRIBUTING.mdand confirmed both matched upstream maincbc296ab65a2661a61e3e2da109134bcd5319f60. The live T3 thread list, PR discussion and reviews, and issues #42, #1269, and #2088 showed no equivalent same-head A770 result. The PR discussion did have an RTX 3090 report.26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver32.0.101.9175, and Rust/Cargo1.100.0onx86_64-pc-windows-msvc. Cargo used the unoptimized test profile with debuginfo disabled. The fixture logged DXC1.9.2609.5(01b62ad4) and DXIL1.9.2609.5fromXCL_DXC_DIR.fetch_updatedeprecation warnings.The GPU command ran in a fresh
powershell.exe -NoProfile -ExecutionPolicy RemoteSignedprocess. Within the wrapper,System.Diagnostics.Processran the following executable and arguments, captured stdout and stderr separately, and passed the child exit status to the wrapper.2026-11-25T05:04:09.3691366+01:00. The exclusive Cargo target slot is released. Separate stdout, stderr, and exit status files are beside this report.16 × 16 × 1groups ran four logical wave64s per group, each split into two 32-lane hardware waves. The fixture requires wave32 support and emits wave size 32 for the whole shader and every piece of the direct-DXIL chain. It asserts at least three pieces. All 512 output words from the whole GPU dispatch matched the CPU reference, and all 512 from the split chain matched the whole GPU dispatch.i(zero-based), the CPU reference starts ati + 1. Withtid = i % 256, it adds((tid / 32) ^ 1) + roundfor each exchange from rounds 1 through 12. Odd guest waves take all 12 rounds. Even guest waves take the six even rounds. This checks that the partner exchange and live accumulator survive the dispatch cuts when different guest waves reach them with different exchange counts.Not tested
Other fixtures, workspace suite, retail-title smoke, real-title shader output, cold pipeline timing, other adapters and drivers, native wave64, and the HLSL backend.
AI use
T3 Code / Codex (
gpt-6.2-sol) verified the PR and worktree, ran the stock fixture, and wrote this report.@Kalmarv on GitHub · 2026-11-25 04:08 UTC · original
@WebIdentity1 thanks, your early-exit fixture is in the PR as
ed1b606, test-only, with you as co-author. I also rebased the PR onto #2080's current head,17a984b, so this PR's own changes are now the last two commits.On an RTX 5070 Ti (NVIDIA 610.74, DXC 1.9.2609) all five
dispatch_chainGPU tests pass with no skips. In your fixture, the whole shader and its 5-piece split both match the CPU calculation on 2048 words plus 16 guard words.The description check will fail until I add a regression run made on this head. That run is queued.
AI use: Codex helpers adapted the fixture and ran the tests, and Claude Code (Claude Opus 5.5) wrote this comment.
@JoaoPauluu on GitHub · 2026-11-25 05:21 UTC · original
Same as on #2080, plus this PR's two tests. A run with vkd3d-proton as the host D3D12. 5 of the new dispatch-chain GPU tests crash the test process inside vkd3d-proton.
Tested
x86_64-pc-windows-gnu.eafe39fas it is (merge base withmainf5c5bdf), no uncommitted changes. The lib test binary runs under Wine, one test per process, twice: ated1b606and ateafe39f, with the same result.dispatch_chain_exited_waves_preserve_other_waves_3d: crashes (see below)dispatch_chain_four_wave64s_preserves_partner_epochs: crashes (see below)dispatch_chain_divergent_forward_edges_3d: crashes (see below)dispatch_chain_wave32_live_loops: crashes (see below)dispatch_chain_wave64_live_loops_and_exchange: crashes (see below)dispatch_chain_native_wave64_builds_whole: ok, SKIPPED (no wave64)page fault on read access to 0x0000000000000110, at0x6ffffca2b118. That address is inside vkd3d-proton'sd3d12core.dll, which is loaded at0x6ffffc880000. I traced it fordispatch_chain_wave32_live_loops; the others end with the same exit code. So the host's D3D12 crashes on something the dispatch chain does. I have not found which call.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 05:43 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!
@bielfreedom on GitHub · 2026-11-25 07:10 UTC · original
AMD RDNA4 check of #2097 (
eafe39f): no effect on the native-wave64 path, as expected, and the tests pass.Setup
Results
XCL_DIRECT_DXIL=1, default split target, all 2,689 retail compute programs, with a local logging patch that records each program'sdispatch_chainpiece count.WaveSize(64), and chains are only built for hardware wave 32. So the cascade-shadow programs keep their whole pipeline here, as before.cargo test --release -p xcl --lib -- dispatch_chain split::tests --test-threads=1withXCL_REQUIRE_GPU=1andXCL_ADAPTER=9070: 6 passed, 0 failed, no SKIPPED notices.dispatch_chain_four_wave64s_preserves_partner_epochsanddispatch_chain_exited_waves_preserve_other_waves_3d.Read / inference: this PR is a gain for 32-lane GPUs only. On AMD those programs still build whole. A native-wave64 chain would be a separate change, as discussed on #2080.
AI use: Claude Code (Claude Opus 5.5) ran the census and tests and wrote this. Counts only, no game data.
@Toons29 on GitHub · 2026-11-25 11:25 UTC · original
Regression run of
c8a6e3fbon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon568e7db7, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 104 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.@Kalmarv on GitHub · 2026-11-25 13:40 UTC · original
Status: #2080, #2107 and #2126 are merged. This PR now conflicts with
mainafc5ee8insplit.rs, and the conflict needs real integration rather than a mechanical rebase:make_pieceand the scratch stride have to take #2126's fixed per-value slots, and fit this PR's per-half exchange counters and slots into that layout.The rework comes next, with a new suite and smoke pair. Until then, the current head
8b2fa0eis only tested against the old base. @joeypercia, #2299 sits on this PR and will meet the samemake_piecechange.AI use: Claude Code (Claude Opus 5.5) wrote this status note.
title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1337@thiagocalile on GitHub · 2026-11-25 19:11 UTC · original
Independent test and smoke report for head
d5c2781d15164d49c366fdaa679fd52eab6b7ad4on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).Tested
32.0.21045.29003,XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- split --test-threads=4: 34 passed, 0 failed, 1 ignored (0skipped).Regression run (
scripts/smoke.ps1, release builds,XCL_ADAPTER=radeon)main(2898511):PR
#2097(d5c2781):Not tested: NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.
AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
@upipibi on GitHub · 2026-11-25 18:38 UTC · original · edited 2026-11-25 19:22 UTC
NVIDIA test report for
d5c2781(head as is, base0829441). RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 1265 passed, 0 failed, 46 ignored. The end-to-end title tests pass, and so do the newsplit::tests::dispatch_chain_exited_waves_preserve_other_waves_3danddispatch_chain_four_wave64s_preserves_partner_epochs.mainat0829441(this PR's base) on the same machine, same command: 1263 passed, 0 failed, 46 ignored.hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier) is in a test that isn't on this head's base, so this run doesn't cover it. That test failed onmainitself until #2420 (merged 18:45Z) fixed it, and it does here too on the oldermain:mainat569f0fc, same machine and command, gives 1319 passed, 1 failed, and that test is the failure (added 19:05Z).AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
@ivall on GitHub · 2026-11-25 19:43 UTC · original
Closing and reopening at once, only to get a CI run on today's
main: the failed one ran on amainfrom before #2420, which fixeda_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier. Nothing is wanted from the author. (Claude Code, Claude Opus 5.5, on the maintainer's behalf.)@thehollowedone on GitHub · 2026-11-25 13:18 UTC · original · edited 2026-11-25 19:54 UTC
Independent Windows/NVIDIA run on clean 8b2fa0e, with a separate integration against main 1a0bbe3. Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC and DXC/DXIL 1.8.2502.11, debug.
Tested
cargo build --offline --locked --workspace --jobs 6passed on both builds.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapturegave 1248 passed, 2 failed, 46 ignored on the exact head and 1257 passed, 0 failed, 46 ignored on the main integration. The exact-head cache-marker and UAV-format assertion values match the two failures isolated on the same pinned base for #2080. Both counts include 26 runtime skip notices.cargo test --offline --locked -p xcl --lib <filter> -- --test-threads=1 --nocapturepassed separately fordispatch_chain_four_wave64s_preserves_partner_epochsanddispatch_chain_exited_waves_preserve_other_waves_3don the exact head, with zero skips. The first matched all 512 expected outputs. The 3D early-exit fixture matched all 2,048 outputs and preserved 16 guard words, with four pieces and 4,352 scratch dwords per group. Both cases also passed in both workspace runs.Not tested
Wine, native wave64, retail world load, or driver compilation timing.
AI-assisted. Codex (GPT-6, exact variant unavailable) ran the checks and drafted this report.
Update: exact head integrated with newer main
I retested head d5c2781 after a clean local, uncommitted merge of main e0d93c8. The resulting Git tree is
92070b780a4d547d101dc3127ffc28e5e3a024a8;git diff --checkpassed. This includes the newly merged #2383, #2408, and #2118 changes.On the same RTX 3080 Ti / NVIDIA 621.35 setup above,
XCL_NETWORK=0,XCL_ADAPTER=RTX 3080 Ti, SDKXCL_DXC_DIR, and noXCL_D3D12_DEBUG:cargo build --offline --locked --workspace --jobs 6passed. Both new GPU tests passed individually (1/0/0, zero skips each) withcargo test --offline --locked -p xcl --lib <test name> --jobs 6 -- --test-threads=1 --nocapture. The exited-wave test compared 2,048 output words and 16 guards across four pieces.cargo test --offline --locked --workspace --no-fail-fast --jobs 6 -- --test-threads=4 --nocapturereported 1,423 passed, 0 failed, 46 ignored, with 26 runtime GPU skip notices.I also tried a full
XCL_D3D12_DEBUG=1suite on an earlier integration with main 889ef3e. It failed in the same six test targets on that integration and on untouched889ef3eunder identical settings. The two new GPU tests passed individually with the debug layer enabled. That global-debug run does not establish a #2097 regression.Not tested in this update: retail smoke, native wave64 hardware, Wine, or driver compilation timing. AI-assisted. Codex (GPT-6, exact variant unavailable) ran these checks and drafted this update.
@ivall on GitHub · 2026-11-25 19:59 UTC · original
The diff is read in full, CI is green on
main6d051da, and the code looks right to me. One number to settle before the merge:main, 156 %, where the limit is 125 %, andpresents per 2 sof 60 3 44. The other two pairs are at 100 % (RDNA4, on the olderc8a6e3f) and 102 % (RTX 5070 Ti).main's cache, and the uneven presents look like compiling.@thiagocalile, could you run
mainand this PR (d5c2781) once more, each twice in a row, and post the second run of each? If the peaks are close then, I will merge it.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
maine0d93c8with #2097 (d5c2781) and #2368 (c685e12) merged locally, againstmaine0d93c8. Whole suite: 1423 passed, 2 failed, 46 ignored, 7 SKIPPED (main: 1419 / 2 / 46, 7 SKIPPED). WithXCL_DIRECT_DXIL=1,cargo test -p xcl --lib -- gpu:: hle::d3d12x: 953 passed, 2 failed, 24 ignored (main: 949 / 2 / 24). The two failures arefuzz_validate_and_gpu_1and_3on both.Not tested here: a title run with this PR.
AI use: Claude Code (Claude Opus 5.5) read the diff and the thread, ran the tests and wrote this on the maintainer's behalf.
@GreemSC on GitHub · 2026-11-25 20:00 UTC · original
A memory data point for the 125 % question, from Linux / RDNA3 with caches as earlier runs left them (not cold): this PR together with #2404 did not raise the peak.
XCL_DIRECT_DXIL=1)main68a284a+ our stack, without #2097 / #2404d5c2781) + #2404 (5ca9c23)About 99 % on average. Two caveats: it is the cgroup's resident memory, not the process commit (XCL's commit counter reads 0 under Wine), and #2097 is not measured alone here. Both sides stalled at about the same place in these runs (3–28 s after the first
#101), so they did comparable work.Setup: RX 7900 XT, Mesa 26.2.5 RADV, Linux 7.2, Proton-CachyOS Wine 11, local vkd3d-proton; the stack is #1732 + #684 + #1860 + part of #203 on
68a284a; A pressed every 4 s; 2 runs per side. Our full report is on #2404.AI use: Claude Code (Claude Opus 5.5) ran the runs, read the cgroup samples and wrote this.
@thiagocalile on GitHub · 2026-11-25 20:14 UTC · original
@ivall Here are the back-to-back 60 s smoke runs on AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64, driver
32.0.21045.29003,XCL_ADAPTER=radeon, Ryzen 7 5700X3D, Windows 1110.0.26200.0, Rust1.100.0MSVC, DXC1.8.2502.11, release builds): your guess was right — once warm,main(6d12f58) and#2097(d5c2781) are within 103.6% peak commit (16,751 MBvs16,162 MB) and both lock at60 60 60(1,565vs1,563frames).mainRun 1 (warmup)6d12f5860 60 60)mainRun 2 (warm)6d12f5860 60 60)#2097Run 1 (warmup)d5c278160 60 60)#2097Run 2 (warm)d5c278160 60 60)Run 2 (warm — primary pair)
main(6d12f58, Run 2):PR
#2097(d5c2781, Run 2):Run 1 (warmup) verbatim blocks
main(6d12f58, Run 1):PR
#2097(d5c2781, Run 1):Not tested: NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.
AI use: Antigravity (Gemini 4 Hydrogen) ran the builds and smoke runs and drafted this report; the account owner reviewed and approved posting.
@Kalmarv on GitHub · 2026-11-26 02:39 UTC · original
@bmjask thanks for the review. On your two points:
main's peak commit (16751 against 16162 MB) and 1565 against 1563 frames. In their first pair the PR's side was compiling with a cold cache. The PR is now rebased ontomainb49be18asd98d2d4, with one conflict insplit.rsagainst #2371. The new pair in the description, on an RTX 5070 Ti, is at 102 % ofmain's frames and 99 % of its peak commit. That pair runs the default route, which splits nothing, so it is a regression check only.The whole suite on
d98d2d4(RTX 5070 Ti, debug): 1437 passed, 0 failed, 47 ignored.AI use: Claude Code (Claude Opus 5.5) did the rebase, ran the suite and the smoke pair, and wrote this.
@DavidM1911 on GitHub · 2026-11-26 07:28 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.@O5-7 on GitHub · 2026-11-25 08:14 UTC · original · reviewed
Independent test report for PR #2097 on head commit
eafe39f1a5329b08204cc423238456bedddd8557(eafe39f).Setup
32.0.15.9579)10.0.26100,rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.8.2502.11(Windows SDK10.0.26100.0)Test results (debug)
cargo test -p xcl dispatch_chain -- --nocapture: 6 passed, 0 failed, 0 ignored (dispatch_chain_native_wave64_builds_wholereportedSKIPPED ...: no wave64on this wave32-only GPU)XCL_DIRECT_DXIL=1 cargo test -p xcl dispatch_chain -- --nocapture: 6 passed, 0 failed, 0 ignored (dispatch_chain_native_wave64_builds_wholereportedSKIPPED ...: no wave64on this wave32-only GPU)cargo test --workspace -- --test-threads=4: 1160 passed, 0 failed, 46 ignoredRegression run (clean detached HEAD
eafe39f)(Same clean-machine
maincbc296a60 s baseline:1686 frames (PresentX 1686),60 60 60,0removals,0crashes,14083 MB.)AI use
@bmjask on GitHub · 2026-11-25 20:16 UTC · original · reviewed
No source-level correctness defect found in this review; the wave checkpoint/barrier design and targeted GPU coverage look sound. Merge evidence is still incomplete: the RX 6600 comparison cited in the PR shows 18,573 MB peak commit versus 11,934 MB on main (156%), above the repository 125% regression ceiling. Please provide the requested warm-cache repeat pair or resolve the regression. The title smoke also creates but does not dispatch seven target cascade-shadow chains, so title-grid coverage remains incomplete.
xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2590View 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.