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

Manually merged
github merged 2 commits from gh-pr/350/head into gh-pr/350/base 2026-11-26 08:54:51 +00:00
Owner

@⁠Mumogg on GitHub · 2026-11-24 03:48 UTC · original
Mumogg:slot48-queue-desc → main · +192 −14 · 5 files · 2 commits · merged 2026-11-24 04:31 UTC

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

**@⁠Mumogg** on GitHub · 2026-11-24 03:48 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/350) `Mumogg:slot48-queue-desc` → `main` · +192 −14 · 5 files · 2 commits · merged 2026-11-24 04:31 UTC 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
The retail executable calls GetCustomHeapProperties with the return buffer in RCX and the device in RDX. The forwarder took RCX for the proxy and faulted.

AI-assisted.

(cherry picked from commit 86b8e04e4c)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 0cde63d618)

Adapted to main by Mumogg: main already routes slot 48 through its Xbox slot table (LEONIDA_XS_QUEUE_X_SLOT),
so the route now calls proxy_create_command_queue_xbox instead of a fixed slot 48 branch, and xs_proxy_mock's
check_xbox_slots and the environment case pass the console's 32-byte description.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:54:49 +00:00
github manually merged commit 9e6f8ae133 into gh-pr/350/base 2026-11-26 08:54:51 +00:00
Author
Owner

@⁠BadgersMC on GitHub · 2026-11-24 04:01 UTC · original

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.

**@⁠BadgersMC** on GitHub · 2026-11-24 04:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/350#issuecomment-7121630864) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.