Repository navigation
Conversation
… form A split compute program keeps its whole form for what its pieces cannot run (an ExecuteIndirect, a dispatch without scratch). The runtime builds that form under the dispatch-chain root signature (Chain::whole, chained, .chain.pso) on the title's thread the first time it is needed. xcl-dev#2338 prebuilds only the pieces, so every whole form was still compiled cold in the title. On a retail title (RX 9060 XT, XCL_DIRECT_DXIL=1), after a full compute precompile without the whole forms, the title's submit thread built 3-6 of them (0.8-1.15 MB of DXIL) at its world start, 41-55 s each, presenting nothing meanwhile; with them prebuilt, those binds loaded the blob in 3-4 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
|
Independent Windows integration check of Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug,
The merged #2371 path tries an offline whole PSO with the ordinary compute root signature; this PR also prepares the chain-root whole form used by AI use: Codex (GPT-6.2 Sol) reviewed the combined paths, ran these tests on this machine, and drafted this report. AI-assisted. |
|
NVIDIA world data for this PR: RTX 3090 (driver 621.40), retail 1.0.2.1. With this PR's precompile the cold compute builds on title threads at the world start went from 30 to 0, and the title presented in the world until the next wall (#2403). One run per state; the runtime is the same Setup
Result
So on NVIDIA, as in your RX 9060 XT runs, the whole forms were what the title waited on at the world start once the pieces were cached. Not tested: more than one run per state; AI use: Claude Code (Claude Opus 5.5) ran the precompiles and the runs on my PC, read the logs and drafted this. |
|
AMD Windows cost of this PR's offline pass: on an RX 9070 XT, the six whole forms in a 26-program set take 17–34 s each in AMD's driver. That doubles the Setup
The six extra pipelines are the whole forms of the six split programs in the set, built with
The other 76 pipelines (56 pieces and 20 unsplit programs) took 120.7 / 110.0 s with this PR against 109.6 / 110.5 s on Not tested: a title run and the reuse of these blobs at run time (I ran with the disk cache off). AI use: Claude Code (Claude Opus 5.5) built the binaries, ran the measurements and wrote this report; I posted it. |
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
xcl shaders --precompile --pipelinesnow also builds a split compute program's whole form under the dispatch-chain root signature (.chain.pso), next to its pieces. Part of #1833, follows #2338.A split program keeps its whole form for what its pieces cannot run (an
ExecuteIndirect, a dispatch without scratch). The runtime builds it inChain::wholewithchained = true, on the title's thread, the first time it is needed. #2338 prebuilds only the pieces, so every whole form was still compiled cold there.On a retail title (RX 9060 XT,
XCL_DIRECT_DXIL=1, all compute pipelines precompiled except the whole forms), the title's submit thread built 3–6 of them at its world start, 0.8–1.15 MB of DXIL each, 41–55 s each, and presented nothing meanwhile. With the whole forms precompiled, those binds loaded the blob in 3–4 ms and no compute pipeline was built cold after the world start. #2404 avoids the whole form for anExecuteIndirecton the GPU side; this covers the whole form wherever the runtime still builds it, and works with or without #2404.What is in it
crates/xcl/src/shaders.rs: after the pieces,make_with_cache_pathbuildsc.dxilwithchained = true(the cap and the cached-blob reuse apply as for a piece). The unit test now expects the whole form's.chain.psotoo, checks that the runtime's chain root signature accepts it, and reuses all three blobs on the second pass.crates/xcl/tests/gpu_compute_e2e.rs:offline_split_compute_pipeline_is_reused_by_a_second_processcounts the whole form's blob with the pieces' (5 pieces + 1 whole form).Tested
cargo test --workspace --no-fail-fast -- --test-threads=4at3567b2e: 1421 passed, 2 failed, 46 ignored. The two failures,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722) and_3(seed 1599), fail the same way onmaine1d84b7on this card; they are not touched here.d3d12SDKLayers.dll(3),f16_programs_on_the_gpuandf32_programs_on_the_gpuper-lane forms (6), no heap windows (1).main06c9f55+ an equivalent commit, plus local diagnostics and a local switch that leaves compute programs of 1.2 MB of DXIL or more unbuilt), not on this branch.Regression run
The 60 s smoke run ends before the world start, so it does not reach the whole forms; the numbers above the blocks come from the longer runs.
Not tested
AI use
🤖 Generated with Claude Code