d3d12_xs: device slot 61 is CreateSamplerX for the title's calls, again (RT-SLOT61) #383
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!383
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/383/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 04:13 UTC · original
Mumogg:slot61-sampler-x→main· +99 −4 · 5 files · 4 commits · merged 2026-11-24 23:07 UTCClaimed 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
@slauko on GitHub · 2026-11-24 20:32 UTC · original
Backport check on current main: the routing commits apply and the suite passes, but the retail call is behind the pool gate
I backported the two routing commits (
99ba1c085+49fd9a427) ontomain6293c1c4fwithout the dependency stack (#349/#350/#356/#362/#369/#375/#377) and without the descriptor-range translation (484962eb8, which needstranslate_cpu_handlefrom those PRs), to test the slot-61 routing on the retail title under Wine (RTX 3080 Ti, NVIDIA 595.112.07, Wine 11.17, retail 1.0.2.1, 26,555-shader corpus).45476785815): 303/304 runtime tests pass. The only failure is the knowncrt_timed_wait1-ms flake ("an unnotified wait_for(200 ms) returned after 199 ms"), which also failed twice in three runs on unchanged heads. No slot-61 test failed; the mock cases (PC slot 61 with no classifier, guest caller -> PC CreateSampler, host caller -> PC slot 61) pass.CreateRootSignatureandCreateComputePipelineState(slot 62), the builder shader (bvh_29_f12431f3) is selected, and there is no root-signature/spill refusal. But slot 61 is never called: with the pool-fill assert skipped (LEONIDA_SKIP_INT3=1), the title's own hang watchdog (+0x2215c35, the 30 s frame-code marker) fires at t~32 s first. Without the skip, the same build stops at the pool-fill assert (used = 0, 64 MiB), which is a separate, currently open gate.Branch for reference:
slauko/leonida:wine-slot61(base6293c1c4f+ the two commits; not a proposed rebase of the full stack). Counts and call shapes only, no game data.@aslan2142 on GitHub · 2026-11-24 23:07 UTC · original
Merged. Mumogg is still away and this is the next rung on
main's boot path (device slot 61, where the title stops once #377 is in), so I brought the branch up to date the same way as #375 and #377: one merge commit ofmain(28a32e190) on top of484962eb8(150b75344). Mumogg's three commits are untouched and nothing was force-pushed.What it does: device slot 61 is
CreateSamplerX(desc, dest)for the title. A caller in a guest-mapped image goes to the PCCreateSamplerwith the destination handle translated; a host caller, and every caller when no check is installed, still reaches the PC slot 61 as before. It puts back mrp1no's routing, whichmainhad lost.Conflict: one, in
docs/d3d12_vulkan.md: both sides added a row to the same table. Both are kept in slot order (slot 61, then slot 81 /PresentX).Holds and dependencies: there is no hold or maintainer request on this PR itself. The owner's hold on the stack was the
ExecuteIndirectregression, resolved before #377 was merged. #349, #350, #356, #362, #369, #375 and #377 are all inmain, so only this PR's own three commits come in (5 files, +99 −4 againstmain).Tests (clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
main28a32e190: no test changed state on either device (258 pass and 15 fail on llvmpipe, 254 and 21 on the iGPU, on both sides).xs_proxy_mockand its five variants anddevice_proxypass.test_docs_*files andcheck_no_game_data.pyon the changed files are clean. The Linux portable subset does not build these files.Follow-ups, none blocking the boot path:
D3D12_SAMPLER_DESC, which this PR marks as a hypothesis. Kokonotcu's finding in #14 (#14) gives the console's own 0x54-byte field table; decoding from it is the next fix on this slot, and it matters as soon as something is drawn.proxy_create_sampler_x("The handle is passed as given") is out of date since484962eb8, and the comments and the docs row cite numbers from the original repository (#6910, #7021, #7115, #7490) that link nowhere now.#385 (device slot 74) is the next rung.
AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).