Diagnostics for the next run: drops and null views by reason, unknown pipelines, wave64 refusals #6

Closed
github-bot wants to merge 6 commits from gh-pr/6/head into gh-pr/6/base
Owner

@⁠TaynanGT on GitHub · 2026-11-25 08:47 UTC · original
TaynanGT:ccr-baf59d5b-kieg7k → local/fxceless-render · +467 −79 · 6 files · 6 commits · closed without merging

Summary

Counters and log lines the next game run needs to decide the next fixes. What the title sees and draws is unchanged.

  • Dropped draws and dispatches by reason. The frame line's "dropped N without a host pipeline" (~344 a frame in a release run) counted every drop whatever the reason. A line per period now gives them per frame by reason:
    • no host pipeline;
    • a stage of the ray-tracing structure builder while it is off;
    • a pipeline of another kind;
    • binding refused;
    • an index buffer without a host copy;
    • rectangles not expanded;
    • mesh dispatches switched off;
    • skipped.
  • Buffer views left null, by reason. The frame line's "left null as the host would refuse them" grew by about four a frame, and only the first refusal at each call site was logged.
    • An empty view loses nothing. A raw view that starts off 16 bytes (one logged: 184 dwords from dword 2) or a view not on an element of its copy hides data the title wrote. Views of memory with no host copy were not counted at all.
    • Each null view is now counted by reason, and the first of each reason is logged with its fields.
    • The frame line gives the split next to the old total.
  • Unknown pipeline methods 0x1c8 / 0x218. The title calls them thousands of times (over 16,384 and 2,048) and goes without the pipelines they fail to make, which may be details missing from the image.
    • The doc of unknown_pipeline now says what the logged descriptions held.
    • The first calls of each slot, and the first two of each layout, log every blob the description points at (bytes and a hash), up to 48 calls per slot. Every 1024th call logs the count.
    • Pipelines made through the standard methods are counted, and counted apart when the same thread's last unknown call came just before them. A fallback would show about one per failed call.
  • Attributable wave64 refusals.
    • The SCC of a lane-mask operation joined at a skip has its own message. Before, it shared the message of a mask read as a number, which needs a different fix. The suffix is unchanged, so the retries still see it.
    • With VICTORY_WAVE_WHY, translations run one at a time, each between WAVE64-SHADER <hash> <stage> begin/end lines.

Verification

  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, with and without --all-features, passes (cross-checked from Linux).
  • cargo test -p victory-shader --lib passes on Linux (211). a_structured_view_made_raw_passes_the_host_check now checks the reasons (raw start, raw format, past the end, empty first, structured stride); it runs in this PR's CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64

Origem TaynanGT/victory-windows#6, aberto por TaynanGT em 11/25/2026 08:33:06.

**@⁠TaynanGT** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/6) `TaynanGT:ccr-baf59d5b-kieg7k` → `local/fxceless-render` · +467 −79 · 6 files · 6 commits · closed without merging ## Summary Counters and log lines the next game run needs to decide the next fixes. What the title sees and draws is unchanged. - **Dropped draws and dispatches by reason.** The frame line's "dropped N without a host pipeline" (~344 a frame in a release run) counted every drop whatever the reason. A line per period now gives them per frame by reason: - no host pipeline; - a stage of the ray-tracing structure builder while it is off; - a pipeline of another kind; - binding refused; - an index buffer without a host copy; - rectangles not expanded; - mesh dispatches switched off; - skipped. - **Buffer views left null, by reason.** The frame line's "left null as the host would refuse them" grew by about four a frame, and only the first refusal at each call site was logged. - An empty view loses nothing. A raw view that starts off 16 bytes (one logged: 184 dwords from dword 2) or a view not on an element of its copy hides data the title wrote. Views of memory with no host copy were not counted at all. - Each null view is now counted by reason, and the first of each reason is logged with its fields. - The frame line gives the split next to the old total. - **Unknown pipeline methods 0x1c8 / 0x218.** The title calls them thousands of times (over 16,384 and 2,048) and goes without the pipelines they fail to make, which may be details missing from the image. - The doc of `unknown_pipeline` now says what the logged descriptions held. - The first calls of each slot, and the first two of each layout, log every blob the description points at (bytes and a hash), up to 48 calls per slot. Every 1024th call logs the count. - Pipelines made through the standard methods are counted, and counted apart when the same thread's last unknown call came just before them. A fallback would show about one per failed call. - **Attributable wave64 refusals.** - The SCC of a lane-mask operation joined at a skip has its own message. Before, it shared the message of a mask read as a number, which needs a different fix. The suffix is unchanged, so the retries still see it. - With `VICTORY_WAVE_WHY`, translations run one at a time, each between `WAVE64-SHADER <hash> <stage> begin/end` lines. ## Verification - `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings`, with and without `--all-features`, passes (cross-checked from Linux). - `cargo test -p victory-shader --lib` passes on Linux (211). `a_structured_view_made_raw_passes_the_host_check` now checks the reasons (raw start, raw format, past the end, empty first, structured stride); it runs in this PR's CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64 <!-- migracao:victory-windows#6 --> Origem [TaynanGT/victory-windows#6](https://github.com/TaynanGT/victory-windows/pull/6), aberto por [TaynanGT](https://github.com/TaynanGT) em 11/25/2026 08:33:06.
- The SCC of a lane-mask operation joined at a skip was refused with the
  same words as a mask read as a number, which the local forms take: the
  two need different fixes, and a log could not tell which stopped a
  shader (f133e35efed2a48a). It now says "an SCC of a lane mask
  exchanged where not every lane runs" (the suffix keeps the retries).
- With VICTORY_WAVE_WHY, the translator's WAVE64 lines carry no hash and
  came from translations on several threads; translations then run one
  at a time, each between two lines naming its shader.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
The frame line's "dropped N without a host pipeline" (~344 a frame in a
release run) counted every draw and dispatch dropped, whatever the
reason: pipelines with no host pipeline, stages of the ray-tracing
structure builder while it is off, binds refused, index buffers without
a host copy, rectangles not expanded, mesh dispatches switched off. A
line per period now gives them per frame by reason, so the next run
shows which one to fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
The frame line's "buffer views left null as the host would refuse them"
grew by about four a frame in a release run, and only the first of each
call site was logged. An empty view loses nothing; a raw view that
starts off 16 bytes (one logged: 184 dwords from dword 2) or a view not
on an element of its copy hides data the title wrote, and views of
memory with no host copy were not counted at all. Each null view is now
counted by reason, the first of each reason logged with its fields, and
the frame line gives the split next to the old total.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
The title calls device methods 0x1c8 and 0x218 thousands of times (over
16,384 and 2,048 in a release run) and goes without the pipelines they
fail to make, which may be details missing from the image. Only the
first 16 words of a few descriptions were logged, not what they point
at, and whether the title then makes the same pipelines through the
standard methods was not known.

- The doc of unknown_pipeline says what the logged descriptions held.
- The first calls of each slot and the first two of each layout log
  every blob a description points at (bytes and a hash), up to 48 calls a
  slot, and every 1024th call logs the count.
- Pipelines made through the standard methods (0x50, 0x58, 0x1f0, 0x2b0)
  are counted, and apart when the same thread's last unknown call came
  just before (under 20 us, 200 us, 2 ms, later): a fallback shows about
  one per failed call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:57:17 +00:00
github-bot closed this pull request 2026-11-26 05:57:17 +00:00
Author
Owner

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

The diagnostics and the fixes from the review (#9) are in main as of 1c41ea2. The fork now keeps a single branch, main.

**@⁠TaynanGT** on GitHub · 2026-11-25 19:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/6#issuecomment-7172430774) · edited 2026-11-25 20:01 UTC The diagnostics and the fixes from the review (#9) are in `main` as of 1c41ea2. The fork now keeps a single branch, `main`.

Pull request closed

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