mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #383] [MERGED] d3d12_xs: device slot 61 is CreateSamplerX for the title's calls, again (RT-SLOT61) #436
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#436
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/383
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:slot61-sampler-x📝 Commits (4)
99ba1c0d3d12_xs: Xbox device slot 61 is CreateSamplerX, routed to the PC CreateSampler49fd9a4d3d12_xs: slot 61 is CreateSamplerX only for the title's calls; a host caller gets PC CreateMetaCommand484962ed3d12_xs: CreateSamplerX translates a destination in the title's descriptor range150b753Merge main into RT-SLOT61 (#383)📊 Changes
5 files changed (+99 additions, -4 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+1 -0)📝
runtime/shims/d3d12_xs.cpp(+6 -0)📝
runtime/shims/d3d12_xs_device.cpp(+54 -1)📝
runtime/shims/d3d12_xs_device.h(+8 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+30 -3)📄 Description
Claimed in #14 as
RT-SLOT61. Depends on: #349, #350, #356, #362, #369, #375, #377 (their commits come first here; this pull request is the last two commits).What and why
After #377 the title calls device slot 61 once per sampler, as
(description, destination handle). On the PC that slot isCreateMetaCommand, andmainforwards it by number: a host access violation, reading through one of the title's words.Two commits by mrp1no, cherry-picked with
-x(authorship kept; ancestors ofmainwhose content is not in the tree):e22994464: slot 61 is routed to the PCCreateSamplerwith the same two words.c915e1da4: only for callers in an image the guest loader mapped. The proxy also serves host callers (d3d12_vulkan_device_testcallsID3D12Device5::CreateMetaCommandthrough it), and they get the PC slot 61 as before.The first commit conflicted where neighbours have been added since (slot 41's handler and test case, the slot lists, a docs table row); both sides are kept. The second applied cleanly.
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, with #142 and #328 applied on top for the boot runs (they are not in this branch).--runint3; the last traced call isID3D12Device9::ShaderCacheControl failed, reached through device slot 74 forwarded by numberSo the next stop is device slot 74, another console slot at a PC method's position.
xs_proxy_mock_testunder Wine passes with the three cases of the second commit: no classifier installed (PC slot 61), a guest caller (PCCreateSamplerwith the same words; a null description skipped) and a host caller under a classifier (PC slot 61).Not built with MSVC and not run on Windows; I did not run
d3d12_vulkan_device_test, which the second commit is about (it fails under Wine here onmainas well).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.