Repository navigation
[BUNDLE] GPU diagnostics: 3 PRs, #669 #1251 #602 (rebuilt on main 70564ae) - #1692
Open
MamaLeVrai wants to merge 9 commits into
Open
MamaLeVrai wants to merge 9 commits into
MamaLeVrai wants to merge 9 commits into
Conversation
…inter
The device-removed report matched a breadcrumb node to a submitted list by
comparing `as_raw()` of the list with the node's `pCommandList`. On an
RTX 4070 no node ever matched, even without the debug layer: every list
was reported as `None`.
With device-removed data on, each host list is now named ("victory host
list <n>") when it is made, and a node is also matched by the name the
runtime copied (`pCommandListDebugNameW`). The pointer is still compared
first, against every interface pointer our live list answers with (its
own, IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList). The
node's pointer is only compared, never dereferenced: a node may name a list
that is long released.
With the debug layer on (`VICTORY_D3D12_DEBUG=1`) the nodes still do not
match; that case is left open.
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
…g layer hides them With VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1 every breadcrumb node still came out as `None` (a run on an RTX 4070: 389 of 389): neither the pointer nor the name set with SetName reached a node of the list we hold, because the debug layer hands us its own list objects and the runtime records others. No public interface returns the object underneath (ID3D12DebugCommandList has none), so nothing about the object can be compared. Nodes are linked in the order the lists ran. So, with device-removed data on, every submission now starts with one more list made of nothing but 17 markers (`Host::sentinel`; no list of the title's work has that many markers and so few other commands), and when no node matches a list by pointer or name the report takes the nodes after the last such list as the submission's lists, in the order `execute` ran them (`positional`; a prelude has no run). The report says "matched by position after the submission's first list" when it did, and logs the last node's pointer and names when nothing matched, for the next iteration. Also name each list with the two private data keys the runtime reads for a node's ANSI and wide name (`WKPDID_D3DDebugObjectName` and `...NameW`), in addition to SetName, and compare both name fields of a node. Tests: the positional mapping and the sentinel signature on hand-made nodes, and a submission with the sentinel list on the software adapter (it shows no breadcrumb nodes, so the report itself is not checked there). Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
…e; drop the position fallback
A run on an RTX 4070 with the debug layer on showed why a list's name did
not match a node: the runtime appends its own note to the name we gave,
as in "victory host list 158 (debug layer indirect)". The name now matches
exactly or followed by " (", and never as the start of another number
("victory host list 1580"). Both name fields of the node are read, as before.
That makes the sentinel list and the matching by position of the previous
commit unnecessary, so they are removed, together with the extra private
data keys it set: lists are named with SetName again. The warning that
logs the last node's pointer and names when no node matches a list stays.
Tests: the name with the note matches in the wide and the ANSI field, a
longer number and a name without the " (" do not; with the match for the
exact name disabled or loosened to a prefix, the tests fail.
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
MamaLeVrai
force-pushed
the
bundle/gpu-diagnostics
branch
from
November 24, 2026 23:50
2b3da5e to
a100b0e
Compare
Owner
|
Automated triage for the maintainers. Proposed close: a bundle that only re-packages other people's pull requests. This branch only merges the unchanged heads of #669 (already merged), #1251 (closed without merging) and #602 (open). The merge commits contain nothing beyond the automatic merges, so it adds no change of its own, and #602 can be reviewed on its own. CI: no check runs on this head. The description has a section addressed to verifying agents with checkout and cargo commands; automated triage did not follow it. This pull request will be closed in 48 hours unless the author pushes a change or a maintainer removes the Generated by Claude Code |
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 25, 2026
…rvisak#1251 Marvisak#602 (rebuilt on main 70564ae)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One PR in place of 3. After
mainmoved, this bundle keeps the 3 of its earlier 16 PRs that still merge; the left-out ones are listed below. The earlier description follows, and may mention PRs or measurements that no longer apply. GPU diagnostics for hangs and black frames: device-removed reports that name the stopped command, the list and the descriptor tables (#279, #669, #1233, #1236, #1344, #1449, #537), loop-count breadcrumbs for hung shaders (#1081), shader dumps by hash (#279), frame and capture helpers (#500, #1254, #1251), pipeline and copy counters and switches (#1320, #491, #602, #1604) and the guide that says how to use them (#1064). Several reports on #71 (the NVIDIA world hang) use DRED and these switches, so one reviewed branch saves each tester a hand merge. I have not checked, PR by PR, that each leaves a run unchanged when its switch is off. Every head is merged unchanged ontomain(70564ae, after the maintainer's 28 commits of Nov 24, 22:36 CET), and the result is built and tested together.What is inside
52d528ba017a15daf7380dab26cChanges made while bundling
No PR was edited, and there is no hand resolution: a PR that does not merge as it is, is left out (below).
Left out, and why
Rebuilt on the new
main. The earlier version of this bundle had 16 PRs; 3 merge here in order, each checked with clippy as it went in.main(or with an earlier PR of this bundle) in README.md.main(or with an earlier PR of this bundle) in README.md, crates/victory-gpu/src/pipeline.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/draw.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/descriptor/host.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/draw.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/descriptor/host.rs, crates/victory-gpu/src/draw.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/capture.rs.main(or with an earlier PR of this bundle) in README.md, crates/victory-gpu/src/pipeline/make.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/descriptor/host.rs, crates/victory-gpu/src/draw.rs, crates/victory-gpu/src/lib.rs, crates/victory-gpu/src/shader_cache.rs, crates/victory-shader/src/emit/lower.rs, crates/victory-shader/src/emit/mod.rs, crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/pipeline/host.rs.main(or with an earlier PR of this bundle) in README.md.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/draw.rs.main(or with an earlier PR of this bundle) in crates/victory-gpu/src/pipeline.rs, crates/victory-gpu/src/pipeline/make.rs.VICTORY_SHOW_TARGET,VICTORY_CAPTURE_BUSY): it conflicts with this bundle incapture.rs(itsVICTORY_CAPTURE_BUSYtrigger against GPU diagnostics: pick capture frames by draw count #500'sVICTORY_CAPTURE_DRAWS, two triggers for the same job) and in one line ofqueue.rs(producers::presentednext tocapture::frame_recorded). Which trigger stays is for its authors..github/workflows/ci.yml), Improve shader mask handling and GPU diagnostics #1227 (shader mask handling besides diagnostics), Profile: opt-in VICTORY_PROFILE (frame times, memory, caches, loads; frames.csv, a Perfetto trace and an on-screen overlay) #130 (a profiler with an overlay, +2,720 lines), Fix GPU hangs, memory leak, and mesh shader exports; render intro cre… #458 (conflicts withmain) and Crash log: a panic carries our Rust stack #390 (a draft). They are not only diagnostics, or not mergeable as they stand, and each needs its own look.bundle/nvidia-crumbs(with GPU: name the commands at a DRED stop, and dump translated shaders #279), for testers on that tree.Verification
Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 476 passed, 7 ignored)The title was not run, so this says nothing about in-game effect. No game data is used or committed.
Re-verify in one go
To confirm that no component PR moved since this was built, compare each
Headabove withgh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.If this lands
The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code