shader: round full-width unsigned integer conversions once in v_cvt_f… #110

Open
github-bot wants to merge 1 commit from github-bot/gh-110 into main AGit
Owner

@⁠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.

**@⁠GaiuLulius** on GitHub · 2026-11-26 02:44 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/110) `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.
## 🇧🇷 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:44:14 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/110/head:github-bot/gh-110'
git switch 'github-bot/gh-110'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-110'
git switch 'github-bot/gh-110'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-110'
git switch 'github-bot/gh-110'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-110'
git switch 'main'
git merge --squash 'github-bot/gh-110'
git switch 'main'
git merge --ff-only 'github-bot/gh-110'
git switch 'main'
git merge 'github-bot/gh-110'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.