Repository navigation
Conversation
Keep control-flow cycles in one pipeline, pass edge-live values through per-dispatch scratch and compile the pieces on the PSO workers. Direct dispatch records the chain with UAV ordering. Indirect dispatch builds the whole form on demand. Assisted-by: OpenAI Codex (GPT-6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The synthetic split fixture declared u2 twice with different coherence flags. Bind its existing memory window and validate the whole fixture before checking the cut. Assisted-by: OpenAI Codex (GPT-6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adjacent lanes previously accessed ef008c0f's continuation data 1,612 bytes apart. Store the tag and each live dword in a separate lane-contiguous plane; transport both halves of i64 values through their own planes. Assisted-by: OpenAI Codex (GPT-6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adopt WebIdentity1's fixture from xcl-dev#2080. Lanes return early, skip ahead over a piece, or run different numbers of loop iterations. Check the whole and split outputs against the CPU model and guard words on a 2 x 3 x 2 dispatch grid for native wave32 and split wave64. Source: xcl-dev#2080 (comment) Assisted-by: OpenAI Codex (GPT-6) Co-authored-by: WebIdentity1 <212448219+WebIdentity1@users.noreply.github.com>
Compile and validate a partitionable CFG through the native-wave64 admission gate. On a wave64 adapter, run the whole pipeline and check its lane count and output. Identify the existing compare(64) case as two hardware waves. Assisted-by: OpenAI Codex (GPT-6)
Keep each integer UAV add in its original block. If its old value is live on a crossing edge, save and restore it through the existing scalar continuation slot. The inter-dispatch UAV barrier orders later reads. Keep programs with a potentially polling loop on one pipeline. Exercise a returned add value and dependent reads against whole-pipeline and CPU results, and cover the polling-loop refusal separately. Assisted-by: OpenAI Codex (GPT-6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Radeon and RTX 5090 verification of exact PR head Tested
Not tested Retail inputs, title smoke, compile-time or GPU timing, and the full workspace suite in this run. AI use OpenAI Codex (GPT-6.2 Sol) ran the tests, checked the logs and wrote this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
AMD RDNA4 data for #2123. On the RX 9070 XT this change splits 2 more retail compute programs (462 → 464 of 2,689). Both are about 125 KB of direct DXIL, in 2 pieces each, and build 1.3× faster split (2.7 s → 2.1 s for the pair). The PR's tests pass on this card. Setup
Method
Results (mean of 2 rounds)
Tests on this card (
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the census, timings and tests and drafted this. Counts and timings only, no game data. |
|
Tested
Not tested Polling-loop refusal, other GPUs or wave modes, workspace suite, retail inputs, title smoke, and performance. AI use T3 Code / Codex (gpt-6.2-sol) ran the fixture, verified the logs, and wrote this report. |
Part of #1269. Stacked on #2080: only the last commit,
bad5f04, is new here.#2080 splits a program with atomics only when they are 32-bit AND or OR whose old value is unused (the sub-dword stores). It declines every other atomic. For a global (UAV) 32-bit add that is safe to cut around. The add still runs exactly once per lane, in the piece where it stands. The UAV barrier between dispatches orders it before every later piece. Its old value is a live value like any other. The title's meshlet-cull program 1ada490879c33c0e (48,191 DXIL instructions; two guest add sites, which become eight DXIL atomic adds across its heap windows) was declined for this alone. With this change it splits into 4 pieces and builds cold in 0.86 s instead of 1.93 s.
What is in it
crates/xcl/src/gpu/dxil/module/split.rs:dx.op.atomicBinOp.i32with ADD is now admitted. Each add stays at its original site and runs once whenever control reaches it, as before. Its old value goes to later pieces in an existing continuation slot when it is live there. The rule against polling is conservative. If a program has an add and any loop (including a self-loop) contains an atomic or a raw-buffer, typed-buffer or texture load, it keeps the whole pipeline, because such a loop could poll memory the add changes. It doesn't try to prove that the load aliases the add or decides the loop's exit.Tested
Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, release, DXC 1.9.2609.
Cold pipeline build of 1ada490879c33c0e as the title emits it (the whole binary is byte-identical to the title's cache, and so are its samplers), fresh process, implicit caches off, split pieces on 16 threads:
2.2× faster. All 4 pieces pass the DXC 1.9 validator, and the chain uses 7,488 scratch dwords per group.
cargo test --release --offline --workspace -- --test-threads=4one3c50c1, the same change before Recompiler: split large direct compute pipelines at CFG edges #2080's README-only rebase ontomainf5c5bdf: 1160 passed, 0 failed, 46 ignored, with 25 skip notices across 15 tests (no native wave64, unsupported per-lane forms, no heap windows). All fivedispatch_chainGPU tests ran. Four passed with their output read back: the newdispatch_chain_carries_uav_add_result_to_later_load, pluswave32_live_loops,divergent_forward_edges_3dandwave64_live_loops_and_exchange.native_wave64_builds_wholeskipped its GPU part as expected on this card. The CPU refusal test passed. Onbad5f04the sixdispatch_chaintests pass again.AMD Radeon (native wave64) and RTX 5090, measured by @nnonno91 (comment) on
bad5f04with DXC 1.8.2502: the sixdispatch_chaintests pass on both. On the Radeon none skip, and the native-wave64 test checks its GPU output. On both GPUs the new atomic-add test matches all 64 expected words for the whole shader and the split chain.AMD RDNA4, measured by @bielfreedom (comment), RX 9070 XT, on
bad5f04: on that adapter this change splits only 2 more of the title's 2,689 compute programs (462 → 464), both about 125 KB in 2 pieces, 2.7 → 2.1 s for the pair. 1ada490879c33c0e is not among them there; why hasn't been checked. Thedispatch_chainandsplit::teststests pass, 6 of 6, with no skips.Regression run
scripts/smoke.ps1, the same retail title for 120 s each, one after the other on the machine under Tested, release builds from clean trees.maincbc296a(the same code as this PR's basef5c5bdf, which changed only the README and its images):this PR,
bad5f04:PR vs
main: 1309 / 1310 frames (100 %), peak commit 30162 / 29215 MB (103 %); device removals 0 and crashes 0 on the PR run, 0 and 0 onmain.Both runs use
XCL_DIRECT_DXIL=1(the split applies only on the direct route) and start with the same private XCL pipeline cache, holding only the pipeline list; the driver's own cache was left alone. The PR run loggedcompute split: 37 programs split, 149 pieces built, 204 chained dispatches issuedat 120 s, all chains issued between 60 s and 70 s. Both runs stop presenting at about 64 s for a reason this change doesn't touch. The log doesn't say whether 1ada490879c33c0e was among the split programs, so this run checks for regressions but doesn't show the build gain.Not tested
AI use
OpenAI Codex (GPT-6) wrote the change and the tests. Claude Code (Claude Opus 5.5) helpers ran the driver timings, and Claude Code wrote this description and opened the PR.
🤖 Generated with Claude Code