Repository navigation
Conversation
|
I published an opt-in companion branch at If you're authorized to retest the exhaustion case, build the diagnostics branch, set |
|
Tested on RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB, pagefile 32/48 GB; diag build of this PR. Menus 30 fps; world entry around frame 1024; Requested diagnostics (
#550 was tested too: its past-host-heap path never fires on this host and the TDR remains. Full report: #597 (comment). No game data. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine. |
|
A measurement for the capped-heap case this PR is about, on an RTX 4070 SUPER (view heap capped at 1,000,000; the title asks for 1,245,184), diag build of main
So on NVIDIA the exhaustion is what drops the indirect mesh dispatches. The cost is fewer mirrored title slots (737,855 instead of 934,463); I saw no draw needing a slot in that range, but I have not checked it directly. Reusing tables as this PR does would get the same result without giving up title slots; it conflicts with #688's lease/reclaim allocator on my stack, so I could not test the two together. 🤖 Generated with Claude Code |
b82f29c to
05c3757
Compare
|
@rpmaster2 @LooperSalty Thanks for the two controls. |
|
@aycow thanks - noted, and good to see One honest limitation from my side, so the record is clear: on the RX 9070 XT the "no free dynamic descriptor slots" refusal no longer appears at all on What I can still test on the rebased head, if it helps you: the same 480 s A/B against AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine. |
|
Thanks for the RX 9070 XT repetition. The zero current-main refusals are a useful control. If a matched warm scene is available, could you share aggregate dynamic table counts by width and composition (CBV-only, mixed CBV/SRV/UAV, and sampler), unique/repeated counts, peak live slots and refusal counts? The exact commit and settings help compare shape without attributing a speedup to reuse. Counts only are sufficient. Cross-list CBVs still need immutable upload contents retained until fence completion. |
|
@aycow counts from the run I did on your diagnostics branch, as requested. All numbers are aggregates at the first failed rebuilt table, nothing scene-specific.
Outcome across the frame:
By width (requested):
By composition:
Then Two caveats for shape comparison, both from later runs on my host:
I can re-run the demand branch on current AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine. |
|
@rpmaster2 Thanks for the breakdown. The historical failure provides a useful width-178 stress case. Mixed tables accounted for 60,770 reserved slots and CBV-only tables for 2,457. The mixed duplicate counter did not establish identical immutable descriptor and upload generations, so it does not predict reusable capacity. Your zero-refusal current-main results and the new RTX 5060 #1349 comparison make the next comparison more specific. Would you be able to share a current-main warm-window census with the same aggregate fields and peak live slots, including when refusals are zero? A #1349 comparison on the affected hardware would help establish how much pressure remains. We are keeping #562 in draft and holding mixed-CBV expansion until there is current demand and evidence that sealed upload versions can reduce it. AI-assisted using Codex. |
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
|
Updated to upstream AMD, NVIDIA, and WARP passed native readback and closed-list replay with full GPU-based validation. In the synthetic 65,536-slot test, repeated tables reduced peak slots from 65,536 to 4,096 and allocation failures from nine to zero. The unique-table control kept the same occupancy. I updated the description with reproduction steps and the limitations of the current workload. |
…nce/pr562-ccfb029
Change
Share immutable texture SRV tables that current main already rebuilds because they extend beyond the mirrored portion of a capped native descriptor heap. The cache matches the full table width, populated offsets, title view generations and native resource identities. Each recorded list retains its allocation and the native resources through execution and replay. Cache hits still schedule the list's usual texture preparation and state transitions.
Ordinary dynamic ranges also retain their original allocator. Resetting an old recording releases only the slots it owns, even if a replacement title heap uses the same guest address. Current main's raw table CBVs, mixed tables, placed views, UAVs and direct bindless paths keep their existing materialization.
Synthetic reproduction and validation
On Windows with the D3D12 debug layer, a DXC supporting SM 6.6 and the Agility SDK 1.620.x x64 runtime:
Head
4cd352fpassed strict diagnostics Clippy and 14 descriptor and memory tests. AMD Radeon Graphics, GeForce RTX 5070 Laptop GPU, and WARP passed the allocation, native readback, closed-list replay, heap replacement and last-owner retirement checks with full GPU-based validation. The fixture exercises the native allocator and output, with title-side eligibility tested separately. Reproduction and timing methodScope
The current results measure occupancy and correctness on an original synthetic workload. Title-level hit rates, performance and mixed-table coverage remain open. The cache uses main's synchronous completion contract and retains slots while a valid recording can replay them. Distinct ranges can still exhaust or fragment the pool. Fragmentation report
rpmaster2 recorded 12,212 mixed and 3,710 CBV-only requests before the first failed rebuilt table on RX 9070 XT. The texture cache saw zero hits there. LooperSalty eliminated the reported indirect allocation failures by enlarging the dynamic range from 65,536 to 262,144 on a different NVIDIA stack. AMD demand report · NVIDIA capacity control
The earlier CBV ownership and transactional reservation experiments remain available as supporting results. Cross-list mixed-resource and CBV sharing still requires immutable upload versions or submission-time binding. CBV replay fixture · Transactional reservation fixture
Draft pending a title workload that establishes demand for the eligible SRV tables. AI-assisted with OpenAI Codex.