GPU: rectangle corners in normalized vertex formats, NaN in half conversion #1311
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1311"
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?
Imported from Marvisak/VIctory. Originally posted by SamuelReeder on 2026-11-24T17:19:14Z.
expand_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
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T17:26:46Z.
Review: APPROVED
Tested merged cleanly onto
main(ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP (VICTORY_D3D12_WARP=1):cargo test -p victory-gpu(RTX 5090): 53 passed, 0 failed, 1 ignoredVICTORY_D3D12_WARP=1 cargo test -p victory-gpu(WARP): 53 passed, 0 failed, 1 ignoredcargo clippy -p victory-gpu --all-targets: 0 warningscargo xtask policy: okClean normalized vertex format and half-float NaN handling in rectangle expansion. Approving.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by muhammed-aksoy on 2026-11-24T17:54:18Z.
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