Shaders: accesses by title address across a 64 KiB page take each dword from its own page (VICTORY_SEAM_LOADS, off) #3576
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!3576
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3576"
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?
@dyshay on GitHub · 2026-11-30 01:20 UTC · original
pr/seam-loads→main· +577 −2 · 6 files · 1 commits · closed without mergingBranch:
pr/seam-loads(one commit onorigin/maincec481f4)Fixes #(issue to follow)
What it changes
This is BackseatDrivers-Unbound's work (VIctory-AMD-RT 9492b0d, GPL-3.0-or-later), ported to this tree with the author credited as co-author. Their tests are included. Off by default.
A multi-dword load or store by title address (
global_load/store_dwordx2..x4, scalar load pieces, global loads through root views by address, the walking programs' shared looks) took every dword from the first byte's page copy. In an arena, the next 64 KiB is another title page.VICTORY_SEAM_LOADS=1: lanes whose access crosses a page boundary read/write each dword through its own page, in a branch. The other lanes are unchanged (emit/lower.rs,emit/mod.rs).VICTORY_SEAM_LOADS=count(diagnostics builds): only counts crossing accesses, into dword 0 of the faults buffer, reported on the memory frame line (memory.rs).shader_cache.rs: keyed only while the switch is set, so the default retranslates nothing.emit/seam_tests.rs: 5 tests, 2 of them on WARP, reproduce the wrong page without the switch and the right one with it, for a store and for a load.How it was tested
VICTORY_SEAM_LOADS=1, median 45.8 ms, p95 72.9 ms; our same-scene runs without it on the same base are 43.5–47.8 ms median. No regression in frame time, no device loss, ray tracing ran. The original author reports no measurable change from this switch alone on AMD with ray tracing (it was on in every good run of theirs).cargo testpassed for the crates it touches: yes.cargo test -p victory-shader --lib seam: 5 passed (2 on WARP).cargo test -p victory-gpu --lib shader_cache: 10 passed, 1 failed:every_switch_of_the_translator_is_in_the_key("VICTORY_SCALAR_SPLITS is not read by the translator any more"). That test fails on main too, and #3061 fixes it. clippy (-A clippy::while_immutable_condition, which main's victory-shader trips atemit/lower/analysis.rs:467) reports nothing in the lines this changes; the findings it lists are already on main.Closes #3283.
Checked for overlap
SEAM_LOADS,64 KiB page,seamand for the author's PRs. The author has no PR for this upstream (their only one is #559). Related: none on this path.Provenance: ported from BackseatDrivers-Unbound/VIctory-AMD-RT 9492b0d (GPL-3.0-or-later).
Co-authored-by: BackseatDrivers-Unboundin the commit.AI-assisted: ported with Claude Code; reviewed by me.
🤖 Generated with Claude Code
Pull request closed