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).
This commit is contained in:
1 parent
0b0ac58eb0
commit
89fb420796
1 file changed
+2
-2
@@ -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, || {
|
||||
|
||||
Reference in new issue
Block a user