GPU diagnostics: skip pipelines by shader hash #70

Merged
FIocker merged 2 commits from upstream-pr/70 into main 2026-11-24 00:42:21 +00:00
FIocker commented 2026-11-24 00:12:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by FIocker on 2026-11-24T00:12:45Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6571587880 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/70). Originally posted by [FIocker](https://github.com/FIocker) on 2026-11-24T00:12:45Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:51:10 +00:00
DaviTostes commented 2026-11-24 06:54:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T01:14:07Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7118896047 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/70#issuecomment-7118896047). Originally posted by [DaviTostes](https://github.com/DaviTostes) on 2026-11-24T01:14:07Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!70
No description provided.