Fix the review findings on the #6 diagnostics #9

Closed
github-bot wants to merge 1 commit from gh-pr/9/head into gh-pr/9/base
Owner

@⁠TaynanGT on GitHub · 2026-11-25 09:23 UTC · original
TaynanGT:claude/pr6-review-fixes → ccr-baf59d5b-kieg7k · +206 −68 · 5 files · 1 commits · closed without merging

Fixes for the 15 review findings on #6, on top of its head (5cfc263).

# Finding Fix
1 The dump read guessed pointers through the in-process copy, which disarms a guard page unknown_dump::plain (VirtualQuery: committed, readable, no PAGE_GUARD) before every guessed read, the 16-word log reads included
2 A dispatch with a graphics pipeline was dropped but not counted drop_as(OTHER_KIND); frame line and take_dropped doc no longer call every drop a missing pipeline
3 Typed views of a format with no element size counted as off-element NullView::Typed when the element size is 0
4 Empty views counted under reasons that mean lost data NumElements == 0 is checked first in buffer_srv and buffer_uav
5 One logged flag per reason shared by SRVs and UAVs flags per reason and kind of view, read before the swap
6 Indexed rectangles without a host pipeline counted as "rectangles not expanded" lost only when a host pipeline exists; otherwise prepare reports it
7 Standard pipelines counted before validation and success counted after the method made a pipeline, timed from the call
8 The dump kept its per-call cost after its cap at most the first 256 calls per slot are looked at
9 The short-read fallback changed layout keys and missed 0x218 elements fallback to the slot's shortest description (12 words for 0x218); graphics keys use the first two groups only
10 A host list without mesh dispatches reported as "switched off" its own reason
11 Rates under 0.05 printed as 0.0 counts printed beside the rates
12 Methods that make few pipelines never logged their fallback counts the first pipelines and the first ones after an unknown call are logged
13 VICTORY_WAVE_WHY changes how many draws are dropped said in its doc
14 Misleading words and groups fields words up to the last present group, read beside it; no groups on compute lines
15 unknown_pipeline doc contradicted the code reworded as notes on the 11-25 run and on what this build logs

Tests:

  • cargo test --release -p victory-gpu: 254 passed, 9 ignored.
  • New a_guessed_read_leaves_a_guard_page_armed; it fails with the plain check taken out.
  • cargo clippy --release -p victory-gpu --all-targets, with and without --features diagnostics: clean.

🤖 Generated with Claude Code

**@⁠TaynanGT** on GitHub · 2026-11-25 09:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/9) `TaynanGT:claude/pr6-review-fixes` → `ccr-baf59d5b-kieg7k` · +206 −68 · 5 files · 1 commits · closed without merging Fixes for the 15 review findings on #6, on top of its head (`5cfc263`). | # | Finding | Fix | |---|---|---| | 1 | The dump read guessed pointers through the in-process copy, which disarms a guard page | `unknown_dump::plain` (VirtualQuery: committed, readable, no `PAGE_GUARD`) before every guessed read, the 16-word log reads included | | 2 | A dispatch with a graphics pipeline was dropped but not counted | `drop_as(OTHER_KIND)`; frame line and `take_dropped` doc no longer call every drop a missing pipeline | | 3 | Typed views of a format with no element size counted as off-element | `NullView::Typed` when the element size is 0 | | 4 | Empty views counted under reasons that mean lost data | `NumElements == 0` is checked first in `buffer_srv` and `buffer_uav` | | 5 | One logged flag per reason shared by SRVs and UAVs | flags per reason and kind of view, read before the swap | | 6 | Indexed rectangles without a host pipeline counted as "rectangles not expanded" | `lost` only when a host pipeline exists; otherwise `prepare` reports it | | 7 | Standard pipelines counted before validation and success | counted after the method made a pipeline, timed from the call | | 8 | The dump kept its per-call cost after its cap | at most the first 256 calls per slot are looked at | | 9 | The short-read fallback changed layout keys and missed 0x218 elements | fallback to the slot's shortest description (12 words for 0x218); graphics keys use the first two groups only | | 10 | A host list without mesh dispatches reported as "switched off" | its own reason | | 11 | Rates under 0.05 printed as 0.0 | counts printed beside the rates | | 12 | Methods that make few pipelines never logged their fallback counts | the first pipelines and the first ones after an unknown call are logged | | 13 | `VICTORY_WAVE_WHY` changes how many draws are dropped | said in its doc | | 14 | Misleading `words` and `groups` fields | words up to the last present group, `read` beside it; no groups on compute lines | | 15 | `unknown_pipeline` doc contradicted the code | reworded as notes on the 11-25 run and on what this build logs | Tests: - `cargo test --release -p victory-gpu`: 254 passed, 9 ignored. - New `a_guessed_read_leaves_a_guard_page_armed`; it fails with the `plain` check taken out. - `cargo clippy --release -p victory-gpu --all-targets`, with and without `--features diagnostics`: clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- The unknown pipeline dump reads only committed, readable memory with no
  guard page: its pointers are guessed, and the in-process copy took a
  guard page's one-shot exception, disarming the title's guard. Test:
  a_guessed_read_leaves_a_guard_page_armed.
- The dump looks at the first 256 calls of each slot, falls back to the
  slot's shortest description (12 words for 0x218), keys graphics layouts
  on the first two groups only, logs words up to the last present group
  and leaves groups out of compute lines.
- Standard pipeline methods are counted once they made a pipeline, timed
  from when the title called; the first ones, and the first that follow an
  unknown call, are logged.
- A dispatch with a graphics pipeline is counted as a pipeline of another
  kind; a host list without mesh dispatches has its own reason; indexed
  rectangles without a host pipeline count as no host pipeline. The drop
  line gives the counts beside the rates, and the frame line no longer
  calls every drop a missing pipeline.
- Buffer views: empty views are counted first, views of a format with no
  element size count as typed, and each reason is logged once for shader
  resource views and once for unordered ones.
- Docs: VICTORY_WAVE_WHY slows pipeline making; the unknown pipeline notes
  say what this build logs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:57:43 +00:00
github-bot closed this pull request 2026-11-26 05:57:43 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-25 19:21 UTC · original · edited 2026-11-25 20:01 UTC

Moved into #11, which holds all of this work on one branch, since merged into main.

**@⁠TaynanGT** on GitHub · 2026-11-25 19:21 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/9#issuecomment-7172181048) · edited 2026-11-25 20:01 UTC Moved into #11, which holds all of this work on one branch, since merged into `main`.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.