victory-gpu: report VICTORY_SKIP_PIPELINES takes and first skips (NEW-70) #3549

Open
github-bot wants to merge 1 commit from github-bot/gh-3549 into main AGit
Owner

@⁠cloph-dsp on GitHub · 2026-11-27 16:55 UTC · original
cloph-dsp:fix/skip-pipelines-diagnostics → main · +32 −3 · 1 files · 1 commits · open

Depends on: #1633

Claim: NEW-70 (posted on #1633 as issuecomment-7222806878). The earlier PR #2273 that claimed this closed unmerged on 2026-11-27T02:12Z; open PRs #2696 and #3418 touch the same switch but cover release-build gating and @file lists, not this reporting.

Problem: VICTORY_SKIP_PIPELINES silently drops draws/dispatches. The diagnostics DROPS counter aggregates reasons, but nothing says which hashes the switch accepted, and each skipped shader is only reported as a repeated count rather than the first time it actually skips.

Change (1 file, +32/-3): in crates/victory-gpu/src/pipeline.rs (all behind cfg(all(windows, feature = "diagnostics"))):

  • add first_time(what: &str) -> bool with a process-local Mutex<Option<HashMap<String, ()>>> so a reason is reported once;
  • skip_hashes() logs the accepted hashes once via tracing::info!(?hashes, "VICTORY_SKIP_PIPELINES: skipping their draws and dispatches") when the list is non-empty;
  • note_drop() logs the hash the first time that shader actually skips via tracing::info!(hash, "VICTORY_SKIP_PIPELINES: skipped a draw or dispatch"), then still returns the same reason string so drop counting is unchanged;
  • add the synthetic test a_skip_is_reported_once_per_hash (two unique keys, true then false).

The diagnostics-only first_time uses the same HashMap/Mutex style already in the file; no new dependency. No game-derived data is touched: the keys are test strings in the new test and runtime shader hashes already present in the process.

Validation (Windows, Rust 1.100.0/MSVC, CARGO_BUILD_JOBS=2, per-worktree CARGO_TARGET_DIR D:\Victory-Contrib\target-new70):

  • cargo test --locked -p victory-gpu --lib --features diagnostics -- pipeline::tests::a_skip_is_reported_once_per_hash --exact --test-threads=1 --quiet → test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 247 filtered out, exit 0.
  • git diff --check → exit 0.

Limitation: only the named synthetic test was replayed; the full crate suite and a real title run with the switch set were not exercised.

GPU/driver: N/A (CPU-only diagnostics test). AI-assisted: Hy4 flash. No game data, assets, extracted shaders or DRM involved.

**@⁠cloph-dsp** on GitHub · 2026-11-27 16:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/3549) `cloph-dsp:fix/skip-pipelines-diagnostics` → `main` · +32 −3 · 1 files · 1 commits · open Depends on: #1633 Claim: `NEW-70` (posted on #1633 as issuecomment-7222806878). The earlier PR #2273 that claimed this closed unmerged on 2026-11-27T02:12Z; open PRs #2696 and #3418 touch the same switch but cover release-build gating and `@file` lists, not this reporting. Problem: `VICTORY_SKIP_PIPELINES` silently drops draws/dispatches. The diagnostics `DROPS` counter aggregates reasons, but nothing says which hashes the switch accepted, and each skipped shader is only reported as a repeated count rather than the first time it actually skips. Change (1 file, +32/-3): in `crates/victory-gpu/src/pipeline.rs` (all behind `cfg(all(windows, feature = "diagnostics"))`): - add `first_time(what: &str) -> bool` with a process-local `Mutex<Option<HashMap<String, ()>>>` so a reason is reported once; - `skip_hashes()` logs the accepted hashes once via `tracing::info!(?hashes, "VICTORY_SKIP_PIPELINES: skipping their draws and dispatches")` when the list is non-empty; - `note_drop()` logs the hash the first time that shader actually skips via `tracing::info!(hash, "VICTORY_SKIP_PIPELINES: skipped a draw or dispatch")`, then still returns the same reason string so drop counting is unchanged; - add the synthetic test `a_skip_is_reported_once_per_hash` (two unique keys, true then false). The diagnostics-only `first_time` uses the same `HashMap`/`Mutex` style already in the file; no new dependency. No game-derived data is touched: the keys are test strings in the new test and runtime shader hashes already present in the process. Validation (Windows, Rust 1.100.0/MSVC, CARGO_BUILD_JOBS=2, per-worktree CARGO_TARGET_DIR `D:\Victory-Contrib\target-new70`): - `cargo test --locked -p victory-gpu --lib --features diagnostics -- pipeline::tests::a_skip_is_reported_once_per_hash --exact --test-threads=1 --quiet` → `test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 247 filtered out`, exit 0. - `git diff --check` → exit 0. Limitation: only the named synthetic test was replayed; the full crate suite and a real title run with the switch set were not exercised. GPU/driver: N/A (CPU-only diagnostics test). AI-assisted: Hy4 flash. No game data, assets, extracted shaders or DRM involved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:05:07 +00:00
Author
Owner

@⁠oddmaniv on GitHub · 2026-11-27 18:53 UTC · original

Independent verification of the PR author's concurrent WARP pipeline/draw test at 76794d5da2f85506cdafcfc4f145ffed7477449e.

cargo test --locked -p victory-shader --lib emit::host::tests::parallel_warp_pipelines_and_draws -- --exact --nocapture

Tree Result
Unmodified PR head 1 passed, 0 failed, 0 ignored; native exit 0
Unmodified main 1 passed, 0 failed, 0 ignored; native exit 0
PR patch applied to pinned main 1 passed, 0 failed, 0 ignored; native exit 0

Main baseline pin: 63bcca43c6a00a758510398fa43096ce7e4f7df0.

Windows x86_64 MSVC native runs. Local and remote source snapshots matched before and after each check. The adaptation applies the PR diff without additional source edits.
This is focused regression coverage, not the full workspace suite, a gameplay test, or an independent validation of every behavior in the PR. No new fix is claimed.

AI-assisted verification.

**@⁠oddmaniv** on GitHub · 2026-11-27 18:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/3549#issuecomment-7225981102) Independent verification of the PR author's concurrent WARP pipeline/draw test at `76794d5da2f85506cdafcfc4f145ffed7477449e`. `cargo test --locked -p victory-shader --lib emit::host::tests::parallel_warp_pipelines_and_draws -- --exact --nocapture` | Tree | Result | | --- | --- | | Unmodified PR head | 1 passed, 0 failed, 0 ignored; native exit 0 | | Unmodified main | 1 passed, 0 failed, 0 ignored; native exit 0 | | PR patch applied to pinned main | 1 passed, 0 failed, 0 ignored; native exit 0 | Main baseline pin: `63bcca43c6a00a758510398fa43096ce7e4f7df0`. Windows x86_64 MSVC native runs. Local and remote source snapshots matched before and after each check. The adaptation applies the PR diff without additional source edits. This is focused regression coverage, not the full workspace suite, a gameplay test, or an independent validation of every behavior in the PR. No new fix is claimed. AI-assisted verification.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-27 21:26 UTC · original

NVIDIA full-suite run, to go with the reports above by oddmaniv, since none of them names a GPU run. Tested exact head 76794d5 (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.
  • a_skip_is_reported_once_per_hash only builds with the diagnostics feature, so the run above doesn't include it; it passes in cargo test -p victory-core -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --lib --locked --features victory-core/diagnostics,victory-gpu/diagnostics,victory-hle/diagnostics,victory-loader/diagnostics,victory-shader/diagnostics,victory/diagnostics (same skips).
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-27 21:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/3549#issuecomment-7228449824) NVIDIA full-suite run, to go with the reports above by oddmaniv, since none of them names a GPU run. Tested exact head `76794d5` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **866 passed, 0 failed, 10 ignored**. - `a_skip_is_reported_once_per_hash` only builds with the `diagnostics` feature, so the run above doesn't include it; it passes in `cargo test -p victory-core -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --lib --locked --features victory-core/diagnostics,victory-gpu/diagnostics,victory-hle/diagnostics,victory-loader/diagnostics,victory-shader/diagnostics,victory/diagnostics` (same skips). - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3549/head:github-bot/gh-3549'
git switch 'github-bot/gh-3549'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3549'
git switch 'github-bot/gh-3549'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3549'
git switch 'github-bot/gh-3549'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3549'
git switch 'main'
git merge --squash 'github-bot/gh-3549'
git switch 'main'
git merge --ff-only 'github-bot/gh-3549'
git switch 'main'
git merge 'github-bot/gh-3549'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3549
No description provided.