From cd9ac9dbeebdd89b7e46083b23fc8b4243a7fea7 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 27 Nov 2026 05:00:43 -0800 Subject: [PATCH] Runtime README: an event value an encoded signal or wait carries past the device's timeline limit The queues section's known gaps gain one line. The runtime puts Metal's event value on the event's timeline semaphore as it is. Vulkan requires a signal's or wait's value to lie within maxTimelineSemaphoreValueDifference of the semaphore's value and of every signal and wait pending on it (VUID-VkSubmitInfo2-semaphore-03883, -03884), and lets a device report a limit as low as 2,147,483,647. On a device whose limit is below the jump, such a program is outside Vulkan's valid usage. A host set_signaled_value never signals the semaphore, so it has no such limit (event.rs's set_signaled_value). The count behind the row: six recorded streams, largest jump an encoded signal or wait carried 178, none past the limit; the only values past it were host sets, which never reach the semaphore. The lab cards the ported tests ran on (RX 7900 XTX, Iris Xe, RTX 2080, RTX 5080 Laptop) report 2^64-1. --- crates/metal2vulkan-runtime/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 58e7e4a87..d8c023a36 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -2747,6 +2747,14 @@ while the driver's exit handler waited on a lock, with every runtime thread alre m3-max-68314), and 1 failing suite run of 11 (m3-max-68142). No other device the suites run on shows it, no split dispatch has shown it, and a kernel that checks each of its reads met no wrong one in 5 runs (m3-max-68367). The cause is not found. +- An event's encoded signal or wait puts Metal's value on the event's timeline semaphore as it is. + Vulkan requires that value to lie within the device's `maxTimelineSemaphoreValueDifference` of + the semaphore's value and of every signal and wait pending on it + (`VUID-VkSubmitInfo2-semaphore-03883`, `VUID-VkSubmitInfo2-semaphore-03884`), and a device may + report a limit as low as 2,147,483,647. So on a device whose limit is below the jump, a program + whose encoded signal or wait moves an event's value further than that limit is outside Vulkan's + valid usage. A host's `set_signaled_value` raises the event's host value without signalling the + semaphore, so it meets no such limit. ## Compute encoders