conformance: the rt ledger lists lavapipe's own answers, eight cases declare pixel-sampler-scaling, and a refused indirect read-back reads as a refusal

Three changes the rt side's first whole-set run on lavapipe asked for, so its divergent rows are
each a named answer:

- known-gaps-rt.tsv gets the 54 rows where lavapipe's own answer differs from Metal's (rule 1),
  over 31 cases: the half NaN families (half-texel-nans, half-read-nans, half-write-nans,
  half-storage-writes, math-frexp-ilogb-half), the half tanh, the sRGB pass bytes, 16-bit depth
  reads and nearest sample positions. Each row says what Metal and the device answer at the
  first differing element and names the static note that records it, every one of which the
  run announced for its case. Venue: llvmpipe (LLVM 23.1.1, 256 bits).
- The `read` rows of half-texel-nans' six float formats answer what read-through-sample answers,
  where the old runtime on this venue answers them otherwise (R16Float: 0x7e00 against the old
  runtime's 0x7e01). Mesa's SPIR-V dump of both runtimes' modules shows the same ops for each
  read (OpImageFetch of a sampled float image, then OpFConvert to half). The old runtime reads
  each slot through its own set-0 binding, and rt reads it through set 1's sampled-texture array
  at the slot's resource ID. In one dispatch, the old runtime's two bindings of the one texture
  answer 0x7e00 and 0x7e01, so lavapipe's fetch answers a NaN by descriptor. The rows say so.
- depth16-texel-reads, nearest-sample-positions and the six half-read-nans cases declare
  pixel-sampler-scaling (`replay::pixel_sampler_scaling_notice`). rt's pipelines record that
  note for every sample through a runtime sampler slot, because under the identity domains no
  binder specializes the slot by its bound state. A declaration loosens the notices site alone.
- indirect-private-type-getters pushes a refused read-back's error leaf under the type's own
  node. At the root, a refusal read as a site only ours observed.

Verified: the device-answer rows are read from the whole-set runs of the rt side on msi's
lavapipe (the same 54 rows in both). The two read paths are from Mesa's SPIR-V dump of
half-texel-nans-r16f through both runtimes.
This commit is contained in:
Anees Iqbal committed 2026-11-18 13:45:14 -08:00
1 parent ed02b66ebf
commit 140714ceae
6 files changed
+99 -7

No files matched your search

@@ -5,3 +5,57 @@
# side answers it. The old runtime's rows stay in `known-gaps.tsv` and are not held to this side.
#
# case venue expects site our answer waiting on
depth16-texel-reads llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/nearest-sample 512 elements differ (F32), the largest difference 0.00000005960464477539063 The device's own answer (rule 1): a 16-bit depth texel's decode to `float` is one ulp from Metal's (Metal 0x3b808081, ours 0x3b808080). Note `device-texel-conversion`.
depth16-texel-reads llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/read 512 elements differ (F32), the largest difference 0.00000005960464477539063 The device's own answer (rule 1): a 16-bit depth texel's decode to `float` is one ulp from Metal's (Metal 0x3b808081, ours 0x3b808080). Note `device-texel-conversion`.
half-read-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 131 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a `float` nearest sample of a 16-bit float texel's NaN. Metal answers the canonical 0x7fc00000; lavapipe's decode keeps the NaN's payload (0x7fc02000). Note `device-texel-conversion`.
half-read-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 131 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a `float` read of a 16-bit float texel's NaN. Metal answers the canonical 0x7fc00000; lavapipe's decode keeps the NaN's payload (0x7fc02000). Note `device-texel-conversion`.
half-read-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 258 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a `float` nearest sample of a 16-bit float texel's NaN. Metal answers the canonical 0x7fc00000; lavapipe's decode keeps the NaN's payload (0x7feaa000). Note `device-texel-conversion`.
half-read-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 258 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a `float` read of a 16-bit float texel's NaN. Metal answers the canonical 0x7fc00000; lavapipe's decode keeps the NaN's payload (0x7feaa000). Note `device-texel-conversion`.
half-read-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 509 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a `float` nearest sample of a 16-bit float texel's NaN. Metal answers the canonical 0x7fc00000; lavapipe's decode keeps the NaN's payload (0x7feaa000). Note `device-texel-conversion`.
half-read-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 509 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a `float` read of a 16-bit float texel's NaN. Metal answers the canonical 0x7fc00000; lavapipe's decode keeps the NaN's payload (0x7feaa000). Note `device-texel-conversion`.
half-storage-writes-r16f-read-write llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 2047 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a `half` NaN written to a 16-bit float storage texture. Metal stores the canonical 0x7e00; the device's store keeps the NaN's sign (0xfe00). Note `device-nan-encoding`.
half-storage-writes-r16f-write llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 2047 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a `half` NaN written to a 16-bit float storage texture. Metal stores the canonical 0x7e00; the device's store keeps the NaN's sign (0xfe00). Note `device-nan-encoding`.
half-storage-writes-rg16f-read-write llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 4094 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a `half` NaN written to a 16-bit float storage texture. Metal stores the canonical 0x7e00; the device's store keeps the NaN's sign (0xfe00). Note `device-nan-encoding`.
half-storage-writes-rg16f-write llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 4094 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a `half` NaN written to a 16-bit float storage texture. Metal stores the canonical 0x7e00; the device's store keeps the NaN's sign (0xfe00). Note `device-nan-encoding`.
half-storage-writes-rgba16f-read-write llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 8188 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a `half` NaN written to a 16-bit float storage texture. Metal stores the canonical 0x7e00; the device's store keeps the NaN's sign (0xfe00). Note `device-nan-encoding`.
half-storage-writes-rgba16f-write llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 8188 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a `half` NaN written to a 16-bit float storage texture. Metal stores the canonical 0x7e00; the device's store keeps the NaN's sign (0xfe00). Note `device-nan-encoding`.
half-texel-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 215 elements differ (U16), the largest difference 512 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` nearest sample. Metal hands back the texel's own code (0x7c01 at the first differing element); lavapipe's sample keeps the payload and sets the quiet bit (0x7e01). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 472 elements differ (U16), the largest difference 511 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` `read()` of a read-access texture. Metal hands back the texel's own code (0x7c01 at the first differing element); lavapipe's fetch drops the payload, answering the quiet NaN of its sign (0x7e00). Notes `half-texel-conversion` and `native-half-conversion`. This site answers what read-through-sample answers, and the old runtime on this venue answers it otherwise: both runtimes read each slot with the same ops (`OpImageFetch` of a sampled float image, then `OpFConvert` to `half`), the old one through a set-0 binding per slot and this one through set 1's sampled-texture array at the slot's resource ID, and lavapipe's fetch answers a NaN by descriptor: the old runtime's own two bindings of this one texture answer differently in one dispatch (R16Float: 0x7e00 at read-through-sample and 0x7e01 at read; the ops read from Mesa's SPIR-V dump of both runtimes' modules).
half-texel-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read-through-sample 472 elements differ (U16), the largest difference 511 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` `read()` of a sample-access texture. Metal hands back the texel's own code (0x7c01 at the first differing element); lavapipe's fetch drops the payload, answering the quiet NaN of its sign (0x7e00). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 515 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7fc02000 at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-r32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 555 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` nearest sample. Metal answers the canonical 0x7e00; lavapipe's sample narrows it with every payload bit set (0x7fff). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-r32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 214 elements differ (U16), the largest difference 32768 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` `read()` of a read-access texture. Metal answers the canonical 0x7e00; lavapipe's fetch narrows it keeping its sign (0xfe00). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`. This site answers what read-through-sample answers, and the old runtime on this venue answers it otherwise: both runtimes read each slot with the same ops (`OpImageFetch` of a sampled float image, then `OpFConvert` to `half`), the old one through a set-0 binding per slot and this one through set 1's sampled-texture array at the slot's resource ID, and lavapipe's fetch answers a NaN by descriptor: the old runtime's own two bindings of this one texture answer differently in one dispatch (R16Float: 0x7e00 at read-through-sample and 0x7e01 at read; the ops read from Mesa's SPIR-V dump of both runtimes' modules).
half-texel-nans-r32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read-through-sample 214 elements differ (U16), the largest difference 32768 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` `read()` of a sample-access texture. Metal answers the canonical 0x7e00; lavapipe's fetch narrows it keeping its sign (0xfe00). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-r32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 768 elements differ (U32), the largest difference 2151677951 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7f800001 at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rg11b10f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 1024 elements differ (U16), the largest difference 496 The device's own answer (rule 1): a small float texel's NaN through a `half` nearest sample. Metal answers the canonical 0x7e00; lavapipe's decode keeps the payload (0x7e10). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-rg11b10f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 1024 elements differ (U32), the largest difference 4063232 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7f820000 at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 428 elements differ (U16), the largest difference 512 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` nearest sample. Metal hands back the texel's own code (0x7d55 at the first differing element); lavapipe's sample keeps the payload and sets the quiet bit (0x7f55). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 940 elements differ (U16), the largest difference 511 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` `read()` of a read-access texture. Metal hands back the texel's own code (0x7d55 at the first differing element); lavapipe's fetch drops the payload, answering the quiet NaN of its sign (0x7e00). Notes `half-texel-conversion` and `native-half-conversion`. This site answers what read-through-sample answers, and the old runtime on this venue answers it otherwise: both runtimes read each slot with the same ops (`OpImageFetch` of a sampled float image, then `OpFConvert` to `half`), the old one through a set-0 binding per slot and this one through set 1's sampled-texture array at the slot's resource ID, and lavapipe's fetch answers a NaN by descriptor: the old runtime's own two bindings of this one texture answer differently in one dispatch (R16Float: 0x7e00 at read-through-sample and 0x7e01 at read; the ops read from Mesa's SPIR-V dump of both runtimes' modules).
half-texel-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read-through-sample 940 elements differ (U16), the largest difference 511 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` `read()` of a sample-access texture. Metal hands back the texel's own code (0x7d55 at the first differing element); lavapipe's fetch drops the payload, answering the quiet NaN of its sign (0x7e00). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 1026 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7feaa000 at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rg32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 1109 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` nearest sample. Metal answers the canonical 0x7e00; lavapipe's sample narrows it with every payload bit set (0x7fff). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rg32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 426 elements differ (U16), the largest difference 32768 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` `read()` of a read-access texture. Metal answers the canonical 0x7e00; lavapipe's fetch narrows it keeping its sign (0xfe00). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`. This site answers what read-through-sample answers, and the old runtime on this venue answers it otherwise: both runtimes read each slot with the same ops (`OpImageFetch` of a sampled float image, then `OpFConvert` to `half`), the old one through a set-0 binding per slot and this one through set 1's sampled-texture array at the slot's resource ID, and lavapipe's fetch answers a NaN by descriptor: the old runtime's own two bindings of this one texture answer differently in one dispatch (R16Float: 0x7e00 at read-through-sample and 0x7e01 at read; the ops read from Mesa's SPIR-V dump of both runtimes' modules).
half-texel-nans-rg32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read-through-sample 426 elements differ (U16), the largest difference 32768 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` `read()` of a sample-access texture. Metal answers the canonical 0x7e00; lavapipe's fetch narrows it keeping its sign (0xfe00). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rg32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 1535 elements differ (U32), the largest difference 2151677951 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7fffffff at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 852 elements differ (U16), the largest difference 512 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` nearest sample. Metal hands back the texel's own code (0x7d55 at the first differing element); lavapipe's sample keeps the payload and sets the quiet bit (0x7f55). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 1874 elements differ (U16), the largest difference 511 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` `read()` of a read-access texture. Metal hands back the texel's own code (0x7d55 at the first differing element); lavapipe's fetch drops the payload, answering the quiet NaN of its sign (0x7e00). Notes `half-texel-conversion` and `native-half-conversion`. This site answers what read-through-sample answers, and the old runtime on this venue answers it otherwise: both runtimes read each slot with the same ops (`OpImageFetch` of a sampled float image, then `OpFConvert` to `half`), the old one through a set-0 binding per slot and this one through set 1's sampled-texture array at the slot's resource ID, and lavapipe's fetch answers a NaN by descriptor: the old runtime's own two bindings of this one texture answer differently in one dispatch (R16Float: 0x7e00 at read-through-sample and 0x7e01 at read; the ops read from Mesa's SPIR-V dump of both runtimes' modules).
half-texel-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read-through-sample 1874 elements differ (U16), the largest difference 511 The device's own answer (rule 1): a 16-bit float texel's NaN through a `half` `read()` of a sample-access texture. Metal hands back the texel's own code (0x7d55 at the first differing element); lavapipe's fetch drops the payload, answering the quiet NaN of its sign (0x7e00). Notes `half-texel-conversion` and `native-half-conversion`.
half-texel-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 2045 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7feaa000 at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rgba32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/nearest-sample 2217 elements differ (U16), the largest difference 33279 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` nearest sample. Metal answers the canonical 0x7e00; lavapipe's sample narrows it with every payload bit set (0x7fff). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rgba32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read 851 elements differ (U16), the largest difference 32768 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` `read()` of a read-access texture. Metal answers the canonical 0x7e00; lavapipe's fetch narrows it keeping its sign (0xfe00). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`. This site answers what read-through-sample answers, and the old runtime on this venue answers it otherwise: both runtimes read each slot with the same ops (`OpImageFetch` of a sampled float image, then `OpFConvert` to `half`), the old one through a set-0 binding per slot and this one through set 1's sampled-texture array at the slot's resource ID, and lavapipe's fetch answers a NaN by descriptor: the old runtime's own two bindings of this one texture answer differently in one dispatch (R16Float: 0x7e00 at read-through-sample and 0x7e01 at read; the ops read from Mesa's SPIR-V dump of both runtimes' modules).
half-texel-nans-rgba32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/read-through-sample 851 elements differ (U16), the largest difference 32768 The device's own answer (rule 1): a 32-bit float texel's NaN through a `half` `read()` of a sample-access texture. Metal answers the canonical 0x7e00; lavapipe's fetch narrows it keeping its sign (0xfe00). Notes `half-texel-conversion`, `native-half-conversion` and `native-nan-encoding`.
half-texel-nans-rgba32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/words/widened 3070 elements differ (U32), the largest difference 2151677951 The device's own answer (rule 1): the shader's `float` widening of the `half` this case read. Metal widens every `half` NaN to its canonical 0x7fc00000; the device's widening keeps the NaN's sign and payload (0x7fffffff at the first differing element). Notes `native-half-conversion` and `native-nan-encoding`.
half-write-nans-r16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 8 elements differ (U16), the largest difference 512 The device's own answer (rule 1): a written `half` texel's NaN. Metal stores its own code (0x7c01); the device's store sets the quiet bit (0x7e01). Note `device-nan-encoding`.
half-write-nans-r32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 15 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a written `half` texel's NaN. Metal stores the canonical 0x7fc00000; the device's store keeps the NaN's payload (0x7fc02000). Note `device-nan-encoding`.
half-write-nans-rg16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 16 elements differ (U16), the largest difference 512 The device's own answer (rule 1): a written `half` texel's NaN. Metal stores its own code (0x7c01); the device's store sets the quiet bit (0x7e01). Note `device-nan-encoding`.
half-write-nans-rg32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 30 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a written `half` texel's NaN. Metal stores the canonical 0x7fc00000; the device's store keeps the NaN's payload (0x7fc02000). Note `device-nan-encoding`.
half-write-nans-rgba16f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 32 elements differ (U16), the largest difference 512 The device's own answer (rule 1): a written `half` texel's NaN. Metal stores its own code (0x7c01); the device's store sets the quiet bit (0x7e01). Note `device-nan-encoding`.
half-write-nans-rgba32f llvmpipe (LLVM 23.1.1, 256 bits) divergent case/stored 60 elements differ (U32), the largest difference 2151669760 The device's own answer (rule 1): a written `half` texel's NaN. Metal stores the canonical 0x7fc00000; the device's store keeps the NaN's payload (0x7fc02000). Note `device-nan-encoding`.
math-frexp-ilogb-half llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/frexp-mantissa 3 elements differ (U32), the largest difference 511 The device's own answer (rule 1): `frexp`'s mantissa of a `half` NaN. Metal keeps the payload (0x7e01); the device answers the quiet NaN (0x7e00). Note `native-nan-encoding`.
math-frexp-ilogb-half llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/frexp4-mantissa-lane1 3 elements differ (U32), the largest difference 511 The device's own answer (rule 1): `frexp`'s mantissa of a `half` NaN. Metal keeps the payload (0x7e01); the device answers the quiet NaN (0x7e00). Note `native-nan-encoding`.
nearest-sample-positions llvmpipe (LLVM 23.1.1, 256 bits) divergent case/mirrored/sampled 43 elements differ (U32), the largest difference 131072 The device's own answer (rule 1): a nearest sample a few units in the last place from a texel edge of the mirrored axis lands on the device's texel: Metal reads 0x42b00000, ours 0x42b20000 at the first differing element. Note `device-sampling`.
nearest-sample-positions llvmpipe (LLVM 23.1.1, 256 bits) divergent case/repeat/sampled 29 elements differ (U32), the largest difference 1572864 The device's own answer (rule 1): a nearest sample a few units in the last place from a texel edge of the repeat axis lands on the device's texel: Metal reads 0x42b00000, ours 0x42ae0000 at the first differing element. Note `device-sampling`.
pass-bytes-half-tanh-regimes llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/fast-float-tanh 2851 elements differ (U32), the largest difference 2151546880 The device's own answer (rule 1): the device's `tanh` (Metal 0x357ffff0, ours 0x35800000 at the first differing element). Note `native-transcendentals`.
pass-bytes-half-tanh-regimes llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/half-tanh 63 elements differ (U32), the largest difference 2147516416 The device's own answer (rule 1): where the `half` `tanh` answers a NaN, Metal answers the positive quiet NaN (0x7e007e00, two halves), ours the negative one (0xfe00fe00). Notes `native-transcendentals` and `native-nan-encoding`.
pass-bytes-srgb-decode-all-bytes llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/words 1136 elements differ (U32), the largest difference 16318465 The device's own answer (rule 1): the device's sRGB decode of a byte (Metal 0x3dd18d19, ours 0x3dd1641d at the first differing element). Note `device-pack-conversion`.
pass-bytes-srgb-encode-sweep llvmpipe (LLVM 23.1.1, 256 bits) divergent case/output/words 772 elements differ (U32), the largest difference 65793 The device's own answer (rule 1): the device's sRGB encode lands one code from Metal's (Metal 0x20201, ours 0x20101 at the first differing element). Note `device-pack-conversion`.
1 # Known gaps of the new runtime's side (`conformance replay --rt`): the rows `known-gaps.tsv` holds
5 # side answers it. The old runtime's rows stay in `known-gaps.tsv` and are not held to this side.
6 #
7 # case
8 depth16-texel-reads
9 depth16-texel-reads
10 half-read-nans-r16f
11 half-read-nans-r16f
12 half-read-nans-rg16f
13 half-read-nans-rg16f
14 half-read-nans-rgba16f
15 half-read-nans-rgba16f
16 half-storage-writes-r16f-read-write
17 half-storage-writes-r16f-write
18 half-storage-writes-rg16f-read-write
19 half-storage-writes-rg16f-write
20 half-storage-writes-rgba16f-read-write
21 half-storage-writes-rgba16f-write
22 half-texel-nans-r16f
23 half-texel-nans-r16f
24 half-texel-nans-r16f
25 half-texel-nans-r16f
26 half-texel-nans-r32f
27 half-texel-nans-r32f
28 half-texel-nans-r32f
29 half-texel-nans-r32f
30 half-texel-nans-rg11b10f
31 half-texel-nans-rg11b10f
32 half-texel-nans-rg16f
33 half-texel-nans-rg16f
34 half-texel-nans-rg16f
35 half-texel-nans-rg16f
36 half-texel-nans-rg32f
37 half-texel-nans-rg32f
38 half-texel-nans-rg32f
39 half-texel-nans-rg32f
40 half-texel-nans-rgba16f
41 half-texel-nans-rgba16f
42 half-texel-nans-rgba16f
43 half-texel-nans-rgba16f
44 half-texel-nans-rgba32f
45 half-texel-nans-rgba32f
46 half-texel-nans-rgba32f
47 half-texel-nans-rgba32f
48 half-write-nans-r16f
49 half-write-nans-r32f
50 half-write-nans-rg16f
51 half-write-nans-rg32f
52 half-write-nans-rgba16f
53 half-write-nans-rgba32f
54 math-frexp-ilogb-half
55 math-frexp-ilogb-half
56 nearest-sample-positions
57 nearest-sample-positions
58 pass-bytes-half-tanh-regimes
59 pass-bytes-half-tanh-regimes
60 pass-bytes-srgb-decode-all-bytes
61 pass-bytes-srgb-encode-sweep
@@ -228,7 +228,14 @@ impl Case for DepthTexelReads {
// nothing else (replay-nvidia.log). On MoltenVK, where
// the chip's GPU shares the CPU's memory, it cannot fire at all, which is why no
// recording of this suite declares it.
vec![crate::replay::shared_memory_notice()]
//
// Its samples are through a runtime sampler slot, which the new runtime's pipelines note
// as scaled (`crate::replay::pixel_sampler_scaling_notice` holds why, and the run it
// rests on).
vec![
crate::replay::shared_memory_notice(),
crate::replay::pixel_sampler_scaling_notice(),
]
}
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
@@ -280,7 +280,14 @@ impl Case for HalfReadNans {
// nothing else (replay-nvidia.log). On MoltenVK, where
// the chip's GPU shares the CPU's memory, it cannot fire at all, which is why no
// recording of this suite declares it.
vec![crate::replay::shared_memory_notice()]
//
// Its samples are through a runtime sampler slot, which the new runtime's pipelines note
// as scaled (`crate::replay::pixel_sampler_scaling_notice` holds why, and the run it
// rests on).
vec![
crate::replay::shared_memory_notice(),
crate::replay::pixel_sampler_scaling_notice(),
]
}
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
@@ -191,13 +191,15 @@ impl Case for IndirectPrivateTypes {
read.recorded_primitive_type,
));
}
// The refusal under the type's node, at the site the abort names: pushed
// beside the node, it sat at a site Metal never observed and read as a
// divergence rather than a refusal.
Err(failure) => {
let at = format!("type/{primitive_type}/{}", form(indexed));
sites.push(node);
sites.push(Node::leaf(
sites.push(node.with(Node::leaf(
form(indexed),
Observed::value(failure.recorded()),
));
)));
return Err(Abort { at, failure });
}
}
@@ -292,8 +292,13 @@ impl Case for NearestPositions {
fn allowances(&self) -> Vec<Allowance> {
// One declaration and no tolerance: the output buffer the threads write their samples into is `Shared`, which is
// what [`crate::replay::shared_memory_notice`] is for. It loosens the notices site alone,
// so every value this case reads still compares exactly.
vec![crate::replay::shared_memory_notice()]
// so every value this case reads still compares exactly. Its samples are through a runtime
// sampler slot, which the new runtime's pipelines note as scaled
// (`crate::replay::pixel_sampler_scaling_notice` holds why, and the run it rests on).
vec![
crate::replay::shared_memory_notice(),
crate::replay::pixel_sampler_scaling_notice(),
]
}
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
@@ -364,6 +364,23 @@ pub fn shared_memory_notice() -> crate::allowance::Allowance {
notice_allowance(metal2vulkan_runtime::Degradation::SharedInSystemMemory.code())
}
/// The declaration a case that samples through a runtime sampler slot needs on the new runtime:
/// `pixel-sampler-scaling` ([`metal2vulkan_runtime::Degradation::PixelSamplerScaling`]), the
/// static note of a sample whose sampler may state pixel coordinates, which the translator then
/// divides by the texture's size for the device's normalized sampler. The function does not know
/// the bound state, and under the identity domains of `metal2vulkan-rt` no binder specializes the
/// slot by it, so the note is recorded for every such sample, nearest ones included; the old
/// runtime specializes a slot bound with a nearest pixel sampler and records it for none of
/// them.
///
/// A declaration, like every [`notice_allowance`]: it loosens the notices site alone, and every
/// value still compares exactly. Measured on lavapipe (Mesa 26.2.4) through the rt side: it fired
/// for depth16-texel-reads, nearest-sample-positions and the six half-read-nans cases, each
/// divergent at the notices site and at no value the old runtime's ledger does not list.
pub fn pixel_sampler_scaling_notice() -> crate::allowance::Allowance {
notice_allowance(metal2vulkan_runtime::Degradation::PixelSamplerScaling.code())
}
/// The declaration a case needs for the second notice a **venue's memory model** provokes:
/// `staged-indirect-records`, which the runtime announces on a device without unified memory that
/// places an indirect command buffer's records by their first use, where a GPU write was the first