Shaders: gate offline --pipelines large DXIL builds on commit headroom #2169

Open
O5-7 wants to merge 1 commit from upstream-pr/2179 into main
O5-7 commented 2026-11-25 07:54:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-25T07:54:54Z.


Shares the runtime huge/giant driver-compile thresholds and commit-headroom helpers from hle::d3d12x::real with offline xcl shaders --precompile --pipelines builds in shaders.rs via OfflineGate, rebased onto current main (e429936c). Uncached and cached-probe giant/huge builds are serialized/capped and wait for big_compile_headroom free commit whenever another cold build is in flight (while a sole huge/giant compile proceeds so low host commit never deadlocks progress).

Part of #1598

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: expose huge_pso_bytes, huge_pso_concurrency, GIANT_DRIVER_COMPILE, big_compile_headroom, and big_compile_commit_free as pub(crate).
  • crates/xcl/src/shaders.rs: add OfflineGate (OfflineGateState, OfflineGateGuard), CachedProbe, build_with_gate reusing RunningPermit, wire Pipelines::make_required through build_with_gate, and add 4 unit tests under shaders::offline_gate_tests.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 5080 (driver 32.0.15.9579), AMD Ryzen 7 9700X, Windows 11 Pro 10.0.26100, rustc 1.100.0 (0ef1bc386 2026-11-09).
  • cargo test -p xcl --lib shaders::offline_gate_tests:: -- --nocapture --test-threads=1: 4 passed, 0 failed, 0 ignored (2029 filtered out), 0 skipped.
  • cargo test -p xcl --lib shaders:: -- --test-threads=1: 57 passed, 0 failed, 0 ignored (1976 filtered out), 0 skipped.
  • cargo build --release -p xcl: clean build with 0 new warnings (26 pre-existing warnings on main).
  • Paired 60 s retail smoke (title: 9cc6a39e, run with XCL_PREPARE=0 per 8617577b because cold shader preparation for 26,503 records exceeded the 120 s startup timeout): 7d6d5651 matched main e429936c cleanly (912 vs 895 frames shown, 13708 vs 13711 MB peak commit, 0 crashes, 0 device removals).

Regression run

xcl-smoke v1
commit: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 895 (PresentX 895)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13711 MB
xcl-smoke v1
commit: 7d6d5651bb4518b32c67ea446f4ceeb0491e9fc2
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 912 (PresentX 912)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 13708 MB

Not tested

  • Full cargo test --workspace at 7d6d5651 (only shaders:: and shaders::offline_gate_tests:: ran after rebasing).
  • Full xcl shaders --precompile --pipelines pass on a retail shaders.rpf pack at 7d6d5651.
  • AMD, Intel, or Linux/Wine GPUs at 7d6d5651.

AI use

  • Rebased onto main, adapted build_with_gate to reuse RunningPermit and CachedProbe, ran tests/builds/smokes, and drafted this description with Antigravity (Gemini 4 Neon).
<!-- greyfinch-sync:ivall/xcl:issue:5487390293 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-25T07:54:54Z. --- Shares the runtime huge/giant driver-compile thresholds and commit-headroom helpers from `hle::d3d12x::real` with offline `xcl shaders --precompile --pipelines` builds in `shaders.rs` via `OfflineGate`, rebased onto current `main` (`e429936c`). Uncached and cached-probe giant/huge builds are serialized/capped and wait for `big_compile_headroom` free commit whenever another cold build is in flight (while a sole huge/giant compile proceeds so low host commit never deadlocks progress). Part of #1598 **What is in it** - `crates/xcl/src/hle/d3d12x/real.rs`: expose `huge_pso_bytes`, `huge_pso_concurrency`, `GIANT_DRIVER_COMPILE`, `big_compile_headroom`, and `big_compile_commit_free` as `pub(crate)`. - `crates/xcl/src/shaders.rs`: add `OfflineGate` (`OfflineGateState`, `OfflineGateGuard`), `CachedProbe`, `build_with_gate` reusing `RunningPermit`, wire `Pipelines::make_required` through `build_with_gate`, and add 4 unit tests under `shaders::offline_gate_tests`. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 5080 (driver `32.0.15.9579`), AMD Ryzen 7 9700X, Windows 11 Pro `10.0.26100`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`. - `cargo test -p xcl --lib shaders::offline_gate_tests:: -- --nocapture --test-threads=1`: 4 passed, 0 failed, 0 ignored (2029 filtered out), 0 skipped. - `cargo test -p xcl --lib shaders:: -- --test-threads=1`: 57 passed, 0 failed, 0 ignored (1976 filtered out), 0 skipped. - `cargo build --release -p xcl`: clean build with 0 new warnings (26 pre-existing warnings on `main`). - Paired 60 s retail smoke (`title: 9cc6a39e`, run with `XCL_PREPARE=0` per `8617577b` because cold shader preparation for 26,503 records exceeded the 120 s startup timeout): `7d6d5651` matched `main` `e429936c` cleanly (`912` vs `895` frames shown, `13708` vs `13711` MB peak commit, `0` crashes, `0` device removals). **Regression run** ``` xcl-smoke v1 commit: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 895 (PresentX 895) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13711 MB ``` ``` xcl-smoke v1 commit: 7d6d5651bb4518b32c67ea446f4ceeb0491e9fc2 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 912 (PresentX 912) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 13708 MB ``` **Not tested** - Full `cargo test --workspace` at `7d6d5651` (only `shaders::` and `shaders::offline_gate_tests::` ran after rebasing). - Full `xcl shaders --precompile --pipelines` pass on a retail `shaders.rpf` pack at `7d6d5651`. - AMD, Intel, or Linux/Wine GPUs at `7d6d5651`. **AI use** - Rebased onto `main`, adapted `build_with_gate` to reuse `RunningPermit` and `CachedProbe`, ran tests/builds/smokes, and drafted this description with Antigravity (Gemini 4 Neon).
Kalmarv commented 2026-11-25 08:08:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-25T07:59:52Z.


Heads-up from #2098, which changes huge_pso_concurrency()'s default in the same lines. git merge-tree of this head against #2098's 55eafb2 gives a conflict in real.rs at that function: this PR changes its visibility, and #2098 changes its body to default_huge_pso_concurrency(cpus). The conflict is only textual, and whichever lands second needs a one-line rebase. With #2098, this PR's offline gate would get its CPU-scaled default too: one slot per four logical CPUs, from 1 to 7, unless XCL_HUGE_PSO_CONCURRENCY is set. #2130 (the commit-wait bound) merges cleanly with this PR.

AI use: Claude Code (Claude Opus 5.5) ran the merge check and wrote this note.

<!-- greyfinch-sync:ivall/xcl:comment:7156486848 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7156486848). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-25T07:59:52Z. --- Heads-up from #2098, which changes `huge_pso_concurrency()`'s default in the same lines. `git merge-tree` of this head against #2098's `55eafb2` gives a conflict in `real.rs` at that function: this PR changes its visibility, and #2098 changes its body to `default_huge_pso_concurrency(cpus)`. The conflict is only textual, and whichever lands second needs a one-line rebase. With #2098, this PR's offline gate would get its CPU-scaled default too: one slot per four logical CPUs, from 1 to 7, unless `XCL_HUGE_PSO_CONCURRENCY` is set. #2130 (the commit-wait bound) merges cleanly with this PR. AI use: Claude Code (Claude Opus 5.5) ran the merge check and wrote this note.
itsSio commented 2026-11-25 10:10:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T09:54:28Z.


Tested

Independent verification on clean head 864698ab2158d5e02f026112ddeae10646a703b7. Both PCs: Windows 11 Pro build 26200, NVIDIA driver 610.88, debug MSVC. cargo build --workspace --locked -j 4 exited 0 on both. cargo test -p xcl --locked -j 4 offline_gate -- --nocapture was 3 passed, 0 failed, 0 ignored, 0 skips on each (huge/giant serialization and injected commit-headroom policy).

cargo test --workspace --locked -j 4 --no-fail-fast -- --test-threads=4 --nocapture:

GPU and system Workspace result Runtime skips
RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GiB, Rust 1.97.0, DXC 1.9.2609.5 1157 passed, 0 failed, 46 ignored 25: 20 no wave64, 3 unsupported per-lane cases, no heap windows, cache-off unavailable
RTX 2080 SUPER 8 GB, Ryzen 5 5600X, 16 GiB, Rust 1.99.1, DXC 1.8.2502.11 1156 passed, 1 failed, 46 ignored 26: same reasons plus no D3D12 debug layer for the root-signature test

The 2080 SUPER run failed hle::xgameruntime::gamesave::tests::case_insensitive_blob_and_container_matching_on_ntfs: XGameSaveSubmitUpdate returned E_FAIL (0x80004005) in gamesave.rs:1029. Isolated reruns (cargo test -p xcl --lib --locked -j 4 case_insensitive_blob_and_container_matching_on_ntfs -- --nocapture --test-threads=1) were 1 passed, 0 failed, 0 ignored, 0 skips per GPU and revision on both the head above and base cbc296ab65a2661a61e3e2da109134bcd5319f60. The full-suite failure did not reproduce in isolation; this comparison does not establish its cause.

Not tested: Full suite on the base, paired retail smoke, retail offline peak commit, or actual low-memory driver compilation. The gate tests inject headroom values rather than exhausting system memory.

AI use

Ran via Samaritan:

  • OpenCode (GPT-6.2 Sol): ran and audited both PC test runs and isolated comparisons, and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7158961498 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7158961498). Originally posted by [itsSio](https://github.com/itsSio) on 2026-11-25T09:54:28Z. --- **Tested** Independent verification on clean head `864698ab2158d5e02f026112ddeae10646a703b7`. Both PCs: Windows 11 Pro build 26200, NVIDIA driver 610.88, debug MSVC. `cargo build --workspace --locked -j 4` exited 0 on both. `cargo test -p xcl --locked -j 4 offline_gate -- --nocapture` was **3 passed, 0 failed, 0 ignored, 0 skips** on each (huge/giant serialization and injected commit-headroom policy). `cargo test --workspace --locked -j 4 --no-fail-fast -- --test-threads=4 --nocapture`: | GPU and system | Workspace result | Runtime skips | |---|---|---| | RTX 5080 16 GB, Ryzen 7 9800X3D, 32 GiB, Rust 1.97.0, DXC 1.9.2609.5 | 1157 passed, 0 failed, 46 ignored | 25: 20 no wave64, 3 unsupported per-lane cases, no heap windows, cache-off unavailable | | RTX 2080 SUPER 8 GB, Ryzen 5 5600X, 16 GiB, Rust 1.99.1, DXC 1.8.2502.11 | 1156 passed, 1 failed, 46 ignored | 26: same reasons plus no D3D12 debug layer for the root-signature test | The 2080 SUPER run failed `hle::xgameruntime::gamesave::tests::case_insensitive_blob_and_container_matching_on_ntfs`: `XGameSaveSubmitUpdate` returned `E_FAIL` (`0x80004005`) in `gamesave.rs:1029`. Isolated reruns (`cargo test -p xcl --lib --locked -j 4 case_insensitive_blob_and_container_matching_on_ntfs -- --nocapture --test-threads=1`) were **1 passed, 0 failed, 0 ignored, 0 skips** per GPU and revision on both the head above and base `cbc296ab65a2661a61e3e2da109134bcd5319f60`. The full-suite failure did not reproduce in isolation; this comparison does not establish its cause. **Not tested:** Full suite on the base, paired retail smoke, retail offline peak commit, or actual low-memory driver compilation. The gate tests inject headroom values rather than exhausting system memory. **AI use** Ran via Samaritan: - OpenCode (GPT-6.2 Sol): ran and audited both PC test runs and isolated comparisons, and wrote this report.
raylitebull commented 2026-11-25 11:09:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:45:01Z.


Code review on 864698a:

  • OfflineGate cleanly applies huge_pso_bytes / huge_pso_concurrency / GIANT_DRIVER_COMPILE and big_compile_headroom commit-headroom gating to cold --pipelines builds while avoiding low-commit deadlock when active_cold == 0, with RunningSlot / OfflineGateGuard RAII cleanup and 3 unit tests.
  • Diff audited and CI workflow approved (running).

Remaining before merge: Build and test finishing green plus dual-vendor (AMD + NVIDIA) verification on 864698a.

<!-- greyfinch-sync:ivall/xcl:comment:7160120885 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7160120885). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:45:01Z. --- Code review on `864698a`: - `OfflineGate` cleanly applies `huge_pso_bytes` / `huge_pso_concurrency` / `GIANT_DRIVER_COMPILE` and `big_compile_headroom` commit-headroom gating to cold `--pipelines` builds while avoiding low-commit deadlock when `active_cold == 0`, with `RunningSlot` / `OfflineGateGuard` RAII cleanup and 3 unit tests. - Diff audited and CI workflow approved (running). **Remaining before merge:** `Build and test` finishing green plus dual-vendor (**AMD** + **NVIDIA**) verification on `864698a`.
Toons29 commented 2026-11-25 12:06:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T12:02:02Z.


Regression run of 54a7d2d4 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 568e7db7, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: 54a7d2d40577e014eb17b00828e63a49308a9d8f
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14562 MB

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.

<!-- greyfinch-sync:ivall/xcl:comment:7161829515 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7161829515). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T12:02:02Z. --- Regression run of `54a7d2d4` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `568e7db7`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: 54a7d2d40577e014eb17b00828e63a49308a9d8f gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14562 MB ``` 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.
DavidM1911 commented 2026-11-25 16:12:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:39:38Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7167184838 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7167184838). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T15:39:38Z. --- 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!
raylitebull commented 2026-11-25 19:09:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T18:28:42Z.


Code review on 54a7d2d (crates/xcl/src/shaders.rs): offline_gate / free_commit gating for large DXIL --pipelines builds looks clean, and CI is green.

Remaining before merge: Independent AMD and NVIDIA test passes on 54a7d2d exercising shaders::tests (offline_gate), since earlier NVIDIA test coverage was on 864698a and smoke runs do not exercise xcl shaders.

<!-- greyfinch-sync:ivall/xcl:comment:7170961553 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7170961553). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T18:28:42Z. --- Code review on `54a7d2d` (`crates/xcl/src/shaders.rs`): `offline_gate` / `free_commit` gating for large DXIL `--pipelines` builds looks clean, and CI is green. **Remaining before merge:** Independent **AMD** and **NVIDIA** test passes on `54a7d2d` exercising `shaders::tests` (`offline_gate`), since earlier NVIDIA test coverage was on `864698a` and smoke runs do not exercise `xcl shaders`.
tiagonleal commented 2026-11-25 19:09:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T18:58:24Z.


Verification on NVIDIA RTX 5070 Ti (Windows 11), head 54a7d2d40577e014eb17b00828e63a49308a9d8f: shaders::tests and offline_gate pass

Tested

  • Head 54a7d2d40577e014eb17b00828e63a49308a9d8f (git rev-parse HEAD of a clean detached worktree, no local changes, built as is, not merged with main). The PR was open and the head unchanged when I started and again before writing this. The earlier NVIDIA run in the thread was on 864698a.
  • Windows 11 Pro 10.0.26300 (Developer Mode on), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42, 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, release profile.
  • cargo test --release --locked -p xcl --lib shaders::tests -j 8 -- --nocapture: 7 passed, 0 failed, 0 ignored (1196 filtered out). retail_pack_sample printed XCL_SAMPLE_RPF not set - skipping and counts as passed.
  • cargo test --release --locked -p xcl --lib offline_gate -j 8 -- --nocapture --test-threads=1: 3 passed, 0 failed, 0 ignored. Tests: offline_gate_runs_giant_compile_alone_even_with_higher_huge_concurrency, offline_gate_serializes_huge_compiles_while_small_compiles_proceed, offline_gate_waits_for_headroom_while_another_compile_is_active_and_avoids_deadlock_when_alone.
  • cargo test --release --locked -p xcl --lib shaders:: -j 8 -- --nocapture (both modules together): 12 passed, 0 failed, 0 ignored. No SKIPPED lines other than the XCL_SAMPLE_RPF one above. git status --short was empty afterwards.

Not tested

  • An AMD host.
  • cargo test --workspace, a debug build, the retail game and xcl-smoke, a real xcl shaders --precompile --pipelines run, low-memory driver compilation (the gate tests inject headroom values).

Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7171651013 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7171651013). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T18:58:24Z. --- Verification on NVIDIA RTX 5070 Ti (Windows 11), head `54a7d2d40577e014eb17b00828e63a49308a9d8f`: `shaders::tests` and `offline_gate` pass **Tested** - Head `54a7d2d40577e014eb17b00828e63a49308a9d8f` (`git rev-parse HEAD` of a clean detached worktree, no local changes, built as is, not merged with `main`). The PR was open and the head unchanged when I started and again before writing this. The earlier NVIDIA run in the thread was on `864698a`. - Windows 11 Pro 10.0.26300 (Developer Mode on), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42, 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, release profile. - `cargo test --release --locked -p xcl --lib shaders::tests -j 8 -- --nocapture`: 7 passed, 0 failed, 0 ignored (1196 filtered out). `retail_pack_sample` printed `XCL_SAMPLE_RPF not set - skipping` and counts as passed. - `cargo test --release --locked -p xcl --lib offline_gate -j 8 -- --nocapture --test-threads=1`: 3 passed, 0 failed, 0 ignored. Tests: `offline_gate_runs_giant_compile_alone_even_with_higher_huge_concurrency`, `offline_gate_serializes_huge_compiles_while_small_compiles_proceed`, `offline_gate_waits_for_headroom_while_another_compile_is_active_and_avoids_deadlock_when_alone`. - `cargo test --release --locked -p xcl --lib shaders:: -j 8 -- --nocapture` (both modules together): 12 passed, 0 failed, 0 ignored. No `SKIPPED` lines other than the `XCL_SAMPLE_RPF` one above. `git status --short` was empty afterwards. **Not tested** - An AMD host. - `cargo test --workspace`, a debug build, the retail game and `xcl-smoke`, a real `xcl shaders --precompile --pipelines` run, low-memory driver compilation (the gate tests inject headroom values). Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
O5-7 commented 2026-11-26 02:50:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-26T02:50:41Z.

Review: COMMENTED


Rebased onto main (b49be18) to resolve the conflict in crates/xcl/src/shaders.rs against #2338 (adapting self.gate.enter to use make_one's per-piece dxil.len()), now at 7bc00bc. Re-verified offline_gate (3/3), pipeline_cap_tests (3/3), big_compile_tests

<!-- greyfinch-sync:ivall/xcl:review:6067902215 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#pullrequestreview-6067902215). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-26T02:50:41Z. **Review:** COMMENTED --- Rebased onto main (b49be18) to resolve the conflict in crates/xcl/src/shaders.rs against #2338 (adapting self.gate.enter to use make_one's per-piece dxil.len()), now at 7bc00bc. Re-verified offline_gate (3/3), pipeline_cap_tests (3/3), big_compile_tests
luckyteagirl commented 2026-11-26 09:05:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T09:05:40Z.

Review: COMMENTED


On 7bc00bc, the first CreateComputePipelineState call for a nonempty cached blob runs with only RunningSlot, before self.gate.enter. The comment here correctly notes that a driver can reject the blob internally, compile the DXIL, and still return Ok. That means a stale or incompatible blob can trigger a full multi-gigabyte driver compile inside the supposedly cheap probe. For two large cached programs, both probes can run at once even when the new huge/giant gate permits only one compile or commit headroom is low. The size-cap check and gated no-blob retry happen after this work has already occurred.

Could the gate cover every native call that may compile, including the cached probe (without holding it twice on the fallback), or use a verified cache-only probe? A fake cached-create callback that simulates a slow internal fallback could check that the giant lane admits only one concurrent call. Source review only; I did not run a low-memory driver repro.

<!-- greyfinch-sync:ivall/xcl:review:6071181560 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#pullrequestreview-6071181560). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T09:05:40Z. **Review:** COMMENTED --- On `7bc00bc`, the first `CreateComputePipelineState` call for a nonempty cached blob runs with only `RunningSlot`, before `self.gate.enter`. The comment here correctly notes that a driver can reject the blob internally, compile the DXIL, and still return `Ok`. That means a stale or incompatible blob can trigger a full multi-gigabyte driver compile *inside the supposedly cheap probe*. For two large cached programs, both probes can run at once even when the new huge/giant gate permits only one compile or commit headroom is low. The size-cap check and gated no-blob retry happen after this work has already occurred. Could the gate cover every native call that may compile, including the cached probe (without holding it twice on the fallback), or use a verified cache-only probe? A fake cached-create callback that simulates a slow internal fallback could check that the giant lane admits only one concurrent call. Source review only; I did not run a low-memory driver repro.
O5-7 commented 2026-11-26 12:07:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-26T12:05:46Z.


@luckyteagirl Fixed in 9483d436:

  • Extracted build_with_gate in crates/xcl/src/shaders.rs so Pipelines::make_one enters OfflineGate and RunningSlot once around both the cached CreateComputePipelineState probe and any no-blob fallback (without double-acquiring the gate/slot, while still skipping cached.is_none() && over_cap early before entering).
  • Added unit test offline_gate_serializes_giant_cached_probe_fallback using concurrent simulated slow stale-blob fallbacks to verify max_concurrent == 1 across both the probe and cold fallback.

Re-verified cargo test -p xcl --lib shaders:: (14 passed, 0 failed) and 60 s smoke.ps1 on 9483d436.

<!-- greyfinch-sync:ivall/xcl:comment:7191559706 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7191559706). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-26T12:05:46Z. --- @luckyteagirl Fixed in `9483d436`: - Extracted `build_with_gate` in `crates/xcl/src/shaders.rs` so `Pipelines::make_one` enters `OfflineGate` and `RunningSlot` once around both the cached `CreateComputePipelineState` probe and any no-blob fallback (without double-acquiring the gate/slot, while still skipping `cached.is_none() && over_cap` early before entering). - Added unit test `offline_gate_serializes_giant_cached_probe_fallback` using concurrent simulated slow stale-blob fallbacks to verify `max_concurrent == 1` across both the probe and cold fallback. Re-verified `cargo test -p xcl --lib shaders::` (`14 passed, 0 failed`) and 60 s `smoke.ps1` on `9483d436`.
Prime1997 commented 2026-11-26 13:06:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:06:03Z.

Review: COMMENTED


Good within the reviewed scope; retain for integration. The offline large-DXIL admission logic is worth keeping. The current revision also gates the cached-blob probe; the older finding that this path bypassed admission no longer describes this head.

PR head 9483d4363b9cc6a798902ccebdbeca35de54e4cd integrated locally with current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. The detached worktree remains at main with the combined changes staged, tree 80596ba379dc6679bb264be3a4cb3da089d936f3; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 6bfe43cdbc0f84bb42d6cdc7a1efc2f220f42e985890f13f56020f1f33be39da.

Targeted result: 4 passed, 0 failed, 0 ignored, 0 skipped. Each exact filter ran in a fresh process:

  • shaders::offline_gate_tests::offline_gate_serializes_huge_compiles_while_small_compiles_proceed
  • shaders::offline_gate_tests::offline_gate_waits_for_headroom_while_another_compile_is_active_and_avoids_deadlock_when_alone
  • shaders::offline_gate_tests::offline_gate_runs_giant_compile_alone_even_with_higher_huge_concurrency
  • shaders::offline_gate_tests::offline_gate_serializes_giant_cached_probe_fallback

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run: <test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work.

Not tested: The four tests exercise admission, cached-probe classification and guard cleanup with bounded synthetic inputs. They do not reproduce sustained system commit pressure or measure driver compile memory. No whole suite or retail smoke was run for this batch; this is not merge certification.

AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074632945 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#pullrequestreview-6074632945). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:06:03Z. **Review:** COMMENTED --- **Good within the reviewed scope; retain for integration.** The offline large-DXIL admission logic is worth keeping. The current revision also gates the cached-blob probe; the older finding that this path bypassed admission no longer describes this head. PR head `9483d4363b9cc6a798902ccebdbeca35de54e4cd` integrated locally with current main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. The detached worktree remains at main with the combined changes staged, tree `80596ba379dc6679bb264be3a4cb3da089d936f3`; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 `6bfe43cdbc0f84bb42d6cdc7a1efc2f220f42e985890f13f56020f1f33be39da`. **Targeted result: 4 passed, 0 failed, 0 ignored, 0 skipped.** Each exact filter ran in a fresh process: - `shaders::offline_gate_tests::offline_gate_serializes_huge_compiles_while_small_compiles_proceed` - `shaders::offline_gate_tests::offline_gate_waits_for_headroom_while_another_compile_is_active_and_avoids_deadlock_when_alone` - `shaders::offline_gate_tests::offline_gate_runs_giant_compile_alone_even_with_higher_huge_concurrency` - `shaders::offline_gate_tests::offline_gate_serializes_giant_cached_probe_fallback` Build: `cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>`. Run: `<test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture`. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work. **Not tested:** The four tests exercise admission, cached-probe classification and guard cleanup with bounded synthetic inputs. They do not reproduce sustained system commit pressure or measure driver compile memory. No whole suite or retail smoke was run for this batch; this is not merge certification. AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
Decodere commented 2026-11-26 19:09:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:09:02Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2179 updated head 9483d4363b9cc6a798902ccebdbeca35de54e4cd (2 commits on merge-base b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; parent 7bc00bc1ef3d94ad1e5367046028b5ec5aedb56e). Measurements and targeted test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit tests (9483d436)

  • cargo test --release -p xcl --lib offline_gate_serializes_huge_compiles_while_small_compiles_proceed -- --nocapture: 1 passed, 0 failed, 0 ignored (0.12 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib offline_gate_waits_for_headroom_while_another_compile_is_active_and_avoids_deadlock_when_alone -- --nocapture: 1 passed, 0 failed, 0 ignored (0.12 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib offline_gate_runs_giant_compile_alone_even_with_higher_huge_concurrency -- --nocapture: 1 passed, 0 failed, 0 ignored (0.24 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib offline_gate_serializes_giant_cached_probe_fallback -- --nocapture: 1 passed, 0 failed, 0 ignored (0.22 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib shaders:: (3 consecutive parallel passes): 14 passed, 0 failed, 0 ignored on all 3 passes (0.24 s / 0.24 s / 0.24 s; 1 pre-existing host SKIPPED notice per run: shaders::tests::pso_measurement_compiles_an_exact_synthetic_record skipped because disabling the driver cache requires Windows Developer Mode, 0x887A002D).
  • cargo test --release -p xcl --lib hle::d3d12x::real::big_compile_tests:: (3 consecutive parallel passes): 11 passed, 0 failed, 0 ignored on all 3 passes (0.27 s / 0.27 s / 0.27 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (merge-base b49be183 vs 9483d436)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (9483d436 xcl.log: 6,176 / 6,116 MB peak/end local VRAM, 4,683 MB end non-local VRAM, 19,531 translated draws / 1,024 dispatches with 0 skipped, 128 pipelines built ahead on warm cache).

Merge-base (b49be183):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB

PR #2179 head (9483d436):

xcl-smoke v1
commit: 9483d4363b9cc6a798902ccebdbeca35de54e4cd
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1592 (PresentX 1592)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14006 MB

Limits of coverage

  • Full workspace test suite was not run on 9483d436 (only the 4 new gate tests individually, 3 parallel passes each of shaders:: and big_compile_tests::, release build, and paired 60 s smokes); pso_measurement_compiles_an_exact_synthetic_record skipped on this host without Windows Developer Mode (0x887A002D).
  • No full offline xcl --pipelines run over a cold large-DXIL corpus was executed on this host; huge/giant compile serialization, headroom gating, and cached-probe fallback were exercised by the 4 targeted release unit tests above.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit tests, release build, and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7201248407 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7201248407). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T19:09:02Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2179 updated head `9483d4363b9cc6a798902ccebdbeca35de54e4cd`** (2 commits on merge-base `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`; parent `7bc00bc1ef3d94ad1e5367046028b5ec5aedb56e`). Measurements and targeted test results only; not a full source review. ### Setup - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags, no input) ### Targeted RTX 4060 release unit tests (`9483d436`) - `cargo test --release -p xcl --lib offline_gate_serializes_huge_compiles_while_small_compiles_proceed -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.12 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib offline_gate_waits_for_headroom_while_another_compile_is_active_and_avoids_deadlock_when_alone -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.12 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib offline_gate_runs_giant_compile_alone_even_with_higher_huge_concurrency -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.24 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib offline_gate_serializes_giant_cached_probe_fallback -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.22 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib shaders::` (3 consecutive parallel passes): **14 passed, 0 failed, 0 ignored** on all 3 passes (`0.24 s` / `0.24 s` / `0.24 s`; `1` pre-existing host `SKIPPED` notice per run: `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` skipped because disabling the driver cache requires Windows Developer Mode, `0x887A002D`). - `cargo test --release -p xcl --lib hle::d3d12x::real::big_compile_tests::` (3 consecutive parallel passes): **11 passed, 0 failed, 0 ignored** on all 3 passes (`0.27 s` / `0.27 s` / `0.27 s`, `0` `SKIPPED`). ### Paired 60 s RTX 4060 smoke (merge-base `b49be183` vs `9483d436`) Both runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`9483d436` `xcl.log`: `6,176` / `6,116 MB` peak/end local VRAM, `4,683 MB` end non-local VRAM, `19,531` translated draws / `1,024` dispatches with `0` skipped, `128` pipelines built ahead on warm cache). Merge-base (`b49be183`): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2179 head (`9483d436`): ``` xcl-smoke v1 commit: 9483d4363b9cc6a798902ccebdbeca35de54e4cd gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1592 (PresentX 1592) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14006 MB ``` ### Limits of coverage - Full workspace test suite was not run on `9483d436` (only the 4 new gate tests individually, 3 parallel passes each of `shaders::` and `big_compile_tests::`, release build, and paired 60 s smokes); `pso_measurement_compiles_an_exact_synthetic_record` skipped on this host without Windows Developer Mode (`0x887A002D`). - No full offline `xcl --pipelines` run over a cold large-DXIL corpus was executed on this host; huge/giant compile serialization, headroom gating, and cached-probe fallback were exercised by the 4 targeted release unit tests above. - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release unit tests, release build, and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
ClosetPie107 commented 2026-11-27 17:18:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T17:18:03Z.


Tested on AMD / Linux: 9483d436 (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental experimental-11.0-20261112 with vkd3d-proton master ec207194 plus a local patch dropping the lpVtbl checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, x86_64-pc-windows-gnu debug build, tests run under Wine)

The head as it is (base b49be183), with main f9a0cb80 the same session as the baseline.

Tests (XCL_REQUIRE_GPU=wave64)

  • cargo test -p xcl --lib -- shaders::offline_gate_tests:: --test-threads=1: 4 passed, 0 failed, 0 ignored.
  • cargo test -p xcl --lib -- shaders:: --test-threads=1: 13 passed, 1 failed, 0 ignored. The failure, shaders::tests::pso_measurement_compiles_an_exact_synthetic_record, fails the same way on main here (12 passed, 1 failed).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with --skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole (the first loses the RADV device here, the other two run out of memory under Wine): lib 1304 passed, 8 failed, 27 ignored; main lib the same session: 1323 passed, 9 failed, 27 ignored (--test-threads=1 and two --test-threads=4 runs). All failures are among main's. The other binaries fail the same 3 tests as on main (e2e, pls_quota, predication_e2e). d3d12_resource_and_sync ended the process, as it does on main here.

Not tested

  • xcl shaders --precompile --pipelines on a title's pack (cold or cached)
  • Native Windows, NVIDIA / Intel

AI use

  • Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7224252221 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7224252221). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T17:18:03Z. --- **Tested on AMD / Linux: `9483d436`** (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental `experimental-11.0-20261112` with vkd3d-proton master `ec207194` plus a local patch dropping the `lpVtbl` checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, `x86_64-pc-windows-gnu` debug build, tests run under Wine) The head as it is (base `b49be183`), with `main` `f9a0cb80` the same session as the baseline. **Tests** (`XCL_REQUIRE_GPU=wave64`) - `cargo test -p xcl --lib -- shaders::offline_gate_tests:: --test-threads=1`: **4 passed, 0 failed**, 0 ignored. - `cargo test -p xcl --lib -- shaders:: --test-threads=1`: 13 passed, 1 failed, 0 ignored. The failure, `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`, fails the same way on `main` here (12 passed, 1 failed). - `cargo test --workspace --no-fail-fast -- --test-threads=4` with `--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole` (the first loses the RADV device here, the other two run out of memory under Wine): lib 1304 passed, 8 failed, 27 ignored; `main` lib the same session: 1323 passed, 9 failed, 27 ignored (`--test-threads=1` and two `--test-threads=4` runs). All failures are among `main`'s. The other binaries fail the same 3 tests as on `main` (`e2e`, `pls_quota`, `predication_e2e`). `d3d12_resource_and_sync` ended the process, as it does on `main` here. **Not tested** - `xcl shaders --precompile --pipelines` on a title's pack (cold or cached) - Native Windows, NVIDIA / Intel **AI use** - Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
throny commented 2026-11-27 23:28:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:28:22Z.


merge-check claim
head: 9483d4363b

<!-- greyfinch-sync:ivall/xcl:comment:7230167085 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7230167085). Originally posted by [throny](https://github.com/throny) on 2026-11-27T23:28:22Z. --- merge-check claim head: 9483d4363b9cc6a798902ccebdbeca35de54e4cd
throny commented 2026-11-27 23:41:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:41:24Z.


merge-check
base: 2c717a04
head: 9483d4363b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1470 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines)
review: none blocking. The file it deletes when the driver does not take a cached blob is the cache's own path (cache folder, 'driver' subfolder, a name made of hex digits only), so it cannot leave the cache folder; the override parameter is passed only by a test. Behaviour change: a stale blob is deleted also under the size cap (harmless, the cold build rewrites it); cached probes go through the gate too, as an earlier review asked. The tests cover the gate, not its wiring into make_one. A textual conflict with #2098 is reported in the thread.
performance: no runtime change. The offline 'xcl shaders --pipelines' pass is slower on a warm cache for huge pipelines (reasoned).
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).

<!-- greyfinch-sync:ivall/xcl:comment:7230333213 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7230333213). Originally posted by [throny](https://github.com/throny) on 2026-11-27T23:41:24Z. --- merge-check base: 2c717a04 head: 9483d4363b9cc6a798902ccebdbeca35de54e4cd merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1470 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines) review: none blocking. The file it deletes when the driver does not take a cached blob is the cache's own path (cache folder, 'driver' subfolder, a name made of hex digits only), so it cannot leave the cache folder; the override parameter is passed only by a test. Behaviour change: a stale blob is deleted also under the size cap (harmless, the cold build rewrites it); cached probes go through the gate too, as an earlier review asked. The tests cover the gate, not its wiring into make_one. A textual conflict with #2098 is reported in the thread. performance: no runtime change. The offline 'xcl shaders --pipelines' pass is slower on a warm cache for huge pipelines (reasoned). 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).
O5-7 commented 2026-11-28 04:47:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-28T04:47:25Z.

Review: COMMENTED


Rebased onto latest main (e429936c) in 7d6d5651 (reusing RunningPermit and preserving the updated persistence/library handling in Pipelines::make_required). Updated the PR description with refreshed tests (shaders:: 57 passed, shaders::offline_gate_tests:: 4 passed) and a paired 60 s retail smoke (912 vs 895 frames shown, 0 crashes, 0 device removals). Ready for another look.

<!-- greyfinch-sync:ivall/xcl:review:6095870225 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#pullrequestreview-6095870225). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-28T04:47:25Z. **Review:** COMMENTED --- Rebased onto latest `main` (`e429936c`) in `7d6d5651` (reusing `RunningPermit` and preserving the updated persistence/library handling in `Pipelines::make_required`). Updated the PR description with refreshed tests (`shaders::` 57 passed, `shaders::offline_gate_tests::` 4 passed) and a paired 60 s retail smoke (`912` vs `895` frames shown, `0` crashes, `0` device removals). Ready for another look.
throny commented 2026-11-28 17:47:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T17:47:39Z.


merge-check claim
head: 7d6d5651bb

Re-check of the new head (my earlier check was on the head before the rebase).

<!-- greyfinch-sync:ivall/xcl:comment:7243291600 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7243291600). Originally posted by [throny](https://github.com/throny) on 2026-11-28T17:47:39Z. --- merge-check claim head: 7d6d5651bb4518b32c67ea446f4ceeb0491e9fc2 Re-check of the new head (my earlier check was on the head before the rebase).
throny commented 2026-11-28 18:03:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T18:03:58Z.


merge-check
base: 10d27297
head: 7d6d5651bb
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2156 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at 10d27297: 2152 passed, 0 failed, 48 ignored. The merge result builds here although the PR's own CI is red: its base still has the bench error that #3102 fixed on main.
review: re-check of the new head, which is a real rework onto main's newer build path, not only a rebase. The PR's own slot type is gone in favour of main's permit; the cached probe now reloads a blob another process may have written while this one waited, as main does, and a stale blob is invalidated through main's call instead of deleting the file; main's persistence outcomes and receipts are kept inside the cold build. The gate still covers the cached probe and its fallback, which answers the earlier point in the thread. The three-way merge with main is clean (a plain patch apply fails on the last hunk because main renamed the code right after it). Open as before: gating the cached probes of huge programs makes a warm offline pass slower, and the gate's wiring into the build function has no test of its own.
performance: as before: fewer large builds at once in the offline pass, by design; warm passes over huge programs a little slower. No translator source: no re-translation.
verdict: safe to merge (the code and the merge result; the PR needs a rebase onto current main for its CI to turn green)
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).

<!-- greyfinch-sync:ivall/xcl:comment:7243502186 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7243502186). Originally posted by [throny](https://github.com/throny) on 2026-11-28T18:03:58Z. --- merge-check base: 10d27297 head: 7d6d5651bb4518b32c67ea446f4ceeb0491e9fc2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2156 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at 10d27297: 2152 passed, 0 failed, 48 ignored. The merge result builds here although the PR's own CI is red: its base still has the bench error that #3102 fixed on main. review: re-check of the new head, which is a real rework onto main's newer build path, not only a rebase. The PR's own slot type is gone in favour of main's permit; the cached probe now reloads a blob another process may have written while this one waited, as main does, and a stale blob is invalidated through main's call instead of deleting the file; main's persistence outcomes and receipts are kept inside the cold build. The gate still covers the cached probe and its fallback, which answers the earlier point in the thread. The three-way merge with main is clean (a plain patch apply fails on the last hunk because main renamed the code right after it). Open as before: gating the cached probes of huge programs makes a warm offline pass slower, and the gate's wiring into the build function has no test of its own. performance: as before: fewer large builds at once in the offline pass, by design; warm passes over huge programs a little slower. No translator source: no re-translation. verdict: safe to merge (the code and the merge result; the PR needs a rebase onto current main for its CI to turn green) 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).
Foniass commented 2026-12-01 07:32:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:32:00Z.


Triage (#1607) – head 7d6d565

Same issue as #1638 (#1598), but not the same change. #1638 moves DXC into memory-capped worker processes. This PR gates the driver's uncached compute pipeline builds in offline --pipelines by size class and free commit. Main's offline path still takes only RunningPermit.
The gate also covers cached-blob probes, so on a warm run giant pipelines load one at a time.
The branch conflicts with main, where c110ed8 changed the huge-compile concurrency and d04a172 changed the stale-blob probe in the same function.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304169573 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2179#issuecomment-7304169573). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:32:00Z. --- **Triage (#1607)** – head 7d6d565 Same issue as #1638 (#1598), but not the same change. #1638 moves DXC into memory-capped worker processes. This PR gates the driver's uncached compute pipeline builds in offline `--pipelines` by size class and free commit. Main's offline path still takes only `RunningPermit`. The gate also covers cached-blob probes, so on a warm run giant pipelines load one at a time. The branch conflicts with main, where c110ed8 changed the huge-compile concurrency and d04a172 changed the stale-blob probe in the same function. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2179:upstream-pr/2179'
git switch 'upstream-pr/2179'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2179'
git switch 'upstream-pr/2179'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2179'
git switch 'upstream-pr/2179'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2179'
git switch 'main'
git merge --squash 'upstream-pr/2179'
git switch 'main'
git merge --ff-only 'upstream-pr/2179'
git switch 'main'
git merge 'upstream-pr/2179'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2169
No description provided.