Shaders: --precompile --pipelines also builds a split program's whole form #2541
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2551"
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?
Imported from ivall/xcl. Originally posted by DTsordas on 2026-11-25T22:43:00Z.
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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T22:54:03Z.
Full-suite run, since this PR has no test report yet. Tested exact head
3567b2e(on its basee1d84b7).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1411 passed, 0 failed, 44 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,dispatch_chain_native_wave64_builds_whole,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1422 passed, 0 failed, 46 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on maine1d84b7too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T23:06:55Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T00:57:52Z.
Independent Windows integration check of
3567b2emerged locally, without a commit, onto currentmain b49be18(#2371). The merge had no conflicts.Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug,
XCL_HEAP_WINDOWS=1.cargo test -p xcl --test gpu_compute_e2e -- --nocapture --test-threads=1: 7 passed, 0 failed, 0 ignored, no skips. Bothoffline_split_compute_pipeline_is_reused_by_a_second_processand the newly mergedsplit_compute_prefers_the_offline_whole_pipelinepassed.cargo build --workspace: passed.cargo test --workspace --no-fail-fast -- --test-threads=4: 1,435 passed, 0 failed, 47 ignored; 24 GPU skip notices.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
Chain::whole. The combined synthetic tests pass on this adapter. Not tested: a clean PR-head retail smoke pair on the new base, cold driver-cache time, AMD hardware, or title world entry. This local uncommitted merge is integration evidence, not a replacement for the PR's required rebased-head regression blocks.AI use: Codex (GPT-6.2 Sol) reviewed the combined paths, ran these tests on this machine, and drafted this report. AI-assisted.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-26T02:20:43Z.
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
mainbinary throughout, only the cache differs.Setup
main08db802(+ #2590, which is not called at run time),XCL_DIRECT_DXIL=1 XCL_DRED=1 XCL_NETWORK=0 XCL_ACTIVITY=1, 480 s, A pressed every 4 s from 20 s, no driver profile for the exe.xcl shaders … --precompile --only cs --pipelines --used-onlywithXCL_DIRECT_DXIL=1, first frommain, then from this PR (3567b2emerged onto08db802, no conflicts). This PR's pass added 117 whole-form blobs (.chain.pso) next to the pieces, 2,666 pipelines, 0 refused.Result
mainhuge, ungated here, about 387 s in the driver)0x887a0005, DRED page fault at VA 0x0 with no allocations): the #2403 shader-heap limit, with no build in flight--used-onlylist (29 and 17 cold builds). Precompiling again after each run covers them. I did not check whether those were whole forms.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;
--precompilewithout--used-only; other cards; the heap-windows path.AI use: Claude Code (Claude Opus 5.5) ran the precompiles and the runs on my PC, read the logs and drafted this.
Imported from ivall/xcl. Originally posted by bielfreedom on 2026-11-26T03:10:29Z.
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
--precompile --pipelinesdriver time for the set (about 110 s → 230–247 s) and raises peak memory from 1.47 to 2.17 GB. All whole forms built; none was refused. If they would otherwise be built on the title's thread at world start, as in the description, that is time moved out of the title. It is the right trade, but on AMD the offline pass gets noticeably longer.Setup
CreateComputePipelineStatetime and result to a file:mainb49be18;3567b2emerged onto it.xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines, limited to 26 large compute programs, with:XCL_DIRECT_DXIL=1, switch windows,XCL_PSO_DISK_CACHE=0;main, PR, then PR,main).mainThe six extra pipelines are the whole forms of the six split programs in the set, built with
chained = true:84eee477d68b6fdfed2f8fa2e996c6a6b3618a0fd76af79cc6f8ee0f53ed5709d8435f454a510270b5cc5a57995e563bThe 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
main. The first round's extra 10 s looks like load on the machine. Times on this machine run about 30 % higher today than in my earlier reports because it is busier; the two builds ran interleaved.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.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T05:13:29Z.
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).gpu_suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.No new test functions in this PR (precompile plumbing); the suite above is the confirmation on this lane.
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.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-26T11:13:08Z.
On
nvidia-devaf2cecc4(RTX 3090), this PR merges cleanly. Without it, the title stops about 1 s after the world start, blocked inChain::whole. With it, the title keeps submitting work to 316 s, and 201 of 231 large compute builds load a precompiled driver blob. 30 whole forms are still built cold, and the device is removed at 341 s. Details and dumps: https://github.com/xcl-dev/xcl/issues/2741#issuecomment-7190435995.AI use: Claude Code (Claude Opus 5.5) ran the runs and drafted this; checked by me before posting.
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-26T14:04:07Z.
Test report for #2551 on RTX 5070 Ti (Windows 11): no cold compute builds of whole forms after the world start in two runs, but both runs were cut by my RAM guard and one still stopped presenting for 32 s
This adds a 5070 Ti (NVIDIA profile, 1024 MB shader heap) next to the RTX 3090 report above. Two runs after the PR, three before.
Tested
3567b2efdc94617de71e50be77e107991a6bd41c(still the head when I checked), merged locally and cleanly (6843ee87) onto my base333eb126=nvidia-devaf2cecc4+ #2590 + #684. "Before" is333eb126without the PR. Neither is the PR's own base (maine1d84b7). Release builds.9cc6a39e), Series X profile, 300 s requested,XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GFX_PSO_WAIT_MS=200 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PREPARE=0, A pressed at 15-100 s. Before each run:xcl shaders <pack> --precompile --only cs --pipelines --used-only. Memory guard on (free RAM < 1 GB, commit > 70 GB)..chain.psoblobs; 118 and 42 of those have 700 KB or more of DXIL in their file name, which I take as whole forms (inferred, not counted by the tool). Their own output was overwritten by later precompiles, so I have no "pipelines made" count for them.Not tested
--used-onlyonly knows programs that earlier runs reached, and x9 reached new ones.cargo testrun, no AMD, no run on the PR's own base.AI use
Imported from ivall/xcl. Originally posted by imnicho on 2026-11-26T14:54:37Z.
RTX 5080 16 GB on a small PC (4 cores, 16 GB RAM),
nvidia-devaf2cecc4: with the whole form of every split program in the cache, no compute pipeline was built cold after the world start. 168 were created there, all from a driver blob, 165 of them whole forms. Building all whole forms took 4 h 17 min on this machine. One run per state.This adds a third NVIDIA card to the two reports above, and the cost of the pass without
--used-onlyon a slow machine.Tested
nvidia-devaf2cecc4+ #684 + the pool size of #2630. Not this PR's commit. A local change makes the same call for the same blob: inprecompile, after the pieces,make_one(&c.dxil, &c.samplers, true, None)for a program of two or more pieces, when the process runs as a worker of the launch preparation. So this measures the whole forms being in the cache, not this PR's diff.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_TEXTURE_SAFE_READ=1 XCL_PSO_AHEAD=0 XCL_PREPARE=0 XCL_DRED=1 XCL_NETWORK=0, scripted A presses.--precompile --only cs --pipelinesover every compute program of the pack, no--used-only: 2,689 compute programs, 805 of them split into 8,073 pieces, 0 refused.0xc0000005in title code at 424 sCost of the whole-form pass here
.chain.psofiles.For
nvidia-devxcl runonaf2cecc4builds the whole form only in its in-process path (shaders.rs, thestartup.is_some()test afterp.make(&c)). Its worker processes, which are the default, run--precompile --only cs --pipelinesand leave it out. With this PR's change inmake_with_cache_paththe workers build it too.Not tested
main, AMD.XCL_GFX_PSO_WAIT_MS=100 XCL_PSO_IMAGE_SKIP=1 XCL_PSO_DISK_CACHE_MIN_MS=0 XCL_TWO_PASS_MB=2048and the 2,048 MB shader-heap profile of #2590, and the "before" run had neither. So only the compute rows can be put down to the whole forms.AI use
Claude Code with Claude Fable 5.2 wrote the local change, ran the passes and the runs, read the logs and wrote this text.
Imported from ivall/xcl. Originally posted by PACDevX on 2026-11-26T19:41:03Z.
A follow-up from an RTX 3090 (driver 621.24, Windows Sandbox vGPU) on the NVIDIA integration base
eae015021, using 16 heap windows and split wave64.I checked six first-demand stalls against the sealed CLI precache. Each shader's translated record and all 67 split-piece PSOs were present. All six whole chain-ABI PSOs were absent. These six driver compiles took about 82 seconds total during the loading interval. A later sample of 40 whole variants showed the same missing-blob pattern.
With the recovered driver blobs in a private six-key cache, I exercised an opt-in backport of this PR. On the same cache, the normal
--used-onlypath loaded 67 PSOs. Adding--with-chain-wholeloaded 73. Both runs had zero refusals and zero outstanding duplicate work. This checks the exact offline/runtime keys and coverage. The end-to-end loading effect is still being measured. Opt-in backportCredit to @DTsordas for the whole-variant precompile change. AI assistance: OpenAI Codex.
Imported from ivall/xcl. Originally posted by kole07139 on 2026-11-26T19:44:23Z.
RTX 3070 8 GB (driver 617.42), on a tree that has #2404 (two items of your "Not tested": NVIDIA, and together with #2404): with this PR's whole forms in the cache, the title kept presenting to the end of two 420 s runs, and one of them loaded 55 whole forms from this PR's blobs. Without them, one of two runs stopped presenting at 181 s, 99 s after world entry, while whole forms were built cold. With the PR, no compute pipeline was built cold after the world start. The next cold builds are graphics pipelines from about 300 s, up to 12 s each.
ListX #101xcl shaders <pack> --precompile --only cs --pipelines --used-onlyon the cache the earlier runs used (1404 used pipelines). It took 26.3 min at 15 threads, with peak process commit 4.4 GB. Result:pipelines made on the GPU 3886, refused 0 | pipelines loaded from the driver cache 3579. It added 304 blobs, one for each of the title's split programs.driver blob absent, one after another on the title's threads. The first two took 28.2 s and 20.2 s. Presents stopped at 181 s and did not resume.driver blob absent. Z2c asked for 61 compute pipelines of 700 KB or more. 55 of them came from blobs this PR added (driver blob supplied; same DXIL sizes, none in the cache without it). Without the PR those would have been built cold, like Y4's six at 17–28 s each. Z1c asked only for the six big ones every run has, which were already cached. The slowest compute pipelines took 0.7 s and 4.6 s, of 28 KB and 181 KB of DXIL. The 16 and 20driver blob absentlines are all graphics pipelines. The runtime still loggedits whole form is built for the next onesonce per run at about 130 s. Its build took no measurable time, since the blob was there.Tested
main6d12f58+ #2404, #2097, #684, #751, #1803, #2229, #2384, #1975 + #2590 + #2753, with and without this PR at3567b2e, which applies cleanly. The NVIDIA shader heap was 1 GiB in all four runs (#2590).cargo test -p xcl --lib pipeline_cap(3 passed, 0 failed, 0 ignored) andcargo test -p xcl --test gpu_compute_e2e offline_split(1 passed, 0 failed, 0 ignored), on the tree with the PR.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50, A pressed every 5 s. Each run had its own copy of one cache snapshot: the same warm DXIL and driver blobs, plus this PR's whole forms for Z1c and Z2c.Not tested
--used-only; runs longer than 420 s; more than two runs per arm. Y2 and Y4 lasted 300 s, so for them the 200–330 s column covers only the first 18 s of that window.AI use
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T00:18:27Z.
Independent desktop NVIDIA verification of PR #2551 at head
3567b2efdc94617de71e50be77e107991a6bd41c(1commit; exact parent & merge-base:e1d84b7d9153f86a97d2ec5d209d196046fc0bea, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
3567b2ef)cargo test --release -p xcl --test gpu_compute_e2e offline_split_compute_pipeline_is_reused_by_a_second_process -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 5 filtered out× 3 (0.96s,0.83s,0.83s,0skipped) — runs live on RTX 4060 + DXC1.9.2609.5, precompiling both split piece.chain.psoblobs and the whole-form.chain.pso, verifying second-process warm driver-cache reuse and single-blob corruption recoverycargo test --release -p xcl --test gpu_compute_e2e -- --test-threads=1(3 consecutive runs)6 passed; 0 failed; 0 ignored× 3 (1.99s,2.00s,1.98s;5executed on RTX 4060 +1self-skippedheap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows)cargo test --release -p xcl --lib shaders::(3 consecutive runs)10 passed; 0 failed; 0 ignored; 1314 filtered out× 3 (0.20s,0.19s,0.18s;9executed +1self-skippedpso_measurement_compiles_an_exact_synthetic_recordbecause Windows Developer Mode is off)cargo build --release -p xcl0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
e1d84b7d9153f86a97d2ec5d209d196046fc0bea, cached baseline on the same machine):PR #2551 (
3567b2efdc94617de71e50be77e107991a6bd41c):Runtime log observations (
xcl.log)9222log lines,0[ERROR]/ device-removal / panic lines.19558 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample13991 MB committed by the process; video memory 6115 MB local, 4650 MB non-local.Limits of coverage
--precompile --pipelineswhole-form + split-piece.chain.psoemission, second-process driver-cache reload, and corrupt-blob recovery were directly verified end-to-end on desktop RTX 4060 viaoffline_split_compute_pipeline_is_reused_by_a_second_process(3/3pass) andgpu_compute_e2e(5executed +1self-skipped × 3).shaders::tests::pso_measurement_compiles_an_exact_synthetic_recordself-skipped because Windows Developer Mode is off on this host, and the 60 s retail smoke ranxcl runwith warm caches rather than a full offline--precompile --pipelinessweep over a retail shader dump (confirming zero runtime regression ontitle: 29640639; frame-count delta vs. cached parent reflects single-run startup variance, not this PR).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:32:07Z.
Tested: Clean
3567b2efdc94617de71e50be77e107991a6bd41c, Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Builtcargo test --locked -j 2 -p xcl --lib --test gpu_compute_e2e --no-run. Two CPU controls and four Arc tests passed with zero failures, ignores or skips.split_compute_program_prebuilds_and_caches_chain_piecesreused two pieces and a whole-form blob on its second pass.stale_blob_cannot_bypass_the_offline_pipeline_capretained the cap and read back 42 at runtime. The exact CLI integration testsoffline_compute_pipeline_is_reused_by_a_second_processandoffline_split_compute_pipeline_is_reused_by_a_second_processcovered normal and split reuse. The split test wrote five pieces plus whole, reused all six in the next process, and rebuilt one corrupted blob while reusing the other five.Not tested: Live whole-form ExecuteIndirect or scratch-fallback dispatch, driver timing, workspace suite and retail smoke.
AI use: T3 Code / Codex (
gpt-6.2-sol) ran and reran the checks and drafted this report.Imported from ivall/xcl. Originally posted by ettehn on 2026-11-27T15:03:36Z.
One rebase detail for
shaders.rs: oncePipelines::make_with_cache_pathbuilds the split program’s whole form, please remove the olderstartup.is_some()block that callsp.make_one(&c.dxil, &c.samplers, true, None)immediately afterp.make(&c). That block is still present onmainat81693f02.I reproduced the extra driver call on Windows with an RTX 5070 Ti Laptop, using
xcl runon the repository’s test title and one syntheticsplit_program()shader (XCL_DIRECT_DXIL=1,XCL_DIRECT_SPLIT_INSTRUCTIONS=12, separate empty XCL caches). The shader split into six pieces, so preparation should create seven pipelines including the whole form. With3567b2efapplied to my06f90c19-based tree, preparation reported 8 created, 1 loaded from cache. Removing just the startup block gave 7 created, 0 loaded from cache. Both wrote the same seven.chain.psofilenames and the test title exited 0 with zero failures. The eighth call reloaded the blob just written in that same launch.OpenAI Codex (GPT-6) assisted with integration and verification.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-30T03:23:43Z.
merge-check
base:
a7980178a8head:
3567b2efdcmerge: clean (git merge without conflicts;
git diff --checkclean), but the result does not buildbuild: cargo build --workspace --release -> failed:
crates\xcl\src\shaders.rs:2371:53E0308,make_oneexpectsPipelineRoot, foundbool(self.make_one(&c.dxil, &c.samplers, true, None);)tests: not run (no build)
review: Read the whole diff. The change itself is right on the base it was written for: after the pieces, the whole form is built under the dispatch-chain root signature, the cap and the cached-blob reuse apply as for a piece, and the runtime's
Chain::wholebuilds the samec.dxilunderdispatch_chain_root_signature, so the blob names match (for programs without static samplers; the offlinepath_forleaves samplers out of the name while the runtime includes them, which is the same for the pieces and not this PR's). Since it was written,mainhas changedmake_oneto take aPipelineRoot(e9389076/4cbefd18/8f075e85, "prewarm observed indirect split pipelines"), andmake_selectednow builds the whole form only whenprewarm_indirectis set:split_whole_roots(false)returns&[]. So on currentmainthe port of this PR is probably that function returning&[PipelineRoot::DirectChain]forfalse, plus the test updates; the author should check that this is still wanted given the history-based prewarm.performance: not measured. By design one extra driver build per split program in the precompile (the PR says about 2 h at 6 threads for the whole pack with them); nothing changes at run time except fewer cold whole-form builds on the title's thread.
verdict: not yet: the merge with current
maindoes not compile (make_onenow takesPipelineRoot); needs a rebase ontomainhardware / tool and model: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, rustc 1.99.1 / Claude Code (Claude Opus 5.5)
Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T06:03:42Z.
merge-check claim
head:
3567b2efdcImported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T06:11:51Z.
merge-check
base:
d52ff48caahead:
3567b2efdcmerge: clean
build: cargo build --workspace -> failed
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> not run (build failed)
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: not yet: cargo build --workspace failed
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:21:48Z.
Triage (#1607) – head
3567b2emain already prepares the whole form of a split compute program during precompile. Commits
e9389076and4cbefd18(merged with #2959) build it inshaders.rs:make_selectedunderDirectChainandIndirectChainroots when the program was seen in an ExecuteIndirect (prewarm_indirect).split_whole_roots(false)deliberately builds nothing for the other split programs. This PR builds the whole form for every split program, under the direct chain root only. That no longer matches the cache namespaces the runtime uses for indirect dispatches, and it conflicts with main's choice to build only what was observed.Recommendation: close (superseded by main commits
e9389076/4cbefd18).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed