Shaders: preserve signaling NaNs in typed buffer loads #1642
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!1642
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1642"
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?
@zhaibingye on GitHub · 2026-11-24 20:18 UTC · original
zhaibingye:fix/typed-buffer-nan-payload→main· +56 −4 · 2 files · 1 commits · openAddresses the signaling-NaN case in #1242 (VIC-BT-019). Loading half 0x7c01 on main returned 0x7fc02000 on llvmpipe, while RDNA2 returns 0x7f802000. This change preserves the signaling bit and payload when widening typed buffer loads.
Exhaustive tests covered 68,608 channel encodings per backend. llvmpipe mismatches fell from 1,068 to 0; SwiftShader matched on both revisions. Portable shader tests: 96 passed, 1 ignored. Native D3D12 and game rendering were not tested locally.
AI assistance: OpenAI Codex.
@geiyiliyabumo on GitHub · 2026-11-24 20:46 UTC · original
Verified head
f876a82merged cleanly ontomain(ffe310e) on Windows 11 / AMD Radeon RX 9060 XT (RDNA4,gfx1200) + WARP / Rust 1.98.1 MSVC:cargo test -p victory-shader --lib: 121 passed, 0 failed, 1 ignored (typed_float_loads_preserve_nan_bits passes on both RDNA4 hardware and WARP).cargo clippy -p victory-shader --all-targets -- -D warnings: clean.AI-assisted; synthetic tests only, no game files.
@Marvisak on GitHub · 2026-11-25 01:33 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-shader/src/emit/valu_tests.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.