diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 04:42:53 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 04:42:53 -0500 |
| commit | 57c175391db7b70ac2ec8dc7a7bf04afec52cb88 (patch) | |
| tree | 4cbd07a10787a6d340268ec8be2b8e8bad7d7823 /runtime/test/queue_proxy_test.cpp | |
| parent | e2ac2238fa5cb7ca23e653cce15fd5c1d004e0a7 (diff) | |
Revert #2490: its console-ABI list proxy breaks run_tiny_frame (please rebase and split)
With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's
ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried
committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
| -rw-r--r-- | runtime/test/queue_proxy_test.cpp | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/runtime/test/queue_proxy_test.cpp b/runtime/test/queue_proxy_test.cpp index 75feecf15..142eae84e 100644 --- a/runtime/test/queue_proxy_test.cpp +++ b/runtime/test/queue_proxy_test.cpp | |||
| @@ -8,9 +8,8 @@ | |||
| 8 | // - heap, queue and fence proxies are unwrapped where the real runtime receives them (Signal/Wait, | 8 | // - heap, queue and fence proxies are unwrapped where the real runtime receives them (Signal/Wait, |
| 9 | // SetEventOnMultipleFenceCompletion, MakeResident/Evict/SetResidencyPriority/EnqueueMakeResident, | 9 | // SetEventOnMultipleFenceCompletion, MakeResident/Evict/SetResidencyPriority/EnqueueMakeResident, |
| 10 | // CreateSharedHandle), and OpenSharedHandle wraps a shared fence; | 10 | // CreateSharedHandle), and OpenSharedHandle wraps a shared fence; |
| 11 | // - slots past the public chain answer the console contract — a queue slot returns S_OK having signalled | 11 | // - slots past the public chain are refused (E_NOTIMPL) up to the end of the table, and a slot past the table |
| 12 | // nothing (frame pacing flows through those methods), a fence slot is refused with E_NOTIMPL — and a | 12 | // faults on the vtable read in the guard region and is counted; |
| 13 | // slot past either table faults on the vtable read in the guard region and is counted; | ||
| 14 | // - calls from eight threads at once, and repeated device, queue and fence creation without leaks; | 13 | // - calls from eight threads at once, and repeated device, queue and fence creation without leaks; |
| 15 | // - the child-process runner of the differential check itself: large output, hangs, crashes, failed starts. | 14 | // - the child-process runner of the differential check itself: large output, hangs, crashes, failed starts. |
| 16 | // No shaders, game data or Xbox DLLs. LEONIDA_VK_VALIDATION=1 runs the Vulkan device under | 15 | // No shaders, game data or Xbox DLLs. LEONIDA_VK_VALIDATION=1 runs the Vulkan device under |
| @@ -385,41 +384,24 @@ int check_slots(const Backend& b) { | |||
| 385 | } | 384 | } |
| 386 | } | 385 | } |
| 387 | 386 | ||
| 388 | // The console queue tail answers S_OK instead of refusing: frame pacing flows through those | 387 | // The refused tail: every slot from the end of the public chain to the end of the table. |
| 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. | ||
| 391 | // The fence tail below is still refused — nothing console-shaped was measured past its public chain. | ||
| 392 | for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) { | 388 | for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) { |
| 393 | if (slot == 23 || slot == 30) continue; | ||
| 394 | before = qhits(slot); | 389 | before = qhits(slot); |
| 395 | EXPECT(as_hr(call_slot(queue.p, slot)) == S_OK); | 390 | EXPECT(as_hr(call_slot(queue.p, slot)) == E_NOTIMPL); |
| 396 | EXPECT(qhits(slot) == before + 1 && xs::queue_slot_first_call_seen(slot)); | 391 | EXPECT(qhits(slot) == before + 1 && xs::queue_slot_first_call_seen(slot)); |
| 397 | } | 392 | } |
| 398 | // SignalX forwards to the real queue's Signal with the extra word dropped: the fence reaching 9 | ||
| 399 | // proves the call was forwarded rather than swallowed by the console-tail answer. | ||
| 400 | before = qhits(23); | ||
| 401 | EXPECT(as_hr(raw_call(queue.p, 23, reinterpret_cast<std::uint64_t>(fence.p), 9)) == S_OK); | ||
| 402 | EXPECT(qhits(23) == before + 1 && xs::queue_slot_first_call_seen(23)); | ||
| 403 | if (wait_for(label, fence.p, 9)) return 1; | ||
| 404 | // PresentX is handled by the presentation front end, not refused: its status is the swapchain's | ||
| 405 | // (a black frame on the test window, or S_OK where it cannot present), so anything but E_NOTIMPL | ||
| 406 | // shows the modelled path ran. | ||
| 407 | before = qhits(30); | ||
| 408 | EXPECT(as_hr(call_slot(queue.p, 30)) != E_NOTIMPL); | ||
| 409 | EXPECT(qhits(30) == before + 1 && xs::queue_slot_first_call_seen(30)); | ||
| 410 | for (unsigned slot = fence_slots; slot < xs::fence_proxy_table_size(); ++slot) { | 393 | for (unsigned slot = fence_slots; slot < xs::fence_proxy_table_size(); ++slot) { |
| 411 | before = fhits(slot); | 394 | before = fhits(slot); |
| 412 | EXPECT(as_hr(call_slot(fence.p, slot)) == E_NOTIMPL); | 395 | EXPECT(as_hr(call_slot(fence.p, slot)) == E_NOTIMPL); |
| 413 | EXPECT(fhits(slot) == before + 1 && xs::fence_slot_first_call_seen(slot)); | 396 | EXPECT(fhits(slot) == before + 1 && xs::fence_slot_first_call_seen(slot)); |
| 414 | } | 397 | } |
| 415 | // The objects still work after the console-only calls. | 398 | // The objects still work after refused calls. |
| 416 | EXPECT(SUCCEEDED(queue->Signal(fence.p, 10))); | 399 | EXPECT(SUCCEEDED(queue->Signal(fence.p, 10))); |
| 417 | if (wait_for(label, fence.p, 10)) return 1; | 400 | if (wait_for(label, fence.p, 10)) return 1; |
| 418 | EXPECT(xs::command_object_proxy_ref_count(queue.p) == 1 && xs::command_object_proxy_ref_count(fence.p) == 1); | 401 | EXPECT(xs::command_object_proxy_ref_count(queue.p) == 1 && xs::command_object_proxy_ref_count(fence.p) == 1); |
| 419 | } | 402 | } |
| 420 | EXPECT(xs::device_proxy_ref_count(device) == device_refs); // every queue and fence gave its reference back | 403 | EXPECT(xs::device_proxy_ref_count(device) == device_refs); // every queue and fence gave its reference back |
| 421 | std::printf("%s: every public queue and fence slot forwarded and counted; queue tail S_OK, fence tail " | 404 | std::printf("%s: every public queue and fence slot forwarded and counted; tail refused\n", label); |
| 422 | "refused\n", label); | ||
| 423 | return 0; | 405 | return 0; |
| 424 | } | 406 | } |
| 425 | 407 | ||