device-texel-conversion: state RADV's nearest-sample flush of a denormal float texel

PrecisionNote::DeviceTexelConversion's recorded bound named NVIDIA's
gathers, which flush a 32-bit float texel's denormal to a zero of its
sign, and answered Metal's value for every other class. On RADV (Mesa
26.2.6, both the RX 7900 XTX and the Radeon 780M on 2026-11-07),
denormal-word-fetches differed at its four nearest-sample sites alone:
each differing word is a denormal against the zero of its sign (largest
difference 0x7FFFFF, a whole mantissa), and none of its gather sites
differs. So the device's samples flush and its gathers keep. That is
the device's native answer (rule 1), announced for the case as
device-texel-conversion, and the note's documentation now says so, in
artifact.rs and in docs/API.md's catalogue entry. The case's module doc
records the RADV reading beside its runtime_lane one.

Doc comments only: no product path changes. artifact.rs is outside the
runtime sources pin, and degradation.rs is not touched. Verified: the
replays m3-max-4102 and 4108 (the four lines, identical on both GPUs),
and the driver version read with vulkaninfo (m3-max-4201).

(cherry picked from commit 7fc262b99f7ab4b080e9efb506021908fa9121e4)
This commit is contained in:
Anees Iqbal committed 2026-11-07 09:14:32 -08:00
1 parent 9ab152f477
commit c418a1f55b
3 files changed
+10 -2

No files matched your search

+3 -1
View File
@@ -3684,7 +3684,9 @@ bound.
Metal answers `0x7fc00000`; a 32-bit float texel's NaN in a gather in the device's encoding,
and its denormal in a gather a zero of its sign, where Metal hands back the texel's bits
(NVIDIA's 615.71.09 on the RTX 5080 Laptop GPU gathers every NaN as `0x7fffffff` and every
denormal as a zero); every other class Metal's value.
denormal as a zero); a 32-bit float texel's denormal in a nearest sample a zero of its sign on a
device that flushes it there (RADV's Mesa 26.2.6 on the RX 7900 XTX and the Radeon 780M, which
gathers it as stored); every other class Metal's value.
- `metal2vulkan-degrade-device-vertex-conversion` (precision).
`PrecisionNote::DeviceVertexConversion`: Native vertex input (a conversion): a render pipeline's
vertex descriptor gives a normalized format (`UCharNormalized` through `Short4Normalized` of