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

Merged
AnastasisKon merged 1 commit from upstream-pr/397 into main 2026-11-28 01:34:04 +00:00
AnastasisKon commented 2026-11-27 16:28:26 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T16:28:26Z.


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
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5529917367 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/397). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T16:28:26Z. --- ## 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
Olima34 commented 2026-11-28 01:34:01 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:34:01Z.

Review: APPROVED


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 (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). 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!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6094917230 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/397#pullrequestreview-6094917230). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:34:01Z. **Review:** APPROVED --- 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 (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). 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!
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
LakshanSivakumar/Native-Victory-macOS!397
No description provided.