Keep zero signs where an Exact answer needs them, and end a busy exit at once on Linux

One squash of development-fast d8546c940b..46649e335d (5 commits); the
tree equals 46649e335d.

- Exact float maths (FloatMathsPolicy::Exact off MoltenVK): a module whose
  checked product, checked OpFmaKHR or fma routine (Wide, Soft, HalfOdd)
  answers Metal's zero of its sign now declares SignedZeroInfNanPreserve at
  the routine's widths, or records DeviceSignedZeroInfNan where the device
  lacks the mode. A fast-math kernel declared no mode, so Vulkan let the
  device answer either zero sign: the RTX 3090 answered -0 where Metal
  answers +0. The default policy and MoltenVK are unchanged.
- Exit on Linux (glibc): an exit while the driver still runs the runtime's
  work (a section, a making, or a CPU device's work) ends at once with the
  exit's status and one line on standard error, as Metal's exit does not
  wait; the exit handlers registered before the runtime's do not run in
  that case (docs/API.md, Process exit). An idle exit is unchanged; macOS
  keeps its waits. The exit lane test expects the new ending.
- The exact golden hashes and the authored compile census re-blessed.

Verified at 46649e335d (batch f10), all green: RTX 5080 7248/7248,
RTX 3090 7248/7248, M3 7263/7263, Iris Xe, RX 7900 XTX and 780M
7248/7248 each, fuzz 8/8 on every venue; lavapipe 3823/3823, product
4824/4824, CPU validation 1331/1331; fmt, clippy (4 configurations),
Rustdoc, packaging, qualification, refusals, the API reference check and
doctests.
This commit is contained in:
Anees Iqbal committed 2026-10-16 20:54:15 +03:00
1 parent 20bd3793f3
commit cc961dc744
18 files changed
+1130 -443

No files matched your search

+11 -1
View File
@@ -1979,7 +1979,11 @@ fast forms record, and each `PrecisionNote`'s rustdoc states its bound.
- `metal2vulkan-degrade-device-signed-zero-inf-nan` (precision).
`PrecisionNote::DeviceSignedZeroInfNan`: Float operations LLVM requires to keep signed zeros,
infinities, and NaNs run without `SignedZeroInfNanPreserve`, which the device does not support at
their width.
their width. Under `FloatMathsPolicy::Exact` so does an operation that answers Metal's zero of
its sign: a fused multiply-add the translation computes itself (in `double` or in integers
without `OpFmaKHR`, and a `half` one through `float`), one by `OpFmaKHR` whose result is at most
`2^-126` in magnitude, and a `float` product flushed below `2^-126`. Without the mode the device
may answer such a zero with either sign.
- `metal2vulkan-degrade-device-ray-intersection` (precision).
`PrecisionNote::DeviceRayIntersection`: A ray intersection traversed by the device's ray query.
- `metal2vulkan-degrade-fast-math-rewrites` (precision). `PrecisionNote::FastMathRewrites`: Float
@@ -2547,6 +2551,12 @@ each item named states the rule in full.
Shading Language requires every thread of the SIMD-group to execute a `simdgroup_barrier` that
any of them executes in a conditional or a loop iteration, so Metal defines no answer there.
**Process exit**
- **On Linux, an exit while the driver runs the runtime's work ends the process at once** with the
exit's status and one line on standard error: the exit handlers registered before the runtime's
last registration (a terminal's restore, say) do not run, where Metal's exit runs them.
**Rasterization-rate maps**
- **A map of no layers answers its coordinate maps**, where Metal ends the process.