Files
metal2vulkan/docs
Anees Iqbal 497e1f4ec0 SEMANTICS 2116: NVIDIA's float denormals under the 16-bit float controls are the device's, noted
What: a new DriverWorkaround, FloatDenormalsKeptUnderHalfControls, with rows for NVIDIA's driver on
the RTX 3090 and the RTX 5080 Laptop GPU (the GPUs its MetalFloatDenormals rows name). In an entry
that declares the 16-bit float controls (narrow::controlled_modes) on such a profile, the float
operations the deviation covers record PrecisionNote::DeviceDenormals and the module requires no
VkProperty::MetalFloatDenormals. An entry that declares no float-controls mode keeps the
deviation, and so does every other driver.

Why: runtime_lane::driver_deviations::fused_pairs_answer_metals_nans_and_denormals failed on the
RTX 5080 Laptop GPU (615.71.09) and the RTX 3090 (620.70.06) at pin 93b. The same 33 of 4,096
words in each fixture kept a denormal where Metal answers zero (thread 0x11: 1e-20 * 1e-20 gives
0x116c2; thread 0x29: the smallest denormal times 2^30 gives 0x04000000). That held for the lone
product a * w as much as for the fused pairs, so the fused pairs are not the cause. The fixtures
compute half in 16 bits, so their entries declare RoundingModeRTE, DenormPreserve and
SignedZeroInfNanPreserve for 16 bits. The deviation's probes (nan_denormals,
nan_denormals_fast) declare no mode and flush on the same GPUs. Vulkan leaves 32-bit denormals to
the implementation when no 32-bit mode is declared (the NVIDIA profiles report independence ALL),
and NVIDIA states no shaderDenormFlushToZeroFloat32. So the device's answer stands (owner rule 1),
scoped and noted; nothing is flushed in the shader. RADV on the Radeon 780M (Phoenix and Hawk
Point, Mesa 26.2.6) declares the same modes there and passed the test at pin 93b, so it keeps the
deviation. MoltenVK states no shaderDenormPreserveFloat16, so its entries declare no 16-bit mode.

The device test now decides "Metal's" per kernel (requires_property), as the float_denormals tests
do, and asserts DeviceDenormals where the kernel does not require the property. The new unit test
float_denormals_under_the_half_controls_are_the_devices_where_its_driver_keeps_them checks the
5080 Laptop GPU, the 3090, the desktop RTX 5080 and the 780M against fmx_fma_precise,
fmx_fma_fast and nan_denormals. It fails without the rows.

Docs: the workaround's doc, the DEFECTS and MetalFloatDenormals table docs, the deviation and
property docs, PrecisionNote::DeviceDenormals, docs/API.md's device-denormals entry,
docs/FAST-PATHS.md's denormal row, the signature table. SEMANTICS_VERSION 2116: NVIDIA modules'
notes and requirements change. No new Degradation kind.

Landed (main) at once, before its check: the lane's check (clippy plain
and cpu_icd, the touched unit tests, the two denormal device tests on
lavapipe) and the NVIDIA device proof run after landing.
2026-11-14 15:44:20 -08:00
..