Repository navigation
Conversation
Port main commit f2cb30f by bmjask to nvidia-dev. The cache omits split-piece capacities on insertion while including them on eviction. Related main PR xcl-dev#2475 covers the same accounting gap; this is the narrow already-merged-main repair for the NVIDIA branch. The unchanged regression fails before the fix. Five targeted CPU cache tests pass with the fix, no ignored or explicit skipped tests. Full current-head suite and paired clean-head retail smoke remain pending; no gameplay memory reduction is claimed. Assisted-by: Codex (GPT-6)
|
Tested Exact I ran
2 passed, 0 failed, 0 ignored, 0 runtime skips. Both native processes exited 0, with 1,807 tests filtered out per invocation. Not tested GPU execution, actual driver-cache behavior, pre-fix failure reproduction, benchmarks, retail smoke, and the full suite. AI use T3 Code through the Codex harness ( |
|
Ran the split-shader cache tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. All 26 tests matching Not tested: a retail title, a paired smoke run, the full workspace suite, release profile, AMD and Intel GPUs, native wave64 hosts, Wine, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
After #3203 integrated the NVIDIA branch, this PR now targets I also checked the boundary on Windows/Ryzen 7 5700X3D with the actual synthetic split input from #3213 (shader key AI assistance: OpenAI Codex (GPT-6) compared the two revisions, ran the CPU/disk boundary test, and wrote this note. |
Checked with git only (plus a build of the merged tree); RTX 3080 / Windows 11. AI use: Claude Code (Claude Opus 5.5 and Claude Fable 5.2) ran the builds, tests and title runs, reviewed the diff and wrote this; the code points cited were checked against the merged tree. |
bmjask
left a comment
There was a problem hiding this comment.
Critical review of current head a161e664. This main-targeted PR appears redundant now. Current main already includes shader.dispatch_chain piece capacity in the admission byte calculation and in ShaderEntry::bytes, which is the same accounting repair in this diff. Please compare the PR against current main and close it if it adds no distinct behavior, or retarget/document an actual remaining gap. The added regression is useful, but merging an obsolete port can create churn and obscure which fix owns the cache budget. I checked current main's pso.rs source; no local Windows run.
|
Closing as a duplicate of #2959: its change is already on AI use: Claude Code (Claude Opus 5.5) checked the pair and wrote this; part of the duplicate sweep announced on #3041. |
Port main's split-shader cache admission repair to
nvidia-dev. Insertion omitted dispatch-chain piece capacities while eviction subtracted them, allowing the retained payload to exceed its configured budget and making the accounting inconsistent.What is in it
f2cb30f8b99750d0d01bf3b2ca4ebfb006423621by bmjask: count split-piece capacities on admission ingpu/recomp/pso.rs.54225f5884a94cd23b7aab3f703a7c975070aa77does not. This PR is only the NVIDIA port, not a competing main implementation. Related issue Pipeline Rebuild #2508; stacked main provenance is associated with merged Tests: compare benchmark regression thresholds #2959.Tested
shader_cache_charges_split_piece_capacity_on_insertregression on the unchanged NVIDIA runtime failed as expected: 0 passed, 1 failed, 0 ignored, 1,806 filtered; no SKIPPED messages. It admitted an oversized split shader.cargo test --locked -p xcl --lib --target-dir <isolated-target> -- --exact --nocapture --test-threads=1, selectinggpu::recomp::pso::shader_cache_tests::{shader_cache_charges_split_piece_capacity_on_insert, shader_cache_skips_repeated_translation_and_disk_lookups, shader_cache_checks_context_and_blob_bytes, shader_cache_evicts_old_entries_and_skips_oversized_shaders, shader_cache_coalesces_concurrent_same_key_compiles}as separate fully qualified arguments. The before-fix control selects only the first test. Literal commands, patch hashes and logs are retained locally.Regression run
Pending. No smoke block or gameplay result is claimed. Kept draft until current-head required validation is complete.
Not tested
AI use
Optional temporary Discord for coordinating contributor work, helping test and comparing results: https://discord.gg/6B4TykyC4W