fix(shader): retain scalar bounds with vector loads #177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/177"
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 krofty on 2026-11-27T19:18:28Z.
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.
Pull request closed