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 work: needs the maintainer's decision. It now merges cleanly into The PR shares fully resolved texture-SRV tables across command lists (
Splitting out the 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
|
@aycow happy to run it, with one blocker on this host right now. Current Two ways I can give you the census you want, pick one:
On #1349: that card is not in this machine, so I cannot give you a same-hardware comparison. What I can add is the RX 9070 XT side of the picture at the moment refusals were zero - which, per my earlier runs, is the whole steady state on this card since #336 landed, so the "how much pressure remains" answer from here is likely "none that the dynamic pool can see, whatever the tables do". I would rather not report a census from runs that die at 86% of pipeline compilation; a truncated window is worse than a historical one, and you already have my full historical breakdown. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine. |
|
Updated against current main at Thanks @rpmaster2 for documenting the compiler crash that prevented a warm capture. The draft remains open pending evidence that eligible tables account for meaningful demand in an affected run. The documentation page has been removed and the reproduction is in the PR description. |
|
@LooperSalty @Ender1Dragon If either of you has an authorized test slot for the capped-heap workload, this capture build at Build that commit with Please share only the |
|
Quick follow-up for @LooperSalty and @Ender1Dragon. If either of you has an authorized test slot, one matched pair on the capped-heap workload would help resolve the review question for #562. Use the same capture build at Please post just the aggregate |
Snapshot descriptor generations and take non-resurrecting title resource references. Release the registry before descriptor creation, state changes or uploads. Keep the references live through preparation, and drop them after releasing the registry even on a rejected table.
|
Reviewed and verified Code review
Verification (Windows 11, RTX 5090 + WARP)
|
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. Resolution snapshots each title descriptor generation and pins the resource until preparation completes. The global view registry lock is released before native descriptor creation, uploads, or 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.
Current-main eligibility is limited to already materialized textures with fixed backing. Evictable textures and textures placed in the new native arena use normal table materialization. This keeps recorded tables out of the path that can recycle their backing allocations.
Synthetic reproduction and validation
On Windows, select the adapter and run the fixture on the system D3D12 runtime.
The fixture at
134dde0uses the Windows system shader compiler and system D3D12 device creation. It passed native output, closed-list replay, heap replacement, and retirement on AMD Radeon Graphics, GeForce RTX 5070 Laptop GPU, and WARP. The native workload also passed full GPU-based validation on all three using a local validation harness. The fixture acceptsVICTORY_TABLE_TEST_GBV=1for installations where the system debug runtime supports it and requires no SDK path. The lifetime regression covers rejection after collecting a pin and resource release after descriptor replacement. Both strict workspace Clippy configurations passed.The update at
db0c7e5incorporates mainf3578e3. Shared tables now populate view-address entries and clear stale buffer write marks. If the address buffer appears after a table was recorded, a new table supplies its metadata while the old recording keeps its own descriptors. The metadata regression and capped-pool fixture passed on AMD, NVIDIA, and WARP. Thanks to fuzeofficlal for independently verifying the previous head on RTX 5090 and WARP. Independent reportScope
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 matched title capture that demonstrates cross-recording reuse of eligible SRV tables and lower peak slot occupancy or fewer allocation failures. Capture follow-up and A/B instructions · Capture build updated to main AI-assisted with OpenAI Codex.