From b621a8e17fe4991879b032da0dab7c609db52b95 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 14:16:42 -0800 Subject: [PATCH] validation: fix forward the Metal-qualified requirement list for the seq_cst fence requirement::tests::mesh_requirements_stop_the_executors_that_do_not_draw_them_yet lists the requirements whose cases stay Metal-qualified; SeqCstFence is now one. A test of the fence's own stops, limit, closure and name joins the texture buffer member's. Found by the gate (potluck m3-max-60336, the lavapipe suite: 1467 of 1468 passed). --- .../metal2vulkan-validation/src/requirement.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-validation/src/requirement.rs b/crates/metal2vulkan-validation/src/requirement.rs index 513f27b40..efbbd9a42 100644 --- a/crates/metal2vulkan-validation/src/requirement.rs +++ b/crates/metal2vulkan-validation/src/requirement.rs @@ -441,7 +441,8 @@ mod tests { .collect::>(), [ ToolingRequirement::TextureBufferMember, - ToolingRequirement::MeshRenderPipeline + ToolingRequirement::MeshRenderPipeline, + ToolingRequirement::SeqCstFence ] ); } @@ -461,6 +462,19 @@ mod tests { .is_err()); } + /// A sequentially consistent fence: the Metal oracle runs it, so its cases stay + /// Metal-qualified; the runtime refuses it, so the engine's candidate runs none, a tooling gap + /// that keeps the census open. + #[test] + fn a_seq_cst_fence_stops_only_the_candidate() { + let requirement = ToolingRequirement::SeqCstFence; + assert_eq!(requirement.stops(), [Executor::EngineCandidate]); + assert_eq!(requirement.limit(), Limit::Tooling, "{requirement}"); + assert!(requirement.blocks_closure(), "{requirement}"); + assert!(requirement.qualifies_on_metal(), "{requirement}"); + assert_eq!("seq_cst_fence".parse(), Ok(requirement)); + } + /// Every requirement stops some executor, and an executor's name is as stable as a /// requirement's. A requirement that stops the Metal oracle stops every executor: when Metal /// cannot run a case, no candidate has an observation to be compared with. Only a tooling gap