Repository navigation
Conversation
|
Independent Windows 11 / MSVC check at head
AI-assisted. |
|
Independent Windows + GPU test of Setup: Windows 11 x64, MSVC 19.44.35220 (RelWithDebInfo, Windows SDK 10.0.26100.0), NVIDIA GeForce RTX 3080 (driver 32.0.16.2124 / 621.24), Vulkan SDK 1.4.363.1, no game files.
AI-assisted review/test. |
|
Integration note (AI-assisted; no game files): with #2490 merged, the early return for queue slot 10 skips #2490's list-proxy unwrapping.
Unwrapping inside UnwrappedArray unwrapped;
if (!unwrapped.fill(lists_word, static_cast<std::uint64_t>(static_cast<UINT>(count_word))))
return hr_to_u64(E_OUTOFMEMORY);
if (unwrapped.data()) lists_word = unwrapped.data();The slot 35 mock test then needs null (or real mock) entries instead of |
|
Retail confirmation of the #2490 integration issue on CachyOS / Wine 11.22, RTX 4070 (620.73.04). Routing slot 35 reaches the PC queue, which rejects the wrapped list. Unwrapping it with list_proxy_real_list before the Vulkan queue resolves the list changes ExecuteCommandLists from failure to success on the same stack. AI-assisted testing. |
|
Retail data point for this (my own 1.0.2.1 copy, Windows 11 + RTX 3060, integration tree with the boot PRs; #7496 comment 7107949979). Forwarding slot 35 to
|
|
Tested As noted above, it only breaks once #2490's console list proxies are in (the early return skips the list unwrapping); the |
|
Tested |
|
Measured on the retail executable (own 1.0.2.1 copy, native Windows 11, RTX 5060 Ti,
Unwrapping the array the way slot 10 already does fixes it here (every slot 35 submit then traces std::uint64_t queue_execute_command_lists(ChildProxy* self, std::uint64_t count_word, std::uint64_t lists_word) {
using ExecuteFn = void(WINAPI*)(void*, std::uint64_t, ID3D12CommandList* const*);
UnwrappedArray unwrapped;
if (!unwrapped.fill(lists_word, count_word)) return 0;
if (unwrapped.data()) lists_word = unwrapped.data();
reinterpret_cast<ExecuteFn>(self->real_vtable[kQueueExecuteCommandLists])(
self->real, static_cast<std::uint64_t>(static_cast<UINT>(count_word)),
reinterpret_cast<ID3D12CommandList* const*>(lists_word));
return 0;
}Happy for you to fold it in; I won't open a separate PR for it. AI-assisted (Claude Code). |
|
I tested the 256-list batch size reported in this thread on PR head All four runs returned 256/256 on each backend:
As a negative control I changed only the submitted count to 255 and kept all 256 expected words. WARP reported the first mismatch at index 255 and exited 1. Restoring the count to 256 passed again on all three backends. Windows 11 26H2, MSVC 19.51.36263, RelWithDebInfo. This tests batch delivery with PC-interface command lists on this PR in isolation. The #2490 wrapped-list integration and retail startup are outside this measurement. All inputs were synthetic. AI-assisted. To reproduce with the patch and the Vulkan SDK installed, from the repository root on Windows: git apply Leonida-7286-queue-batch.patch
cmake -S runtime -B build -A x64 -DLEONIDA_REQUIRE_VULKAN=ON
cmake --build build --config RelWithDebInfo --target queue_proxy_test
$env:LEONIDA_VK_VALIDATION = '1'
.\build\RelWithDebInfo\queue_proxy_test.exe --xbox-client |
Queue slot 35 (console ExecuteCommandLists) goes through the fork's list-proxy unwrapping: ItsNotRexed#7286 forwarded the caller's array to PC slot 10 as it was, which would hand console list proxies to the real queue, and its slot-10 shortcut skipped the existing unwrapping (removed). The console queue tail stays S_OK; the mock check passes real objects instead of marker pointers, since entries are read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I tested the console queue path with retail 1.0.2.1 on Linux under Proton CachyOS 11.0-20261015, Gamescope and an RX 9070 XT (RADV). In our #2490 + #7880 integration, all 586 command-list Close calls succeeded, but slot 35 reached the console-only handler and the runtime recorded zero PC ExecuteCommandLists calls. I then integrated the routing from The game presented one plane and still stopped at Game Init, engine frame 0. The visible window remained black, with no DrawInstanced or DrawIndexedInstanced in either trace. This validates the submission step on RADV. AI-assisted testing. |
Queue slot 35 (ExecuteCommandListsX) is served before the console-only S_OK answer, next to fence slot 12 and allocator slot 9. Slots 10 and 35 share one path that unwraps list proxies (ItsNotRexed#2490), so the PR's mock check uses real objects and compares the array the real queue got. Tail loops skip the overridden queue slots. queue_proxy_test: the fence slot 12 block is back to the PR's value 9 (the fence is already at 9 there; 8 was a backwards signal). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Retail boot test (RT-5): own 1.0.2.1 copy, Windows 11, i9-12900KF (Intel, no SSE4a/CLZERO/MONITORX), RTX 3070 (NVIDIA 617.42), MSVC 2022 RelWithDebInfo, Integration bug with #2490. AI-assisted test run. |
|
checked: #7286e925b63 | with: AI-assisted (Claude Code). |
…ed#7286 with the console list proxy)
…o ExecuteCommandLists Squashed from ItsNotRexed#7286 by Vadson159, head e925b63 (security scan PASS). Conflicts with ItsNotRexed#7290 (fence slot 12): the queue and fence slot constants are both kept, the header's queue/fence paragraph names slot 35 and fence slot 12, and the refused-tail loops skip both (queue_slot_overridden, fence slot 12). Reviewers' unwrapping bug (a list proxy reaching ExecuteCommandListsX) does not apply here: command lists are not wrapped in this tree (ItsNotRexed#2490 is not in).
… slot 9 (SetAllocatorCallbackX) on allocator proxy Squashed from ItsNotRexed#7949 by DevilNine, head e29e989 (security scan PASS). Conflicts with ItsNotRexed#7290/ItsNotRexed#7286 in the child proxy: the allocator-callback fields sit next to the fence mirror, and the allocator slot-9 branch follows the queue slot-35 branch.
…load arena, PC-list fixture path Squashed from ItsNotRexed#2490 by NolanCotter, head ef9d075 (security scan PASS). Taken at ef9d075, after upstream's revert (57c1753): this head keeps device proxies made by direct callers on PC-shaped lists (the run_tiny_frame regression), maps the console list IID, wraps slot-73 lists, and routes console list slot 139 (Reset) to PC slot 10. Security: prescan no flags, Haiku read PASS; the IID header cites a GPL-3.0 project as a second source for one GUID value measured from the executable (provenance note, no code taken). Conflicts with Wave 2: the queue proxy keeps ItsNotRexed#7286's ExecuteCommandListsX (slot 35) ahead of this PR's console-layout detection, SignalX and PresentX, and queue_execute_command_lists now unwraps list proxies the way this PR's slot-10 path does (with list proxies in play, ItsNotRexed#7286's early return would have handed the real queue proxies, as ItsNotRexed#7286's reviewers predicted); fence slot 12 (ItsNotRexed#7290) and allocator slot 9 (ItsNotRexed#7949) stay in front of the queue block; device_slot_overridden takes slot 12 with the Wave 2 slots. Tests: queue_proxy_test and the mock's check_tail keep fence slot 12 and expect this PR's S_OK queue tail except overridden slots (35); the mock Kind enum keeps heap and list; the check list takes the union.
…it now unwraps them (ItsNotRexed#7286 x ItsNotRexed#2490) With ItsNotRexed#2490's list proxies, queue slots 10 and 35 both copy the list array and replace each list proxy by its real list, which reads every entry's vtable. ItsNotRexed#7286's check passed made-up addresses and faulted there; it now passes two readable non-proxy objects and checks that the mock's ExecuteCommandLists received them unchanged (the mock records queue slot 10's array).
Claimed in the coordination issue: #7049 (comment)
Depends on: none (applies directly to
main; sharingqueue_execute_command_listsbetween slots 10 and 35 also keeps future command-list unwrapping such as #7076/#2490 in one place).What and why
Per @KkelebekK's RT-5 measurement (#7049 (comment)), the retail executable calls command queue slot
35as(count, lists)— a consoleExecuteCommandListsvariant, notPresentX. PreviouslyChildProxy<ChildKind::queue>only forwarded slots0..18(kQueuePublicSlots = 19) and refused slot35withE_NOTIMPL.runtime/shims/d3d12_xs_device.cpp/runtime/shims/d3d12_xs_device.h:ChildKind::queueslot35(kQueueExecuteCommandListsX) to PC slot10(kQueueExecuteCommandLists) via a sharedqueue_execute_command_listshelper, zero-extendingUINT countcleanly to 64 bits and returning0(S_OK/ ignoredvoid).35asXboxID3D12CommandQueue::ExecuteCommandListsXinchild_public_name<ChildKind::queue>/d3d12_traceand exposequeue_slot_overridden(unsigned slot).runtime/test/queue_proxy_test.cpp:35on both empty command lists (check_slots) and a GPU upload -> default -> readback copy round-trip with readback verification (check_xbox_client), plusqueue_slot_overriddenchecks and skipping overridden slots in theE_NOTIMPLtail loop.runtime/test/xs_proxy_mock_test.cpp:check_xbox_queue_slots()verifyingqueue_slot_overridden, slot35hit/first-call tracking, routing to mock PC slot10without reaching mock slot35, upper-32-bit garbage masking oncount, and skipping overridden slots incheck_tail.Tested
Windows 11, MSVC (
RelWithDebInfo), AMD Radeon RX 9070 XT + WARP + Vulkan, no game files:scripts\build_runtime.ps1: clean incremental build (113/113targets,gta6rt.exelinked)..\runtime\build\queue_proxy_test.exe --trace-d3d12:3 backend(s) passed(host WARP, host AMD Radeon RX 9070 XT, Vulkan)..\runtime\build\xs_proxy_mock_test.exe:xs_proxy_mock_test: PASS (9 allocations refused on purpose).ctest --test-dir runtime/build -C RelWithDebInfo -R "proxy|allocator|root_sig|loader|xmem|frame_pacer|tiny|d3d12_xs|dxgi_device|xbox_present" --output-on-failure:39/39passed (0failed).python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs_device.h runtime/shims/d3d12_xs_device.cpp runtime/test/queue_proxy_test.cpp runtime/test/xs_proxy_mock_test.cpp,git diff --check, and LF line-ending check: clean.VK_LAYER_KHRONOS_validation(layer not installed on this host) and the retail executable itself (no game files).AI-assisted: yes.