From ae87c11e14b18a7b1a7579e280236feb7d00bd93 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 16:09:11 -0800 Subject: [PATCH] copied_device: the dma-buf mapping test keeps its Linux gate ba83af1318 (0e07fff15b) put its new test between the dma-buf mapping test's doc comment and #[cfg(target_os = "linux")] and that test, so the test lost its gate and macOS --cfg m2v_gpu clippy failed on Host::over_dma_buf, a Linux-only helper (round 062, s37 clippygpu, E0599). The doc and the gate move back onto their test. Test code only; nothing else moves. --- crates/metal2vulkan-runtime/src/tests/copied_device.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/copied_device.rs b/crates/metal2vulkan-runtime/src/tests/copied_device.rs index c3f30d7d5..8d74faa42 100644 --- a/crates/metal2vulkan-runtime/src/tests/copied_device.rs +++ b/crates/metal2vulkan-runtime/src/tests/copied_device.rs @@ -406,10 +406,6 @@ fn copied_buffer_is_made_where_the_caller_s_gate_refuses_the_import() { drop((buffer, imported)); } -/// Pages of a dma-buf's mapping (`VM_PFNMAP`, as a consumer maps guest RAM), which the kernel's -/// read cannot pin, whose import the gate refuses, are copied all the same (read with plain loads, -/// mapped readable), with the copy's coherence. Linux only, where `/dev/udmabuf` opens. -#[cfg(target_os = "linux")] /// A no-copy buffer over shared memory (a `memfd` mapped shared, as QEMU's /// `memory-backend-memfd,share=on` guest RAM is) made with no source of dma-bufs of its pages: on a /// device that refuses the pointer of shared memory (`Device::imports_shared_host_pointers`, RADV) @@ -448,6 +444,10 @@ fn copied_buffer_is_made_over_shared_memory_whose_pointer_the_device_refuses() { } } +/// Pages of a dma-buf's mapping (`VM_PFNMAP`, as a consumer maps guest RAM), which the kernel's +/// read cannot pin, whose import the gate refuses, are copied all the same (read with plain loads, +/// mapped readable), with the copy's coherence. Linux only, where `/dev/udmabuf` opens. +#[cfg(target_os = "linux")] #[test] fn copied_buffer_is_made_over_a_dma_buf_mapping_the_gate_refuses() { let Some(host) = Host::over_dma_buf(9) else {