Recompiler: count split shader pieces in the cache budget #2465

Closed
Creaa wants to merge 1 commit from upstream-pr/2475 into main
Creaa commented 2026-11-25 19:41:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Creaa on 2026-11-25T19:41:39Z.


The in-memory shader cache omitted the allocations for split compute pieces when it admitted an entry, then subtracted those allocations when it evicted the entry. The difference could exceed the remaining byte count. Fixes #2454.

What is in it

Insertion and eviction use the same size calculation. The cache checks the full size before copying the shader blob. A unit test checks admission at a tight limit and that eviction returns the byte count to zero.

Tested

  • NVIDIA GeForce RTX 4070 12 GB, driver 617.14, i7-13700F, Windows 11 build 26300, Rust 1.100.0. Debug tests and release smoke runs.
  • On the original code the split-entry regression check observed 94 bytes charged for a 190-byte entry. On 398cefb, cargo test -p xcl --lib shader_cache_counts_split_pieces_against_its_budget passed.
  • cargo build --workspace succeeded. cargo test --workspace --no-fail-fast -- --test-threads=4 reported 1414 passed, 0 failed, 46 ignored. The harness includes skipped GPU cases in its pass count. There were 29 SKIPPED messages for wave64 support, unsupported direct-DXIL cases, heap windows, D3D12 debug layers, and the driver cache setting that requires Developer Mode.

Regression run

main:

xcl-smoke v1
commit: 06055a7a0fb43c5f83f55e7a2ce201417de171e9
gpu: NVIDIA GeForce RTX 4070
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 1564 (PresentX 1564)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16956 MB

this PR:

xcl-smoke v1
commit: 398cefbcd74ab303442a2df2ca1dae13f884fab7
gpu: NVIDIA GeForce RTX 4070
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 1580 (PresentX 1580)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16877 MB

Not tested

The retail smoke run did not measure shader-cache pressure or establish whether the title evicted a split shader. The unit test exercises that path directly.

AI use

OpenAI Codex (GPT-6) verified the accounting discrepancy, wrote the patch and test, ran the checks and drafted this description.

<!-- greyfinch-sync:ivall/xcl:issue:5497959605 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475). Originally posted by [Creaa](https://github.com/Creaa) on 2026-11-25T19:41:39Z. --- The in-memory shader cache omitted the allocations for split compute pieces when it admitted an entry, then subtracted those allocations when it evicted the entry. The difference could exceed the remaining byte count. Fixes #2454. **What is in it** Insertion and eviction use the same size calculation. The cache checks the full size before copying the shader blob. A unit test checks admission at a tight limit and that eviction returns the byte count to zero. **Tested** - NVIDIA GeForce RTX 4070 12 GB, driver 617.14, i7-13700F, Windows 11 build 26300, Rust 1.100.0. Debug tests and release smoke runs. - On the original code the split-entry regression check observed 94 bytes charged for a 190-byte entry. On `398cefb`, `cargo test -p xcl --lib shader_cache_counts_split_pieces_against_its_budget` passed. - `cargo build --workspace` succeeded. `cargo test --workspace --no-fail-fast -- --test-threads=4` reported 1414 passed, 0 failed, 46 ignored. The harness includes skipped GPU cases in its pass count. There were 29 SKIPPED messages for wave64 support, unsupported direct-DXIL cases, heap windows, D3D12 debug layers, and the driver cache setting that requires Developer Mode. **Regression run** main: ``` xcl-smoke v1 commit: 06055a7a0fb43c5f83f55e7a2ce201417de171e9 gpu: NVIDIA GeForce RTX 4070 title: RetailTitle seconds: 60 exit: 0x0 frames shown: 1564 (PresentX 1564) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16956 MB ``` this PR: ``` xcl-smoke v1 commit: 398cefbcd74ab303442a2df2ca1dae13f884fab7 gpu: NVIDIA GeForce RTX 4070 title: RetailTitle seconds: 60 exit: 0x0 frames shown: 1580 (PresentX 1580) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16877 MB ``` **Not tested** The retail smoke run did not measure shader-cache pressure or establish whether the title evicted a split shader. The unit test exercises that path directly. **AI use** OpenAI Codex (GPT-6) verified the accounting discrepancy, wrote the patch and test, ran the checks and drafted this description.
bmjask commented 2026-11-25 20:34:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:34:25Z.

Review: COMMENTED


No concrete correctness or accounting defect found. ShaderEntry::size centralizes piece-capacity accounting on insertion and eviction, restoring the cache.bytes invariant; exact-accounting/rejection tests and current Windows CI are green. The intentional exclusion of Vec/Arc/map metadata predates this patch and matches the existing model. I found no blocker.

<!-- greyfinch-sync:ivall/xcl:review:6064589119 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#pullrequestreview-6064589119). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:34:25Z. **Review:** COMMENTED --- No concrete correctness or accounting defect found. ShaderEntry::size centralizes piece-capacity accounting on insertion and eviction, restoring the cache.bytes invariant; exact-accounting/rejection tests and current Windows CI are green. The intentional exclusion of Vec/Arc/map metadata predates this patch and matches the existing model. I found no blocker.
DavidM1911 commented 2026-11-25 21:05:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:34:22Z.


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:7173869620 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7173869620). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:34:22Z. --- 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!
SlopTart commented 2026-11-25 21:05:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:37:11Z.


gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, and the promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Note gpu_depth_buffer_created_for_unordered_access_is_placed is green on main now, #2466 did its job on this lane.
Targeted run of shader_cache_counts_split_pieces_against_its_budget: passed.

<!-- greyfinch-sync:ivall/xcl:comment:7173937611 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7173937611). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:37:11Z. --- `gpu_` suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, and the promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Note `gpu_depth_buffer_created_for_unordered_access_is_placed` is green on main now, #2466 did its job on this lane. Targeted run of `shader_cache_counts_split_pieces_against_its_budget`: passed.
xpatfussy69x commented 2026-11-25 22:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T21:34:04Z.


Test run on exact head 398cefb (398cefbcd74ab303442a2df2ca1dae13f884fab7, on its base 06055a7), clean tree.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs
  • cargo test --workspace -- --test-threads=4: 1414 passed, 0 failed, 46 ignored
  • SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 (on main too)
  • cargo test -p xcl --lib shader_cache: 26 passed, 0 failed, including shader_cache_counts_split_pieces_against_its_budget
  • I hit the same bug independently (closed duplicate #2516): on main, an entry with a 300- and a 200-byte dispatch-chain piece is counted as 94 bytes on insert and 594 on eviction

Regression run (60 s, default settings)

main:

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1130 (PresentX 1130)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14808 MB

this PR:

xcl-smoke v1
commit: 398cefbcd74ab303442a2df2ca1dae13f884fab7
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1140 (PresentX 1140)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14814 MB

No crash or device removal; frames 101 % of main's, peak commit 100 %.

Not tested

  • The PR merged into current main (tested on its own base 06055a7; it merges into 6d12f58 without conflicts)
  • Whether the title evicts a cached shader with a dispatch chain in 60 s: a regression check only
  • AMD / native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7175248541 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7175248541). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T21:34:04Z. --- Test run on exact head `398cefb` (`398cefbcd74ab303442a2df2ca1dae13f884fab7`, on its base `06055a7`), clean tree. **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs - `cargo test --workspace -- --test-threads=4`: 1414 passed, 0 failed, 46 ignored - SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused `V_MUL_F16` / `V_PK_MUL_F16` / `V_CVT_F16_F32` (on `main` too) - `cargo test -p xcl --lib shader_cache`: 26 passed, 0 failed, including `shader_cache_counts_split_pieces_against_its_budget` - I hit the same bug independently (closed duplicate #2516): on `main`, an entry with a 300- and a 200-byte dispatch-chain piece is counted as 94 bytes on insert and 594 on eviction **Regression run** (60 s, default settings) main: ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1130 (PresentX 1130) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14808 MB ``` this PR: ``` xcl-smoke v1 commit: 398cefbcd74ab303442a2df2ca1dae13f884fab7 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1140 (PresentX 1140) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` No crash or device removal; frames 101 % of `main`'s, peak commit 100 %. **Not tested** - The PR merged into current `main` (tested on its own base `06055a7`; it merges into `6d12f58` without conflicts) - Whether the title evicts a cached shader with a dispatch chain in 60 s: a regression check only - AMD / native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
thehollowedone commented 2026-11-25 22:06:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T21:58:53Z.


Independent Windows check of #2475 head 398cefb, on its original base 06055a7, with a clean checkout.

Tested

  • RTX 3080 Ti / NVIDIA 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC; debug build and tests.
  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked -p xcl --lib shader_cache_tests --jobs 6 -- --test-threads=1: 24 passed, 0 failed, 0 ignored.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,414 passed, 0 failed, 46 ignored. The output included 25 GPU SKIPPED notices for unsupported features; these were not counted as GPU coverage.

I read the one-file diff. Cache admission and eviction now use the same size calculation, including split-piece vector capacities; the new test checks accounting, eviction to zero, and rejection at one byte below the entry cost. I found no concrete issue in that change.

Not tested: an AMD GPU, native wave64/per-lane features skipped on this adapter, or a retail title on this PR head. I did not run paired smoke; the earlier independent RTX 3060 report contains that separate evidence. This branch predates current main, so the counts above describe the exact PR head, not a rebased merge result.

AI-assisted: Codex (GPT-6, exact variant unavailable) reviewed the diff, ran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7175785003 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7175785003). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T21:58:53Z. --- Independent Windows check of [#2475 head `398cefb`](https://github.com/xcl-dev/xcl/commit/398cefbcd74ab303442a2df2ca1dae13f884fab7), on its original base `06055a7`, with a clean checkout. **Tested** - RTX 3080 Ti / NVIDIA 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC; debug build and tests. - `cargo build --offline --locked --workspace`: passed. - `cargo test --offline --locked -p xcl --lib shader_cache_tests --jobs 6 -- --test-threads=1`: 24 passed, 0 failed, 0 ignored. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4`: 1,414 passed, 0 failed, 46 ignored. The output included 25 GPU `SKIPPED` notices for unsupported features; these were not counted as GPU coverage. I read the one-file diff. Cache admission and eviction now use the same size calculation, including split-piece vector capacities; the new test checks accounting, eviction to zero, and rejection at one byte below the entry cost. I found no concrete issue in that change. **Not tested:** an AMD GPU, native wave64/per-lane features skipped on this adapter, or a retail title on this PR head. I did not run paired smoke; the earlier independent [RTX 3060 report](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7175248541) contains that separate evidence. This branch predates current main, so the counts above describe the exact PR head, not a rebased merge result. AI-assisted: Codex (GPT-6, exact variant unavailable) reviewed the diff, ran the tests, and drafted this report.
Prime1997 commented 2026-11-26 13:30:24 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Good within the targeted test scope; retain for integration. Counts dispatch-chain piece bytes against the in-memory shader-cache budget.

Reviewed PR head 398cefbcd74ab303442a2df2ca1dae13f884fab7. Tested an isolated, uncommitted merge-tree integration with latest main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, tree 84cb1f99d90a2f90d4d10f00cd41ccd718ee9e69; this is not a clean PR-head run. Integration source overlay SHA-256: c1d9562393880fe0ac48c6ab2ca9d9989ada7c0225a53285df83652bbfc23056.

Measured: 1 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:

  • gpu::recomp::pso::shader_cache_tests::shader_cache_counts_split_pieces_against_its_budget

Build: 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: A small synthetic cache-budget fixture checks piece-byte accounting and eviction without allocating a title-sized shader cache. 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.

<!-- greyfinch-sync:ivall/xcl:review:6074979085 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#pullrequestreview-6074979085). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:30:24Z. **Review:** COMMENTED --- **Good within the targeted test scope; retain for integration.** Counts dispatch-chain piece bytes against the in-memory shader-cache budget. Reviewed PR head `398cefbcd74ab303442a2df2ca1dae13f884fab7`. Tested an isolated, uncommitted merge-tree integration with latest main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, tree `84cb1f99d90a2f90d4d10f00cd41ccd718ee9e69`; this is not a clean PR-head run. Integration source overlay SHA-256: `c1d9562393880fe0ac48c6ab2ca9d9989ada7c0225a53285df83652bbfc23056`. **Measured: 1 passed, 0 failed, 0 ignored, 0 skipped.** Exact selected filters, each run in a fresh process: - `gpu::recomp::pso::shader_cache_tests::shader_cache_counts_split_pieces_against_its_budget` Build: `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:** A small synthetic cache-budget fixture checks piece-byte accounting and eviction without allocating a title-sized shader cache. 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](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
Decodere commented 2026-11-26 18:34:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T18:34:10Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2475 at 398cefbcd74ab303442a2df2ca1dae13f884fab7 (exact parent & merge-base 06055a7a0fb43c5f83f55e7a2ce201417de171e9). 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 (398cefbc)

  • cargo test --release -p xcl --lib shader_cache_counts_split_pieces_against_its_budget -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu::recomp::pso:: (3 consecutive parallel passes): 25 passed, 0 failed, 1 ignored (repeated_pso_shader_compile bench ignored) on all 3 passes (0.08 s / 0.08 s / 0.08 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (exact parent 06055a7a vs 398cefbc)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (398cefbc vs 06055a7a xcl.log: 6,176 / 6,115 MB peak/end local VRAM on both, 4,652 MB vs 4,683 MB end non-local VRAM, 19,516 vs 19,523 translated draws / 1,024 dispatches with 0 skipped).

Exact parent (06055a7a):

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

PR #2475 head (398cefbc):

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

Limits of coverage

  • Full workspace test suite was not run on 398cefbc (only shader_cache_counts_split_pieces_against_its_budget, 3 parallel passes of gpu::recomp::pso::, release build, and exact-parent paired 60 s smokes).
  • The 60 s menu/intro smoke did not fill the in-memory shader cache budget with split shader chains live; split-piece budget accounting and eviction were exercised by the targeted release unit test 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 exact-parent 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:7200609895 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7200609895). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T18:34:10Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2475 at `398cefbcd74ab303442a2df2ca1dae13f884fab7`** (exact parent & merge-base `06055a7a0fb43c5f83f55e7a2ce201417de171e9`). 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 (`398cefbc`) - `cargo test --release -p xcl --lib shader_cache_counts_split_pieces_against_its_budget -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.00 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu::recomp::pso::` (3 consecutive parallel passes): **25 passed, 0 failed, 1 ignored** (`repeated_pso_shader_compile` bench ignored) on all 3 passes (`0.08 s` / `0.08 s` / `0.08 s`, `0` `SKIPPED`). ### Paired 60 s RTX 4060 smoke (exact parent `06055a7a` vs `398cefbc`) Both runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`398cefbc` vs `06055a7a` `xcl.log`: `6,176` / `6,115 MB` peak/end local VRAM on both, `4,652 MB` vs `4,683 MB` end non-local VRAM, `19,516` vs `19,523` translated draws / `1,024` dispatches with `0` skipped). Exact parent (`06055a7a`): ``` xcl-smoke v1 commit: 06055a7a0fb43c5f83f55e7a2ce201417de171e9 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1596 (PresentX 1596) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14007 MB ``` PR #2475 head (`398cefbc`): ``` xcl-smoke v1 commit: 398cefbcd74ab303442a2df2ca1dae13f884fab7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1606 (PresentX 1606) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13970 MB ``` ### Limits of coverage - Full workspace test suite was not run on `398cefbc` (only `shader_cache_counts_split_pieces_against_its_budget`, 3 parallel passes of `gpu::recomp::pso::`, release build, and exact-parent paired 60 s smokes). - The 60 s menu/intro smoke did not fill the in-memory shader cache budget with split shader chains live; split-piece budget accounting and eviction were exercised by the targeted release unit test 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 exact-parent 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.
Foniass commented 2026-12-01 08:08:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:08:56Z.


Triage (#1607) – head 398cefb

Main already has this fix: f2cb30f ("Recompiler: charge split pieces to the shader cache") adds shader.dispatch_chain piece capacities to the byte count in ShaderCache::insert, the same as ShaderEntry::size here, with a regression test. #3103 makes the same one-line change too.
The only thing left in this PR is moving the sum into a shared ShaderEntry::size, a refactor with no change in behaviour.
Recommendation: close (superseded by main commit f2cb30f).

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:7304936738 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7304936738). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:08:56Z. --- **Triage (#1607)** – head 398cefb Main already has this fix: f2cb30f ("Recompiler: charge split pieces to the shader cache") adds `shader.dispatch_chain` piece capacities to the byte count in `ShaderCache::insert`, the same as `ShaderEntry::size` here, with a regression test. #3103 makes the same one-line change too. The only thing left in this PR is moving the sum into a shared `ShaderEntry::size`, a refactor with no change in behaviour. Recommendation: close (superseded by main commit f2cb30f). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:53:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:53:13Z.


Closing as superseded: this change is already on main (f2cb30f8). main pso.rs ShaderCache::insert byte count includes dispatch_chain piece capacities and test shader_cache_charges_split_piece_capacity_on_insert exists

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, 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.

<!-- greyfinch-sync:ivall/xcl:comment:7311791101 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2475#issuecomment-7311791101). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:53:13Z. --- Closing as superseded: this change is already on `main` (f2cb30f8). main pso.rs ShaderCache::insert byte count includes dispatch_chain piece capacities and test shader_cache_charges_split_piece_capacity_on_insert exists Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, 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

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!2465
No description provided.