mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #350] [MERGED] d3d12_xs: device slot 48 reads the console's 32-byte queue description, again (RT-SLOT48) #402
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#402
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/350
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:slot48-queue-desc📝 Commits (2)
c495458d3d12_xs: device slot 26 takes the console's struct-return form9e6f8aed3d12_xs: device slot 48 creates a command queue proxy from the 32-byte Xbox description📊 Changes
5 files changed (+192 additions, -14 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+7 -1)📝
runtime/shims/d3d12_xs_device.cpp(+50 -6)📝
runtime/shims/d3d12_xs_device.h(+7 -1)📝
runtime/test/device_proxy_test.cpp(+36 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+92 -6)📄 Description
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.
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
latencyframes in flight while armed (mailbox replace) #712