fix(shader): retain scalar bounds with vector loads #177

Closed
github-bot wants to merge 1 commit from github-bot/gh-177 into main AGit
Owner

@⁠krofty on GitHub · 2026-11-27 19:18 UTC · original
fix/wide-scalar-bounds → main · +1 −1 · 1 files · 1 commits · closed without merging

Enabling vectorized scalar-buffer loads also routed count-one loads through an early return, bypassing the existing structure-size clamp for a spilled-root read at offset four.

Restrict the vector path to multi-DWORD loads. Single-DWORD reads keep the existing safety handling; x4/x8/x16 vectorization remains available.

Closes #160.

Validation: the existing software-GPU boundary regression passed with option masks 63 and 127 in separate processes, with six actual dispatch cases each, including reads across partial resource ends and out-of-bounds zeros. Diagnostics build 294 passed through build.sh. Independent source review and diff check passed. The clamp retention itself was checked by source inspection; the GPU fixture does not exercise the spilled-root clamp.

The opt-in in-game vectorization trial showed no performance gain so far. This is a safety fix, not a 30 FPS claim. PR stays open and unmerged.

**@⁠krofty** on GitHub · 2026-11-27 19:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/177) `fix/wide-scalar-bounds` → `main` · +1 −1 · 1 files · 1 commits · closed without merging Enabling vectorized scalar-buffer loads also routed count-one loads through an early return, bypassing the existing structure-size clamp for a spilled-root read at offset four. Restrict the vector path to multi-DWORD loads. Single-DWORD reads keep the existing safety handling; x4/x8/x16 vectorization remains available. Closes #160. Validation: the existing software-GPU boundary regression passed with option masks 63 and 127 in separate processes, with six actual dispatch cases each, including reads across partial resource ends and out-of-bounds zeros. Diagnostics build 294 passed through build.sh. Independent source review and diff check passed. The clamp retention itself was checked by source inspection; the GPU fixture does not exercise the spilled-root clamp. The opt-in in-game vectorization trial showed no performance gain so far. This is a safety fix, not a 30 FPS claim. PR stays open and unmerged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:19:10 +00:00
github-bot closed this pull request 2026-11-28 01:24:25 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.