D3D12.X: keep inline split pipeline pieces on the foreground path #2414
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2424"
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 razormontana on 2026-11-25T18:26:41Z.
Part of #1269. Part of #2088 (workstream 4).
A title can build a lazy split compute pipeline inline at its first bind. Its helper jobs inherit the pending pipeline from the build thread. The inline path left that context empty, so a cold piece could wait for background commit headroom while the title was blocked on the build.
What is in it
an_inline_bind_makes_split_pipeline_pieces_wanted. With only the test added tomain, both pieces saw[0, 0]. On the PR they see[1, 1].Tested
hle::d3d12x::pso_asynctests passed, including inline helper demand. The formerly failing DXIL barrier test passed with the merged #2420 fix in the base.6ada0232,cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputreported 1,443 passed, 0 failed and 47 ignored. The pass count includes 26 explicit GPU skip notices.cargo build --offline --locked --release -p xclsucceeded.Regression run
Both release builds ran the same retail title offline for 60 seconds on the RTX 3070. Both used the Series S profile, direct DXIL and copies of the same starting cache. This pair uses
e120925, the preceding main commit. At8b957be, smoke reached its startup deadline during #2555 shader preparation. The PR merges cleanly into8b957be; the combined retail run remains unverified. The initial pair showed 703 frames on main and 391 on the PR. For this repeat, both started from copies of the cache left by the first main run, after builds completed.Main
PR head
Not tested
The scheduler test covers demand propagation. The retail smoke checks startup and presents. Split program execution during world loading and cold NVIDIA driver timing remain unverified.
AI use
Codex GPT-6.2 wrote and reviewed the code and tests, rebased the branch, ran the checks, and updated this description.
Imported from ivall/xcl. Originally posted by alexmircea1299 on 2026-11-25T18:34:50Z.
Tested commit
89bbbb4on Windows:Environment
621.40,wave32)1.8.2502.11(Windows SDK10.0.26100.0)Results
hle::d3d12xtest suite (cargo test -p xcl --lib hle::d3d12x): 229 passed, 0 failed, 2 ignored (including allhle::d3d12x::pso_asynctests).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:47:44Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T02:20:56Z.
Independent Windows check of #2424 head
89bbbb4on an RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC and DXC 1.8.2502.11.Exact head:
cargo build --offline --locked --workspacepassed.cargo test --offline --locked -p xcl --lib hle::d3d12x::pso_async -- --test-threads=1 --nocapturepassed 12/0/0, includingan_inline_bind_makes_split_pipeline_pieces_wanted.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4reported 1,290 passed, 1 failed, 46 ignored, 25 SKIPPED notices. The sole failure wasa_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, also identified in the PR discussion; it is outside this diff.Current-main integration: On clean
mainb49be18, that barrier test passed 1/0/0. I merged the exact PR head into a separate worktree without committing or resolving any conflict. There, thepso_asynctests passed 15/0/0, the barrier test passed 1/0/0, and the same full workspace suite passed 1,436/0/47 with 25 SKIPPED notices. Both worktrees used separate Cargo targets. This suggests rebasing onto current main will remove the stale-base suite failure; the head and its required smoke block would still need to be rerun after a push.Not tested: a retail title, the cold split-pipeline wait path, AMD/Intel, or a paired smoke run on this machine. These tests verify scheduler state propagation and integration, not a measured world-load speedup. AI-assisted: Codex (GPT-6.2 Sol) read the diff, ran the tests, compared current main and drafted this report.
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:30:19Z.
Review: COMMENTED
Good within the targeted test scope; retain for integration. Propagates wanted status to split pipeline pieces when the bind itself builds the pipeline.
Reviewed PR head
89bbbb4995b4dc33cb5ff96a680885d7ff208198. Tested an isolated, uncommitted merge-tree integration with latest mainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, treef267768bff4c15d608c2d9b14c5781c8fa8081d9; this is not a clean PR-head run. Integration source overlay SHA-256:90208c5a585976d0bb542122972a8d875eae7f308bf1b46e683da4ae39d7771a.Measured: 1 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:
hle::d3d12x::pso_async::used_tests::an_inline_bind_makes_split_pipeline_pieces_wantedBuild:
cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run each:<test-exe> <exact-filter> --exact --test-threads=1 --nocapture. Private target/executable paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug; private temporary/cache paths, two low-priority build jobs, 90-second per-test bound.Scope: One finite fake-job CPU fixture covers wanted-status propagation. It does not invoke DXC or a driver, or measure foreground latency. No full suite, retail run, sustained memory pressure or performance benefit is established. Passing these fixtures is not merge certification.
AI use: Codex (GPT-6) inspected the changes and fixtures, ran the checks and verified raw receipts. Optional temporary Discord for coordinating contributor work, testing and comparing results.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T20:17:54Z.
Independent Windows/NVIDIA recheck of #2424 head
6ada0232on an RTX 3080 Ti (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC.cargo test --offline --locked -p xcl --lib hle::d3d12x::pso_async -- --test-threads=4: 15 passed, 0 failed, 0 ignored, including the new inline-bind test.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,442 passed, 1 failed, 47 ignored across 38 test targets, with 25 GPU SKIPPED notices. Both existing split-compute integration tests passed. The sole failure wasconsole_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk:cached_only console_mesh hit: "DXIL not compiled yet".e120925(0 passed, 1 failed), with the same error. This failure predates the PR on this machine; it does not establish a #2424 regression.Not tested: cold NVIDIA driver-gate timing, split-chain output on a first bind, a retail title, paired smoke, AMD or Intel. The passing tests establish scheduler state propagation and existing split-compute behavior, not a measured world-load improvement or merge readiness.
AI use: Codex (GPT-6.2 Sol) reviewed the exact diff, ran and checked these tests, and drafted this report.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T20:38:03Z.
Correction to my earlier #2424 report on the unchanged head
6ada0232: the mesh-cache failure was specific to the default DXIL cache location in this sandbox.console_meshcaches its compute pass in memory, but its pass-through mesh compile needs the DXC disk entry for acached_onlyrepeat; the default cache path is outside this worktree's writable area. The isolated mesh test passed 1/0/0 withXCL_DXIL_CACHEset to writable scratch.I then reran the full suite with
XCL_DXIL_CACHEset to a new writable directory undertarget:cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,443 passed, 0 failed, 47 ignored across 38 targets; 25 GPU SKIPPED notices. RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC. This supersedes the earlier 1-failure count; no #2424 regression was found by this suite.Still not tested: cold driver-gate timing, first-bind split-chain output, retail or paired smoke, AMD/Intel. AI use: Codex (GPT-6.2 Sol) traced the cache path, ran and checked the tests, and drafted this correction.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T21:01:26Z.
Independent desktop NVIDIA verification of PR #2424 at head
6ada0232306cf02b85fa4050e5d3345363a2f9e1(1commit; exact parent & merge-base:e120925e3abc9956a8b9bae631969d32e8ccd43c, 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 (
6ada0232)cargo test --release -p xcl --lib an_inline_bind_makes_split_pipeline_pieces_wanted -- --nocapture1 passed; 0 failed; 0 ignored; 1342 filtered out(0.00s)cargo test --release -p xcl --lib hle::d3d12x::pso_async::(3 consecutive runs)15 passed; 0 failed; 0 ignored; 1328 filtered out× 3 (0.76s,0.61s,1.01s)cargo test --release -p xcl --lib hle::d3d12x::real::63 passed; 0 failed; 0 ignored; 1280 filtered out(0.38s)cargo test --release -p xcl --test gpu_compute_e2e split -- --test-threads=1 --nocapture2 passed; 0 failed; 0 ignored; 5 filtered out(2.40s:offline_split_compute_pipeline_is_reused_by_a_second_process,split_compute_prefers_the_offline_whole_pipeline)cargo build --release -p xcl --bin xcl1m 14slib build +0.07sbin, exit0)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
e120925e3abc9956a8b9bae631969d32e8ccd43c, cached baseline on the same machine):PR #2424 (
6ada0232306cf02b85fa4050e5d3345363a2f9e1):Runtime log observations (
xcl.log)9221log lines,0[ERROR]/ device-removal / panic lines.compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB.19543 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14010 MB committed by the process; video memory 6116 MB local, 4683 MB non-local.Limits of coverage
0 programs split, 0 pieces built, so it confirms clean runtime stability and zero regression ontitle: 29640639rather than measuring a cold-cache world-load timing change under split-pipeline contention.wantedpropagation to split-pipeline helpers and split-compute E2E reuse were verified viaan_inline_bind_makes_split_pipeline_pieces_wanted, 3×pso_async::(15/0/0),real::(63/0/0), and the 2gpu_compute_e2esplit tests (2/0/0).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T06:12:34Z.
NVIDIA and AMD full-suite run, to go with the reports above by Decodere, thehollowedone, since none of them covers AMD. Tested exact head
6ada0232(on its basee120925).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --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: 1431 passed, 0 failed, 45 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.an_inline_bind_makes_split_pipeline_pieces_wanted.XCL_ADAPTER=radeon),cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1442 passed, 0 failed, 47 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 mainc2ee10e4too, 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 throny on 2026-11-27T19:44:15Z.
merge-check claim
head:
6ada023230Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:01:00Z.
merge-check
base:
6089122ahead:
6ada023230merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: none blocking. BuildScope restores the previous value on drop, so nested and panicking builds are safe; want() running before the inline job is harmless because the job is already taken from the queue. The test fails on main by reading the code (not run there).
performance: default path: helper pieces of an inline split build now count as wanted, skip the free-commit gate and use the wanted slots, so the first bind is faster and peak commit during cold builds can be higher; steady-state frame time unaffected (reasoned, not measured).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T23:29:28Z.
merge-check claim
head:
6ada023230Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:16:08Z.
merge-check
base:
2c717a043chead:
6ada023230merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 1 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: hle::kernelx::tests::fine_timer_makes_short_sleeps_short, under the concurrent load only: rerun alone on the same merge commit it passed (1 passed, 0 failed); the diff does not touch kernelx; not run on the base. The suite ran on this PC at the same time as six other PRs' suites, in one queued job.
review:
Whole diff read (README, pso_async.rs: BuildScope, build(), build_pieces, resolve_wait_for, 1 test).
performance: reasoned, not measured: when a game thread waits for an inline split build, its huge helper pieces now skip the 3 GB free-commit wait and use the foreground compile limit (as the README says): can raise peak commit during such builds; no default per-frame cost.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 41aef996ece9a40dfa279a37a019a609e13f17ca (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:01:58Z.
Triage (#1607) – head
6ada023This PR makes the helper pieces of a split build see the bind's demand when
resolve_wait_forbuilds the pipeline inline on the title thread (BuildScopeinbuild,p.want()before the job).On main that inline path is gone: since
4bc4cearesolve_wait_pendingcallsp.build.want(), schedules the build atPriority::Foregroundand waits, so the job always runs inrun_buildon a worker, which setsBUILDING(restored byRestoreBuilding), andbuild_piecespasses the parent to its helpers. The bug the test checks no longer exists, andpso_async.rshas been reworked enough that the diff no longer applies.Recommendation: close (superseded by main commit
4bc4cea).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:52:42Z.
Closing as superseded: this change is already on
main(4bc4cea).4bc4cearemoved the inline build on the bind thread; pso_async.rs run_build sets BUILDING with RestoreBuilding, resolve_wait_for marks the build wanted (build.want()) before an unsent build is queuedTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed