d3d12_xs: device slot 48 reads the console's 32-byte queue description, again (RT-SLOT48) #350
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!350
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/350/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCClaimed 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.
mainalready routes that slot toCreateCommandQueueX, but hands the console's description to the PC path as it is. The description is the PCD3D12_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 ownint3.The fix is commit
0cde63d61by Alex Collini (-x, authorship kept; an ancestor ofmainwhose content is not in the tree):proxy_create_command_queue_xboxcopies the PC prefix, keeps onlyD3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUTand logs the four extra words once.Adapted to
main, as the commit message says:Slot == 48branch.mainhas 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_slotsand 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
mainece4ba5b3.main--runD3D12XboxCreateDeviceokCreateCommandQueuefailedCreateCommandListfailedThe 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_testunder Wine passes in its default run (including the newslot 48 makes a queue proxy from a 32-byte descriptioncase) and exits 0 with--env-slots,--env-slots-invalidand--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
@BadgersMC on GitHub · 2026-11-24 04:01 UTC · original
Built and tested PR #350 at
9e6f8ae1332aed8efb5b2ed78a4780340c29fc40, which includes PR #349 atc4954581ae27e9db5baabaea091302ed54eb96ea, 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_testanddevice_proxy_test, then ranctest -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.