perf(gpu): skip stale cross-build pipeline libraries via translator-version guard (Wave 7A) #421

Manually merged
github merged 1 commit from github-bot/gh-421 into gh-pr/421/base 2026-12-04 05:23:35 +00:00 AGit
Owner

@⁠Androtim on GitHub · 2026-12-04 04:11 UTC · original
Androtim:feat/ambient-alpha-library-version-agility → main · +100 −2 · 2 files · 1 commits · merged 2026-12-04 05:21 UTC

Summary

Ported the Darner 34b0ba7 (#188, GPL-3.0) pipeline library translator-version guard:

  • Expose shader_cache::translator_id() (env!(VICTORY_TRANSLATOR)) in crates/victory-gpu/src/shader_cache.rs.
  • Write host-pipelines.translator alongside host-pipelines.bin/.next on every replace_library() and supersede any existing pending host-pipelines.next in crates/victory-gpu/src/pipeline/library.rs.
  • Skip loading a pipeline library written by a different translator build (starting an empty one instead to avoid multi-hour stale-library preload hangs), while keeping VICTORY_LIBRARY_KEEP_OLD=1 as an explicit opt-in.

Scope Update

  • Rebased cleanly onto origin/main (d34843d, preserving SHADER_CACHE_VERSION = 5 from #381).
  • Dropped the Agility SDK D3D12SDKVersion = 0 change (apps/victory/src/main.rs and apps/victory/build.rs) following Gate 2 audit 19099679, as MiniVI already uses the strictly superior os_runtime() + /DELAYLOAD:d3d12.dll implementation.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib pipeline::library — 17 passed, 0 failed
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib shader_cache — 11 passed, 0 failed
  • cargo +1.98.1-x86_64-pc-windows-gnu xtask policy — asset policy: 365 files ok
  • cargo +1.98.1-x86_64-pc-windows-gnu check --workspace — passed
**@⁠Androtim** on GitHub · 2026-12-04 04:11 UTC · [original](https://github.com/Androtim/MiniVI/pull/421) `Androtim:feat/ambient-alpha-library-version-agility` → `main` · +100 −2 · 2 files · 1 commits · merged 2026-12-04 05:21 UTC ## Summary Ported the **Darner `34b0ba7` (#188, GPL-3.0)** pipeline library translator-version guard: - Expose `shader_cache::translator_id()` (`env!(VICTORY_TRANSLATOR)`) in `crates/victory-gpu/src/shader_cache.rs`. - Write `host-pipelines.translator` alongside `host-pipelines.bin`/`.next` on every `replace_library()` and supersede any existing pending `host-pipelines.next` in `crates/victory-gpu/src/pipeline/library.rs`. - Skip loading a pipeline library written by a different translator build (starting an empty one instead to avoid multi-hour stale-library preload hangs), while keeping `VICTORY_LIBRARY_KEEP_OLD=1` as an explicit opt-in. ## Scope Update - Rebased cleanly onto `origin/main` (`d34843d`, preserving `SHADER_CACHE_VERSION = 5` from #381). - Dropped the Agility SDK `D3D12SDKVersion = 0` change (`apps/victory/src/main.rs` and `apps/victory/build.rs`) following Gate 2 audit `19099679`, as MiniVI already uses the strictly superior `os_runtime()` + `/DELAYLOAD:d3d12.dll` implementation. ## Verification - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib pipeline::library` — 17 passed, 0 failed - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib shader_cache` — 11 passed, 0 failed - `cargo +1.98.1-x86_64-pc-windows-gnu xtask policy` — `asset policy: 365 files ok` - `cargo +1.98.1-x86_64-pc-windows-gnu check --workspace` — passed
Ported Wave 7A upstream GPL-3.0 improvements:

1. Pipeline library translator-version guard (TrustNo1/Darner 34b0ba7, #188, GPL-3.0):
   - Expose shader_cache::translator_id() (env!("VICTORY_TRANSLATOR")).
   - Write host-pipelines.translator alongside host-pipelines.bin/.next on every replace_library() and supersede any existing pending host-pipelines.next.
   - Skip loading a pipeline library written by a different translator build (starting an empty one instead to avoid multi-hour stale-library preload hangs); keep VICTORY_LIBRARY_KEEP_OLD=1 as an explicit opt-in.

2. Conditional Agility SDK opt-in (ReTerryDavis/ReVIctory d354c69, GPL-3.0):
   - Initialize exported D3D12SDKVersion to 0 so hosts without a local D3D12\D3D12Core.dll stay on the OS in-box runtime instead of failing with D3D12_ERROR_INVALID_REDIST (0x887E0003).
   - Raise D3D12SDKVersion in match_d3d12_core() only when a valid local D3D12\D3D12Core.dll is present beside the executable.

Note: TrustNo1/Darner ad070f0 (PR #94, VICTORY_AMBIENT_ALPHA indoor particle/dust ambient bound) is already present in MiniVI (ported from lobomfz/VIctory-xmem PR #186) and verified intact.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 04:14:44 +00:00
github-bot changed title from perf(gpu,agility): skip stale cross-build pipeline libraries and gate Agility SDK on local D3D12Core.dll (Wave 7A) to perf(gpu): skip stale cross-build pipeline libraries via translator-version guard (Wave 7A) 2026-12-04 04:30:57 +00:00
github-bot force-pushed github-bot/gh-421 from 34ea9b5943 to 105c4bd6a7 2026-12-04 04:30:59 +00:00 Compare
Author
Owner

@⁠Androtim on GitHub · 2026-12-04 04:31 UTC · original

Triage (105c4bd6, CI IN_PROGRESS):

  • Clean, tightly scoped Wave 7A port (+100/-2 across pipeline/library.rs + shader_cache.rs, default-on guard with VICTORY_LIBRARY_KEEP_OLD=1 kill-switch): writes host-pipelines.translator alongside host-pipelines.bin/.next and skips stale cross-build pipeline libraries (great pairing with #381's SHADER_CACHE_VERSION = 5 bump before cutting v2026.12.04.05!).
  • Holding auto-merge for green CI + Gate 2 re-signoff (#282) / quick Gate 3 cross-build upgrade smoke test.
**@⁠Androtim** on GitHub · 2026-12-04 04:31 UTC · [original](https://github.com/Androtim/MiniVI/pull/421#issuecomment-7401336828) Triage (`105c4bd6`, CI `IN_PROGRESS`): - Clean, tightly scoped Wave 7A port (`+100/-2` across `pipeline/library.rs` + `shader_cache.rs`, default-on guard with `VICTORY_LIBRARY_KEEP_OLD=1` kill-switch): writes `host-pipelines.translator` alongside `host-pipelines.bin`/`.next` and skips stale cross-build pipeline libraries (great pairing with `#381`'s `SHADER_CACHE_VERSION = 5` bump before cutting `v2026.12.04.05`!). - Holding auto-merge for green CI + Gate 2 re-signoff (`#282`) / quick Gate 3 cross-build upgrade smoke test.
github-bot force-pushed github-bot/gh-421 from 105c4bd6a7 to 49339e912e 2026-12-04 04:50:45 +00:00 Compare
github-bot force-pushed github-bot/gh-421 from 49339e912e to 3288159667 2026-12-04 05:07:14 +00:00 Compare
github-bot changed target branch from main to gh-pr/421/base 2026-12-04 05:23:32 +00:00
github manually merged commit 3288159667 into gh-pr/421/base 2026-12-04 05:23:35 +00:00
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/Androtim--MiniVI!421
No description provided.