From 7cc353106f126a15bbbb280e47704c191da67444 Mon Sep 17 00:00:00 2001 From: Nolan Cotter <186326284+NolanCotter@users.noreply.github.com> Date: Sun, 22 Nov 2026 18:40:20 -0700 Subject: d3d12_xs: PC-shaped lists for PC callers, atomic queue layout, S_OK queue tail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review findings from shdann's Windows run of the new console queue/list work: - d3d12_debug_markers (and every GPU harness compiled against the PC headers) drove lists through the console-shaped proxy, so PC slots past 26 — including the PIX markers at 56-58, which have no console counterpart — reached unrelated console methods or were dropped. create_device_proxy gains console_lists: false hands the real (PC-shaped) list back from CreateCommandList. The GPU tests pass false; the title path keeps the console default. - queue_proxy asserted E_NOTIMPL for the queue's console tail, but those slots deliberately answer S_OK now — frame pacing flows through them. The test's contract is updated; the fence tail stays refused. - ChildProxy::queue_layout was a plain unsigned char read and written from many threads; it is atomic like the device-wide detection it caches. xs_proxy_mock_test and loader_test pass under Wine; the modified test objects compile clean under clang-cl. The GPU harnesses need a real adapter — covered by shdann's Windows run. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- runtime/test/queue_proxy_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/test/queue_proxy_test.cpp') 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) { // The console queue tail answers S_OK instead of refusing: frame pacing flows through those // methods, the contract xs_proxy_mock checks too. The two methods the proxy models — SignalX at // 23 and PresentX at 30 on the older layout the 16/17 calls above pinned — are checked below. + // The fence tail below is still refused — nothing console-shaped was measured past its public chain. for (unsigned slot = 19; slot < xs::queue_proxy_table_size(); ++slot) { if (slot == 23 || slot == 30) continue; before = qhits(slot); @@ -411,13 +412,14 @@ int check_slots(const Backend& b) { EXPECT(as_hr(call_slot(fence.p, slot)) == E_NOTIMPL); EXPECT(fhits(slot) == before + 1 && xs::fence_slot_first_call_seen(slot)); } - // The objects still work after the tail calls. + // The objects still work after the console-only calls. EXPECT(SUCCEEDED(queue->Signal(fence.p, 10))); if (wait_for(label, fence.p, 10)) return 1; EXPECT(xs::command_object_proxy_ref_count(queue.p) == 1 && xs::command_object_proxy_ref_count(fence.p) == 1); } EXPECT(xs::device_proxy_ref_count(device) == device_refs); // every queue and fence gave its reference back - std::printf("%s: every public queue and fence slot forwarded and counted; console tail answered\n", label); + std::printf("%s: every public queue and fence slot forwarded and counted; queue tail S_OK, fence tail " + "refused\n", label); return 0; } -- cgit v1.2.3