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. |
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.