From d04f88f2cdd698ad7a670a7e93c08f2cf035035b Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 02:08:05 -0800 Subject: [PATCH] Tests: the linked store_const kernel's spec table holds its seven threadgroup constants store_const_passes_the_pipeline_on_every_m1_profile still counted four specialization constants in the linked kernel's table (LocalSize X, Y and Z, and DeepThreadgroup). Since the WorkgroupSize composite's parts are plain specialization constants of their own, the table holds those three as well, seven in all. At c1e0b2cbd5 the suite (msi, job m3-max-70535) failed this one assertion, "moltenvk-m3, left: 7, right: 4"; at 99f90c7503 the same test had stopped earlier, at the check_artifact expectation that c1e0b2cbd5 fixed. Test-only. Verified by the plain clippy and the translator suite at this commit (job named in the lane's report). --- crates/metal2vulkan/src/tests/engine_skeleton.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/tests/engine_skeleton.rs b/crates/metal2vulkan/src/tests/engine_skeleton.rs index 2d908975c..a06b40202 100644 --- a/crates/metal2vulkan/src/tests/engine_skeleton.rs +++ b/crates/metal2vulkan/src/tests/engine_skeleton.rs @@ -153,7 +153,9 @@ fn store_const_passes_the_pipeline_on_every_m1_profile() { compile(&bitcode, "store_const", &p).unwrap_or_else(|e| panic!("{stem}: compile: {e}")); check_artifact(&a, stem); let (table, words) = link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{stem}: {e}")); - assert_eq!(table.spec.len(), 4, "{stem}"); + // The threadgroup's seven: `LocalSize` X, Y and Z, `DeepThreadgroup`, and the `WorkgroupSize` + // composite's three parts. + assert_eq!(table.spec.len(), 7, "{stem}"); let ops = opcodes(&words); for op in [ crate::spv::Op::SpecConstantComposite,