Defer unused interpolation lookup maps #3670

Open
masteraapjes wants to merge 1 commit from upstream-pr/3670 into main
masteraapjes commented 2026-11-30 03:28:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by masteraapjes on 2026-11-30T03:28:38Z.


What it changes

I/O raising builds complete instruction-definition and phi maps for every shader, though only paired interpolation traverses them. Build the same complete-program indices on first second-half interpolation through a per-call OnceCell. Preserve phi traversal, standalone first-half handling, f32/f16 matching and malformed-input errors.

Rebuilt independently on upstream main 5fabb46eaf6ed8771321787f8871051abde69b9b to resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained.

How it was tested

Windows, pinned Rust 1.98.1. Tested head: 4ec7928e1db3227e8ef72ab780cda7d8acffaaee.

  • cargo test --locked -p victory-shader --lib io::tests -- --nocapture: 10 passed, 1 ignored benchmark.
  • Scoped strict shader Clippy passed with default and all features:
    • cargo clippy --locked --jobs 2 -p victory-shader --all-targets -- -D warnings
    • cargo clippy --locked --jobs 2 -p victory-shader --all-targets --all-features -- -D warnings
  • cargo run --locked --package xtask -- policy: 464 files passed. git diff --check passed.

Current upstream CI blocker, independently reproduced on unmodified main 5fabb46e: both cargo clippy --workspace --all-targets --locked -- -D warnings and cargo clippy --workspace --all-targets --all-features --locked -- -D warnings exit 101 with five errors in host/font.rs:213/260, host/menu.rs:667 and host/panel.rs:602/668. Existing #4679 addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI check job passed.

No GPU lowering or wave-size semantics change. The ignored benchmark and full GPU shader/workspace suites were not rerun; no game FPS improvement is claimed. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included.

Checked for overlap

  • Rechecked current main and targeted open-PR searches alongside the earlier overlap review. The prior interpolation/lazy/I/O-map search found no matching change. Related #3501 does not change io.rs.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5558445193 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3670). Originally posted by [masteraapjes](https://github.com/masteraapjes) on 2026-11-30T03:28:38Z. --- ## What it changes I/O raising builds complete instruction-definition and phi maps for every shader, though only paired interpolation traverses them. Build the same complete-program indices on first second-half interpolation through a per-call OnceCell. Preserve phi traversal, standalone first-half handling, f32/f16 matching and malformed-input errors. Rebuilt independently on upstream main `5fabb46eaf6ed8771321787f8871051abde69b9b` to resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained. ## How it was tested Windows, pinned Rust 1.98.1. Tested head: `4ec7928e1db3227e8ef72ab780cda7d8acffaaee`. - `cargo test --locked -p victory-shader --lib io::tests -- --nocapture`: 10 passed, 1 ignored benchmark. - Scoped strict shader Clippy passed with default and all features: - `cargo clippy --locked --jobs 2 -p victory-shader --all-targets -- -D warnings` - `cargo clippy --locked --jobs 2 -p victory-shader --all-targets --all-features -- -D warnings` - `cargo run --locked --package xtask -- policy`: 464 files passed. `git diff --check` passed. Current upstream CI blocker, independently reproduced on unmodified main `5fabb46e`: both `cargo clippy --workspace --all-targets --locked -- -D warnings` and `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` exit 101 with five errors in `host/font.rs:213/260`, `host/menu.rs:667` and `host/panel.rs:602/668`. Existing [#4679](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4679) addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI `check` job passed. No GPU lowering or wave-size semantics change. The ignored benchmark and full GPU shader/workspace suites were not rerun; no game FPS improvement is claimed. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included. ## Checked for overlap - [x] Rechecked current main and targeted open-PR searches alongside the earlier overlap review. The prior interpolation/lazy/I/O-map search found no matching change. Related #3501 does not change io.rs.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3670:upstream-pr/3670'
git switch 'upstream-pr/3670'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3670'
git switch 'upstream-pr/3670'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3670'
git switch 'upstream-pr/3670'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3670'
git switch 'main'
git merge --squash 'upstream-pr/3670'
git switch 'main'
git merge --ff-only 'upstream-pr/3670'
git switch 'main'
git merge 'upstream-pr/3670'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!3670
No description provided.