gpu: shaders::cached compiles hostless, like its siblings #397
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/397"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T16:28:26Z.
What this changes
f531f279gavecached()no not-windows-not-macos fallback, so a hostless build ofvictory-gpu— the Linux suite inCONTRIBUTING.md, and every contributor's gate — fails oncrate::shader_cache, a module that is cfg'd to Windows and macOS. Its siblingsextra_cachedandtargets_cachedkeep afalsefallback;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.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 --workspaceon a Linux host is the check I cannot run here.Checklist
VICTORY_*variable and documented: none addedImported 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):
checkandmacos-scriptsgreen on the current head.shaders::cachedgets the same hostlessfalsefallback as its siblings, sovictory-gpubuilds off Windows and macOS again.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, thevictory-gpu(arm64),victory-shader,victory-backend,victory-metalandvictorytests pass, as do the macOS script tests (rustup-path.sh,run-summary-compare.sh,run-summary.sh --self-test), Windows clippy (-D warnings) andcargo xtask policy. Onevictory-gpurun in four failed main's ownmulti_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.Thanks @AnastasisKon!