GPU: preserve NaN in reconstructed FP16 rectangle vertices #2264
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2264
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2264/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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 09:21 UTC · original
andrewpozdnakov7-jpg:codex2/rect-fp16-nan→main· +27 −0 · 1 files · 1 commits · closed without mergingThe CPU rectangle fallback reconstructs the fourth vertex in float32 and encodes it back to the vertex format. Its FP16 converter sent NaN through the overflow path, turning a NaN input or a NaN from infinity minus infinity into a signed infinity. Emit a quiet FP16 NaN before checking finite overflow.
The regression expands synthetic
R16G16B16A16_FLOATvertices and checks the generated fourth vertex. It covers a NaN input, a NaN from the arithmetic, and both signs of infinity.On Windows x64 / WARP, the regression failed on
940d32fand passed onc7d145a. A separate synthetic point draw bound the generated vertex as FP16 and read the pixel back from a float render target. It classified the four channels as[+inf, +inf, -inf, -inf]before the patch and[NaN, +inf, -inf, NaN]after it.The
victory-gpudiagnostics suite went from 145 passed, 2 failed, 2 ignored to 146 passed, 1 failed, 2 ignored. The existing placed-view format test (#1999) fails on this runtime in both runs. Strict Clippy with and without diagnostics and the staged asset policy passed. The patch merges cleanly alongside #2243.Coordination claim
AI-assisted with Codex. Synthetic data only.
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 09:54 UTC · original
Thanks for the review. I missed the earlier #1732 when I opened this. Its current head fixes the NaN case and the rounding case from #843. I verified the same Windows/WARP point draw against it, including the NaN produced by the fourth-corner subtraction.
I am closing this duplicate. The rectangle-expansion regression is available as a separate test-only commit on #1732, with the results in the follow-up.
Pull request closed