From f9d09e715df9d6547a0a80e2e35a0a69bded4b9e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 11 Nov 2026 00:16:42 -0800 Subject: [PATCH] driver_facts: say what RADV and NVIDIA store for a small-float NaN What: the MetalSmallFloatNans paragraph named both as keeping payload bits; NVIDIA's 615.71.09 on the RTX 5080 Laptop GPU sets every bit of each NaN field (0xFFFFFFFF where Metal stores 0xFC3F07E0, known-gaps.tsv's half-write-nans-rg11b10f row), RADV on the 780M keeps the half's payload bits (0xFE7F07E0, its row). Why: the docs say what was measured. Verified: doc only (cargo fmt). --- crates/metal2vulkan/src/device/driver_facts.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan/src/device/driver_facts.rs b/crates/metal2vulkan/src/device/driver_facts.rs index 03e503260..e487180ef 100644 --- a/crates/metal2vulkan/src/device/driver_facts.rs +++ b/crates/metal2vulkan/src/device/driver_facts.rs @@ -499,8 +499,9 @@ pub(crate) fn among( /// `runtime_lane::half_storage_writes::every_nan_a_kernel_writes_to_a_small_float_texture_is_metal_s_where_measured` /// and /// `runtime_lane::half_write_nans::every_half_nan_written_to_a_small_float_texture_is_metal_s_where_measured`). -/// One row, of the driver on every CPU. Measured to keep a NaN's payload bits, so not listed: RADV -/// on the Radeon 780M and NVIDIA's 615.71.09 on the RTX 5080 Laptop GPU. +/// One row, of the driver on every CPU. Measured to store another NaN, so not listed: RADV on the +/// Radeon 780M (a `half` NaN's payload bits kept) and NVIDIA's 615.71.09 on the RTX 5080 Laptop +/// GPU (every bit of each NaN field set). /// /// `MetalUnaryDenormals`: MoltenVK 1.4.2's `OpFNegate`, `FAbs`, `Floor` and `Ceil` on 32-bit /// floats, which SPIRV-Cross writes as Metal's `-x`, `fabs`, `floor` and `ceil`. On the M3 Max