gpu: shaders::cached compiles hostless, like its siblings #401

Manually merged
github merged 1 commit from github-bot/gh-397 into main 2026-11-28 01:36:52 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 16:28 UTC · original
AnastasisKon:vibe/shader-cached-hostless-9e73da → main · +7 −1 · 1 files · 1 commits · merged 2026-11-28 01:34 UTC

What this changes

f531f279 gave cached() no not-windows-not-macos fallback, so a hostless build of victory-gpu — the Linux suite in CONTRIBUTING.md, and every contributor's gate — fails on crate::shader_cache, a module that is cfg'd to Windows and macOS. Its siblings extra_cached and targets_cached keep a false fallback; cached() now has the same one, so a hostless build compiles and answers "not cached".

No issue claimed for this one: it is a one-line gate repair found while building without the native host. I will open an issue and link it if you would rather have one.

How it was tested

  • cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory: all pass — victory 19, victory-hle 327 plus native_probe 17, victory-loader 29, 0 failed.
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: no warnings on this tree.
  • cargo xtask policy: 391 files ok.
  • Ran the game: not needed — the changed arm is compiled by neither macOS nor Windows.

One caveat for review: the not(any(windows, macos)) arm is compiled by neither this Mac nor CI (Windows), so the hostless build is what exercises it. cargo check --workspace on a Linux host is the check I cannot run here.

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md: none added
  • New diagnostics are behind a VICTORY_* variable and documented: none added
**@⁠AnastasisKon** on GitHub · 2026-11-27 16:28 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/397) `AnastasisKon:vibe/shader-cached-hostless-9e73da` → `main` · +7 −1 · 1 files · 1 commits · merged 2026-11-28 01:34 UTC ## What this changes `f531f279` gave `cached()` no not-windows-not-macos fallback, so a hostless build of `victory-gpu` — the Linux suite in `CONTRIBUTING.md`, and every contributor's gate — fails on `crate::shader_cache`, a module that is cfg'd to Windows and macOS. Its siblings `extra_cached` and `targets_cached` keep a `false` fallback; `cached()` now has the same one, so a hostless build compiles and answers "not cached". No issue claimed for this one: it is a one-line gate repair found while building without the native host. I will open an issue and link it if you would rather have one. ## How it was tested - [x] `cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory`: all pass — victory 19, victory-hle 327 plus native_probe 17, victory-loader 29, 0 failed. - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings`: no warnings on this tree. - [x] `cargo xtask policy`: 391 files ok. - [ ] Ran the game: not needed — the changed arm is compiled by neither macOS nor Windows. One caveat for review: the `not(any(windows, macos))` arm is compiled by neither this Mac nor CI (Windows), so the hostless build is what exercises it. `cargo check --workspace` on a Linux host is the check I cannot run here. ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md: none added - [x] New diagnostics are behind a `VICTORY_*` variable and documented: none added
f531f279 gave cached() no not-windows-not-macos fallback, so a hostless
build of victory-gpu (the Linux suite in CONTRIBUTING and every
contributor's gate) fails on crate::shader_cache, a module cfg'd to
Windows and macOS. Its siblings extra_cached and targets_cached keep a
false fallback; cached() now has the same.

Co-authored-by: AnastasisKon <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 16:29:54 +00:00
github manually merged commit b1113f7493 into main 2026-11-28 01:36:52 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:34 UTC · original · approved these changes

Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff. shaders::cached gets the same hostless false fallback as its siblings, so victory-gpu builds off Windows and macOS again.
  • Local check: current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). On it, the victory-gpu (arm64), victory-shader, victory-backend, victory-metal and victory tests pass, as do the macOS script tests (rustup-path.sh, run-summary-compare.sh, run-summary.sh --self-test), Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in four failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately. That test also flakes on main alone, so it isn't from this batch.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @⁠AnastasisKon!

**@⁠Olima34** on GitHub · 2026-11-28 01:34 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/397#pullrequestreview-6094917230) · **approved these changes** Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff. `shaders::cached` gets the same hostless `false` fallback as its siblings, so `victory-gpu` builds off Windows and macOS again. - **Local check:** current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). On it, the `victory-gpu` (arm64), `victory-shader`, `victory-backend`, `victory-metal` and `victory` tests pass, as do the macOS script tests (`rustup-path.sh`, `run-summary-compare.sh`, `run-summary.sh --self-test`), Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in four failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`. That test also flakes on main alone, so it isn't from this batch. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @⁠AnastasisKon!
This discussion has been locked. Commenting is limited to contributors.
No description provided.