diff --git a/crates/metal2vulkan-validation/src/runtime_lane/alone_batches.rs b/crates/metal2vulkan-validation/src/runtime_lane/alone_batches.rs index 9a0ee1d88..84f45a2a3 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/alone_batches.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/alone_batches.rs @@ -31,7 +31,7 @@ //! after the next command buffer the GPU ran ended. use super::grouped_submissions::{groups, host_seconds, taken_in, warm}; -use super::{layer_reported_nothing_at_all, loader, open_device, validated_device_with}; +use super::{at_plan, layer_reported_nothing_at_all, loader, open_device, validated_device_with}; use super::{Messages, ScratchCache, WAIT}; use crate::gpu::TEST_DEVICE; use metal2vulkan::device::CompletionPolicy; @@ -193,8 +193,11 @@ fn a_batch_that_goes_alone_is_counted_once_by_why() { { // The lane's devices take `DevicePolicy::exact_answers()`, `CompletionPolicy::Exact` // among them, under which nothing groups and no reason is counted: this one the default. + // Its work places command queues beside each other, an unshared one among them: it takes + // its queue plan (`at_plan`). let device = validated_device_with(TEST_DEVICE, &messages, cache.path(), |options| { options.policy.completion = CompletionPolicy::Grouped; + at_plan(options); }) .unwrap(); let grouping = groups(&device); diff --git a/crates/metal2vulkan-validation/src/runtime_lane/joined_completions.rs b/crates/metal2vulkan-validation/src/runtime_lane/joined_completions.rs index 4a048af4b..6a8e8d9dc 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/joined_completions.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/joined_completions.rs @@ -23,7 +23,9 @@ use super::degrade_notices::counts; use super::grouped_submissions::{bytes_of, groups, taken_in, warm, GROUPED}; -use super::{layer_reported_nothing_at_all, validated_device_with, Messages, ScratchCache, WAIT}; +use super::{ + at_plan, layer_reported_nothing_at_all, validated_device_with, Messages, ScratchCache, WAIT, +}; use crate::gpu::TEST_DEVICE; use metal2vulkan_runtime::{ Buffer, CommandBuffer, CommandBufferStatus, EventRef, ResourceOptions, WorkCounts, @@ -217,8 +219,10 @@ fn an_unmarked_command_buffer_is_seen_complete_at_its_own_end() { let messages = Messages::default(); let cache = ScratchCache::new().unwrap(); let (moved, seen) = { + // Its work places a second command queue (`aside`): it takes its queue plan (`at_plan`). let device = validated_device_with(TEST_DEVICE, &messages, cache.path(), |options| { options.assume_submissions_merge = true; + at_plan(options); }) .unwrap(); let grouping = groups(&device);