From 34537ad4b98a7bb69b61959e2d8f5db88411e457 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 16:07:33 -0800 Subject: [PATCH] runtime: compare the chained structure's type without Debug in the subgroup size test ash's StructureType implements no Debug without its debug feature, so assert_eq! of it does not compile under a device cfg (job m3-max-60674 on gem10: E0277 at tests/subgroup_sizes.rs:51). --- crates/metal2vulkan-runtime/src/tests/subgroup_sizes.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/subgroup_sizes.rs b/crates/metal2vulkan-runtime/src/tests/subgroup_sizes.rs index a760ee337..aee57dad6 100644 --- a/crates/metal2vulkan-runtime/src/tests/subgroup_sizes.rs +++ b/crates/metal2vulkan-runtime/src/tests/subgroup_sizes.rs @@ -48,9 +48,10 @@ fn a_render_stage_is_made_at_the_subgroup_size_the_translator_pins() { // SAFETY: the fragment stage's chain is the one structure `stage_infos` pushed, which // `subgroups` holds alive and nothing writes. let chained = unsafe { &*chained }; - assert_eq!( - chained.s_type, - vk::StructureType::PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO + assert!( + chained.s_type + == vk::StructureType::PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO, + "the chained structure is the required subgroup size's" ); assert_eq!(chained.required_subgroup_size, 32); assert!(chained.p_next.is_null(), "one structure chained");