From 904700de35315d165c0b6c541b25877daf2be156 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 02:00:16 -0800 Subject: [PATCH] rt tests: the evicted-variant test opens the driver the other device tests open every_device_makes_an_evicted_variant_again opened its instance with Instance::new, which takes the loader's drivers and ignores M2V_DIRECT_DRIVER. On the Mac leg, where the device tests run KosmicKrisp as the direct driver, the loader found MoltenVK instead, below the floor (nullDescriptor, logicOp), and the test panicked opening it: 669 of 670 on KosmicKrisp on the M3 Max at f8181e2a6c (m3-max-70531). It now opens validation::bare, the instance every other device test builds on: the direct driver where one is named, the loader's drivers elsewhere, and no validation layer, which the re-make timings still need. Verified: the Mac leg at this commit (rt's device tests on KosmicKrisp, M3 Max). --- crates/metal2vulkan-runtime/src/tests/kernel_variants.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/kernel_variants.rs b/crates/metal2vulkan-runtime/src/tests/kernel_variants.rs index 8e8e67bee..b3f3b54c2 100644 --- a/crates/metal2vulkan-runtime/src/tests/kernel_variants.rs +++ b/crates/metal2vulkan-runtime/src/tests/kernel_variants.rs @@ -16,10 +16,10 @@ mod on_device { use crate::tests::command::on_device::{each_device, finished, on_each_device, within, Arena}; use crate::tests::compute::on_device::{step_with_length, words, WORDS}; use crate::tests::devices_of_the_cfgs_kind; - use crate::tests::validation::validation_tool; + use crate::tests::validation::{bare, validation_tool}; use crate::{ Buffer, CommandBuffer, CommandQueue, ComputeCommandEncoder, ComputePipelineState, Counters, - Device, Dispatch, DispatchType, Instance, + Device, Dispatch, DispatchType, }; /// The keys the walks take: 35 threadgroup sizes, one row wide, at threadgroup memory lengths @@ -254,10 +254,10 @@ mod on_device { /// A kernel's variant made, evicted past the 64 its kernel keeps, and dispatched again: made /// again, through the device's pipeline cache. Both makes' times are printed, from their /// `VariantMake`s. On an instance without the validation layer, whose checks of each create - /// would be the time read. + /// would be the time read, on the driver the other device tests open (`validation::bare`). #[test] fn every_device_makes_an_evicted_variant_again() { - let instance = Instance::new(&[]).expect("an instance at the floor"); + let instance = bare(&[]); for (name, physical) in devices_of_the_cfgs_kind(&instance) { let tool = validation_tool(&instance, &name, physical.raw()); println!("kernel_variant_remade: {name}: validation tool {tool:?}");