Shaders: preserve explicit LOD in 2D-array gathers #3369
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3369
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3369"
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?
@masteraapjes on GitHub · 2026-11-29 22:20 UTC · original
masteraapjes:codex/shader-array-gather-lod→main· +326 −3 · 4 files · 1 commits · openWhat it changes
2D-array
image_gather4_landimage_gather4_l_olose explicit LOD through DXIL textureGather, which has no LOD operand. Extend four-load lowering to arrays and preserve the layer in every load. Resolve clamped layer ties explicitly to keep NVIDIA and WARP rounding consistent. Texel offsets apply at the requested mip and never to the layer.Rebuilt independently on upstream main
5fabb46eaf6ed8771321787f8871051abde69b9bto 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:
4322573a3932843da9bf827b41d18f81cf2c8941.emit::gather_lod_tests::named_lod_gathers_translate_and_validate: 1 passed.cargo clippy --locked --jobs 2 -p victory-shader --all-targets -- -D warningscargo clippy --locked --jobs 2 -p victory-shader --all-targets --all-features -- -D warningscargo run --locked --package xtask -- policy: 465 files passed.git diff --checkpassed.Current upstream CI blocker, independently reproduced on unmodified main
5fabb46e: bothcargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --all-features --locked -- -D warningsexit 101 with five errors inhost/font.rs:213/260,host/menu.rs:667andhost/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 CIcheckjob passed.This update runs CPU translation/DXIL validation rather than new hardware dispatches. No new wave64, title or FPS result is claimed. Existing XY clamp and whole-mip shortcuts remain; general addressing and fractional/out-of-range LOD handling are outside scope. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included.
Checked for overlap
@madvillain91 on GitHub · 2026-11-29 22:47 UTC · original
System Information:
Findings:
Log evidence:
victory-nvidia-play-20261129-223854-29408.log
Conclusions/Notes:
@dyshay on GitHub · 2026-11-30 03:12 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. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.3b182f69bdto4322573a39View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.