Repository navigation
Conversation
Insertion and eviction now use the same entry size. A split shader can exceed the cache limit through its piece allocations even when the primary DXIL is small. The regression test checks admission and eviction with those allocations. Assisted-by: OpenAI Codex (GPT-6)
…#2127, xcl-dev#2476, xcl-dev#2479, xcl-dev#2467, xcl-dev#2444, xcl-dev#2447, xcl-dev#2448 Integrates compositor RT tracking fix (xcl-dev#2480), split shader cache budget (xcl-dev#2475), foreign-thread deferred release (xcl-dev#2474), Wine 4-thread DXC cap (xcl-dev#2127), DXIL feature/reload fixes (xcl-dev#2476, xcl-dev#2479), DXC loader cleanup (xcl-dev#2467), console xcl-dev#14 null ppv guard (xcl-dev#2444), root-sig flag stripping (xcl-dev#2447), and two-pass stream canonicalization (xcl-dev#2448). Assisted-by: Antigravity (Gemini 4 Neon)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
bmjask
left a comment
There was a problem hiding this comment.
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.
|
|
|
Test run on exact head Tested
Regression run (60 s, default settings) main: this PR: No crash or device removal; frames 101 % of Not tested
AI use
|
|
Independent Windows check of #2475 head Tested
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. |
Prime1997
left a comment
There was a problem hiding this comment.
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.
|
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2475 at Setup
Targeted RTX 4060 release unit tests (
|
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
398cefb,cargo test -p xcl --lib shader_cache_counts_split_pieces_against_its_budgetpassed.cargo build --workspacesucceeded.cargo test --workspace --no-fail-fast -- --test-threads=4reported 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:
this PR:
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.