From 7f0f14435a421f1d459cb84ffb4f6a1b9e251ec3 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 19 Nov 2026 04:52:37 -0800 Subject: [PATCH] rt: the declared-write test's parent texture takes an index The device test made its RGBA8Unorm parent of shader-read and shader-write usage with no index, which the runtime refuses (a texture shaders read or write takes an index): legs 51836 (3090) and 51837 (lavapipe) panicked there, before any case ran. It takes the grant's next index. --- crates/metal2vulkan-rt/src/tests/storage_element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan-rt/src/tests/storage_element.rs b/crates/metal2vulkan-rt/src/tests/storage_element.rs index 2f5399f8b..053cb1ab5 100644 --- a/crates/metal2vulkan-rt/src/tests/storage_element.rs +++ b/crates/metal2vulkan-rt/src/tests/storage_element.rs @@ -247,7 +247,7 @@ declare { <4 x float>, i8 } @air.read_texture_2d.v4f32(ptr addrspace(1), ptr add .unwrap_or_else(|error| panic!("{name}: {format:?}: {error}")); cases.push((format!("{format:?}"), texture)); } - let parent = (device.new_texture(&descriptor(PixelFormat::RGBA8Unorm), None)) + let parent = (device.new_texture(&descriptor(PixelFormat::RGBA8Unorm), Some(next()))) .unwrap_or_else(|error| panic!("{name}: RGBA8Unorm: {error}")); let view = (parent.new_texture_view( PixelFormat::RGBA8UnormSRGB,