shader: check OOB_SELECT 1 root-view elements #709
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!709
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-709"
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?
@tharun-37 on GitHub · 2026-11-28 04:06 UTC · original
tharun-37:fix/root-view-oob-select→main· +166 −6 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCFixes #690.
Root-view buffer accesses with dword 3 OOB_SELECT 1 and \idxen\ now compare the element against
um_records. Out-of-range lanes address zero, so loads read 0 and stores are dropped. Offsets stay signed, and OOB_SELECT 0/2/3 and offset-only accesses are unchanged.
Adds a lowering test that the element check appears only for OOB_SELECT 1 with an index, plus regression checks against another mode and an offset-only access.
Validation: \cargo test -p victory-shader --locked; \cargo xtask policy.
AI-assisted (OpenCode).
@Dukestar69 on GitHub · 2026-11-28 04:27 UTC · original · approved these changes
LGTM — verified on Windows (RTX 5090):
cargo test -p victory-shader --lib emit::lower::tests::passed (includingoob_select_one_checks_only_indexed_elements_past_num_records)cargo clippy -p victory-shader --lib -- -D warningspassed with 0 warningscargo xtask policypassed (294 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).