Port shader and texture fixes from VIctory-NVIDIA, and get CI passing #72
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!72
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-72"
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?
@Rezerost on GitHub · 2026-12-01 00:52 UTC · original
Rezerost:nvidia-ports→main· +1 −1 · 1 files · 45 commits · closed without mergingPorts shader and texture fixes from VIctory-NVIDIA that apply to this tree. Original authors are kept on each commit. The
combo:commits are the small changes needed to make them fit here.This is a batch, not one change. If you'd rather review it as separate PRs (shader fixes / alias-copy layouts / neutral stand-ins), say so and I'll split it.
What's in it
Shader translator (TRANSLATOR_VERSION 4 → 6, so caches rebuild once):
evalCentroid.u8register numbers).GPU:
VICTORY_NEUTRAL_ALL_KINDS(on by default,0turns it off).CI fixes (main itself fails these with the pinned 1.98.1 toolchain):
draw.rs, plusis_multiple_ofandassert!in victory-hle.switches::documented_switches_are_read: the README placeholderVICTORY_NAMEis nowVICTORY_..., which the test skips.repository_passes_policy: the ported tests would pushlower.rspast the 640 KiB limit, so they live inlower/trip_offset_tests.rs.lower.rsis now about 635 KiB.Left out on purpose:
crate::fold.Testing
PC: RX 6800 XT 16 GB, driver 32.0.21045.29003, Ryzen 5 9600X, 32 GB DDR5, Windows 11.
cargo build --release --locked -p victorybuilds without warnings, and both CI clippy passes (default and--all-features) are clean.cargo test --workspace --locked --exclude victory-gpupasses, including 332 victory-shader tests (5 ignored) and xtask's policy checks. I did not run the victory-gpu suite, per CONTRIBUTING.🤖 Generated with Claude Code
texture::alias keeps the buffer and both sides' copy layouts of a view the title placed, in another format, in the memory of a texture the host writes (THROUGH), by the view alone. The source is the newest such texture at the view's memory (resource::alias_of), and alias_with asks only for the view's size and a texel of the same bytes. A target the title makes there later can be of another format of that width (R16G16_FLOAT where R32_UINT was): the kept layouts still named the old format, and the copy of the new texture into them is one the host refuses, so the list does not close (0x80070057). The same held for a view's host copy with fewer levels than when the layouts were made. through_fits checks the part count of both sides, each side's format and whether a buffer is wanted (direct); an entry that does not fit is made again, with an info line ("an alias copy's layouts were made for other textures: made again"). Found while tracing the late "did not close" under texture pressure (#3135, #3254); not shown to be that one's command. Test: texture::alias_layout_tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 2a6376178f6b2baf0e73f656b78c216fdfb5eb9c)@motioncsgo on GitHub · 2026-12-01 07:59 UTC · original
Tested this on an RX 7900 XTX (RDNA3) with a Ryzen 9 5950X and 64 GB of RAM. Settings: Series X, FSR 4 quality to 4K, RT off and on. The build was v2026.11.30.8 with this PR merged (no conflicts), plus #74 and a few local patches.
Translation and pipelines:
warm --used: none bad, none crashed.In game: no new picture problems, RT off or on. The existing RT shadow speckles on characters look the same as before the PR. RT off: 55.5 ms median (18 fps), same as before. One run each, at a different spot from our older runs, so this isn't a precise speed comparison.
Tests:
emit::barycentric_tests::mixed_input_interpolation_center_and_centroidneedsdxc -dumpbin, and dxc isn't installed here.emit::tests::interpolated_f16_writes_the_op_sel_half_with_modifiersfails only in the parallel run and passes alone.host::refresh_tests::only_what_differs_goes_upis flaky, about one in three runs alone. It was flaky before this PR too.Pull request closed