From b7d06c3820aa9b7fa62f764df565c8a571fe3c27 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 11 Nov 2026 17:28:20 -0800 Subject: [PATCH] Docs: a check's step waits until its own calls' length has passed since they ended --- crates/metal2vulkan-runtime/src/submit_check.rs | 11 ++++++----- crates/metal2vulkan-runtime/src/work_counts.rs | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/submit_check.rs b/crates/metal2vulkan-runtime/src/submit_check.rs index 300ccb7b1..608a9667c 100644 --- a/crates/metal2vulkan-runtime/src/submit_check.rs +++ b/crates/metal2vulkan-runtime/src/submit_check.rs @@ -134,11 +134,12 @@ //! (`step_aside.rs`): it goes on once none is in progress and none ended for //! `step_aside::QUIET`, at once while a call waits for its verdicts (`ANSWER_WAIT`, //! `Device::settle_submit_checks`). Beside a program's burst of makings its verdicts so come -//! after the burst. Each step first waits as long as the thread's own allocations and frees -//! since the last one took (`step_aside::OwnCall`): NVIDIA's driver holds back every other -//! thread's `vkQueueSubmit` while it frees a pointer import, so the import tax's 32 frees in a -//! row held the device's submissions for their whole run, and a compositor's command buffers -//! beside long work waited up to 21 ms. Paced, the device's submissions go between them. +//! after the burst. Each step first waits until as long as the thread's own allocations and +//! frees since the last one took has passed since they ended (`step_aside::OwnCall`): NVIDIA's +//! driver holds back every other thread's `vkQueueSubmit` while it frees a pointer import, so +//! the import tax's 32 frees in a row held the device's submissions for their whole run, and a +//! compositor's command buffers beside long work waited up to 21 ms. Paced, the device's +//! submissions go between them. //! - **Its thread** holds nothing of the device, as the queue-switch check's does //! (`queue_switch_check.rs`): only the parts of it the checks work with ([`Parts`]), never a //! handle, so the device's last handle never goes on it. It reads the stop between its steps diff --git a/crates/metal2vulkan-runtime/src/work_counts.rs b/crates/metal2vulkan-runtime/src/work_counts.rs index 77cd49337..f86f833c8 100644 --- a/crates/metal2vulkan-runtime/src/work_counts.rs +++ b/crates/metal2vulkan-runtime/src/work_counts.rs @@ -4773,9 +4773,9 @@ pub struct DeviceCheckWork { /// uses of a queue (`WorkCounts::queue_submissions` leaves them out); the submission checks' /// are `WorkCounts::submit_check_calls`. pub queue_submissions: u64, - /// Steps of the device's checks that waited before they went on: as long as their own - /// allocations and frees since their last step took, then for the device's allocations and - /// frees on other threads (`step_aside.rs`). + /// Steps of the device's checks that waited before they went on: until as long as their own + /// allocations and frees since their last step took had passed since those ended, then for the + /// device's allocations and frees on other threads (`step_aside.rs`). pub steps_aside: u64, /// The nanoseconds those steps waited, in all. pub aside_nanos: u64,