d3d12_xs: the list proxy translates title-owned CPU descriptor handles (RT-LIST-HANDLES) #416
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!416
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/416/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:52 UTC · original
Mumogg:list-descriptor-handles→main· +2376 −123 · 23 files · 28 commits · merged 2026-11-25 03:46 UTCClaimed in #14 as
RT-LIST-HANDLES. Depends on: the stack up to #414 (their commits come first here; this pull request is the last commit). The code needs #375 (the title's descriptor range andtranslate_cpu_handle); the rest of the dependency is the measurement.What and why
Since #375 the device slots 17 to 24 translate a CPU descriptor handle in the title's own range (
__XMemAllocationHooks__) to the real heap's. The five command-list methods that take such handles did not. Console list slots 50 (OMSetRenderTargets), 51 (ClearDepthStencilView), 52 (ClearRenderTargetView), 53 and 54 (the twoClearUnorderedAccessView) reached the real list with the title's address, which is no descriptor there.On the retail boot that shows as soon as the title records its first frame: a
ClearRenderTargetViewwith a title-owned handle, and thenID3D12GraphicsCommandList::Close failed.They translate now, in copies: the caller's arrays are not written, and a handle outside the range is passed as it is. Slot 51 gets a typed thunk, because its depth is a
FLOATin XMM3, which the all-integer list thunk loses.Written by me as a port: this is
0aba6c361(LeonidaBringup), which sits on old PR 2490's list proxy and does not apply tomain's. The commit message credits it.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, #219, #328 and #387 applied on top for the boot runs (they are not in this branch).--runExecuteCommandLists okClose okID3D12GraphicsCommandList::Close: 1With it the trace of this path has no failed call at all, two more submissions go through, and in one of two runs the title's first
PresentXsucceeds (see #414 for the other run).Every run now ends on the same thing: an
int3of the title on a worker thread, whichtools/int3_cause.pyreads as a check that a word of one of the title's objects is zero. That is the next stop and I do not know its cause yet.xs_proxy_mock_testunder Wine passes, with the new cases on a device whose heap has a title-owned range: slots 52, 53 and 54 with a handle inside the range and one outside it; slot 50 with two render-target handles (one inside, one outside) and a depth handle, checking what the real list receives and that the caller's arrays are unchanged; slot 51 through its typed thunk. The mock's integer prototype cannot see slot 51's float, so that the depth survives is not tested here.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
The coverage gate asks for every queue slot to have been called, and skips the overridden ones in its sweep of the refused tail. Slot 32 is overridden since the PresentX wiring, so nothing called it and the gate failed ("queue slot 32 never called"). The test now calls it where it calls the console ExecuteCommandLists slot: this build of the proxy has no presenter, so the answer is S_OK. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt@3L1A5-1 on GitHub · 2026-11-25 01:48 UTC · original
Native Windows + MSVC + NVIDIA result. I rebased this PR's own commit only, since #414's three commits conflict with
main(#402's presentation handler ind3d12_xs_device.cpp, as noted on #414).adc4f314bapplies tomaincleanly without them:3L1A5-1/leonida@rebase/416(56e4d2587, author kept) onmainb4b7756e8.gameinputdisabled, no SDL3).xs_proxy_mock,xs_proxy_mock_env_slotsandqueue_proxypass.scripts/run_gpu_tests.py: 207 passed, 0 failed, 49 skipped. WithLEONIDA_W64_EMULATE=1: 239 passed, 0 failed, 17 skipped.mainon this machine.Hardware: RTX 2060 SUPER 8 GB (Turing), driver 617.14, Windows 11 26300, 16 GB RAM, MSVC 19.44, RelWithDebInfo. Synthetic tests only, no retail run.
AI-assisted: yes
@aslan2142 on GitHub · 2026-11-25 03:47 UTC · original
Marked merged through #430, whose branch contains this one. The content was already in
main: console list slots 50–54 translate the title's CPU handles (the port of0aba6c361), with the typed thunk for slot 51, andcheck_list_cpu_handlesinxs_proxy_mock_testcovers these cases and more, including that the float depth survives. Thanks.AI-assisted (Claude Code, Claude Opus 5.5).