rt surface: the dma-buf allocations' flags helper is a Unix host's, as the dma-buf is

m3-max-53422: clippy for both Windows targets found address_flags unused there (dead_code), as only
the cfg(unix) dma-buf form calls it. It is cfg(unix) now. The other checks were 0.
This commit is contained in:
Anees Iqbal committed 2026-11-19 10:50:42 -08:00
1 parent 699d9bdc1d
commit b14260ea79
1 file changed
+3 -2
+3 -2
View File
@@ -1360,8 +1360,9 @@ fn acquire(from: u32, to: u32, buffer: vk::Buffer) -> vk::BufferMemoryBarrier2<'
.size(vk::WHOLE_SIZE)
}
/// The flags every allocation of a surface's memory takes: device addresses, which its buffer
/// needs (`VUID-vkBindBufferMemory-bufferDeviceAddress-03339`).
/// The flags every allocation of a dma-buf surface's memory takes: device addresses, which its
/// buffer needs (`VUID-vkBindBufferMemory-bufferDeviceAddress-03339`).
#[cfg(unix)]
fn address_flags() -> vk::MemoryAllocateFlagsInfo<'static> {
vk::MemoryAllocateFlagsInfo::default().flags(vk::MemoryAllocateFlags::DEVICE_ADDRESS)
}