tombox-xshader: preserve quiet NaN on infinite subtraction in tb_fsub (fixes #333) #365
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!365
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/365/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?
@FilimonEnc on GitHub · 2026-11-24 16:26 UTC · original
FilimonEnc:fix/xshader-fsub-inf-nan→main· +1 −1 · 1 files · 1 commits · closed without mergingOn AMD RDNA2 GPU hardware (and certain host driver configurations), subtracting identical infinities in generated HLSL (
inf - inf) can collapse to zero rather than yielding a quiet NaN (0x7fc00000). This caused failures invop2_basicforv_sub_f32andv_subrev_f32(#642, #643, #707, #708) underTOMBOX_EXEC_HW=1as documented in #333.Explicitly detect identical infinite operands in
tb_fsuband returnasfloat(0x7fc00000u).Fixes #333.
@omonkeyz on GitHub · 2026-11-25 13:51 UTC · original
Thanks. #375 contains the same tb_fsub fix plus NaN-input handling, so this is superseded.
Pull request closed