d3d12_xs: console command-list IID, and slot 70 takes three arguments (measured) #523
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Reference
No Branch/Tag specified
main
github-pr/3295
beta
docs/changelog-3483-3500
github-pr/3294
github-pr/2975
github-pr/2815
feat/gate-driver-start
feat/skip-pipelines-release
perf/lazy-compare
perf/mwaitx-wait
test/prio-ceiling-main
fix/ab-cpu-stdout
fix/gate-old-crashes
diag/ab-cpu
test/main-0312
github-pr/3291
diag/indirect-clamp-census
feat/barrier-enhanced
perf/texture-frame-ceiling
perf/dstorage-threads
fix/console-queue-dma-tables
fix/port-descriptors-record-parts
fix/frame-waits-fence
fix/console-sampler-words
fix/graphics-userdata-spill
fix/xg-reserved-layout-rotation
fix/barrier-console-flags
fix/switches-wait-test-child
test/list-value-waits
test/lot-gxdk-0412
fix/bvh-compacted-size
docs/i18n-quickstarts
feat/native-pipeline-slots
fix/clippy-leonida-gpu
fix/list-value-producers
fix/descriptor-page-straddle
fix/xmem-low-window
fix/ffx-jitter-never-zero
fix/run-stdout-closed
github-pr/2892
github-pr/2896
feat/warm-save-every
github-pr/2980
github-pr/2994
github-pr/3005
github-pr/3010
github-pr/3136
github-pr/3303
github-pr/3220
github-pr/3143
github-pr/3330
github-pr/3226
github-pr/3187
carry/3395
github-pr/2946
github-pr/2947
github-pr/2945
github-pr/2983
github-pr/3001
github-pr/3372
github-pr/3128
github-pr/3296
github-pr/2588
github-pr/3119
github-pr/3378
fix/crash-diagnostics
feat/dlss-mip-bias
fix/retired-out-of-order
fix/dxr-postbuild-barrier
fix/amd-relay-default
fix/removed-report-wait
feat/heap-twin
feat/vram-margin
github-pr/2472
github-pr/3123
github-pr/3088
assets/annonce-v1
github-pr/2794
github-pr/3300
github-pr/3304
github-pr/3308
github-pr/3367
github-pr/3369
fix/launcher-dlss-diagnostics
github-pr/3269
github-pr/2957
github-pr/3205
fix/crash-zero-guard
github-pr/3185
github-pr/3099
github-pr/3104
github-pr/3348
github-pr/3379
github-pr/3377
perf/darner-title-priority-ceiling
github-pr/3376
gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github-pr/3373
github-pr/3368
github-pr/3198
gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github-pr/3346
github-pr/3375
github-pr/2958
github-pr/3151
github-pr/3307
github-pr/3278
github-pr/3374
fix/runtime-test-conservative-fixtures
github-pr/3366
ci/shard-semantic-linux
github-pr/3354
docs/fg-limit-fps-switch
github-pr/3365
fix/read-file-hard-link
github-pr/3364
fix/book-slot-heap-never-read
github-pr/3361
github-pr/3263
github-pr/3360
github-pr/3353
github-pr/3331
fix/alias-later-queued-submissions
github-pr/3352
github-pr/3228
github-pr/3349
claude/gallant-sagan-aamatr
github-pr/3200
github-pr/3132
github-pr/3323
github-pr/3332
github-pr/3340
github-pr/3311
github-pr/3334
github-pr/3297
github-pr/3256
github-pr/2567
github-pr/2851
d3d12/agility-sdk-621
github-pr/3164
github-pr/3114
github-pr/3050
github-pr/3113
github-pr/3326
github-pr/3144
github-pr/2642
github-pr/3072
github-pr/2789
github-pr/2643
github-pr/3009
github-pr/3035
github-pr/3031
github-pr/2686
github-pr/2834
github-pr/3321
github-pr/3325
github-pr/3290
github-pr/3324
github-pr/3130
claude/fervent-curie-m19lnr
github-pr/3309
github-pr/3305
github-pr/3306
github-pr/3302
github-pr/3301
github-pr/3345
github-pr/3211
github-pr/3027
github-pr/3286
github-pr/3235
github-pr/3265
github-pr/3275
codex/skip-no-hit-ray-passes
github-pr/2823
github-pr/2911
github-pr/3262
github-pr/3125
github-pr/3206
github-pr/3250
github-pr/3238
github-pr/3188
github-pr/2952
github-pr/3217
github-pr/3168
t3/preserve-fsr-sdk-restart-path
t3/propagate-host-failure-hresult
github-pr/3209
t3/launcher-custom-parameters
github-pr/3207
github-pr/3183
github-pr/3160
github-pr/3201
ci/less-to-run
github-pr/2930
github-pr/2797
github-pr/2999
perf/native-compute-shader-forms
github-pr/3191
github-pr/3011
github-pr/3019
github-pr/2996
gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
claude/blissful-franklin-ukp7ag
github-pr/3141
github-pr/3156
github-pr/3150
github-pr/3153
github-pr/3163
github-pr/3142
github-pr/3139
github-pr/2841
github-pr/3069
github-pr/3098
github-pr/3107
github-pr/3071
github-pr/2774
github-pr/2889
github-pr/3075
github-pr/2661
github-pr/3064
github-pr/3054
github-pr/3049
github-pr/2855
github-pr/2943
github-pr/3016
github-pr/2887
github-pr/3006
github-pr/3003
github-pr/2993
notes/card-time-and-plant-flicker
github-pr/2989
feat/vulkan-rs
github-pr/2985
github-pr/2951
github-pr/2982
github-pr/752
github-pr/792
github-pr/2877
github-pr/2654
github-pr/2893
github-pr/2948
github-pr/2944
github-pr/2919
github-pr/2915
archive/ci/less-to-run/20261202T1121Z
github-pr/2800
github-pr/2822
github-pr/2833
github-pr/2840
github-pr/2831
github-pr/2832
github-pr/2801
github-pr/2890
github-pr/2891
github-pr/2664
github-pr/2807
rt-call-trace
github-pr/2755
perf/ahead-split
github-pr/2587
github-pr/2698
github-pr/2609
github-pr/3219
docs/readme-runtime-proposal
github-pr/2017
github-pr/1741
github-pr/1667
codex/coord-claim-check-20261124-7e48
v1.1.0
v1.0.1
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy#523
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?
Two findings for the Leonida continuation, with a patch
Measured 2026-11-24 on a retail 1.0.2.1 package with a local build of
ubiquitarianism/leonida@8f481cf1(MSVC, RelWithDebInfo, Vulkan layer,LEONIDA_D3D12=vulkan,LEONIDA_ARENA_MB=3072).1. Console command-list IID (patch attached)
leonida-command-list-iid.patch, 17 insertions inruntime/shims/d3d12_xs_device.cpp.Without it,
--runstops after 13 D3D12 calls:Two separate causes, both in the same path:
proxy_create_command_list_xpassed the console IID straight to the PC device.The PC device cannot answer an IID outside the SDK, so it fails. Creating the list
with
__uuidof(ID3D12GraphicsCommandList)and lettingwrap_listanswer theconsole IID fixes it.
ListProxy::QueryInterfacerefused the console IID, so the title's ownQueryInterfaceon the returned list still failed. The proxy now records the IIDit was created with and answers exactly that one.
With both: 1 639 D3D12 calls, 581 command lists created and closed, 439
allocators,
CreateCommittedResource3(slot 127) succeeds. The run then stops at thetitle's own
int3at+0x247AF2D, the same place a differently-patched build stops,so the IID is not the remaining blocker.
2. Device slot 70 takes three arguments, not seven
docs/retail_boot_chain.mddoes not describe slot 70. Disassembling the return addressfrom the trace (
tools/disasm_at.py, capstone over the PE section table) gives:No stack stores, three register arguments. The console ABI is:
D3D12_RESOURCE_DESC(reads correctly: Width 182 MiB, Height 1, Layout ROW_MAJOR)Anything a proxy reads past
r9is a leftover register: at this call sitea7held anaddress inside the title's
.text, so forwarding the PC signature wrote a resourcepointer into the title's own code. That is why the call must not be forwarded by slot
number.
3. The title patches its own
.textA write fault at
0x144DAC5FAis RVA0x4DAC5FA, which the section table places in.text(flagsXR). On the console.textis writable and the title patches itself.Mapping executable sections read-execute makes the first such write a fatal access
violation; mapping them read-write-execute lets the patch land.
What this is not
These are observations from one machine and one package, not a claim about the console
ABI beyond what the call sites show. The patch is offered as a starting point; the
slot 70 ordering is documented so someone with a debugger can confirm it.
The patch the report refers to, applied to
8f481cf1:The same patch as the diff above, as a file you can
git apply: https://gist.github.com/rocobalt1/ef3bb582335f93805c9c7f5598b8739fReproduced independently under Wine on Linux, both stops — and one prerequisite stop before yours that a Windows host cannot see
Retail 1.0.2.1 package,
--rununder Wine on Arch Linux (RTX 3080 Ti, NVIDIA 595.112.07, Vulkan 1.4.329), build fromubiquitarianism/leonidamain + this patch + a test update forxs_proxy_mock(its line 956 compared the IID the proxy forwards to the PC device by address; with the patch it is the proxy's own GUID object, so it is compared by value now — plus a creation-with-console-IID case).Before this patch, there is an earlier stop that only shows up where the host has no
GameInput.dll: the artifact builds without SDL3, soGameInputCreatefails and the title asserts at its GameInput call site — 13 D3D12 calls, zero command lists, and the unknown IID from your report does not even appear yet. A Windows host masks this by serving the host'sGameInput.dll(docs/gameinput.md's fallback path). Building with-DLEONIDA_SDL3_FETCH=ON(workflow tweak, the shim is otherwise never compiled) clears it, and the run proceeds to exactly your measurement. Worth having in the artifact CI so a Wine user's first--rundoes not die before your stop.With this patch, your numbers reproduce one to one on this machine:
{c3827890-…}int3before the patch+0x2478b7bCreateCommittedResource3(slot 127)+0x247af2dThe next stop decodes to a span check:
([rsp+0x78] - [rsp+0x70]) + [global]asserted<= 0x1fffff(2 MiB − 1), reached right after the descriptor heap,GetCPUDescriptorHandleForHeapStartand a few hundred view creations — which points at the same descriptor-model question as boot.md Q4 and retail_boot_chain's stop 13. The three calls inside that loop are internal title functions, so we are reading them next; no findings to add there yet.Happy to rerun anything on this GPU or driver.
One addition your patch needs to land green:
xs_proxy_mockpins the OLD forwarding behaviour, and two of its assertions fail against the patch. The test change we run on top of it:mock->args[12][4] == word(&list_iid)); the patch passes the proxy's own GUID object, so compare by value (IsEqualIID(*reinterpret_cast<const IID*>(mock->args[12][4]), __uuidof(ID3D12GraphicsCommandList))), andDiff: https://gist.github.com/slauko/b351c8780d2b0feea6ffa91d54f70cc8 — applies on top of your
d3d12_xs_device.cppchange; with both, the artifact's 295 CPU tests are green here (and the retail--rununder Wine proceeds from 13 to 1,639 D3D12 calls, matching your numbers; see our comment above). Happy to fold this into your PR however you prefer.The patch works on Intel Arc too, and it carries the boot much further than the AMD run. Measured 2026-11-24 on
ubiquitarianism/leonida21625bcwithleonida-command-list-iid.patchapplied on top (nothing else), MSVC 2022 RelWithDebInfo,LEONIDA_D3D12=vulkan, own 1.0.2.1 copy on an Intel Arc A770 (Alchemist, 16 GB; Intel Windows driver 32.0.101.9033, Vulkan 1.4.356), Windows 11 26200.Without the patch, exactly the reported stop:
With it, the D3D12 call trace goes from 13 to 1,639 calls and the title gets through resource creation:
So the IID fix is not AMD-specific: it moves the run past the list creation on a second vendor and a different driver.
New stop, if it helps whoever takes it next. It is a bounds assert, not a null call. The site is
+0x247af2d; the instruction before it computes a span and compares it with 2 MiB − 1:That reads like "this span (+ bias) has to fit in 21 bits", and the value is assembled over the array the loop above it fills. I did not chase what the array holds: the traces are on my machine and I am not quoting anything from the executable beyond the instruction shapes.
Separately, and only if it is new information: this run also throws a C++ exception out of the Vulkan driver before that assert, which I have not seen reported:
igvk64.dllis the Intel Vulkan driver, and the whole stack is inside it: no game frames. It is caught and the run continues, but an exception escaping a Vulkan driver is worth knowing about on an Intel path, and it may be the Intel equivalent of whatever the AMD result looked like at the same call count.Checked on current main (b4b7756e8): both halves of this are already in the tree — kXboxGraphicsCommandListXIid + is_list_iid answer the console IID (d3d12_xs_device.cpp:1144-1195) and proxy_create_command_list_x creates the PC list with __uuidof(ID3D12GraphicsCommandList) for it (:1736-1740), landed via the #359/#445 slot mapping lineage; xs_proxy_mock_test already pins the new behavior (:2515-2525) and all xs proxy tests pass locally. Slot 70's three-argument signature is implemented (:1764, :2842) and .text writable mapping is in pe_loader.cpp:1871. Nothing left to port — the remaining open variant is PR #728's E_NOINTERFACE-retry approach. AI-assisted check (Devin).
Same
+0x247af2dstop on Windows/NVIDIA at current main, and what follows it withLEONIDA_SKIP_INT3=1Retail 1.0.2.1 package,
ubiquitarianism/leonidamain @32950551e, built withmake_game.py(runtime fromscripts/build_runtime.ps1, MSVC 19.44). Windows 11 Pro (build 26200), Ryzen 9 5900X, RTX 5090 (driver 621.14, Vulkan 1.4.357), wave64 emulation on (32-wide subgroups).Plain run: this is the stop reported above. There are 1,639 D3D12 calls, none of them
failedorunsupported. The last ones are twoCreateCommittedResource3(slot 127,dimension=3, xbox flags0x300005-> PC0x5), each followed by SRV/RTV/UAV creation. Then, at t = 4.58 s:With
LEONIDA_SKIP_INT3=1: the assert is stepped over (int3_skippedat+0x247af2d, t = 3.79 s). It makes no further D3D12 trace calls, but it does reach the first root signature and compute pipeline:Then, at t = 32.26 s:
Caveats:
root_signature.cpp:77, d3d12_vulkan.md §8.2) is needed before compute pipelines past this point can be bound. Whether that's related to the crash isn't established.Both halves are in on main:
proxy_create_command_list_x(runtime/shims/d3d12_xs_device.cpp:3803) answers the console command-list IID instead of asking the PC device for it (the measured call sites are noted at:3824), and the slot-70 view path takes the three measured arguments (:3858,:3916). Re-checked at9e7720c9e.