diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index d9aba502818..e1d9e79689b 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -973,24 +973,14 @@ impl crate::Device for super::Device { } let original_format = self.shared.private_caps.map_texture_format(desc.format); - let mut vk_view_formats = vec![]; let mut wgt_view_formats = vec![]; if !desc.view_formats.is_empty() { raw_flags |= vk::ImageCreateFlags::MUTABLE_FORMAT; wgt_view_formats = desc.view_formats.clone(); wgt_view_formats.push(desc.format); - - if self.shared.private_caps.image_format_list { - vk_view_formats = desc - .view_formats - .iter() - .map(|f| self.shared.private_caps.map_texture_format(*f)) - .collect(); - vk_view_formats.push(original_format) - } } - let mut vk_info = vk::ImageCreateInfo::builder() + let vk_info = vk::ImageCreateInfo::builder() .flags(raw_flags) .image_type(conv::map_texture_dimension(desc.dimension)) .format(original_format) @@ -1003,12 +993,6 @@ impl crate::Device for super::Device { .sharing_mode(vk::SharingMode::EXCLUSIVE) .initial_layout(vk::ImageLayout::UNDEFINED); - let mut format_list_info = vk::ImageFormatListCreateInfo::builder(); - if !vk_view_formats.is_empty() { - format_list_info = format_list_info.view_formats(&vk_view_formats); - vk_info = vk_info.push_next(&mut format_list_info); - } - let raw = unsafe { self.shared.raw.create_image(&vk_info, None)? }; let req = unsafe { self.shared.raw.get_image_memory_requirements(raw) }; diff --git a/wgpu-hal/src/vulkan/mod.rs b/wgpu-hal/src/vulkan/mod.rs index 843e4ef36fd..484765761d6 100644 --- a/wgpu-hal/src/vulkan/mod.rs +++ b/wgpu-hal/src/vulkan/mod.rs @@ -217,6 +217,7 @@ struct PrivateCapabilities { robust_buffer_access2: bool, robust_image_access2: bool, zero_initialize_workgroup_memory: bool, + #[allow(dead_code)] image_format_list: bool, }