GPU diagnostics: record DXGI budget at buffer allocation failure #3753
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3753"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T15:05:51Z.
In diagnostic builds, an out-of-memory result from CPU-visible buffer creation now records DXGI usage and budget for both memory segments at the point of failure. The device's adapter LUID selects the adapter. The two segment queries are independent, so the log can include the segment that answered.
The first matching error emits a snapshot. Further snapshots are limited to one per 20 seconds, while the existing per-failure warnings continue to carry the buffer size and the error. This gives the next diagnostic run for #3515 measurements to compare with the preceding frame report. DXGI query documentation
On Windows WARP with Agility 1.620.2, a fixture passed an ordinary HRESULT and two synthetic out-of-memory statuses to the reporting helper. Exactly one snapshot was logged, with the first out-of-memory buffer label and size and all four fields from the live DXGI queries. Both strict GPU Clippy configurations and the asset policy passed.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T15:09:46Z.
Windows CI passed on
370adb0, including both Clippy configurations and the workspace tests. The WARP fixture recorded one snapshot for the first synthetic out-of-memory status. It included both segment usage and budget values from DXGI. The second out-of-memory status and the unrelated HRESULT produced no extra snapshot. The next diagnostic log for #3515 can pair its first buffer warning with the new sample.The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T15:27:27Z.
@andrewpozdnakov7-jpg Ran this on a machine that hits #3515, and it confirms the shared-memory hypothesis.
Setup:
370adb0built with--profile diag --features diagnostics;--console series-s.The world loaded about 4 minutes in. The first
no shared buffercame at 15:26:36, and the run ended 24 s later ona host command list did not close (0x8007000E). Both snapshots:dxdiag: Shared Memory 8161 MB).no shared bufferand 4no mapped bufferlines before the end. Only the two snapshots above were logged.So on a 16 GB machine the shared buffers fill the non-local segment while the card's own memory still has headroom. The paging file doesn't affect it.
AI use: Claude Code (Claude Opus 5.5).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T15:36:06Z.
Thanks for capturing the RX 5700 XT run. At the first shared-buffer failure the process was about 266 MB over its non-local DXGI budget, with about 2.4 GB below its local budget. The close error came 24 seconds later. That first snapshot documents non-local budget pressure in this run. DXGI defines its budget as an application usage target. DXGI budget fields
Follow-up
092bbccsits directly on370adb0. It adds a DXGI snapshot when a host command list close, reset, or prelude reportsE_OUTOFMEMORY. The command-list snapshot has a separate 20-second rate limit, so a recent buffer warning still allows the first command failure to be sampled. This makes it possible to compare the AMD close error with the prelude error in #3515 if someone gets another normal run on either machine.With synthetic HRESULTs on WARP 1.0.22 and Agility 1.620.2, the original head emitted one buffer snapshot. The follow-up emitted one buffer snapshot and one command-list snapshot, each with four DXGI fields. Repeated failures in each category were throttled. Both debug-layer settings gave the same result. The clean GPU diagnostics suite had 246 passes and one ignored in each setting. Strict GPU Clippy and asset policy passed.
Please retain the Git author if cherry-picking the follow-up. If folding it into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>. AI-assisted with OpenAI Codex.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.