From 63ecd16bab69d5bfd555d22f5eb065b97ef87483 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 27 Nov 2026 03:09:34 -0800 Subject: [PATCH] Runtime tests: the global tiles' scratch is held by a named binding the compiler does not warn of The scratch buffer of the global-tile multiply is held until the work completes; its binding now begins with an underscore, so the build of the runtime's tests carries no unused-variable warning (lavapipe build, job m3-max-76603). --- crates/metal2vulkan-runtime/src/tests/opencl_local.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/opencl_local.rs b/crates/metal2vulkan-runtime/src/tests/opencl_local.rs index 75a905440..f46bd4f9d 100644 --- a/crates/metal2vulkan-runtime/src/tests/opencl_local.rs +++ b/crates/metal2vulkan-runtime/src/tests/opencl_local.rs @@ -640,7 +640,8 @@ exit: encoder.set_buffer(Some(&b), 0, 4).expect("b"); encoder.set_bytes(&N.to_le_bytes(), 6).expect("n"); encoder.set_bytes(&K.to_le_bytes(), 7).expect("k"); - let scratch = match tiles { + // Held until the work is done. + let _scratch = match tiles { Tiles::Local => { (encoder.set_threadgroup_memory_length(tile, 0)).expect("at"); (encoder.set_threadgroup_memory_length(tile, 1)).expect("bt");