shader: check OOB_SELECT 1 root-view elements #709
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tharun-37 on 2026-11-28T04:06:33Z.
Fixes #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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-28T04:27:10Z.
Review: APPROVED
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).