diff options
| author | Mumogg <104529023+Mumogg@users.noreply.github.com> | 2026-11-23 23:03:47 -0600 |
|---|---|---|
| committer | Mumogg <104529023+Mumogg@users.noreply.github.com> | 2026-11-24 03:52:42 -0600 |
| commit | 77c801c82f5c0d7e222512ef7d1d0a927895f7a4 (patch) | |
| tree | 8f211d9f5d880d5dbaf731c94f4f713237447b56 /runtime/test/queue_proxy_test.cpp | |
| parent | af8c42bb1aa19db773a3fee2607ec0f4218f864b (diff) | |
queue_proxy_test: the PresentX slot is called and counted
The coverage gate asks for every queue slot to have been called, and skips the overridden ones in its sweep of
the refused tail. Slot 32 is overridden since the PresentX wiring, so nothing called it and the gate failed
("queue slot 32 never called"). The test now calls it where it calls the console ExecuteCommandLists slot: this
build of the proxy has no presenter, so the answer is S_OK.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
| -rw-r--r-- | runtime/test/queue_proxy_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/test/queue_proxy_test.cpp b/runtime/test/queue_proxy_test.cpp index 967313d53..674a8cf2e 100644 --- a/runtime/test/queue_proxy_test.cpp +++ b/runtime/test/queue_proxy_test.cpp | |||
| @@ -277,6 +277,12 @@ int check_slots(const Backend& b) { | |||
| 277 | const std::uint64_t before35 = qhits(35); | 277 | const std::uint64_t before35 = qhits(35); |
| 278 | EXPECT(raw_call(queue.p, 35, 1, reinterpret_cast<std::uint64_t>(lists)) == 0); | 278 | EXPECT(raw_call(queue.p, 35, 1, reinterpret_cast<std::uint64_t>(lists)) == 0); |
| 279 | EXPECT(qhits(35) == before35 + 1 && xs::queue_slot_first_call_seen(35)); | 279 | EXPECT(qhits(35) == before35 + 1 && xs::queue_slot_first_call_seen(35)); |
| 280 | // Console slot 32, PresentX. This test's build of the proxy has no presenter (the wiring is in gta6rt's, | ||
| 281 | // LEONIDA_VULKAN_DEVICE), so the slot answers S_OK and reaches no PC slot; it is counted like any other. | ||
| 282 | EXPECT(xs::queue_slot_overridden(32)); | ||
| 283 | const std::uint64_t before32 = qhits(32); | ||
| 284 | EXPECT(static_cast<std::uint32_t>(raw_call(queue.p, 32, 0, 0, 0)) == static_cast<std::uint32_t>(S_OK)); | ||
| 285 | EXPECT(qhits(32) == before32 + 1); | ||
| 280 | EXPECT(SUCCEEDED(queue->Signal(fence.p, 7))); | 286 | EXPECT(SUCCEEDED(queue->Signal(fence.p, 7))); |
| 281 | if (wait_for(label, fence.p, 7)) return 1; | 287 | if (wait_for(label, fence.p, 7)) return 1; |
| 282 | if (b.vulkan) { | 288 | if (b.vulkan) { |