GPU diagnostics: skip pipelines by shader hash #70

Manually merged
github merged 2 commits from gh-pr/70/head into gh-pr/70/base 2026-11-26 03:49:09 +00:00
Owner

@⁠FIocker on GitHub · 2026-11-24 00:12 UTC · original
FIocker:gpu/diagnostic-pipeline-filter → main · +77 −5 · 3 files · 2 commits · merged 2026-11-24 00:42 UTC

Add VICTORY_SKIP_PIPELINES for diagnostics builds. It takes comma-separated 16-digit shader hashes from the pipeline log and drops draws, mesh dispatches, compute dispatches, and indirect execution for matching pipelines. Indirect work is skipped before the argument clamp can change its buffer. Drop diagnostics report the shader that selected the pipeline.

This lets a tester isolate commands involved in a GPU hang without recompiling between runs. Ordinary builds compile out the filter. The parser test uses fabricated hashes.

Validation on x64 Windows:

  • cargo check --workspace --locked passed.
  • cargo test --locked -p victory-gpu --features diagnostics skip_hashes_accepts_full_hashes_only passed.
  • cargo test --locked --workspace --features victory/diagnostics -- --skip root::tests::host_serialized_blobs_create_root_signatures passed the selected tests. The excluded test reproduces its E_INVALIDARG on clean main and is addressed separately by #36.
  • cargo xtask policy --staged passed.
**@⁠FIocker** on GitHub · 2026-11-24 00:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/70) `FIocker:gpu/diagnostic-pipeline-filter` → `main` · +77 −5 · 3 files · 2 commits · merged 2026-11-24 00:42 UTC Add `VICTORY_SKIP_PIPELINES` for diagnostics builds. It takes comma-separated 16-digit shader hashes from the pipeline log and drops draws, mesh dispatches, compute dispatches, and indirect execution for matching pipelines. Indirect work is skipped before the argument clamp can change its buffer. Drop diagnostics report the shader that selected the pipeline. This lets a tester isolate commands involved in a GPU hang without recompiling between runs. Ordinary builds compile out the filter. The parser test uses fabricated hashes. Validation on x64 Windows: - `cargo check --workspace --locked` passed. - `cargo test --locked -p victory-gpu --features diagnostics skip_hashes_accepts_full_hashes_only` passed. - `cargo test --locked --workspace --features victory/diagnostics -- --skip root::tests::host_serialized_blobs_create_root_signatures` passed the selected tests. The excluded test reproduces its E_INVALIDARG on clean main and is addressed separately by #36. - `cargo xtask policy --staged` passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:08 +00:00
github manually merged commit 38ae55dc13 into gh-pr/70/base 2026-11-26 03:49:09 +00:00
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 01:14 UTC · original

Tested 38ae55d with the diagnostics feature on the Windows build under Wine 11.22 + vkd3d-proton 3.1 (Arch Linux x86_64, AMD RX 9060 XT, RADV 26.3.1), with a native Microsoft d3dcompiler_47: pass, no regression.

  • victory_gpu (diagnostics): 39 passed, 2 failed — the two environment-only failures (a_rejected_blob_gives_an_empty_library, and #128's upload skip).
  • The diff adds no test for the hash skip; the diagnostics feature itself builds and runs here.

No game data used.

**@⁠DaviTostes** on GitHub · 2026-11-24 01:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/70#issuecomment-7118896047) Tested `38ae55d` with the **diagnostics** feature on the Windows build under **Wine 11.22 + vkd3d-proton 3.1** (Arch Linux x86_64, AMD RX 9060 XT, RADV 26.3.1), with a native Microsoft `d3dcompiler_47`: **pass, no regression**. - `victory_gpu` (diagnostics): **39 passed, 2 failed** — the two environment-only failures (`a_rejected_blob_gives_an_empty_library`, and #128's upload skip). - The diff adds no test for the hash skip; the diagnostics feature itself builds and runs here. No game data used.
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!70
No description provided.