Shaders: a multi-dword access by title address that crosses a 64 KiB page reads or writes the wrong title page (copies in arenas) #3283
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#3283
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-29 21:18 UTC · original
What happens
A translated shader that loads or stores several dwords by title address takes every dword from the page copy of the access's first byte. Examples:
global_load/store_dwordx2..x4, scalar loads split into pieces, global loads through root views by address, and the walking programs' shared looks. Copies of title memory by address live in arenas where the next 64 KiB is usually a different title page. So when an access straddles a page boundary, its last dwords come from (or go to) whatever page sits next in the arena, not the next page of title memory.Evidence
seam_tests.rs:a_store_across_a_page_writes_its_last_dwords_in_the_next_title_page_on_warp,a_load_across_a_page_reads_its_last_dwords_from_the_next_title_page_on_warp.)The fix (switch, off)
VICTORY_SEAM_LOADS=1: lanes whose access crosses a page read/write each dword through its own page, in a branch. Lanes that do not cross take the existing path.VICTORY_SEAM_LOADS=count(diagnostics builds) only counts such accesses and reports them on the memory frame line. The shader cache keys on the switch only while it is set, so leaving it off retranslates nothing. PR: #(to follow)What to check on other cards
VICTORY_SEAM_LOADS=countin a diagnostics build: how many crossing accesses a frame does your scene have (the memory frame line)? Zero would mean the fix has nothing to do there.=1: anything that looked wrong by address (ray-traced lighting, particles, skinned meshes) that changes? And what does it cost in frame time against the same run without it? It changes the translator, so a full retranslation/preload comes first.@github-actions[bot] on GitHub · 2026-11-29 21:18 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@dyshay on GitHub · 2026-11-29 21:39 UTC · original
Not a crash report: this is a development issue (a code change and how to test it). The relevant log lines and the numbers from our runs are quoted in the issue body, and the pull request linked here has the tests.