From 34e34075220bbfdf52eefe0130db97db83b6de07 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 11:11:44 -0800 Subject: [PATCH] RUNTIME: a failed submission's resource summary reads apart from its list The lavapipe line read "0 keys of the runtime's own: buffer #1 ...", as if the stated resources were the runtime's own. The summary now ends "and N keys of the runtime's own not stated", and the stated resources follow after "; stated: ". The unit test's expected text follows; run in the next Linux job. --- crates/metal2vulkan-runtime/src/submit_failure.rs | 6 +++--- crates/metal2vulkan-runtime/src/tests/submit_failure.rs | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/submit_failure.rs b/crates/metal2vulkan-runtime/src/submit_failure.rs index 97db2541e..f34f4a6a3 100644 --- a/crates/metal2vulkan-runtime/src/submit_failure.rs +++ b/crates/metal2vulkan-runtime/src/submit_failure.rs @@ -514,8 +514,8 @@ impl Report { let resources = &self.carried.resources; let _ = write!( line, - "; resources: {} stated, {} gone, {} detached or released; {} key{} of the runtime's \ - own", + "; resources: {} stated, {} gone, {} detached or released, and {} key{} of the \ + runtime's own not stated", resources.stated, resources.gone, resources.released, @@ -523,7 +523,7 @@ impl Report { plural(resources.own), ); if !resources.named.is_empty() { - line.push_str(": "); + line.push_str("; stated: "); line.push_str(&resources.named.join("; ")); if resources.stated > resources.named.len() { let _ = write!( diff --git a/crates/metal2vulkan-runtime/src/tests/submit_failure.rs b/crates/metal2vulkan-runtime/src/tests/submit_failure.rs index 106d556a5..e86040ca4 100644 --- a/crates/metal2vulkan-runtime/src/tests/submit_failure.rs +++ b/crates/metal2vulkan-runtime/src/tests/submit_failure.rs @@ -132,8 +132,9 @@ fn the_line_names_what_the_failed_submission_held_and_flags_invalid_values() { "info 1: waits none, runs [0xa2 end], signals [0x20 VkQueue 0's timeline to 42 (at 42) \ NOT ABOVE ITS VALUE (VUID-VkSubmitInfo-pSignalSemaphores-03242)]", "of 1 command buffer: #12 command buffer `probe`", - "resources: 3 stated, 1 gone, 1 detached or released; 3 keys of the runtime's own: \ - buffer #7 of 4096 bytes, Shared; buffer #8 GONE; buffer #9, no-copy, DETACHED", + "resources: 3 stated, 1 gone, 1 detached or released, and 3 keys of the runtime's own \ + not stated; stated: buffer #7 of 4096 bytes, Shared; buffer #8 GONE; buffer #9, \ + no-copy, DETACHED", ] { assert!(line.contains(expected), "{expected:?} missing from {line}"); }