From 3db4101f09fd6b39da2eccc54971eb5f44746f6c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 10 Nov 2026 05:25:53 -0800 Subject: [PATCH] GPU-fault lane: print the notices the failure announced before its claims a_gpu_fault_fails_its_command_buffer_and_the_queue_runs_on fails on the M3 Max at 58e3a66662 under MVK_CONFIG_RESUME_LOST_DEVICE off (m3-max-13699, 25 of 25 runs): the failed command buffer answers GpuRecoveryVictim where the test wants GpuHang. The recovery's notice names the command buffer it failed as the hang; the test now prints every notice before its claims, so a run says which. (cherry picked from commit 94dd3c71fe5262aafaeee8c45dbe3320cada5db0) --- .../src/runtime_lane/host_memory.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/host_memory.rs b/crates/metal2vulkan-validation/src/runtime_lane/host_memory.rs index 2964cecb7..2c80c5b42 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/host_memory.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/host_memory.rs @@ -1931,6 +1931,13 @@ fn a_gpu_fault_fails_its_command_buffer_and_the_queue_runs_on() { "runtime GPU fault, resume {resume:?}: {failed:?}; committed beside it: \ {beside_status:?} {beside_error:?}" ); + // What the runtime announced of the failure: a recovery names the command buffer it + // failed as the hang. + let notices = messages.take_notices(); + for notice in ¬ices { + eprintln!("runtime GPU fault, resume {resume:?}: {}", notice.text); + } + messages.restore_notices(notices); assert_eq!(faulting.status(), CommandBufferStatus::Error, "{resume:?}"); if resume.is_none() { assert_eq!(committed, Ok(()));