From fa59fd319ea2d131b72e23e697752de97e8cb4ca Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 3 Dec 2026 09:42:50 -0800 Subject: [PATCH] Byte copies test: the rows' buffers take a block of their size The all-codes row's 128 KiB of units did not fit the 64 KiB block the helper takes by default (lavapipe job m3-max-84567... 84570: BufferPastBlock); the 8 x 8 rows passed there, stencil and 16-bit depth, whole and the region at (2, 1). --- crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs b/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs index c0e42c635..753226072 100644 --- a/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs +++ b/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs @@ -198,7 +198,9 @@ fn copy_row(name: &str, device: &Device, library: &Library, row: &Row, index: u3 (device.new_texture(&d, Some(index))).unwrap_or_else(|error| panic!("{what}: {error}")); let input = row.input(); let samples = (side * side * row.samples) as usize; - let mut buffers = Buffers::new(device); + // The input, the copy back and the reads, each 256-aligned, in one block. + let bytes = (2 * input.len() + 4 * samples + 768).next_multiple_of(65536); + let mut buffers = Buffers::sized(device, bytes as u64); let source = buffers.of(device, &input); let back = buffers.of(device, &vec![UNWRITTEN; input.len()]); let words = buffers.of(device, &vec![0xab; 4 * samples]);