Repository navigation
Conversation
Senya01
left a comment
There was a problem hiding this comment.
Independent Windows / Vulkan validation
Tested the slot 48 handler and its device_proxy_test cases from 831062a24 on main 09f6ce74e, which includes #6935. I resolved the textual overlap locally. Both builds used the same startup patches from #4313, #4348, #6582, #6792, the GameInput ordinal from #3410, the XMem implementation from #6919 (36936f3bf), and the slot 26 fix from #6964 (23e9c9535). The only runtime difference between the two builds was this PR’s slot 48 change.
Tested on Windows 11 build 26300, RTX 5070 Ti, NVIDIA 617.14, MSVC 19.44 Release. Each trial ran --dry-run, --init, then --run with the local retail 1.0.2.1 package, a fresh overlay, LEONIDA_D3D12=vulkan and LEONIDA_UNIMPLEMENTED=stop, in an offline AppContainer. All six dry runs and all six initializations succeeded.
| Build | Retail result |
|---|---|
| Control, 3/3 runs | Two queues were created (slot 8 and the first slot 48 call). The second slot 48 call failed. |
| With this PR, 3/3 runs | All five queues, five fences and one command allocator were created. All four slot 48 calls succeeded, with input flags 1, 2, 3, 0 in that order. The next failure was CreateCommandList through slot 73. |
One test to reconcile on rebase. The targeted CTest set passed 5/5 on the control and 4/5 with this PR. device_proxy passed, including the new queue cases. xs_proxy_mock failed at the pointer equality check introduced by #6935. The mock expects the backend to receive the caller’s descriptor address. The new handler passes a normalized local copy. Capturing the descriptor fields during the mock call would let this test verify the forwarded values and cleared flags.
AI-assisted: yes. Runs and report by OpenAI Codex (gpt-6.2-astra).
|
Tested Retail Xbox Series 1.0.2.1 package + executable (sizes match
Outcomes only; no game data. |
|
Independent comparison on CachyOS, Wine 11.22, clang-cl/xwin SDK 10.0.26100 Release, RTX 5070 Ti (NVIDIA 620.73.04), Vulkan. Offline using my local 1.0.2.1 package. The local stack has #4313, #6792, #6919, #6582, #4348, #3410 (static SDL 3.4.20), #6964 and the merged routes from #6935. With the unmodified #6935 queue route, the third CreateCommandQueue call was rejected and startup stopped. I applied this PR's queue flag translation to the existing #6935 route locally, preserving the rest of the description and its existing slot override behavior. With it, all five CreateCommandQueue calls succeed, all five fences are created, and the first command allocator succeeds. The next stop is the first Xbox CreateCommandListX at slot 73. The synthetic mock confirms that the Xbox queue selector becomes NONE while the type and node mask are preserved. The mock and both slot-override cases pass. Outcomes only; all traces stay local. AI-assisted (Codex). |
ItsNotRexed#6935 routes device slot 48 to CreateCommandQueueX and passes the title's description to the PC path unchanged. The retail executable creates its four compute queues there with console Flags 1, 2 and 3 (node mask 0) and 0 (node mask 1). 2 and 3 are no PC queue flag, so the Vulkan device refuses the second queue with E_INVALIDARG and the title asserts. CreateCommandQueueX now copies the description, drops Flags (each value logged once) and takes slot 8's path; a null description is refused before the PC device. xs_proxy_mock's mock keeps slot 8's description as received (the forwarded one is a local copy), and both it and device_proxy_test check the forwarded fields for console Flags 1, 2 and 3; device_proxy_test also signals a fence from each compute queue on WARP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
831062a to
16e3cb6
Compare
|
Rebased on |
|
Closing in favour of #6954 (@Pipodi), which was opened first and covers the same thing more completely: it reads slot 48's description as the 16-byte PC prefix plus four console words, and keeps only the one valid PC flag. My measurement agrees with it (the title's Flags 1, 2, 3 and 0 on its four compute queues). Thanks @Senya01 and @zohaiblazuli for testing this one; the retail result applies to #6954's behaviour too. If it's useful for #6954: this branch's AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code); outcomes only, no game data. |
|
Independent check of the rebased Native Windows build 26300, RTX 5090 / driver 32.0.16.2124, clang-cl 21.1.8 + xwin SDK 10.0.26100, static CRT. Bounded retail Vulkan trial on main This validates the tested #7037 head; I have not run #6954 and am not claiming its exact flag handling was tested here. Socket creation, DNS and transmission were debugger-guarded. Outcomes only, no game data or raw traces attached. AI-assisted (Codex). |
|
Tested
Not checked: the real game executable or any game files (the flags dropped are the ones from the PR's measurement). AI-assisted: yes (Claude Code ran the build and tests; I read the results). |
Claimed in the coordination issue as: #6910 (comment) (new D3D item, RT-5)
Depends on: none. Rebased on
main09b9ba8, which includes #6935. #6935 routes device slot 48 toCreateCommandQueueX, so this PR is now only the part #6935 leaves open: the title's console queue flags.Problem
The retail executable (1.0.2.1, measured under
gta6rt --run) creates its four compute queues through device slot 48:COMPUTECOMPUTECOMPUTECOMPUTEmain'sCreateCommandQueueXpasses the description to the PC path unchanged.Flags2 and 3 are no PC queue flag, so the Vulkan device refuses the second queue withE_INVALIDARGand the title asserts. @Senya01 saw the same onmainwith #6935: two queues, then the second slot 48 call fails. PC flag 1 (DISABLE_GPU_TIMEOUT) also has no meaning for the console's value, which reads as a queue selector.Fix
proxy_create_command_queue_xcopies the description, dropsFlags(each value logged once) and takes slot 8's path. A null description is refused withE_INVALIDARGand a null output, without reaching the PC device.xs_proxy_mock_test: the mock keeps slot 8's description as received, because the forwarded one is now a local copy. This replaces the pointer-identity check that @Senya01 found failing with the earlier version of this PR, and adds consoleFlags1, 2 and 3 with the forwarded fields checked (COMPUTE,Flags0).device_proxy_test(WARP): slot 48 with each of the four descriptions returns a queue proxy whoseGetDeschas no flags, and each signals the fence proxy on the GPU.docs/d3d12_vulkan.md(the d3d12_xs: route the public HLE's Xbox device slots 48/73/78/79/80 #6935 row): the retail confirmation and the dropped flags.Tested
ctest: 231 of 235.xs_proxy_mockanddevice_proxypass. The 4 failures also fail on plainmainhere:d3d12_texture_tiles,d3d12_pipeline_library_host, the flakyvk_queue_query_sync, andd3d12_vulkan_device(amainregression from d3d12_xs: route the public HLE's Xbox device slots 48/73/78/79/80 #6935's slot 78 route, reported there).No game data, bytes or traces are included. AI-assisted (Claude Code).
🤖 Generated with Claude Code