GPU: rectangle corners in normalized vertex formats, NaN in half conversion #1311
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!1311
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1311/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?
@SamuelReeder on GitHub · 2026-11-24 17:19 UTC · original
fix/rect-normalized-corners→main· +74 −2 · 1 files · 1 commits · closed without mergingexpand_rectscomputes a rectangle's fourth corner only for the vertex formatscomponentsknows; others keep the first vertex's value. This adds the remaining 8- and 16-bit normalized formats:The lowest SNORM integer reads as -1, as in D3D.
f32_to_halfalso turned NaN into infinity; it now stays NaN.The NaN change covers half of #843, reported there with a fix; #1069 (closed) fixed both halves. #1220 covers the rounding half.
Half rounding of exact ties is left to #1220. #1158 and #1204 also touch
expand_rects.Tests (synthetic, CPU only), each failing before and passing after:
signed_normalized_corners_complete_the_rectanglesmall_normalized_formats_get_their_fourth_cornerhalves_keep_nancargo test --workspace --locked --features victory-gpu/diagnosticswithVICTORY_WARP=1 VICTORY_D3D12_WARP=1: 348 passed, 0 failed, 6 ignored. Clippy onvictory-gpuis clean. Not tested with a title or on a hardware adapter.🤖 Generated with Claude Code
@muhammed-aksoy on GitHub · 2026-11-24 17:54 UTC · original
Windows integration results for
075c4baonffe310e. The GPU diagnostics suite passed 56 tests with one ignored. In a separate local merge with the branch from #843, both touchprimitive.rs. Keeping this PR's normalized rectangle changes and #843's payload-preserving, ties-to-even half conversion passed 56 GPU diagnostics tests with one ignored on WARP, including both regression cases. The tested merge is8c799dc. These were synthetic fixtures. AI-assisted.Pull request closed