shader: round signed half-export references toward zero #199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/202"
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 R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:21:02Z.
Change
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.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:21:16Z.
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.