Probe the runtime adapter before warming the shader cache #814

Closed
Kamiloj9 wants to merge 2 commits from upstream-pr/815 into main
Kamiloj9 commented 2026-11-25 08:35:41 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-25T08:35:41Z.


Change

Probe the host adapter's wave size and view-heap limit before translate --warm starts worker threads. The default cache keys then match normal pipeline translation. Preserve explicit VICTORY_HOST_WAVE and VICTORY_VIEW_LIMIT overrides. When both values are supplied, warming works without initializing a local device.

Verification

  • Workspace check, asset policy and independent code review.
  • On RTX, two CLI runs over an isolated capture first translated the shader, then found it in the cache. A separate local title process with the same build and adapter read the exact prewarmed cache entry and created the compute PSO.
  • After the override follow-up, detected adapter facts and explicitly specified matching facts produced the same cache entry. Changing the specified wave size produced a distinct entry. The replay measured cache reuse only.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6600473316 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/815). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-25T08:35:41Z. --- ## Change Probe the host adapter's wave size and view-heap limit before `translate --warm` starts worker threads. The default cache keys then match normal pipeline translation. Preserve explicit `VICTORY_HOST_WAVE` and `VICTORY_VIEW_LIMIT` overrides. When both values are supplied, warming works without initializing a local device. ## Verification - Workspace check, asset policy and independent code review. - On RTX, two CLI runs over an isolated capture first translated the shader, then found it in the cache. A separate local title process with the same build and adapter read the exact prewarmed cache entry and created the compute PSO. - After the override follow-up, detected adapter facts and explicitly specified matching facts produced the same cache entry. Changing the specified wave size produced a distinct entry. The replay measured cache reuse only.
MamaLeVrai commented 2026-11-25 11:10:34 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T10:12:59Z.


Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head edf81bc into main 9376fd6 in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins never used, depth_written never read, in victory-gpu); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: 540 passed, 0 failed, 10 ignored, two runs (main alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7159389826 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/815#issuecomment-7159389826). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-25T10:12:59Z. --- Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `edf81bc` into `main` `9376fd6` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins` never used, `depth_written` never read, in `victory-gpu`); with `--all-features` it fails with the same number of errors as `main` (4). This PR adds none and removes none. `cargo test --workspace --locked`: 540 passed, 0 failed, 10 ignored, two runs (`main` alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.
upstream-sync closed this pull request 2026-11-26 01:05:55 +00:00

Pull request closed

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
fxceless/victory-fork!814
No description provided.