mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 18:48:38 +00:00
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>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user