Repository navigation
Conversation
… missing fresh tables or root views
|
The test build does not compile, same failure as #134: The library builds; No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent). |
|
Tested on an RX 7800 XT (RDNA3, driver 32.0.32015.7029, Windows 11 26200, 31.6 GB): Before (same PC, With this PR:
It still ends on a page fault, now in freed textures: Breadcrumbs: only list 0 has finished, and it is 2 commands ( |
|
On Windows 10 22H2, RTX 3060 Ti 8 GB, driver 610.88, I tested the three commits through 9dac364 with #124 and our existing SRV table snapshots. The same setup previously lost the device about 17 seconds after the first heavy world frame. This time the run ended at its 36-second world limit. Windows logged no display reset. The title card faded and subsequent native captures were black. World samples were 0.8–1.2 fps, with a cold host pipeline cache. The NVIDIA-specific detail is that the host still capped the view heap at 1,000,000 descriptors. We still reached the warning for an eight-slot table with a 65,536-slot dynamic reserve. The fresh-table failure now skips the draw. This run shows that exhaustion can occur without an immediate device loss. It does not isolate which change helped or establish stability beyond the test window. |
|
Tested on NVIDIA, where the host caps the view heap. Windows 11, RTX 3080 (driver 616.92), retail title, diagnostics build.
AI-assisted (Claude Code) |
|
Tested on RX 9070 (RDNA 4), Windows 11, Adrenalin 26.11.2: a clear improvement. The world runs 5–6× longer before the device is lost, and the descriptor-slot exhaustion is gone. The remaining removal is still a fault inside freed textures. Build: PR head
With the PR, the opening cutscene plays at roughly 0.5–1.5 fps with partial frames (many draws dropped for untranslated shaders). Audio keeps going the whole time. Remaining removal (PR, diag, DRED):
So on this card a read of freed BC7 textures still happens, just much later. Maybe 6 presented frames isn't enough when a frame takes 1–2 s, or another retirement path still frees too early. I can rerun with other variables if that helps. For #59: a DRED run on plain AI-assisted (Claude Code): log analysis and this write-up. The runs were done by hand. |
|
Test report from another machine, in case it helps: Windows 11, Core i5-13600KF, RX 7800 XT, diagnostics build with Build: Result (one run):
Two observations about that second fault, from earlier runs on
My reading of (2), unconfirmed: a root view has no size, I have not tested this PR alone, only together with #205 and #214. |
|
Follow-up to my comment above, with a correction and one new measurement. Same machine (i5-13600KF, RX 7800 XT), same build ( Correction: my root-view reading did not hold up. I tested it directly. On the next freed-texture fault the report went through the 4,000 noted commands around the last one the GPU reached (1,579 of them with root views) and looked for a root view whose host copy ends up to 16 MiB before the faulting address. It found none; the fault was 22 MB past the nearest copy of title memory. So for that fault a root view running off its 4 MiB window is not the cause, and the four small distances I listed may well have been chance. Please do not build on that part of my comment. What still stands from it: this PR removes the dynamic-slot warning and the low-address fault here, and the freed-texture fault remains (two more runs: about 55 s and 85 s in the world). New: on the software adapter the world's first frame dies in compute dispatches that index the title's own null descriptors. With
So the title keeps a null view at slot 0 (and 6) and points shaders at it whatever kind they read there. GPU-based validation had reported the same slot earlier for other pipelines ("SRV Dimension Expected: TEXTURE2D, In Descriptor: TEXTURE1D, Descriptor Heap Index: [0]"). The null views this PR and #205 fix are the ones we write; these are views the title wrote, and one descriptor cannot have the right kind for every shader that indexes it. I do not know whether this matters on a real GPU: on the RX 7800 XT these dispatches run without a fault with this PR. It does stop WARP from getting far enough to catch the freed-texture fault at its exact command, which is what I was after. |
|
Follow-up to my earlier comment: an experiment on RX 9070 (RDNA 4), Windows 11, Adrenalin 26.11.2, same base (this PR at Change (experiment only, not a fix):
So the remaining freed-texture fault is retirement freeing too early: something still reads those textures more than 4 presented frames after they were retired. The ages in presented frames are probably not enough on their own here. The second run then ends with a different fault: a page fault Next I want to log, in diagnostics builds, why and when each texture is retired and dropped, so the texture DRED names can be traced back to the path that freed it. No game data in this comment. AI-assisted (Claude); tested only on the GPU above. |
…rames, not the title's 60 Hz clock) into the integration Retirement now waits for both the submissions running at retire time and KEEP_FRAMES presented frames. A dynamic table holding constants that finds no slots drops the draw; other tables still fall back to the title's slots. DYNAMIC grows to 1<<19 (1<<16 when the heap is capped). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
…slots; more dynamic slots) into the integration Already covered by PR Marvisak#135's merge (DYNAMIC 1<<19, drop on unmade table): the branch's resolution is kept. Constant tables that find no slots drop the draw, and other tables fall back to the title's slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
|
NVIDIA numbers for the
One caveat about the last column. In one of the 65,536-slot runs, the DRED report shows the title's user data pointing tables at view-heap slots up to 917,140: 12 different slots above 475,712, all null (never made, or left null). So the title does use slots past 475,712, even though AI-assisted (Claude Code). |
|
Tested on RX 9070 XT (RDNA 4), Windows 11 build 26300.9974, Adrenalin 26.11.2 (driver 32.0.32029.2010), offline. The dynamic-slot part works here: the warning and the low-address fault are gone. The run lasts 2.4× longer and now ends on a freed-texture fault, like the other reports above. Build: PR head
On A release run on Mechanism, from reading Remaining fault: the freed-texture class that the RX 7800 XT and RX 9070 reports above also hit. It is consistent with retirement still freeing too early at ~1 fps. Scope: one run per configuration in game, on one machine (one release and one diag run on AI-assisted (Claude Code): analysis and write-up; runs done on my machine. |
|
NVIDIA data point for the capped-heap path: Setup: RTX 4070 (driver 32.0.16.2101), Windows 11. With With Before this PR (plain The device removals that remain after this change are a separate problem: no page fault, a different mesh or compute pipeline almost every run, and still there with the pool fixed. I'll post those separately if they turn out to be useful. Written by Claude Code (Claude Opus 5.5), which ran the builds and read the logs. |
|
Tested on NVIDIA, where the heap is capped: RTX 3060 Ti (Ampere, driver 32.0.16.1714), Windows 10 19045. The base is
My reading:
No regressions seen before the world: menus, intro, start screen and loading behave as without the PR. AI-assisted (Claude Code); the runs are mine. |
|
Follow-up on the same RTX 3060 Ti (Windows 10 19045). This time a release build (
So on this card, with this PR, the remaining limits are untranslated programs and copy cost, not device loss. AI-assisted (Claude Code); the run is mine. |
|
Measured with the title, in the opening cutscene:
In the cutscene, the pool runs out: Without this PR the same warning appears and the draw goes ahead. With it, the draw is dropped:
So in the cutscene, dropping instead of falling back loses about 430 indirect mesh dispatches a frame that drew before, and with them most of the little depth the scene had. The fallback tables were stale, so they weren't right either, but they drew something. Two things that might help:
Counts only. AI-assisted (Claude Code). |
… dynamic descriptor pool, no fallback to stale tables Resolved: draw.rs keeps HEAD's drop-on-missing-table (#336); dynamic pool takes the PR's 2^19 with 2^16 when capped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, refreshing only changed slots Resolved: descriptor.rs replays queued writes before publishing the heap (HEAD) and wraps it in an Arc (PR); host.rs runs prepare_bindless then take_retired (#135), Batch::flush keeps HEAD's coalesced ranges; pipeline.rs takes the PR's translate with HEAD's wave target; watch.rs takes the PR's (HEAD's unguarding inside); buffer_uav keeps HEAD's raw-window fallback; tests from both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolved the conflict in emit/lower.rs by keeping both new helpers (f64_bits_to_f32_bits from Marvisak#134 and src64_dwords from Marvisak#135). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two changes aimed at the host GPU page faults that end the world run (low-address faults such as 0x40da000 / 0x3ba7000).
Tested: cargo test -p victory-gpu -p xtask (0 failures). Run on RX 6750 XT: the freed-texture crash is gone and the run gets much further into the opening cutscene.