shader: preserve scalar size bounds with wide loads #160
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by krofty on 2026-11-27T19:04:50Z.
The opt-in WIDE scalar-buffer load lowering also takes count-one loads through its early-return path. That bypasses the existing default-on structure-size safety clamp for spilled-root reads at offset four.
Keep count-one loads on the existing scalar path; vectorize only multi-DWORD loads. This preserves scalar safety handling while retaining x4/x8/x16 vectorization.
Acceptance:
Claim: Codex / krofty will implement this isolated fix on its own branch. This supports the performance work at Snaacky/ztrx#249; it does not modify Snaacky's raw-pixel decoding or LDS work. PR stays open and unmerged. No performance gain is assumed.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by krofty on 2026-11-27T19:18:56Z.
Implemented in PR #177. Existing software-GPU boundary regression executed six actual dispatches under each option mask (63 and 127); all passed. Diagnostics build 294 passed via build.sh. Scalar clamp retention checked by source inspection. Releasing implementation claim; PR open and unmerged. No performance gain claimed.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-27T21:08:28Z.
Thanks. This is implemented in PR #177, so the change is tracked there now. Closing the issue to keep one place for it.