Support explicit-LOD texture samples with offsets #3168

Open
github-bot wants to merge 1 commit from github-bot/gh-3168 into main AGit
Owner

@⁠masteraapjes on GitHub · 2026-11-29 20:25 UTC · original
masteraapjes:codex/shader-explicit-lod-offsets → main · +175 −3 · 4 files · 1 commits · open

What it changes

Admit decoded image_sample_l_o to the SampleLevel path and consume explicit LOD after coordinates while retaining packed texel offsets. Accepting the opcode alone would silently sample mip 0. Keep authored 2D mip/coordinate regressions for positive/negative offsets, A16/full-width coordinates and sequential/NSA registers.

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: a3a9c4ee9a11fb6cffcc98e32b0702ee4aea076a.

  • Focused CPU translation/DXIL validation emit::sample_lod_offsets_tests::explicit_lod_offset_samples_translate_and_validate: 1 passed.
  • 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: 465 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 #4680 addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI check job passed.

This update runs CPU translation/DXIL validation rather than new hardware dispatches. Coverage is 2D sampling with constant offsets in DXIL’s -8..7 range. No new title, wave64 or FPS result 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. Related #3369 preserves array-gather LOD; #2676 separately fixes signed-Z offsets.
**@⁠masteraapjes** on GitHub · 2026-11-29 20:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3168) `masteraapjes:codex/shader-explicit-lod-offsets` → `main` · +175 −3 · 4 files · 1 commits · open ## What it changes Admit decoded `image_sample_l_o` to the SampleLevel path and consume explicit LOD after coordinates while retaining packed texel offsets. Accepting the opcode alone would silently sample mip 0. Keep authored 2D mip/coordinate regressions for positive/negative offsets, A16/full-width coordinates and sequential/NSA registers. 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: `a3a9c4ee9a11fb6cffcc98e32b0702ee4aea076a`. - Focused CPU translation/DXIL validation `emit::sample_lod_offsets_tests::explicit_lod_offset_samples_translate_and_validate`: 1 passed. - 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`: 465 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 [#4680](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4680) addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI `check` job passed. This update runs CPU translation/DXIL validation rather than new hardware dispatches. Coverage is 2D sampling with constant offsets in DXIL’s -8..7 range. No new title, wave64 or FPS result 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. Related #3369 preserves array-gather LOD; #2676 separately fixes signed-Z offsets.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 20:29:23 +00:00
Author
Owner

@⁠dyshay on GitHub · 2026-11-29 20:46 UTC · original

Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with --profile diag --features diagnostics, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-29 20:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3168#issuecomment-7262352618) Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with `--profile diag --features diagnostics`, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.
(cherry picked from commit d0597eba19)
card_pass took the compare's capture (7addcfc7, VICTORY_LAND_CAPTURE) and
its two test callers still passed five arguments, so the library's tests
did not build. They pass [0; 3], no capture, as the other callers outside
the capture's mode do.

The thin recorder's bindings_record_no_work names every call by what it
records; begin_query and end_query (471d05c4, #3715) record into the query
heap and were in no list. They join the calls that record work.

The shader key's test lists four VICTORY_ORACLE_* names the translator no
longer reads since the differential fuzzer left (a1fe8350); it failed on
the first of them.

(cherry picked from commit d8e409cd45)
github-bot force-pushed github-bot/gh-3168 from 9696a9e9e3 to a3a9c4ee9a 2026-12-01 13:38:26 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3168/head:github-bot/gh-3168'
git switch 'github-bot/gh-3168'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3168'
git switch 'github-bot/gh-3168'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3168'
git switch 'github-bot/gh-3168'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3168'
git switch 'main'
git merge --squash 'github-bot/gh-3168'
git switch 'main'
git merge --ff-only 'github-bot/gh-3168'
git switch 'main'
git merge 'github-bot/gh-3168'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3168
No description provided.