shader: round full-width unsigned integer conversions once in v_cvt_f… #110
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/uiliannn--VItoriaBr!110
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-110"
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?
@GaiuLulius on GitHub · 2026-11-26 02:44 UTC · original
GaiuLulius:shader-round-u32-to-f32→main· +16 −2 · 1 files · 1 commits · open…32_u32
🇧🇷 Português
Evita erros de arredondamento em conversões de inteiros de largura total para float (uitofp) no WARP/Windows em v_cvt_f32_u32. Ao decompor o operando em duas metades exatas de 16 bits (hi e lo) e combinar via fmad, a soma arredonda exatamente uma vez, independente de o host fundir FMad ou não.
🇺🇸 English
Avoids misrounding in full-width unsigned integer to float conversions (uitofp) on WARP/Windows in v_cvt_f32_u32. Splitting the operand into exact 16-bit halves (hi and lo) and combining via fmad ensures the sum rounds exactly once, whether the host fuses FMad or not.
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.