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:?}"),