From e880ca43c8251ed0436d6e702fd198734d1eb9ce Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 22 Oct 2026 21:29:18 +0300 Subject: [PATCH] Fit the stacked branches to each other: new signatures, removed kinds, one priming call Content: the tree of `development` at 30857ba577, unchanged. --- crates/metal2vulkan-runtime/src/device/prime.rs | 3 --- crates/metal2vulkan-runtime/src/host_shared_pointers.rs | 2 +- crates/metal2vulkan-runtime/src/tests/apple_only.rs | 2 +- crates/metal2vulkan-runtime/src/tests/copy_plan.rs | 2 +- crates/metal2vulkan-runtime/src/tests/draw_shape_notices.rs | 3 +-- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/device/prime.rs b/crates/metal2vulkan-runtime/src/device/prime.rs index e0ee53125..690e984ae 100644 --- a/crates/metal2vulkan-runtime/src/device/prime.rs +++ b/crates/metal2vulkan-runtime/src/device/prime.rs @@ -1097,9 +1097,6 @@ impl Primer<'_> { .map_err(vulkan)?; self.made(Call::CreateDescriptorSetLayout); self.hold(set_layout); - let mut support = vk::DescriptorSetLayoutSupport::default(); - device.get_descriptor_set_layout_support(&info, &mut support); - self.made(Call::GetDescriptorSetLayoutSupport); let set_layouts = [set_layout]; let push = [vk::PushConstantRange { stage_flags: vk::ShaderStageFlags::COMPUTE, diff --git a/crates/metal2vulkan-runtime/src/host_shared_pointers.rs b/crates/metal2vulkan-runtime/src/host_shared_pointers.rs index 97e72236b..e549babcb 100644 --- a/crates/metal2vulkan-runtime/src/host_shared_pointers.rs +++ b/crates/metal2vulkan-runtime/src/host_shared_pointers.rs @@ -56,7 +56,7 @@ impl Device { // SAFETY: the window's pages are this call's mapping, which stays mapped until the // placement is freed below. let imported = - unsafe { self.import_pointer(importer, pointer, unit, &window, MemoryClass::Shared) }; + unsafe { self.import_pointer(importer, pointer, unit, &window, MemoryClass::Shared, false) }; let answer = match imported { Ok((buffer, placement)) => { self.discard_import(buffer, placement); diff --git a/crates/metal2vulkan-runtime/src/tests/apple_only.rs b/crates/metal2vulkan-runtime/src/tests/apple_only.rs index 390d8d906..d8b0e8709 100644 --- a/crates/metal2vulkan-runtime/src/tests/apple_only.rs +++ b/crates/metal2vulkan-runtime/src/tests/apple_only.rs @@ -9,7 +9,7 @@ use crate::{AppleOnly, AppleOnlyCall, DEFAULT_PROTECTION_OPTIONS}; #[test] fn every_apple_only_call_answers_typed() { use AppleOnlyCall as C; - let table: [(&str, AppleOnlyCall, Result<(), AppleOnly>); 26] = [ + let table: [(&str, AppleOnlyCall, Result<(), AppleOnly>); 30] = [ // Compressed-texture controls: no compression is visible on Vulkan. ( "invalidateCompressedTexture:", diff --git a/crates/metal2vulkan-runtime/src/tests/copy_plan.rs b/crates/metal2vulkan-runtime/src/tests/copy_plan.rs index bdcf581f1..9fbc623e6 100644 --- a/crates/metal2vulkan-runtime/src/tests/copy_plan.rs +++ b/crates/metal2vulkan-runtime/src/tests/copy_plan.rs @@ -599,7 +599,7 @@ fn a_host_layout_is_packed_exactly_where_packing_moves_nothing() { bytes_per_row, bytes_per_image, }; - let len = layout.host_len().max(layout.packed_len()) as usize; + let len = layout.host_len().unwrap().max(layout.packed_len()) as usize; let host: Vec = (1..=len as u8).collect(); let mut packed = vec![0; layout.packed_len() as usize]; layout.pack(&host, &mut packed); diff --git a/crates/metal2vulkan-runtime/src/tests/draw_shape_notices.rs b/crates/metal2vulkan-runtime/src/tests/draw_shape_notices.rs index a34a872d5..fb2f872a3 100644 --- a/crates/metal2vulkan-runtime/src/tests/draw_shape_notices.rs +++ b/crates/metal2vulkan-runtime/src/tests/draw_shape_notices.rs @@ -32,7 +32,7 @@ const SIDE: u64 = 16; /// The kinds a consumer announces at every occurrence so that its calls hear them, and those its /// process dies at by default: kinds of textures, heaps, buffers, devices, command states and a /// variant's bind, none of which a draw's shape meets. -const UNRELATED: [Degradation; 12] = [ +const UNRELATED: [Degradation; 11] = [ Degradation::HeapTwoPlaneTexture, Degradation::MetalLevelBelowHost, Degradation::OptimizedDepthStencilTexture, @@ -42,7 +42,6 @@ const UNRELATED: [Degradation; 12] = [ Degradation::UnmeasuredHeapTextureSize, Degradation::HalfOutputPrecision, Degradation::ReleasedCommandState, - Degradation::ResourceIdTakeover, Degradation::PrivateResourceOption, Degradation::HostDeallocatorDelayed, ];