Repository navigation
Recompiler: enforce -0.0 < +0.0 order in f16/f32 min and max (#1282) - #1577
hajduzsolt wants to merge 1 commit into
Conversation
…#1282) HLSL min()/max() leaves the sign of (+/-0.0, -/+0.0) driver-dependent, whereas RDNA2 IEEE mode strictly orders -0.0 < +0.0. Add fmin_ieee/fmax_ieee helpers preserving NaN suppression while resolving two-zero inputs via sign-bit OR/AND, and use them for v_min/v_max/v_min3/v_max3/v_pk_min/v_pk_max/v_med3 over f16 and f32. Fixes xcl-dev#1282 Assisted-by: Antigravity (Gemini 4 Hydrogen, high)
ab1e636 to
d6d8f11
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Two contributors checked independently and found that #1348 solves the same problem (for #1282) in a different way: #1607, group D3. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
RTX 5070 Ti: Tested
Not tested
AI use
|
|
XCL PR #1577 — Intel Arc A770 signed-zero compatibility Tested
Not tested
AI use
|
Adds fmin_ieee and fmax_ieee HLSL helpers so RDNA2 v_min_, v_max_, v_min3_, v_max3_, v_pk_min_f16, v_pk_max_f16, and v_med3_* over f16/f32 strictly enforce -0.0 < +0.0 across D3D12 drivers while preserving NaN suppression. Fixes #1282.
What is in it
Tested
Regression run
main:
PR:
Not tested
AI use