diff options
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
| -rw-r--r-- | runtime/test/queue_proxy_test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/test/queue_proxy_test.cpp b/runtime/test/queue_proxy_test.cpp index f04b5287b..2259cf5d3 100644 --- a/runtime/test/queue_proxy_test.cpp +++ b/runtime/test/queue_proxy_test.cpp | |||
| @@ -388,6 +388,7 @@ int check_slots(const Backend& b) { | |||
| 388 | // The console queue tail answers S_OK instead of refusing: frame pacing flows through those | 388 | // The console queue tail answers S_OK instead of refusing: frame pacing flows through those |
| 389 | // methods, the contract xs_proxy_mock checks too. The two methods the proxy models — SignalX at | 389 | // methods, the contract xs_proxy_mock checks too. The two methods the proxy models — SignalX at |
| 390 | // 23 and PresentX at 30 on the older layout the 16/17 calls above pinned — are checked below. | 390 | // 23 and PresentX at 30 on the older layout the 16/17 calls above pinned — are checked below. |
| 391 | // The fence tail below is still refused — nothing console-shaped was measured past its public chain. | ||
| 391 | for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) { | 392 | for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) { |
| 392 | if (slot == 23 || slot == 30) continue; | 393 | if (slot == 23 || slot == 30) continue; |
| 393 | before = qhits(slot); | 394 | before = qhits(slot); |
| @@ -411,13 +412,14 @@ int check_slots(const Backend& b) { | |||
| 411 | EXPECT(as_hr(call_slot(fence.p, slot)) == E_NOTIMPL); | 412 | EXPECT(as_hr(call_slot(fence.p, slot)) == E_NOTIMPL); |
| 412 | EXPECT(fhits(slot) == before + 1 && xs::fence_slot_first_call_seen(slot)); | 413 | EXPECT(fhits(slot) == before + 1 && xs::fence_slot_first_call_seen(slot)); |
| 413 | } | 414 | } |
| 414 | // The objects still work after the tail calls. | 415 | // The objects still work after the console-only calls. |
| 415 | EXPECT(SUCCEEDED(queue->Signal(fence.p, 10))); | 416 | EXPECT(SUCCEEDED(queue->Signal(fence.p, 10))); |
| 416 | if (wait_for(label, fence.p, 10)) return 1; | 417 | if (wait_for(label, fence.p, 10)) return 1; |
| 417 | EXPECT(xs::command_object_proxy_ref_count(queue.p) == 1 && xs::command_object_proxy_ref_count(fence.p) == 1); | 418 | EXPECT(xs::command_object_proxy_ref_count(queue.p) == 1 && xs::command_object_proxy_ref_count(fence.p) == 1); |
| 418 | } | 419 | } |
| 419 | EXPECT(xs::device_proxy_ref_count(device) == device_refs); // every queue and fence gave its reference back | 420 | EXPECT(xs::device_proxy_ref_count(device) == device_refs); // every queue and fence gave its reference back |
| 420 | std::printf("%s: every public queue and fence slot forwarded and counted; console tail answered\n", label); | 421 | std::printf("%s: every public queue and fence slot forwarded and counted; queue tail S_OK, fence tail " |
| 422 | "refused\n", label); | ||
| 421 | return 0; | 423 | return 0; |
| 422 | } | 424 | } |
| 423 | 425 | ||