diff --git a/crates/metal2vulkan-runtime/src/floor.rs b/crates/metal2vulkan-runtime/src/floor.rs index 0d2bb63b6..0e165934f 100644 --- a/crates/metal2vulkan-runtime/src/floor.rs +++ b/crates/metal2vulkan-runtime/src/floor.rs @@ -61,7 +61,7 @@ pub const TIME_DOMAINS: [vk::TimeDomainKHR; 2] = /// report is read once, at its first loss ([`DeviceLoss::fault`](crate::DeviceLoss::fault)), /// `VK_EXT_pipeline_robustness`, with its `pipelineRobustness` feature where the device reports it, /// through which a kernel's pipeline contains its buffer arguments' storage buffers by robust -/// buffer access 2 ([`PIPELINE_ROBUSTNESS`]), and `VK_KHR_maintenance8` ([`MAINTENANCE8`]), for the +/// buffer access 2, and `VK_KHR_maintenance8` ([`MAINTENANCE8`]), for the /// optional feature of its own. pub const OPTIONAL_EXTENSIONS: &[&CStr] = &[ ash::khr::shader_maximal_reconvergence::NAME, @@ -427,7 +427,7 @@ pub struct Features { /// read and enabled only where the device lists it, and then only `maintenance8`. pub maintenance8: Maintenance8Features, /// `VkPhysicalDevicePipelineRobustnessFeaturesEXT`, of `VK_EXT_pipeline_robustness`: read and - /// enabled only where the device lists it ([`OPTIONAL_EXTENSIONS`], [`PIPELINE_ROBUSTNESS`]). + /// enabled only where the device lists it ([`OPTIONAL_EXTENSIONS`]). pub pipeline_robustness: vk::PhysicalDevicePipelineRobustnessFeaturesEXT<'static>, } diff --git a/crates/metal2vulkan-runtime/src/tests/pool_reach.rs b/crates/metal2vulkan-runtime/src/tests/pool_reach.rs index ae8737f64..b138446cb 100644 --- a/crates/metal2vulkan-runtime/src/tests/pool_reach.rs +++ b/crates/metal2vulkan-runtime/src/tests/pool_reach.rs @@ -41,6 +41,10 @@ mod on_device { /// A thread's mark. const MARK: u32 = 0xa5a5_0000; + /// A dispatch's threads: each one's word index and the target word it reaches (None outside + /// the target). + type Reaches = &'static [(i32, Option)]; + fn write(buffer: &Buffer, word: impl Fn(usize) -> u32) { let contents = buffer.contents().expect("a Shared buffer").cast::(); for index in 0..WORDS { @@ -66,9 +70,8 @@ mod on_device { let descriptor = ComputePipelineDescriptor::new(StageSource::Function( FunctionDescriptor::new(function), )); - // Each dispatch: the target's bind offset, then each thread's word index and the target - // word it reaches (None outside the target). - let dispatches: [(u64, &[(i32, Option)]); 2] = [ + // Each dispatch: the target's bind offset, then its threads' reaches. + let dispatches: [(u64, Reaches); 2] = [ ( 0, &[