From 89fb4207967f7a354d3ae96b9d5f09d3ba852ad4 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 27 Nov 2026 06:27:24 -0800 Subject: [PATCH] Runtime tests: the pending signal of the event-read cost test lies within the device's timeline limit a_value_the_host_sees_is_one_a_host_wait_confirmed signalled 2^40 over an event at 5. A device's maxTimelineSemaphoreValueDifference may be as low as 2^31 - 1 (VUID-VkSubmitInfo2-semaphore-03883), and AMDVLK 2025.Q2.1 on a Radeon 780M reports 4294967295: the submit broke that valid usage, the validation layer reported it and the test failed there (job m3-max-76993, the rt suite under that driver: 850 passed, 1 failed, 3 skipped). The signal is now 5 plus the device's limit, at most 2^40, which no progress value reaches and the limit allows, as the_largest_value_is_kept reads it. Verified: see the jobs in the landing line (lavapipe, and the 780M under AMDVLK). --- crates/metal2vulkan-runtime/src/tests/event_values.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/event_values.rs b/crates/metal2vulkan-runtime/src/tests/event_values.rs index 34ce1a908..1b14d8e77 100644 --- a/crates/metal2vulkan-runtime/src/tests/event_values.rs +++ b/crates/metal2vulkan-runtime/src/tests/event_values.rs @@ -259,8 +259,8 @@ fn a_value_the_host_sees_is_one_a_host_wait_confirmed() { // A signal pending: the completion thread waits on the GPU for it. let busy = Busy::new(&device); // A value no progress value of the device's reaches, so the GPU wait's values name it - // alone. - let later = 1 << 40; + // alone, and within the device's limit of the event's value 5 (at least 2^31 - 1). + let later = 5 + timeline_limit(&device).min(1 << 40); let second = signal(name, &device, &queue, event.as_event(), later); assert_eq!(pending(event.as_event()), [later], "{name}"); within(name, || {