shader: lower v_cvt_f32_f64 by 64-bit integer emulation #597
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!597
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-593"
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?
@AnastasisKon on GitHub · 2026-11-28 10:53 UTC · original
AnastasisKon:vibe/cvt-f32-f64-1705ac→main· +260 −0 · 3 files · 1 commits · openWhat this changes
Implements
v_cvt_f32_f64in the translator (one of the refused shaders of #535). The IR and Metal have no f64, so the conversion is emulated in 64-bit integer ops over the source register pair (IEEE-754 double bits in, f32 bits out, round-to-nearest-even). Refs #535How it was tested
cargo test -p victory-shader(host): 422 passed — newcvt_f64_tests::cvt_f32_f64_reference_matches_f64_as_f32(2M random + every-exponent and boundary sweeps vsf64 as f32) andgfx_refusal_tests::cvt_f32_f64_lowers_in_pixel_shader(both wave modes)cargo test -p victory-hle -p victory -p victory-gpu -p xtask— all okcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— clean (RC=0); also compile-checks the new Windows-only GPU execution testvalu_tests::cvt_f32_f64_converts_doubles_on_the_gpu(10 cases incl. inf/overflow/subnormal, runs on hardware + WARP in Windows CI)cargo xtask policy— 404 files okChecklist
VICTORY_*variable and documented — n/a, no new diagnosticsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.