Fix borked memory map placed cfgs (#2635)

This commit is contained in:
marc0246 2025-02-06 16:05:56 +01:00 committed by GitHub
parent 0c58a300c1
commit f8273555b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2435,7 +2435,10 @@ unsafe impl Sync for MappedDeviceMemory {}
#[cfg(test)]
mod tests {
use super::MemoryAllocateInfo;
use crate::memory::{DeviceMemory, MemoryMapFlags, MemoryMapInfo, MemoryPropertyFlags};
use crate::memory::{DeviceMemory, MemoryPropertyFlags};
#[cfg(unix)]
use crate::memory::{MemoryMapFlags, MemoryMapInfo};
#[cfg(unix)]
use std::{ptr, ptr::NonNull};
#[test]
@ -2566,8 +2569,10 @@ mod tests {
assert_eq!(device.allocation_count(), 1);
}
#[test]
// TODO: This test could easily work on Windows, but there are no drivers that support this
// feature at the moment.
#[cfg(unix)]
#[test]
fn map_placed() {
let (device, _) = gfx_dev_and_queue!(memory_map_placed; ext_map_memory_placed);