Repository navigation
D3D12.X: release empty tiled-texture VRAM pools - #800
wayward-tail wants to merge 1 commit into
Conversation
Pages previously appended 64 MiB DEFAULT pool heaps monotonically and never released them back to VRAM even after idle and cooling tiles returned to free. Track pool heaps as Vec<Option<ID3D12Heap>>, drain expired cooling tiles in sweep(), drop excess pools whose all POOL_PAGES tiles are free (keeping at least one pool warm), and reuse vacated pool indices on future allocations.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Code read of head 1. if cap > 0 && self.pools.len() >= cap {
self.evict_lru(EVICT_BATCH);
2. Smaller: the heap is dropped once its tiles have sat in AI use: Claude Code, Claude Sonnet 5.5, read the diff and the code of #640 / #782 at the heads named above and drafted this comment; I checked each line reference. |
…ps (ivall#594) Re-apply XCL_PAGE_BUDGET_MB LRU texture eviction (ivall#640) and fenced unmaps (ivall#594) on top of upstream/main (930e8b4) + ivall#1182/ivall#1142/ivall#800, using real::create_raw_fence for vram queue fences under Wine. Assisted-by: Antigravity (Google DeepMind)
|
Hardware verification on NVIDIA GeForce RTX 2060 SUPER (Turing 8 GB) at Environment:
1. Invariants & Unit Verification:
2. Retail Title Smoke & Sustained Streaming Run:Tested on a heavy retail title package with
3. Edge Cases, Cross-PR Combinations & Downstream Interactions:
AI use: Gemini 4 Neon assisted with test orchestration, telemetry analysis, and report preparation. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
Tiled-texture pool heaps remain allocated after all their tiles become free. Release excess completely free heaps after cooling, keep one warm pool, and reuse vacated pool slots. This preserves the upstream idle-page sweep.
What is in it
Tested
e712b74e0157f9bfc3a4870d9683e048bcc54a95; Windows 11 Home build 26200, AMD Ryzen 7 8845HS, NVIDIA RTX 4060 Laptop GPU (driver 32.0.15.9282), Rust 1.100.0 MSVC, DXC 1.9.2609.5. Tests debug; title smoke release with symbols.XCL_ADAPTER=rtx 4060.cargo build --workspaceandcargo build --release -p xcl: succeeded.cargo test --workspace --no-fail-fast -- --test-threads=4: 701 passed, 1 failed, 41 ignored. The two wave64 skips below are included in Cargo's passed count.64b3f35: 700 passed, 1 failed, 41 ignored.gpu_clamp_and_omod_per_instructionfails atv_pk_add_i16 clampon unmodified main on this GPU.Regression run
Main:
This branch:
Not tested
XCL_SAMPLE_*game-data variables: unset, so those bodies were not exercised.AI use