Shaders: classify floats with magnitude thresholds #3742
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3742"
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 andrewpozdnakov7-jpg on 2026-11-28T13:55:44Z.
Classify f16 and f32 inputs by comparing the sign-cleared bits with zero, the smallest normal value, and infinity. The NaN quiet bit gives the index for either sign of NaN. The existing source handling and predicate mask still apply. AMD RDNA 2 instruction reference.
Microsoft WARP 1.0.22 with Agility 1.620.2 matched the independent exponent-and-fraction reference on both builds. It produced the same 1,030,258 results, including all 65,536 f16 bit patterns against 15 masks and 47,218 f32 cases. The f32 fixture includes all low ten-bit masks for edge inputs. The focused f16/f32 class regressions, strict all-feature shader Clippy and the asset policy passed.
#1327 handles f32 source modifiers and #2081 adds further mask and EXEC tests. This change replaces the class calculation itself. Game performance was unmeasured.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T13:59:12Z.
Windows CI passed on
54c11a6, including the workspace tests and both Clippy configurations. The combined check with #2081 also passed the VOPC and CMPX EXEC regressions. Combined result.The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
View 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.