Shaders: preserve FP16 rounding changes in whole-wave sections #978

Manually merged
github merged 1 commit from github-bot/gh-978 into main 2026-11-29 08:20:46 +00:00 AGit
Owner

@⁠yumaste on GitHub · 2026-11-28 10:30 UTC · original
yumaste:nvidia/port-fp16 → main · +138 −10 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC

Port of Marvisak/VIctory#2886. The existing port on my fork was rebased onto current main.

Track constant FP16 rounding-mode writes through whole-wave sections so later conversions see the requested mode. Preserve this fork's current conversion when there is no known explicit round-to-nearest or round-toward-zero selection.

Windows validation: 8 tests passed and 1 was ignored with cargo test -p victory-shader --locked round. The synthetic GPU test exercises positive and negative values, plus restoring nearest-even with s_setreg_imm32_b32. Clippy passed with warnings denied except for the existing clippy::let_and_return in emit/mod.rs.

**@⁠yumaste** on GitHub · 2026-11-28 10:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/978) `yumaste:nvidia/port-fp16` → `main` · +138 −10 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC Port of Marvisak/VIctory#2886. The existing port on my fork was rebased onto current main. Track constant FP16 rounding-mode writes through whole-wave sections so later conversions see the requested mode. Preserve this fork's current conversion when there is no known explicit round-to-nearest or round-toward-zero selection. Windows validation: 8 tests passed and 1 was ignored with `cargo test -p victory-shader --locked round`. The synthetic GPU test exercises positive and negative values, plus restoring nearest-even with `s_setreg_imm32_b32`. Clippy passed with warnings denied except for the existing `clippy::let_and_return` in `emit/mod.rs`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:31:08 +00:00
github-bot force-pushed github-bot/gh-978 from 1a81b72256 to 75bb9dcb2e 2026-11-28 20:28:54 +00:00 Compare
github-bot referenced this pull request from a commit 2026-11-29 00:27:22 +00:00
github manually merged commit cd1c0637a6 into main 2026-11-29 08:20:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!978
No description provided.