From 2fe776acf320fdee4cb3956ec4e8947f1867267c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 2 Dec 2026 18:17:55 -0800 Subject: [PATCH] rt test: the plain-draws test matches the mixed buffer's error alone, as the buffer is not Debug (red still) Job m3-max-81201 (msi, lavapipe) at 2ce4455b36 did not compile the runtime's tests: the match on new_indirect_command_buffer's Result printed its other arm with {:?}, and IndirectCommandBuffer is not Debug. The check now matches the Result's error, an Option. The engine leg of that job was red as meant: a_kernels_plain_triangle_draws_into_commands_compile_under_the_identity_domains failed and the four other engine tests passed. --- crates/metal2vulkan-runtime/src/tests/indirect.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/indirect.rs b/crates/metal2vulkan-runtime/src/tests/indirect.rs index 47ebf05e6..d3fc82f65 100644 --- a/crates/metal2vulkan-runtime/src/tests/indirect.rs +++ b/crates/metal2vulkan-runtime/src/tests/indirect.rs @@ -609,11 +609,11 @@ mod on_device { each_device("icb_encoded_plain_draws", |name, _, device| { let mut both = descriptor(3, 0); both.command_types = IndirectCommandType::DRAW | IndirectCommandType::DRAW_INDEXED; - match device.new_indirect_command_buffer(&both, N) { - Err(Error::Unsupported(Gap::IndirectCommandBuffers { + match device.new_indirect_command_buffer(&both, N).err() { + Some(Error::Unsupported(Gap::IndirectCommandBuffers { kind: IndirectCommandsKind::CommandTypes, })) => {} - Err(Error::Unsupported(Gap::IndirectCommandBuffers { + Some(Error::Unsupported(Gap::IndirectCommandBuffers { kind: IndirectCommandsKind::Extension, })) if device.core().indirect.is_none() => {} other => panic!("{name}: plain and indexed draws together: {other:?}"),