From 01653413364bc3cd20a1b217d16a8aa5f99eb0b4 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 17:21:45 -0800 Subject: [PATCH] Give the GPU-signal submission checks two more tries, up to 1024 fills runtime_lane::submission_checks::an_event_wait_a_gpu_signal_in_flight_meets_is_checked_at_once failed on the RTX 5080 in round 49d9a3fd06's lane (b5080 m2v-orch-dv-ln03-170042): 'the signaller never ran at the waiter's scheduling in 7 tries'. Beside the lane's other tests at -j 6 the host scheduled the waiter after the GPU had finished 256 fills of 64 MiB (about 20 ms there); type_nine in the same part read another queue's command buffer Scheduled 145 ms after its commit. A premise the try could not arrange, not a refusal or a wrong answer: 9 tries reach 1024 fills (about 80 ms on that GPU). It passed in 9 earlier 5080 lane runs. Test only. --- .../src/runtime_lane/submission_checks.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/submission_checks.rs b/crates/metal2vulkan-validation/src/runtime_lane/submission_checks.rs index 99e49c5c4..412c0126f 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/submission_checks.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/submission_checks.rs @@ -376,8 +376,11 @@ fn a_buffer_reached_only_through_an_indirect_command_fails_its_submission() { const FILL: u64 = 64 << 20; /// How many times a GPU-signal test tries, the signaller's fills doubling each time, for the -/// signaller still to run when the host acts. -const ATTEMPTS: u32 = 7; +/// signaller still to run when the host acts. The last try's 1024 fills of [`FILL`] bytes outlast +/// a host acting 145 ms after a commit, as an RTX 5080 laptop's did beside a lane run at `-j 6`, +/// where 7 tries (256 fills) all finished first. A try past the first that catches it costs only +/// where the earlier ones did not. +const ATTEMPTS: u32 = 9; /// The event a waiting command buffer waits for, by its kind. enum Waited {