Skip to content

[BUNDLE] GPU diagnostics: 3 PRs, #669 #1251 #602 (rebuilt on main 70564ae) - #1692

Open
MamaLeVrai wants to merge 9 commits into
Marvisak:mainfrom
MamaLeVrai:bundle/gpu-diagnostics
Open

MamaLeVrai wants to merge 9 commits into
Marvisak:mainfrom
MamaLeVrai:bundle/gpu-diagnostics

Conversation

@MamaLeVrai

@MamaLeVrai MamaLeVrai commented Nov 24, 2026 •

Copy link
Copy Markdown

One PR in place of 3. After main moved, 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 onto main (70564ae, after the maintainer's 28 commits of Nov 24, 22:36 CET), and the result is built and tested together.

For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a [BUNDLE] PR. The re-verification commands are below, so one run covers all of it.

What is inside

PR Author Head Title
#669 iurysf 52d528ba0 GPU: find a list in the DRED breadcrumbs by its name, not only its pointer
#1251 LaunchDoesntCode 17a15daf7 Diagnostics: trace command-list waits and memory write progress
#602 lucaseddd 380dab26c GPU diagnostics: report retained copy memory

Changes 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.

Verification

Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):

Check Result
cargo clippy --workspace --all-targets --locked -- -D warnings clean
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings clean
cargo test --workspace --locked 479 passed, 0 failed, 7 ignored (one run; main: 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

git fetch https://github.com/MamaLeVrai/VIctory.git bundle/gpu-diagnostics
git checkout FETCH_HEAD
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked

To confirm that no component PR moved since this was built, compare each Head above with gh 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

lucaseddd and others added 5 commits November 24, 2026 02:21
…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>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 20:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@MamaLeVrai
MamaLeVrai force-pushed the bundle/gpu-diagnostics branch from 2b3da5e to a100b0e Compare November 24, 2026 23:50
@MamaLeVrai MamaLeVrai changed the title [BUNDLE] GPU diagnostics: 16 PRs, #279 #491 #500 #537 #602 #669 #1064 #1081 #1233 #1236 #1251 #1254 #1320 #1344 #1449 #1604 [BUNDLE] GPU diagnostics: 3 PRs, #669 #1251 #602 (rebuilt on main 70564ae) Nov 24, 2026

Copy link
Copy Markdown
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 triage: proposed close label.


Generated by Claude Code

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants