shader: round signed half-export references toward zero #202
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!202
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/202/head"
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?
@Vonsek on GitHub · 2026-11-21 18:21 UTC · original
Vonsek:codex/pixel-signed-export→main· +11 −1 · 1 files · 1 commits · merged 2026-11-21 18:23 UTCChange
Round negative half-precision pixel export references toward zero. The previous reference could move a negative result farther from zero after the nearest-half conversion.
Verification
At
2931900,ctest --preset dev --no-tests=error -R '^pixel_aot_(hardware|warp)$' -Vpassed both tests on an NVIDIA GeForce RTX 5080 and Microsoft WARP. Each signed draw checked 4,096 pixels and 16,384 channels with zero maximum absolute error. The D3D12 debug layer was unavailable.Evidence and follow-up
The test generates four signed values on either side of a half-precision rounding midpoint from source in this repository under its license. Before the fix WARP returned -1 in the two negative channels at (0, 0), while the reference expected -1.00098 and -0.999512. The two positive channels agreed.
Checklist
This change was AI-assisted.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 18:21 UTC · original · edited 2026-11-21 18:24 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
2931900ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.