From b061a37a01686ee6d12e4bb191c76404723b71fa Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 11:49:40 -0800 Subject: [PATCH] Lane: the pending-pools test's texture helpers no longer share a name with its bindings A binding named depth shadowed the helper of that name (E0618 in the build of job m3-max-4799). Verified: the build follows (job id in the report). (cherry picked from commit b8ddabd57661bcd2d114f883763b55ca3810899a) --- .../src/runtime_lane/pending_pools.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/pending_pools.rs b/crates/metal2vulkan-validation/src/runtime_lane/pending_pools.rs index 9c8ffff75..b8f8c2550 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/pending_pools.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/pending_pools.rs @@ -88,7 +88,7 @@ impl Drawing { } /// A private render target of the surface's shape. -fn target(device: &Device) -> Texture { +fn private_target(device: &Device) -> Texture { let mut d = TextureDescriptor::texture_2d(PixelFormat::BGRA8Unorm, WIDTH, HEIGHT, false); d.usage = TextureUsage::RENDER_TARGET; d.resource_options = ResourceOptions::private(); @@ -96,7 +96,7 @@ fn target(device: &Device) -> Texture { } /// A private depth texture of the surface's shape. -fn depth(device: &Device) -> Texture { +fn private_depth(device: &Device) -> Texture { let mut d = TextureDescriptor::texture_2d(PixelFormat::Depth32Float, WIDTH, HEIGHT, false); d.usage = TextureUsage::RENDER_TARGET; d.resource_options = ResourceOptions::private(); @@ -153,8 +153,8 @@ fn command_buffers_let_go_of_while_pending_keep_their_pools_until_they_ran() { color: staged(&device, &floats([0.25, 0.5, 0.75, 0.5])), }; let (buffer, texture) = surface(&device, &mapping, len); - let (inline_target, depth) = (target(&device), depth(&device)); - let (aside_target, aside_depth) = (target(&device), depth(&device)); + let (inline_target, depth) = (private_target(&device), private_depth(&device)); + let (aside_target, aside_depth) = (private_target(&device), private_depth(&device)); let framed: SharedEvent = device.new_shared_event().unwrap(); let host: SharedEvent = device.new_shared_event().unwrap(); let before = device.work_counts();