Float depth upload note: names what each measured device keeps

The note RestrictedDepthUpload and the runtime README's known-gap line now say what
the upload kept on one card per vendor, under the validation layer 1.4.363.0, on a
Private 4x4 Depth32Float filled by a blit's copy_from_buffer with 16 values:

- NVIDIA 620.70.06 (RTX 3090, m3-max-69834) kept every value bit for bit and
  compared it unclamped, as Metal does.
- RADV, Mesa 26.2.6 (Radeon 780M, m3-max-69832), and ANV, Mesa 26.2.6
  (Iris Xe, m3-max-69833), clamped to [0, 1]. NaN of either sign, -inf, negatives,
  denormals and -0.0 became +0.0, and +inf with values above 1 became 1.0.
  Comparisons followed the stored value.
- The validation layer reported none of these copies.

The note's line "a value within [0, 1] is copied exactly" now excepts a denormal
and -0.0, which RADV and ANV store as +0.0.

Docs only: artifact.rs, the runtime's texture.rs, docs/API.md, the runtime README.
This commit is contained in:
Anees Iqbal committed 2026-11-22 22:40:56 -08:00
1 parent 11ef6b17fd
commit 4551aa9f3c
4 files changed
+27 -11

No files matched your search

+10 -3
View File
@@ -1848,9 +1848,16 @@ bound.
under macOS 27.0.1, and an AMD Radeon Pro 5300M and an Intel UHD Graphics 630 under macOS
26.7.1: negative values, values above 1, denormals, infinities and NaNs). Vulkan takes no value
outside `[0, 1]` into a depth aspect without `VK_EXT_depth_range_unrestricted`
(`VUID-vkCmdCopyBufferToImage-pRegions-07931`), which no runtime enables. Cost: a depth uploaded
outside `[0, 1]` is the device's, and so is every read, sample, comparison and copy of it; one
within it is copied exactly, a denormal as `metal2vulkan-degrade-depth-denormals` says.
(`VUID-vkCmdCopyBufferToImage-pRegions-07931`), which no runtime enables. Measured on a
Private 4 x 4 texture by a blit's copy (16 values: `-0.0`, three denormals of either sign, -1,
-0.25, 2, the next float above 1, 1e30, both infinities, three NaNs, 0.25 and 0.5): NVIDIA's
driver (620.70.06, an RTX 3090) keeps every value bit for bit and compares it unclamped, as
Metal does; RADV (Mesa 26.2.6, the Radeon 780M) and ANV (Mesa 26.2.6, the Iris Xe) store a value
below 0, `-inf` and a NaN of either sign as `+0.0`, one above 1 and `+inf` as 1.0, and a
denormal and `-0.0` as `+0.0`, and compare what they stored; the validation layer reports none
of these copies. Cost: a depth uploaded outside `[0, 1]` is the device's, and so is every read,
sample, comparison and copy of it; one within it is copied exactly, except a denormal or
`-0.0`, which a device may store as `+0.0` (`metal2vulkan-degrade-depth-denormals`).
- `metal2vulkan-degrade-cube-gradient-footprint` (precision).
`PrecisionNote::CubeGradientFootprint`: An explicit-gradient sample of a cube texture takes
Metal's footprint in the form Vulkan's rule reads, in every stage on every device. Cost: the