diff options
| author | lumenpearson <139921639+lumenpearson@users.noreply.github.com> | 2026-11-23 01:12:30 +0300 |
|---|---|---|
| committer | lumenpearson <139921639+lumenpearson@users.noreply.github.com> | 2026-11-23 01:12:30 +0300 |
| commit | aeca1cb47578c0a16ffe235b0d011659d28add31 (patch) | |
| tree | 288c4b6c5f5493ae64b00d8e5aceb90e301ea059 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | f324bfbc71f0eabf9515bcd7c8b7c9e4b89448bf (diff) | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
Merge upstream main into SHADER-537
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
| -rw-r--r-- | runtime/test/vk_queue_query_sync_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/test/vk_queue_query_sync_test.cpp b/runtime/test/vk_queue_query_sync_test.cpp index a9daf6477..a03e369b9 100644 --- a/runtime/test/vk_queue_query_sync_test.cpp +++ b/runtime/test/vk_queue_query_sync_test.cpp | |||
| @@ -267,12 +267,14 @@ int main() { | |||
| 267 | EXPECT(copy_list.close()); | 267 | EXPECT(copy_list.close()); |
| 268 | const CommandList* ptr = ©_list; | 268 | const CommandList* ptr = ©_list; |
| 269 | 269 | ||
| 270 | // The Signal comes first: a Wait with no submitted Signal holds the batch on the CPU (queue_holds.h) and | ||
| 271 | // never reaches vkQueueSubmit, so it could not fail there. | ||
| 272 | EXPECT(fence.signal(1)); | ||
| 270 | queue_a.wait(fence.semaphore(), 1); | 273 | queue_a.wait(fence.semaphore(), 1); |
| 271 | driver::fail_next_submit.store(VK_ERROR_OUT_OF_HOST_MEMORY); | 274 | driver::fail_next_submit.store(VK_ERROR_OUT_OF_HOST_MEMORY); |
| 272 | EXPECT(queue_a.execute({&ptr, 1}) == ReplayResult::unsupported); | 275 | EXPECT(queue_a.execute({&ptr, 1}) == ReplayResult::unsupported); |
| 273 | 276 | ||
| 274 | // Retry: the pending wait on (fence, 1) must still be attached to the next vkQueueSubmit. | 277 | // Retry: the pending wait on (fence, 1) must still be attached to the next vkQueueSubmit. |
| 275 | EXPECT(fence.signal(1)); | ||
| 276 | driver::captured_wait_count.store(0); | 278 | driver::captured_wait_count.store(0); |
| 277 | driver::captured_wait_sem.store(0); | 279 | driver::captured_wait_sem.store(0); |
| 278 | driver::captured_wait_val.store(0); | 280 | driver::captured_wait_val.store(0); |