Conformance: a CPU venue names its host's vector instruction set

One llvmpipe build (Mesa 26.2.6, LLVM 23.1.4, device name "llvmpipe (LLVM
23.1.4, 256 bits)", the same driverInfo on all four homelab nodes) answers
five sites differently on a host with AVX-512 (homelab-gem10-1, Ryzen 7
7840HS) than on one with AVX2 alone (homelab-ms01-1, i9-13900H):
fetch-ordered-{rgba,bgra}8unorm-srgb x3 and x3-depth (6496 vs 6304
elements) and blend-interaction-format-srgb8 one-one-subtract (78 vs 81).
llvmpipe's compiler targets the host's own CPU features (Mesa's
util_get_cpu_caps), and nothing in the device's name or driver says which,
so the ledger could not scope those rows and a replay failed on one kind of
host or the other.

Venue gains `host`: for a DeviceKind::Cpu device, the host's widest vector
instruction set (host_vector_isa: x86-64 AVX-512 with F/BW/DQ/VL, AVX2 with
FMA, AVX, SSE4.1 or SSE2; AArch64 SVE or NEON), None for a GPU. The venue's
description reads "<device> on <host> (<driver>, API <api>)", so existing
patterns (llvmpipe, 256 bits, LLVM 23.1., 128 bits) match as before. The
report label and the cost records' venue (the device name) are unchanged.

Ledger: the four 256-bit fetch-ordered x3/x3-depth rows split into
"256 bits) on x86-64 AVX2" (6304) and "256 bits) on x86-64 AVX-512" (6496);
the llvmpipe one-one-subtract row (81) into "on x86-64 AVX2" (81),
"on AArch64" (81, the arm64 container's reading the row carried since
10-28, not re-run) and "on x86-64 AVX-512" (78). Each text says the count is
the host's. README, the ledger header and covers_venue's doc name the host.

New test a_cpu_venue_is_told_apart_by_its_hosts_vector_set: the description
carries the host for a CPU venue and none for a GPU, and each of the five
sites holds exactly one row, with a different answer, on each host. Without
the split it finds two rows (or none) per host.

Verified: in Linux potluck jobs at this commit (see the next message).
(cherry picked from commit 6df8c589dfad8879f88db724121155e36f5c6bb2)
This commit is contained in:
Anees Iqbal committed 2026-11-07 05:40:02 -08:00
1 parent 9e59535c1a
commit 00faa2ea9d
8 files changed
+148 -18

No files matched your search

+5 -3
View File
@@ -118,9 +118,11 @@ the case needs is not a gap of ours at all — that is its own verdict, per site
A row may also name the **venue** it is expected on, because a gap can be one venue's and not
another's: a pipeline the runtime refuses on MoltenVK for a structural reason can translate on
lavapipe, and a global row would then fail the lavapipe run for existing. The field is held, without
case, against the venue's own description — its device name, driver and API version — so a row can
name one device (`Apple M3 Max`), one implementation (`llvmpipe`) or a family of them, and a venue
that joins later needs no new vocabulary. `*` means every venue, and it is the
case, against the venue's own description — its device name, for a CPU implementation the host's
widest vector instruction set (`llvmpipe (LLVM 23.1.4, 256 bits) on x86-64 AVX-512`, which its
compiler targets and its answers follow), then its driver and API version — so a row can name one
device (`Apple M3 Max`), one implementation (`llvmpipe`), one host's (`on x86-64 AVX2`) or a family
of them, and a venue that joins later needs no new vocabulary. `*` means every venue, and it is the
**stronger** claim rather than the looser one: the row is then held on every venue the run selected
its case on, so widening a row's scope makes it harder to satisfy. That is what stops a
venue-scoped row from becoming a way to silence a venue. A venue pattern that matches nothing holds
+14 -6
View File
@@ -48,7 +48,9 @@
#
# case the case's name.
# venue `*` for every venue, or words held (without case, as a substring) against the
# venue's own description: its device name, driver and API version.
# venue's own description: its device name, then for a CPU implementation
# `on` its host's widest vector instruction set (`on x86-64 AVX-512`, which its
# compiler targets), then its driver and API version.
# `*` is the STRONGER claim, not the looser one -- the second direction then holds
# the row on every venue the run selected the case on -- so widening a row's scope
# makes it harder to satisfy, which is what stops a venue-scoped row from becoming a
@@ -177,7 +179,9 @@ blend-interaction-format-srgb8 128 bits divergent case/blended/one-one-add 55 el
blend-interaction-format-srgb8 256 bits divergent case/blended/one-one-add 58 elements differ (U8), the largest difference 1 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-interaction-format-srgb8 128 bits divergent case/blended/one-one-reverse-subtract 90 elements differ (U8), the largest difference 4 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. This site's bound of 4 is within the four codes the note records for a blend into an 8-bit sRGB attachment on lavapipe. Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-interaction-format-srgb8 256 bits divergent case/blended/one-one-reverse-subtract 91 elements differ (U8), the largest difference 4 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. This site's bound of 4 is within the four codes the note records for a blend into an 8-bit sRGB attachment on lavapipe. Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-interaction-format-srgb8 llvmpipe divergent case/blended/one-one-subtract 81 elements differ (U8), the largest difference 3 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. This site's bound of 3 is within the four codes the note records for a blend into an 8-bit sRGB attachment on lavapipe. Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-interaction-format-srgb8 on x86-64 AVX2 divergent case/blended/one-one-subtract 81 elements differ (U8), the largest difference 3 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. This site's bound of 3 is within the four codes the note records for a blend into an 8-bit sRGB attachment on lavapipe. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 78 of this site's texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 81 on one with AVX2 alone (an i9-13900H). Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-interaction-format-srgb8 on AArch64 divergent case/blended/one-one-subtract 81 elements differ (U8), the largest difference 3 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. This site's bound of 3 is within the four codes the note records for a blend into an 8-bit sRGB attachment on lavapipe. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 78 of this site's texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 81 on one with AVX2 alone (an i9-13900H). Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-interaction-format-srgb8 on x86-64 AVX-512 divergent case/blended/one-one-subtract 78 elements differ (U8), the largest difference 3 Metal's stored sRGB code and ours differ at this site, and the row's count and bound are this run's. Two of the device's own answers meet in it. The device encodes the colour into sRGB by its own approximation, where Metal encodes through its twelve-bit table: the case's unblended `off` and `one-zero-add` sites differ by one code at every texel on this venue. And the device's fixed-function unit computes the blend, where Metal's compiler folds it into the fragment function under fast math (measured on an Apple M3 Max, macOS 27.0.1, from the `half-output-blends-*` family's recordings). Under the native-arithmetic contract both are the answer: `device-color-conversion` records the device's conversion into the attachment, blended or not, where near a tie the device may store the other code, and validation derives no tolerance from it. This run does not separate the encode from the blend at a blended site. This site's bound of 3 is within the four codes the note records for a blend into an 8-bit sRGB attachment on lavapipe. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 78 of this site's texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 81 on one with AVX2 alone (an i9-13900H). Open: nothing in the product; reproducing Metal's bits on the device is the emulation the native-arithmetic contract rules out.
blend-sweep-operations llvmpipe divergent case/blended/dc-1mdc-subtract 4 elements differ (F32), the largest difference 0 Metal stores a negative zero where we store a positive one: the first differing element is Metal 0x80000000 against our 0x0, and all four of the site's elements differ while the bound is 0, a sign-of-zero difference. The blend is `DestinationColor` against `OneMinusDestinationColor` under `Subtract`, whose exact result is zero at this destination, so the question is only which sign the arithmetic leaves: Metal's is its compiler's fast-math fold of the blend into the fragment function, and ours is this device's fixed-function blend unit, which answers `+0`. Under the native-arithmetic contract the device's blend is the answer, the sign of its zero included: `device-color-conversion` records that a 32-bit float attachment that so blends stores the device's blend arithmetic, and validation derives no tolerance from it. Whether every destination of the sweep answers so is not established; only this site's four elements were measured. Open: nothing in the product; folding the blend to take Metal's sign is the emulation the native-arithmetic contract rules out.
half-output-blends-r16f llvmpipe divergent case/blended/1mdc-one 85 elements differ (U16), the largest difference 1 Metal's stored blend result and ours differ at this site, and the row's count and bound are this run's. Metal's compiler folds the attachment's blend and its format conversion into the fragment function under fast math, rounding the source product to the attachment's precision and carrying the destination product into the sum unrounded -- `round(round(Sf*S) + Df*D)`, measured word by word on an Apple M3 Max (macOS 27.0.1) from this family's own committed recordings -- and the runtime leaves the blend to the device's fixed-function unit, whose results are its own; that is why the row names this venue and why its numbers are not the Apple rows'. Under the native-arithmetic contract the device's blend is the answer: the case declares `half-output-fast-math-blend`, whose definition in pipeline/artifact.rs bounds the device's blend at three units in the last place of a `half` at the largest operand's magnitude into a 16-bit float attachment and two units of a `float` into a 32-bit float one, and says validation derives no tolerance from it. The report's bound is a distance at the stored value, not at the operands' magnitude, so whether this site is within the note's bound is not established by this run. On this venue the bound at `zero-1msa` and `sas-1msa` is exactly the sign bit (32768 at 16-bit words, 2147483648 at 32-bit ones), a zero of the other sign rather than a code of difference; which side holds which sign is not established. Open: nothing in the product; folding the blend into the function to reproduce Metal's bits is the emulation the native-arithmetic contract rules out.
half-output-blends-r16f llvmpipe divergent case/blended/1msc-1msc 76 elements differ (U16), the largest difference 1 Metal's stored blend result and ours differ at this site, and the row's count and bound are this run's. Metal's compiler folds the attachment's blend and its format conversion into the fragment function under fast math, rounding the source product to the attachment's precision and carrying the destination product into the sum unrounded -- `round(round(Sf*S) + Df*D)`, measured word by word on an Apple M3 Max (macOS 27.0.1) from this family's own committed recordings -- and the runtime leaves the blend to the device's fixed-function unit, whose results are its own; that is why the row names this venue and why its numbers are not the Apple rows'. Under the native-arithmetic contract the device's blend is the answer: the case declares `half-output-fast-math-blend`, whose definition in pipeline/artifact.rs bounds the device's blend at three units in the last place of a `half` at the largest operand's magnitude into a 16-bit float attachment and two units of a `float` into a 32-bit float one, and says validation derives no tolerance from it. The report's bound is a distance at the stored value, not at the operands' magnitude, so whether this site is within the note's bound is not established by this run. On this venue the bound at `zero-1msa` and `sas-1msa` is exactly the sign bit (32768 at 16-bit words, 2147483648 at 32-bit ones), a zero of the other sign rather than a code of difference; which side holds which sign is not established. Open: nothing in the product; folding the blend into the function to reproduce Metal's bits is the emulation the native-arithmetic contract rules out.
@@ -844,9 +848,11 @@ fetch-ordered-bgra8unorm-srgb NVIDIA GeForce RTX 5080 Laptop GPU divergent case/
fetch-ordered-bgra8unorm-srgb NVIDIA GeForce RTX 5080 Laptop GPU divergent case/x3 3184 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): on this device the attachment is in the interlocked storage form, so the module decodes the fetched code and encodes the written colour itself, by the MSL transfer functions through the device's `Pow`, where Metal decodes and encodes through its twelve-bit table: the first differing element is Metal 0x1 against our 0x0, and the site's largest difference is 2 code(s). Under the native-arithmetic contract the device's arithmetic is the answer: `device-pack-conversion` records these conversions, a packed code within one of Metal's per write; a later draw stores again what an earlier one stored, so a site that stores more than once may move further, and whether every element is within the note's bound per write is not established by this run. Validation derives no tolerance from it. Open: an element-by-element read of the site against the note's recorded bound.
fetch-ordered-bgra8unorm-srgb NVIDIA GeForce RTX 5080 Laptop GPU divergent case/x3-depth 3184 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): on this device the attachment is in the interlocked storage form, so the module decodes the fetched code and encodes the written colour itself, by the MSL transfer functions through the device's `Pow`, where Metal decodes and encodes through its twelve-bit table: the first differing element is Metal 0x1 against our 0x0, and the site's largest difference is 2 code(s). Under the native-arithmetic contract the device's arithmetic is the answer: `device-pack-conversion` records these conversions, a packed code within one of Metal's per write; a later draw stores again what an earlier one stored, so a site that stores more than once may move further, and whether every element is within the note's bound per write is not established by this run. Validation derives no tolerance from it. Open: an element-by-element read of the site against the note's recorded bound.
fetch-ordered-bgra8unorm-srgb 128 bits divergent case/x3 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-bgra8unorm-srgb 256 bits divergent case/x3 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-bgra8unorm-srgb 256 bits) on x86-64 AVX2 divergent case/x3 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-bgra8unorm-srgb 256 bits) on x86-64 AVX-512 divergent case/x3 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-bgra8unorm-srgb 128 bits divergent case/x3-depth 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-bgra8unorm-srgb 256 bits divergent case/x3-depth 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-bgra8unorm-srgb 256 bits) on x86-64 AVX2 divergent case/x3-depth 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-bgra8unorm-srgb 256 bits) on x86-64 AVX-512 divergent case/x3-depth 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-rgba8unorm llvmpipe divergent case/x1/texels 2112 elements differ (U8), the largest difference 1 A fragment function's colour write into an 8-bit unorm attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): Metal's stored code and ours are a code apart at the site's largest difference. Under the native-arithmetic contract the device's conversion of the colour into the attachment is the answer: `device-color-conversion` records that near a tie the device may store the other code, and validation derives no tolerance from it. Open: nothing.
fetch-ordered-rgba8unorm llvmpipe divergent case/x2/texels 3200 elements differ (U8), the largest difference 1 A fragment function's colour write into an 8-bit unorm attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): Metal's stored code and ours are a code apart at the site's largest difference. Under the native-arithmetic contract the device's conversion of the colour into the attachment is the answer: `device-color-conversion` records that near a tie the device may store the other code, and validation derives no tolerance from it. Open: nothing.
fetch-ordered-rgba8unorm llvmpipe divergent case/x3/texels 3904 elements differ (U8), the largest difference 1 A fragment function's colour write into an 8-bit unorm attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): Metal's stored code and ours are a code apart at the site's largest difference. Under the native-arithmetic contract the device's conversion of the colour into the attachment is the answer: `device-color-conversion` records that near a tie the device may store the other code, and validation derives no tolerance from it. Open: nothing.
@@ -870,9 +876,11 @@ fetch-ordered-rgba8unorm-srgb NVIDIA GeForce RTX 5080 Laptop GPU divergent case/
fetch-ordered-rgba8unorm-srgb NVIDIA GeForce RTX 5080 Laptop GPU divergent case/x3 3184 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): on this device the attachment is in the interlocked storage form, so the module decodes the fetched code and encodes the written colour itself, by the MSL transfer functions through the device's `Pow`, where Metal decodes and encodes through its twelve-bit table: the first differing element is Metal 0x1 against our 0x0, and the site's largest difference is 2 code(s). Under the native-arithmetic contract the device's arithmetic is the answer: `device-pack-conversion` records these conversions, a packed code within one of Metal's per write; a later draw stores again what an earlier one stored, so a site that stores more than once may move further, and whether every element is within the note's bound per write is not established by this run. Validation derives no tolerance from it. Open: an element-by-element read of the site against the note's recorded bound.
fetch-ordered-rgba8unorm-srgb NVIDIA GeForce RTX 5080 Laptop GPU divergent case/x3-depth 3184 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): on this device the attachment is in the interlocked storage form, so the module decodes the fetched code and encodes the written colour itself, by the MSL transfer functions through the device's `Pow`, where Metal decodes and encodes through its twelve-bit table: the first differing element is Metal 0x1 against our 0x0, and the site's largest difference is 2 code(s). Under the native-arithmetic contract the device's arithmetic is the answer: `device-pack-conversion` records these conversions, a packed code within one of Metal's per write; a later draw stores again what an earlier one stored, so a site that stores more than once may move further, and whether every element is within the note's bound per write is not established by this run. Validation derives no tolerance from it. Open: an element-by-element read of the site against the note's recorded bound.
fetch-ordered-rgba8unorm-srgb 128 bits divergent case/x3 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-rgba8unorm-srgb 256 bits divergent case/x3 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-rgba8unorm-srgb 256 bits) on x86-64 AVX2 divergent case/x3 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-rgba8unorm-srgb 256 bits) on x86-64 AVX-512 divergent case/x3 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-rgba8unorm-srgb 128 bits divergent case/x3-depth 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-rgba8unorm-srgb 256 bits divergent case/x3-depth 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. Open: nothing.
fetch-ordered-rgba8unorm-srgb 256 bits) on x86-64 AVX2 divergent case/x3-depth 6304 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
fetch-ordered-rgba8unorm-srgb 256 bits) on x86-64 AVX-512 divergent case/x3-depth 6496 elements differ (U8), the largest difference 2 A fragment function's colour write into an 8-bit sRGB attachment it also fetches (the `x1` to `x3` sites fetch and store it once to three times): the function reads the fetched code through the input attachment's sRGB view, the device's own decode, and the device encodes the written colour by its own approximation, where Metal decodes and encodes through its twelve-bit table, so the stored code is a code apart, and two after a second draw reads the first's code. Under the native-arithmetic contract the device's conversions are the answer: `srgb-texel-decode` and `device-color-conversion` record them, within the two codes `device-color-conversion` records for such a write on lavapipe, and validation derives no tolerance from either. The count is the host's: llvmpipe's compiler takes the host's vector instructions, and the same Mesa 26.2.6 build (LLVM 23.1.4) stores a code apart at 6,496 of these texels on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an i9-13900H). Open: nothing.
half-read-nans-r16f llvmpipe divergent case/words/nearest-sample 131 elements differ (U32), the largest difference 2151669760 A `float` read or nearest sample of a 16-bit float texel's NaN: Metal answers its canonical `0x7FC00000`, and ours is this device's widening of the texel, which keeps its payload (the first differing element is Metal 0x7FC00000 against our 0x7FC02000 or 0x7FEAA000) and, at the site's largest difference of 0x803FE000, its sign. Under the native-arithmetic contract this is the device's texel conversion: `device-texel-conversion`'s recorded bound gives a half-float texel's NaN the device's encoding where Metal answers `0x7FC00000`, and validation derives no tolerance from it. Open: nothing.
half-read-nans-r16f llvmpipe divergent case/words/read 131 elements differ (U32), the largest difference 2151669760 A `float` read or nearest sample of a 16-bit float texel's NaN: Metal answers its canonical `0x7FC00000`, and ours is this device's widening of the texel, which keeps its payload (the first differing element is Metal 0x7FC00000 against our 0x7FC02000 or 0x7FEAA000) and, at the site's largest difference of 0x803FE000, its sign. Under the native-arithmetic contract this is the device's texel conversion: `device-texel-conversion`'s recorded bound gives a half-float texel's NaN the device's encoding where Metal answers `0x7FC00000`, and validation derives no tolerance from it. Open: nothing.
half-read-nans-r16f NVIDIA GeForce RTX 5080 Laptop GPU divergent case/words/nearest-sample 131 elements differ (U32), the largest difference 2151669760 A `float` read or nearest sample of a 16-bit float texel's NaN: the first differing element is Metal 0x7FC00000 against our 0x7F802000, this device's widening of the texel, which keeps its sign and payload (a signalling NaN too), where Metal answers its canonical `0x7FC00000`. Under the native-arithmetic contract this is the device's texel conversion: `device-texel-conversion`'s recorded bound gives a half-float texel's NaN the device's encoding where Metal answers `0x7FC00000`, and validation derives no tolerance from it. Open: nothing.
Can't render this file because it is too large.
+52 -1
View File
@@ -626,6 +626,13 @@ pub struct Venue {
/// (`DeviceProperties::lossless_compression`), as the Apple silicon Mac every recording was
/// taken on does: what a venue's own answer (`Justification::WithoutCompression`) holds by.
pub lossless_compression: bool,
/// For a CPU implementation (`DeviceKind::Cpu`), the host's widest vector instruction set
/// ([`host_vector_isa`]), which its shader compiler targets; `None` for a GPU. The device's
/// name and driver do not carry it, and its answers follow it: one llvmpipe build (Mesa 26.2.6,
/// LLVM 23.1.4) stored a code from Metal's at 6,496 texels of `fetch-ordered-rgba8unorm-srgb`'s
/// `x3` on a host with AVX-512 (a Ryzen 7 7840HS) and at 6,304 on one with AVX2 alone (an
/// i9-13900H).
pub host: Option<String>,
}
impl Venue {
@@ -637,7 +644,51 @@ impl Venue {
impl std::fmt::Display for Venue {
fn fmt(&self, out: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(out, "{} ({}, API {})", self.device, self.driver, self.api)
write!(out, "{}", self.device)?;
if let Some(host) = &self.host {
write!(out, " on {host}")?;
}
write!(out, " ({}, API {})", self.driver, self.api)
}
}
/// The host's widest vector instruction set, as a CPU implementation's shader compiler takes it:
/// `x86-64 AVX-512` (with its `F`, `BW`, `DQ` and `VL` subsets), `x86-64 AVX2` (with `FMA`),
/// `x86-64 AVX`, `x86-64 SSE4.1` or `x86-64 SSE2`; `AArch64 SVE` or `AArch64 NEON`; else the
/// architecture's name. llvmpipe's compiler takes the host's own features (Mesa's
/// `util_get_cpu_caps`), so a venue is a device on such a host ([`Venue::host`]).
pub fn host_vector_isa() -> String {
#[cfg(target_arch = "x86_64")]
{
let avx512 = std::arch::is_x86_feature_detected!("avx512f")
&& std::arch::is_x86_feature_detected!("avx512bw")
&& std::arch::is_x86_feature_detected!("avx512dq")
&& std::arch::is_x86_feature_detected!("avx512vl");
let tier = if avx512 {
"AVX-512"
} else if std::arch::is_x86_feature_detected!("avx2")
&& std::arch::is_x86_feature_detected!("fma")
{
"AVX2"
} else if std::arch::is_x86_feature_detected!("avx") {
"AVX"
} else if std::arch::is_x86_feature_detected!("sse4.1") {
"SSE4.1"
} else {
"SSE2"
};
format!("x86-64 {tier}")
}
#[cfg(target_arch = "aarch64")]
{
match std::arch::is_aarch64_feature_detected!("sve") {
true => "AArch64 SVE".to_owned(),
false => "AArch64 NEON".to_owned(),
}
}
#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))]
{
std::env::consts::ARCH.to_owned()
}
}
@@ -137,9 +137,10 @@ impl KnownGap {
/// Whether the row is expected on `venue`.
///
/// [`EVERY_VENUE`] covers all of them. Otherwise the field is held, without case, against the
/// venue's whole description — its device name, driver and API version — so a row can name one
/// device (`Apple M3 Max`), one implementation (`llvmpipe`) or a family of them, and a venue
/// that joins later needs no new vocabulary. A pattern that matches nothing holds
/// venue's whole description — its device name, a CPU implementation's host vector instruction
/// set ([`Venue::host`]), its driver and API version — so a row can name one device
/// (`Apple M3 Max`), one implementation (`llvmpipe`), one host's (`on x86-64 AVX2`) or a family
/// of them, and a venue that joins later needs no new vocabulary. A pattern that matches nothing holds
/// the row nowhere, so the gap it stands for reads as unlisted and fails the run: a typo is
/// loud rather than silent.
pub fn covers_venue(&self, venue: &Venue) -> bool {
@@ -2240,6 +2240,7 @@ impl Side for MetalSide {
// An Apple GPU keeps textures losslessly compressed; a Mac's Intel or AMD GPU, which
// supports no Apple family, keeps none (the consumer's AMD 5300M and Intel 630).
lossless_compression: self.device.supportsFamily(MTLGPUFamily::Apple1),
host: None,
}
}
@@ -104,11 +104,11 @@ use metal2vulkan::pipeline::{
use metal2vulkan_runtime::{
ArgumentEncoder, BinaryArchive, BinaryArchiveDescriptor, BlitOption, Buffer, ClearColor,
CommandBuffer, CommandBufferStatus, CommandQueue, ComputePipelineState, Coordinate2D,
DepthStencilState, Device, DrawPrimitiveType, DynamicLibrary, Fence, Heap, HeapDescriptor,
HeapType, HostMemory, IndirectCommand, IndirectCommandBuffer, IndirectCommandBufferDescriptor,
IndirectDraw, IoSurfacePlane, IoSurfaceYCbCr, Library, LoadAction,
MultisampleDepthResolveFilter, MultisampleStencilResolveFilter, Origin, PipelineOption,
PipelineOptions, PurgeableState, RasterizationRateMap, Region,
DepthStencilState, Device, DeviceKind, DrawPrimitiveType, DynamicLibrary, Fence, Heap,
HeapDescriptor, HeapType, HostMemory, IndirectCommand, IndirectCommandBuffer,
IndirectCommandBufferDescriptor, IndirectDraw, IoSurfacePlane, IoSurfaceYCbCr, Library,
LoadAction, MultisampleDepthResolveFilter, MultisampleStencilResolveFilter, Origin,
PipelineOption, PipelineOptions, PurgeableState, RasterizationRateMap, Region,
RenderPassColorAttachmentDescriptor, RenderPassDepthAttachmentDescriptor, RenderPassDescriptor,
RenderPassStencilAttachmentDescriptor, RenderPipelineFunctionsDescriptor, RenderPipelineState,
ResourceOptions, ResourceRef, ResourceStateCommandEncoder, SamplePosition, SamplerState,
@@ -1879,6 +1879,7 @@ impl Side for RuntimeSide<'_> {
properties.api_version.major, properties.api_version.minor
),
lossless_compression: properties.lossless_compression,
host: (properties.kind == DeviceKind::Cpu).then(crate::case::host_vector_isa),
}
}
@@ -3236,6 +3236,7 @@ fn the_known_gaps_ledger_parses_and_names_real_cases() {
driver: "vendor 0x10005 device 0x0000".to_owned(),
api: "1.2".to_owned(),
lossless_compression: true,
host: None,
};
let measured = lavapipe("llvmpipe (LLVM 21.1.8, 128 bits)");
let other = lavapipe("llvmpipe (LLVM 23.1.1, 256 bits)");
@@ -3375,9 +3376,72 @@ fn venue_named(device: &str) -> Venue {
driver: "stub".to_owned(),
api: "none".to_owned(),
lossless_compression: true,
host: None,
}
}
/// A CPU implementation's venue names its host's widest vector instruction set (`Venue::host`),
/// which llvmpipe's compiler targets: one Mesa 26.2.6 build (LLVM 23.1.4) stores the `x3` sites of
/// `fetch-ordered-*-srgb` and the `one-one-subtract` site of `blend-interaction-format-srgb8` a code
/// from Metal's at other texels on a host with AVX-512 than on one with AVX2 alone, which its device
/// name and driver do not tell apart. Each such site holds exactly one row on each of those hosts,
/// and a GPU's description carries no host.
#[test]
fn a_cpu_venue_is_told_apart_by_its_hosts_vector_set() {
let venue = |host: Option<&str>| crate::case::Venue {
device: "llvmpipe (LLVM 23.1.4, 256 bits)".to_owned(),
driver: "vendor 0x10005 device 0x0000".to_owned(),
api: "1.4".to_owned(),
lossless_compression: false,
host: host.map(str::to_owned),
};
let avx2 = venue(Some("x86-64 AVX2"));
let avx512 = venue(Some("x86-64 AVX-512"));
assert_eq!(
avx2.to_string(),
"llvmpipe (LLVM 23.1.4, 256 bits) on x86-64 AVX2 (vendor 0x10005 device 0x0000, API 1.4)"
);
assert_eq!(
venue(None).to_string(),
"llvmpipe (LLVM 23.1.4, 256 bits) (vendor 0x10005 device 0x0000, API 1.4)"
);
let ledger = crate::known_gaps::ledger().expect("the ledger parses");
let sites = [
("fetch-ordered-rgba8unorm-srgb", "case/x3"),
("fetch-ordered-rgba8unorm-srgb", "case/x3-depth"),
("fetch-ordered-bgra8unorm-srgb", "case/x3"),
("fetch-ordered-bgra8unorm-srgb", "case/x3-depth"),
(
"blend-interaction-format-srgb8",
"case/blended/one-one-subtract",
),
];
for (case, site) in sites {
let answers = |on: &crate::case::Venue| -> Vec<&str> {
ledger
.iter()
.filter(|known| known.case == case && known.site == site && known.covers_venue(on))
.map(|known| known.answer.as_str())
.collect()
};
let (two, five) = (answers(&avx2), answers(&avx512));
assert_eq!(
(two.len(), five.len()),
(1, 1),
"{case} {site}: {two:?} {five:?}"
);
assert_ne!(two, five, "{case} {site}");
}
// This host's, which names its architecture.
let host = crate::case::host_vector_isa();
let arch = match std::env::consts::ARCH {
"x86_64" => "x86-64 ",
"aarch64" => "AArch64 ",
other => other,
};
assert!(host.starts_with(arch), "{host}");
}
/// The ledger is an expectation held in both directions, and it changes no verdict.
#[test]
fn the_ledger_fails_on_a_new_refusal_and_on_one_that_is_gone() {
@@ -1065,6 +1065,7 @@ mod tests {
driver: "stub".to_owned(),
api: "stub".to_owned(),
lossless_compression: true,
host: None,
}
}
@@ -1217,6 +1218,7 @@ mod tests {
driver: "slow".to_owned(),
api: "slow".to_owned(),
lossless_compression: true,
host: None,
}
}
fn library(&mut self, _source: &ShaderSource<'_>) -> Answer<Handle> {