diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 2acc1f4cd..a62ba1132 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -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