diff options
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); |