From 1a57dc490e13ec9620ee3c5ea4e8d90390056a9e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 25 Nov 2026 11:46:52 -0800 Subject: [PATCH] Tests: the coherence test's texture takes no index What: tests::coherence makes its 4x4 texture with Device::new_texture_for_views, which takes no index, in place of new_texture with no index. Why: on lavapipe (job m3-max-73732, ef7f03df3f) new_texture refused a texture that shaders read with no index (Refusal::TextureIndex), before the test reached its copies. The other assertions of the test ran no further, so they are still unverified. Verified: not yet run (cargo fmt only). --- crates/metal2vulkan-runtime/src/tests/coherence.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/coherence.rs b/crates/metal2vulkan-runtime/src/tests/coherence.rs index a2408573b..72c51a53d 100644 --- a/crates/metal2vulkan-runtime/src/tests/coherence.rs +++ b/crates/metal2vulkan-runtime/src/tests/coherence.rs @@ -91,8 +91,9 @@ mod on_device { let into_private = calls(&before, &counters.metrics()); let d = TextureDescriptor::new(TextureType::Type2D, PixelFormat::RGBA8Unorm, 4, 4); - let texture = - (device.new_texture(&d, None)).unwrap_or_else(|error| panic!("{name}: {error}")); + // A texture with no index: only its copies reach it. + let texture = (device.new_texture_for_views(&d)) + .unwrap_or_else(|error| panic!("{name}: {error}")); let whole = Region { origin: [0; 3], size: [4, 4, 1],