Files
metal2vulkan/crates
Anees Iqbal 00faa2ea9d 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)
2026-11-07 05:40:02 -08:00
..