shader: preserve scalar size bounds with wide loads #160
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#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?
@krofty on GitHub · 2026-11-27 19:04 UTC · original
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.
@krofty on GitHub · 2026-11-27 19:18 UTC · original
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.
@trustno1-coder on GitHub · 2026-11-27 21:08 UTC · original
Thanks. This is implemented in PR #177, so the change is tracked there now. Closing the issue to keep one place for it.