From 5e386f2e250ff906f6f4de1e797dc22db889ee46 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 14:34:50 -0800 Subject: [PATCH] Take the copies into the image of a surface's depth plane from heap_planes' copies m3-max-5318 found surface_depth.rs reading heap_planes' regions as a list; they are the copies into the image (a depth plane's rows share no byte, so the copies back are the same). (cherry picked from commit c6dd04b48a3871324ec8a03d175a5d5c4393f5f2) --- crates/metal2vulkan-runtime/src/texture/surface_depth.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/texture/surface_depth.rs b/crates/metal2vulkan-runtime/src/texture/surface_depth.rs index eda45883b..4b306241b 100644 --- a/crates/metal2vulkan-runtime/src/texture/surface_depth.rs +++ b/crates/metal2vulkan-runtime/src/texture/surface_depth.rs @@ -123,8 +123,7 @@ impl Texture { .filter(|plane| plane.aspect == unit.aspect) .collect(); let aspect = unit.aspect.into(); - let regions: Vec<_> = regions - .into_iter() + let regions: Vec<_> = (regions.into.into_iter()) .filter(|region| region.image_subresource.aspect_mask == aspect) .collect(); // The plane's aspect alone: one part, of the planes given.