upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorNolan Cotter <186326284+NolanCotter@users.noreply.github.com>2026-11-22 18:40:20 -0700
committerNolan Cotter <186326284+NolanCotter@users.noreply.github.com>2026-11-22 18:41:23 -0700
commit7cc353106f126a15bbbb280e47704c191da67444 (patch)
tree0b47bbe89b0da7ee311fde98d9941f3656c00a46 /runtime/test/queue_proxy_test.cpp
parent92848ba9545568e5e9144d4c0c544d84fa1b784e (diff)
d3d12_xs: PC-shaped lists for PC callers, atomic queue layout, S_OK queue tail
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>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
-rw-r--r--runtime/test/queue_proxy_test.cpp6
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