Shaders: root-view buffer accesses ignore OOB_SELECT 1 (index-only bounds), out-of-range stores land in memory #690
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#690
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?
@Machad3x on GitHub · 2026-11-28 03:35 UTC · original
Setup: Windows 11, RTX 3080 Ti 12 GB, Ryzen 7 5700X, 32 GB RAM, Series X profile, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s runs from the prison cell scene.
Related upstream: Marvisak/VIctory#3486.
What happens
Buffer descriptors built in SGPRs with OOB_SELECT 1 bound-check the index alone against
num_records. Our lowering did not honour that. Lanes whose index was at or pastnum_recordsloaded and stored real memory, including stores at index 0xFFFFFFFF.Fix we run
In
emit/lower.rs, for OOB_SELECT 1 with idxen, lanes with index >=num_recordsgo to the null address. Their loads read 0 and their stores are dropped, as on hardware. Offsets stay signed, because an unsigned version broke negative offsets in an earlier attempt. Commits ab2963ab and 84e97b37 on Machad3x/VIctory-nvidiatn1-base.Result
Tested in batch 8 (see the compacted-size issue): no regressions, picture unchanged, 0 refused shaders.
@github-actions[bot] on GitHub · 2026-11-28 03:35 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)
@Machad3x on GitHub · 2026-11-28 03:37 UTC · original
GPU: RTX 3080 Ti 12 GB, driver 621.40. Windows 11 (build 26300). Built from source, diag profile. Not a crash: the session stays alive for the whole 240 s run, so there is no crashes.log for it. The full play logs contain local paths, so these are the relevant lines with paths removed. More lines on request.
This fix has no log line of its own. The run's summary: 0 untranslated shaders, 0 refused pipelines, 0 dropped draws. Average of the last 120 s: 66.8 ms/frame.
@tharun-37 on GitHub · 2026-11-28 03:45 UTC · original
claiming: #690 — I’ll port the OOB_SELECT 1, index-only bounds fix with a focused shader test and PR.
AI-assisted (OpenCode).
@tharun-37 on GitHub · 2026-11-28 04:06 UTC · original
done: claim 7233350292 -> #709
AI-assisted (OpenCode).