GPU: round rectangle half-float attributes to even #316
No reviewers
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/fxceless--victory-fork!316
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-316"
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?
@avt0m4t48 on GitHub · 2026-11-24 23:30 UTC · original
avt0m4t48:fix/rectangle-half-rounding→main· +41 −10 · 1 files · 1 commits · openFixes #245.
The CPU rectangle fallback converts the generated fourth vertex's half-float attributes back to binary16. Round halfway values to the nearest even mantissa in both the normal and subnormal paths. Keep NaNs quiet and preserve their sign and the payload bits that fit in binary16.
Verification
R16_FLOATrectangle tests reproduced both reports on2119b0e. The midpoint above 1.0 rounded upward, and a quiet NaN became infinity. All six standaloneprimitive.rstests passed with the patch._Float16checked 353,946 binary32 inputs, including signed finite binary16 values, adjacent midpoints and their neighbors, and generated binary32 bit patterns. Numeric conversions matched. NaNs passed the separate quiet/sign checks.rustfmt --checkandgit diff --checkpassed.This verifies the CPU fallback. No native D3D12 or application run was performed.
@kaayzouee on GitHub · 2026-11-25 00:59 UTC · original
Duplicate of #315?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.