diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index 1dc8f23e8..efa63123f 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -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`. diff --git a/crates/metal2vulkan-conformance/src/cases/depth_texel_reads.rs b/crates/metal2vulkan-conformance/src/cases/depth_texel_reads.rs index e70663154..9506fb828 100644 --- a/crates/metal2vulkan-conformance/src/cases/depth_texel_reads.rs +++ b/crates/metal2vulkan-conformance/src/cases/depth_texel_reads.rs @@ -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, String> { diff --git a/crates/metal2vulkan-conformance/src/cases/half_read_nans.rs b/crates/metal2vulkan-conformance/src/cases/half_read_nans.rs index ecbf41447..17596859e 100644 --- a/crates/metal2vulkan-conformance/src/cases/half_read_nans.rs +++ b/crates/metal2vulkan-conformance/src/cases/half_read_nans.rs @@ -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, String> { diff --git a/crates/metal2vulkan-conformance/src/cases/indirect_private_types.rs b/crates/metal2vulkan-conformance/src/cases/indirect_private_types.rs index 15dd484b6..eb6e9e5be 100644 --- a/crates/metal2vulkan-conformance/src/cases/indirect_private_types.rs +++ b/crates/metal2vulkan-conformance/src/cases/indirect_private_types.rs @@ -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 }); } } diff --git a/crates/metal2vulkan-conformance/src/cases/nearest_positions.rs b/crates/metal2vulkan-conformance/src/cases/nearest_positions.rs index dc347abc6..4b1939eb4 100644 --- a/crates/metal2vulkan-conformance/src/cases/nearest_positions.rs +++ b/crates/metal2vulkan-conformance/src/cases/nearest_positions.rs @@ -292,8 +292,13 @@ impl Case for NearestPositions { fn allowances(&self) -> Vec { // 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, String> { diff --git a/crates/metal2vulkan-conformance/src/replay.rs b/crates/metal2vulkan-conformance/src/replay.rs index 3f5ad6021..82f4cfe0a 100644 --- a/crates/metal2vulkan-conformance/src/replay.rs +++ b/crates/metal2vulkan-conformance/src/replay.rs @@ -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