Skip to content

GPU: preserve NaN and round normal ties to even in primitive::f32_to_half - #335

Closed
towiice wants to merge 1 commit into
fxceless:mainfrom
towiice:fix/primitive-fp16-nan-and-ties-to-even
Closed

towiice wants to merge 1 commit into
fxceless:mainfrom
towiice:fix/primitive-fp16-nan-and-ties-to-even

Conversation

@towiice

@towiice towiice commented Nov 24, 2026

Copy link
Copy Markdown

Summary

Fixes #245.

In \crates/victory-gpu/src/primitive.rs, \ 32_to_half\ previously checked \if exp >= 31 { return sign | 0x7c00; }\ without distinguishing an incoming \NaN\ (
aw_exp == 0xff && man != 0) from overflow/infinity, turning any \NaN\ produced during \F16\ rectangle corner expansion (\�0 + v2 - v1, e.g. \inf - inf\ or an \

tdogghockey added a commit to tdogghockey/victory-fork that referenced this pull request Nov 24, 2026
@towiice

towiice commented Nov 25, 2026

Copy link
Copy Markdown
Author

Closing: this duplicates my earlier #315 for #245, which I opened first and which has the fuller test and description. Sorry for the noise.

@towiice towiice closed this Nov 25, 2026
RecompLive pushed a commit to RecompLive/victory-fork that referenced this pull request Nov 25, 2026
…entifier-error

XStore: a store id without an installed package is an invalid argument
oceansde012 pushed a commit to oceansde012/victory-gta6 that referenced this pull request Nov 25, 2026
…entifier-error

XStore: a store id without an installed package is an invalid argument
(cherry picked from commit c7f1ae3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPU rectangle CPU fallback: FP16 conversion turns NaN into infinity and rounds ties up

1 participant