Skip to content

GPU diagnostics: VICTORY_SKIP_PIPELINES says what it took and when it skips - #2273

Open
BaggyALPHA wants to merge 1 commit into
Marvisak:mainfrom
BaggyALPHA:diag/skip-pipelines-says-so
Open

BaggyALPHA wants to merge 1 commit into
Marvisak:mainfrom
BaggyALPHA:diag/skip-pipelines-says-so

Conversation

@BaggyALPHA

Copy link
Copy Markdown
Contributor

Claimed in #1633.

The problem

VICTORY_SKIP_PIPELINES is the switch five open threads are bisecting the world hang with (FIND-12, FIND-13, #1968, #1972, NEW-20), but it never says whether it did anything. Its effect shows up only in two places:

  • a DRED dump, and only of whichever list happened to be dumped;
  • the frame report's rates, dropped {:.0} and dropped {:.1}/frame, which round a handful of dropped draws across many frames to 0.

So a run with hashes set and nothing in the log is indistinguishable from three different situations: the list was refused in full (a typo, a 15-digit hash), the named program never ran, or it ran and was skipped a few times per frame. I ran into exactly this while testing the three-program skip list from #1968 on an RTX 3080, concluded a program had been skipped when I had no evidence it had, and had to correct it publicly.

The change

Three lines, all behind diagnostics; nothing about what gets skipped changes.

  1. Where the switch reads its hashes, once: the hashes it accepted. A list refused in full prints no hashes, next to the existing per-hash warning.
  2. The first draw or dispatch each hash drops, once per hash — not once per draw.
  3. The frame report's per-reason line keeps the absolute count beside the rate: dropped 31 (1.0/frame) ... : skipped shader <hash> instead of dropped 1.0/frame ....

Verification

RTX 3080 (driver 621.24), Ryzen 7 5800X, Windows 11 26300, on main 940d32f.

Tests. cargo test -p victory-gpu --features diagnostics --locked: 145 passed, 2 failed; the same two fail on main 940d32f in a separate target directory (144 passed, 2 failed) — descriptor::host::tests::dynamic_slots_are_held_until_released and memory::tests::lists_share_a_table_and_copies_keep_their_views, the capped-view-heap pair (FIND-9, and what #2121 is for). Without the feature: 141 passed, same two. The new pipeline::tests::a_skip_is_reported_once_per_hash is synthetic and needs no GPU.

clippy -p victory-gpu --all-targets -- -D warnings clean with and without the feature; cargo xtask policy 182 files ok; rustfmt --check produces the same per-file diff counts as main (which is not rustfmt-clean), so this adds none.

In the title, two short runs, one graphics pipeline bound at frame 2 of the boot screens skipped, plus a deliberately malformed entry:

WARN  VICTORY_SKIP_PIPELINES expects 16-digit shader hashes hash="nothexdigits123"
INFO  VICTORY_SKIP_PIPELINES: skipping their draws and dispatches hashes=["dfafaf...", "58d926..."]
INFO  VICTORY_SKIP_PIPELINES: skipped a draw or dispatch hash="dfafaf..."
INFO  VICTORY_SKIP_PIPELINES: skipped a draw or dispatch hash="58d926..."
INFO  dropped 31 (1.0/frame) without a host pipeline: skipped shader 58d926...

Two per-skip lines for 62 dropped draws, so once per hash holds. An earlier run that skipped five compute programs created during boot printed the accepted-list line and no per-skip line, which is the case this change exists to make legible: the switch was active with five valid hashes and none of them skipped anything.

Note on #1320

#1320 moves the skip to pipeline-creation time and keeps the skipped shader {hash} reason this builds on, so the two are complementary. It touches pipeline.rs as well; whichever lands first, I will rebase this onto it (my rebase notes for that PR).

Nothing from the game is in the diff or this description: a log line, a count, and a test over literal strings. The two short runs used the local title; everything else is synthetic.

AI-assisted (Claude Code); the results above are from the runs and builds described.

… skips

The switch's effect was observable only in a DRED dump of whichever list
happened to be dumped, or in the frame report's per-frame averages, which
round a handful of dropped draws to `0`. A run with a hash set and nothing
in the log was therefore indistinguishable from one whose list was refused
in full (a typo, a short hash) or whose program never ran.

Three lines, all behind `diagnostics`:

- the hashes the switch accepted, once, where it reads them, so a list it
  refused in full is not mistaken for one that skipped nothing;
- the first draw or dispatch each hash drops, once per hash;
- the drop counts in the frame report keep their absolute count beside the
  rate.

Nothing about what gets skipped changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

VICTORY_SKIP_PIPELINES diagnostics: report first-time skips and drop counts alongside per-frame rates (a few drops over many frames rounded to 0.0). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Diagnostics-only, useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants