d3d12_xs: device slot 48 reads the console's 32-byte queue description, again (RT-SLOT48) #350

Merged
Mumogg merged 2 commits from upstream-pr/350 into main 2026-11-24 04:31:08 +00:00
Mumogg commented 2026-11-24 03:48:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Mumogg on 2026-11-24T03:48:54Z.


Claimed in #14 as RT-SLOT48. Depends on: #349 (its commit is the first one here; this pull request is the second commit).

What and why

After #349 the retail boot stops at device slot 48. main already routes that slot to CreateCommandQueueX, but hands the console's description to the PC path as it is. The description is the PC D3D12_COMMAND_QUEUE_DESC (16 bytes) followed by four Xbox words, and its flags word carries a bit the PC does not know, so the layer refuses the queue (CreateCommandQueue refused (type, priority, flags or node mask)) and the title stops on its own int3.

The fix is commit 0cde63d61 by Alex Collini (-x, authorship kept; an ancestor of main whose content is not in the tree): proxy_create_command_queue_xbox copies the PC prefix, keeps only D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT and logs the four extra words once.

Adapted to main, as the commit message says:

  • The commit added a fixed Slot == 48 branch. main has its Xbox slot table (LEONIDA_XS_QUEUE_X_SLOT), so the table's route calls the new function instead and the fixed branch is gone. The override keeps working.
  • xs_proxy_mock_test: check_xbox_slots and the environment case passed a 16-byte PC description to the console slot. They now pass a 32-byte one, and the check is that the PC call gets its 16-byte prefix.

Measured

Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off, on main ece4ba5b3.

main + #349 + this
D3D12 calls under --run 1 5 13
Last call D3D12XboxCreateDevice ok CreateCommandQueue failed CreateCommandList failed

The next stop is device slot 73: the list is asked for with an interface the layer does not know (QueryInterface: unknown IID). #142 looks like the fix for that; I will measure it on top of this and report there.

xs_proxy_mock_test under Wine passes in its default run (including the new slot 48 makes a queue proxy from a 32-byte description case) and exits 0 with --env-slots, --env-slots-invalid and --fail-veh.

Not built with MSVC and not run on Windows.

AI-assisted (Claude Code); built and run on the machine above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465715239 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/350). Originally posted by [Mumogg](https://github.com/Mumogg) on 2026-11-24T03:48:54Z. --- Claimed in #14 as `RT-SLOT48`. Depends on: #349 (its commit is the first one here; this pull request is the second commit). ### What and why After #349 the retail boot stops at device slot 48. `main` already routes that slot to `CreateCommandQueueX`, but hands the console's description to the PC path as it is. The description is the PC `D3D12_COMMAND_QUEUE_DESC` (16 bytes) followed by four Xbox words, and its flags word carries a bit the PC does not know, so the layer refuses the queue (`CreateCommandQueue refused (type, priority, flags or node mask)`) and the title stops on its own `int3`. The fix is commit `0cde63d61` by Alex Collini (`-x`, authorship kept; an ancestor of `main` whose content is not in the tree): `proxy_create_command_queue_xbox` copies the PC prefix, keeps only `D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT` and logs the four extra words once. Adapted to `main`, as the commit message says: - The commit added a fixed `Slot == 48` branch. `main` has its Xbox slot table (`LEONIDA_XS_QUEUE_X_SLOT`), so the table's route calls the new function instead and the fixed branch is gone. The override keeps working. - `xs_proxy_mock_test`: `check_xbox_slots` and the environment case passed a 16-byte PC description to the console slot. They now pass a 32-byte one, and the check is that the PC call gets its 16-byte prefix. ### Measured Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off, on `main` `ece4ba5b3`. | | `main` | + #349 | + this | |---|---|---|---| | D3D12 calls under `--run` | 1 | 5 | 13 | | Last call | `D3D12XboxCreateDevice` ok | `CreateCommandQueue` failed | `CreateCommandList` failed | The next stop is device slot 73: the list is asked for with an interface the layer does not know (`QueryInterface: unknown IID`). #142 looks like the fix for that; I will measure it on top of this and report there. `xs_proxy_mock_test` under Wine passes in its default run (including the new `slot 48 makes a queue proxy from a 32-byte description` case) and exits 0 with `--env-slots`, `--env-slots-invalid` and `--fail-veh`. Not built with MSVC and not run on Windows. AI-assisted (Claude Code); built and run on the machine above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
BadgersMC commented 2026-11-24 04:01:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by BadgersMC on 2026-11-24T04:01:10Z.


Built and tested PR #350 at 9e6f8ae1332aed8efb5b2ed78a4780340c29fc40, which includes PR #349 at c4954581ae27e9db5baabaea091302ed54eb96ea, on native Windows 11 Home build 26100. MSVC 19.44.35228, Windows SDK 10.0.26100, CMake 3.29.2, RelWithDebInfo.

Built xs_proxy_mock_test and device_proxy_test, then ran ctest -C RelWithDebInfo -R '^(xs_proxy_mock|device_proxy)' -V --timeout 45. All 8 passed: six mock variants and both native D3D12 WARP tests, including trace mode. The mock suite exercised slot 26's console struct-return call and slot 48's 32-byte Xbox queue description.

These were synthetic tests using mocks and software WARP. No physical GPU, Vulkan backend, or game files were used. AI-assisted testing with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7121630864 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/350#issuecomment-7121630864). Originally posted by [BadgersMC](https://github.com/BadgersMC) on 2026-11-24T04:01:10Z. --- Built and tested PR #350 at `9e6f8ae1332aed8efb5b2ed78a4780340c29fc40`, which includes PR #349 at `c4954581ae27e9db5baabaea091302ed54eb96ea`, on native Windows 11 Home build 26100. MSVC 19.44.35228, Windows SDK 10.0.26100, CMake 3.29.2, `RelWithDebInfo`. Built `xs_proxy_mock_test` and `device_proxy_test`, then ran `ctest -C RelWithDebInfo -R '^(xs_proxy_mock|device_proxy)' -V --timeout 45`. All **8 passed**: six mock variants and both native D3D12 WARP tests, including trace mode. The mock suite exercised slot 26's console struct-return call and slot 48's 32-byte Xbox queue description. These were synthetic tests using mocks and software WARP. No physical GPU, Vulkan backend, or game files were used. AI-assisted testing with Codex.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!350
No description provided.