fix(victory-gpu): honor VICTORY_SKIP_PIPELINES in release builds #384

Manually merged
github merged 2 commits from github-bot/gh-384 into main 2026-11-26 17:36:24 +00:00 AGit
Owner

@⁠Lewandox on GitHub · 2026-11-26 14:42 UTC · original
Lewandox:fix/victory-skip-pipelines-release → main · +79 −25 · 3 files · 2 commits · merged 2026-11-26 17:35 UTC

Summary

Addresses point 2 of #299: VICTORY_SKIP_PIPELINES was previously gated behind #[cfg(feature = "diagnostics")], so release builds ignored the skip list completely (and even in diagnostics builds, pipeline/make.rs could still queue skipped pipelines via make::early or victory warm).

  • Enable VICTORY_SKIP_PIPELINES in all Windows builds: remove the feature = "diagnostics" gate from parse_skip_hashes, skipped_shader, is_skipped, and note_drop's skipped-shader branch in third_party/victory/crates/victory-gpu/src/pipeline.rs, and from the three is_skipped checks in third_party/victory/crates/victory-gpu/src/draw.rs (prepare_for, dispatch, and indirect).
  • Skip host pipeline compilation as well: check skipped_shader_in(shaders) in pipeline::make::left_out (third_party/victory/crates/victory-gpu/src/pipeline/make.rs) so skipped shaders are never queued by make::early, make::ready, make::now, or make::warm (preventing driver shader-compiler crashes like amdxc64.dll on RDNA 4).
  • Tests: run skip_hashes_accepts_full_hashes_only in non-diagnostics Windows builds too, and add unit tests for match_skipped_shader, is_skipped on a null pointer, and left_out skipping early/ready/now.

Verification

  • cargo test -p victory-gpu --lib pipeline (default/release features): passed
  • cargo test -p victory-gpu --features diagnostics --lib pipeline: 22 passed, 0 failed
  • cargo xtask policy (in third_party/victory): asset policy: 213 files ok
  • Zero clippy warnings in touched files (pipeline.rs, pipeline/make.rs, draw.rs).
**@⁠Lewandox** on GitHub · 2026-11-26 14:42 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/384) `Lewandox:fix/victory-skip-pipelines-release` → `main` · +79 −25 · 3 files · 2 commits · merged 2026-11-26 17:35 UTC ## Summary Addresses point 2 of #299: `VICTORY_SKIP_PIPELINES` was previously gated behind `#[cfg(feature = "diagnostics")]`, so release builds ignored the skip list completely (and even in diagnostics builds, `pipeline/make.rs` could still queue skipped pipelines via `make::early` or `victory warm`). - **Enable `VICTORY_SKIP_PIPELINES` in all Windows builds**: remove the `feature = "diagnostics"` gate from `parse_skip_hashes`, `skipped_shader`, `is_skipped`, and `note_drop`'s skipped-shader branch in `third_party/victory/crates/victory-gpu/src/pipeline.rs`, and from the three `is_skipped` checks in `third_party/victory/crates/victory-gpu/src/draw.rs` (`prepare_for`, `dispatch`, and `indirect`). - **Skip host pipeline compilation as well**: check `skipped_shader_in(shaders)` in `pipeline::make::left_out` (`third_party/victory/crates/victory-gpu/src/pipeline/make.rs`) so skipped shaders are never queued by `make::early`, `make::ready`, `make::now`, or `make::warm` (preventing driver shader-compiler crashes like `amdxc64.dll` on RDNA 4). - **Tests**: run `skip_hashes_accepts_full_hashes_only` in non-diagnostics Windows builds too, and add unit tests for `match_skipped_shader`, `is_skipped` on a null pointer, and `left_out` skipping `early`/`ready`/`now`. ## Verification - `cargo test -p victory-gpu --lib pipeline` (default/release features): passed - `cargo test -p victory-gpu --features diagnostics --lib pipeline`: 22 passed, 0 failed - `cargo xtask policy` (in `third_party/victory`): `asset policy: 213 files ok` - Zero clippy warnings in touched files (`pipeline.rs`, `pipeline/make.rs`, `draw.rs`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:52:45 +00:00
github manually merged commit 70aae52086 into main 2026-11-26 17:36:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.