From 93f72260df40ae7c3df52a7ccb70fa27cccfd227 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 11 Nov 2026 13:59:15 -0800 Subject: [PATCH] Copied host buffers: BaseBytes::read_plain only under the device test cfgs, which alone use it --- crates/metal2vulkan-runtime/src/copied.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/copied.rs b/crates/metal2vulkan-runtime/src/copied.rs index 5854b3169..767531b29 100644 --- a/crates/metal2vulkan-runtime/src/copied.rs +++ b/crates/metal2vulkan-runtime/src/copied.rs @@ -789,12 +789,12 @@ impl BaseBytes { } /// [`BaseBytes::read`] with plain loads, whatever the memory: a benchmark's measure of the - /// streaming loads against them. + /// streaming loads against them (`tests/copied_base_device.rs`). /// /// # Safety /// /// As [`BaseBytes::read`]'s. - #[cfg(test)] + #[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))] pub(crate) unsafe fn read_plain(&self, offset: usize, into: &mut [u8]) { // SAFETY: the caller's; `into` is the caller's own, apart. unsafe {