From 2ea5880317f58d93185febaa0f890d77a0cfaec6 Mon Sep 17 00:00:00 2001 From: Andy Leiserson Date: Wed, 12 Aug 2026 02:53:11 -0700 Subject: [PATCH] fix(vulkan): Remove extra restriction in OOM check (#9838) --- wgpu-hal/src/vulkan/device.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index 948f77a58..22bca0c66 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -911,10 +911,6 @@ impl super::Device { return Ok(()); }; - // memory types not used by gpu-allocator - let invalid_flags = - vk::MemoryPropertyFlags::LAZILY_ALLOCATED | vk::MemoryPropertyFlags::PROTECTED; - let preferred_flags = match location { MemoryLocation::GpuOnly => vk::MemoryPropertyFlags::DEVICE_LOCAL, MemoryLocation::CpuToGpu => { @@ -937,7 +933,6 @@ impl super::Device { .find(|(i, ty)| { (1 << i) & requirements.memory_type_bits != 0 && ty.property_flags.contains(preferred_flags) - && !ty.property_flags.intersects(invalid_flags) }); if selected_heap.is_none() { @@ -955,7 +950,6 @@ impl super::Device { .find(|(i, ty)| { (1 << i) & requirements.memory_type_bits != 0 && ty.property_flags.contains(required_flags) - && !ty.property_flags.intersects(invalid_flags) }); }