Runtime README: on KosmicKrisp the samples outside a region copied into a multisample Depth16Unorm texture do not keep their code

The Mac host's device leg (KosmicKrisp, Mesa 26.3.1, on the M3 Max) fails
tests::multisample_bytes' 4-sample Depth16Unorm part row since pin V (rounds at 133c992dad and
865592b96b, job m3-max-86090): 208 of 256 samples, exactly those outside the 4 x 3 region at
(2, 1), read 0x3E7FFFC0 (262143 / 2^20), which no 16-bit code gives (Vulkan 3.10.1: c / 65535;
16384 is 0x3E800080, 16383 0x3E7FFD00). Inside the region every code reads right, and the
whole-texture and stencil rows pass there.

The copy renders the region alone (rt blit/samples.rs: render area and scissor the region, the
depth loaded and stored); Vulkan's load and store operations update only values within the render
area (8.5 "Render Pass Load Operations", 8.6 "Render Pass Store Operations"), so the outside
samples keep the clear's code, as the RTX 3090, RX 7900 XTX, Iris Xe and lavapipe read them. A
files-only read (lane kkd16) found no path of ours that reads the outside samples in another
form: one OpImageFetch through one view reads inside and outside alike, and the copy-out reads
the region alone. Recorded as a known gap with no second form; which driver step leaves the
value (the clear, or the copy's load and store) is not isolated. Docs only: no version moves,
and the runtime-sources pin is unchanged.
This commit is contained in:
Anees Iqbal committed 2026-12-03 17:29:56 -08:00
1 parent 970e710e4c
commit 353bf003e8
1 file changed
+16
+16
View File
@@ -3776,6 +3776,22 @@ while the driver's exit handler waited on a lock, with every runtime thread alre
(`MultisampleUnread`), which has no element of set 1's sampled-image array for the kernel to
read through; and out of the stencil of a format of depth and stencil both
(`MultisampleStencilBesideDepth`), whose element reads its depth.
- On the Mac host (KosmicKrisp, Mesa 26.3.1, on an Apple M3 Max under macOS 27.0.1), after a copy
from a buffer into part of a multisample `Depth16Unorm` texture, the samples outside the copied
region do not keep their code: they read as no 16-bit depth. In the device test
`tests::multisample_bytes`, an 8 x 8 texture of 4 samples is cleared to depth 0.25 and a 4 x 3
region at (2, 1) is copied in; the 48 samples of the region read their codes, and 208 of 256
samples, exactly those outside the region, are wrong: the first, sample 0 of texel (0, 0), reads
`0x3E7FFFC0` (0.2499990, 262143 / 2^20), where a 16-bit depth reads `c / 65535` (Vulkan's
"Conversion From Normalized Fixed-Point to Floating-Point"): `0x3E800080` for code 16384,
`0x3E7FFD00` for 16383. The 8 x 8 copies of a whole texture, at 2 and at 4 samples, and every
stencil copy, a region's included, are right there. The copy renders the region alone (its render
area and scissor, the depth loaded and stored), and Vulkan's load and store operations update only
values within the render area ("Render Pass Load Operations", "Render Pass Store Operations"), so
the samples outside must keep the clear's code. The runtime records the same commands on every
device, and the RTX 3090, the RX 7900 XTX, the Iris Xe and lavapipe read them so. Recorded, with
no second form; which driver step leaves that value (the clear, or the copy's load and store) is
not isolated.
- A copy whose source and destination share memory in no order a copy command keeps is not
built (`Gap::OverlappingCopy`), and each refusal counts in
`Metrics::overlapping_copies_refused`: no Vulkan copy command reads bytes it writes