Stop 5 is the only unimplemented import left at 9ec34cdff, and the retail name is not the one the policy classifies #47
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#47
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?
--dry-runonmain9ec34cdffwith the retail executable leaves one unimplemented import, not 20:XCRDAPI.dll!DStorageGetFactory. The xapu, chad and AcpHal shims merged intomaincover the rest. That one import is stop 5 of retail_boot_chain.md, so the first--runstill ends there.Measured
Windows 11 26200, AMD RX 6750 GRE (RDNA2, driver 32.0.21045.16010), MSVC 2022
RelWithDebInfo,LEONIDA_D3D12=vulkan, own 1.0.2.1 copy, network off. A second machine and the other CPU/GPU vendor from the reports on#2, same stop.--dry-run: 5 modules mapped,shim=93 host=421 module=72 unimplemented=1; the summary readsunimplemented by return policy: hresult=0 other=1. The line itself isUNIMPLEMENTED XCRDAPI.dll!DStorageGetFactory.--run: both TLS callbacks and 4/4DllMains return 1 (the loader reports 53,246 index-0 TLS reads rewritten),InitializeApiImplEx2(gdk=10002, gs=7901, mode=0x2)(offline), the import, then the title's ownint32.64 s after start with 0 D3D12 calls, exit 3.int3is atexe+0x1d8e505, called fromexe+0x1d8e4f5; stack+0x1d8e505 -> +0x1d8e4b4 -> +0x96866f -> +0x56eba8 -> +0x56eb27 -> +0x2236e73 -> +0x2236dae -> +0x2240eab. Identical in two runs of this build.The class never sees the retail name
runtime/shims/registry.cpp:114givesDStorageGetFactoryReturnClass::HResultfordstorage.dllanddstorage_xs.dll. The retail executable imports the same function fromXCRDAPI.dll(docs/runtime_imports.md:161);classify()lowercases the DLL name, so the retail spelling falls through toReturnClass::Other.runtime/test/unimplemented_policy_test.cpp:232asserts only thedstorage_xs.dllspelling, so the gap does not show.That is the
hresult=0 other=1in the dry run. UnderLEONIDA_UNIMPLEMENTED=failthis import therefore returns 0 rather thanE_NOTIMPL, and the negative result the policy exists to produce never reaches the call site: the title sees S_OK with a null factory and asserts in its own code. The doc's own note in audio_hal_exe_calls.md ("underfailonly importsclassify_import...") does not hold for this one.Stop 5's fix is a branch, not a plan
docs/audio_hal_exe_calls.md:63names #4348 as the open pull request for this function. The old repository is private now, and #17 lists the same work as the branchold-pr/4348. So stop 5 is either that branch carried over, or a fresh shim forDStorageGetFactory(REFIID, void**)and the factory's own methods; the classification line above is a one-line change plus a test.(Prepared with AI assistance.)
PR fixed this.
Native Windows A/B on the retail executable,
main1c7f5b5106with and without #131. This is the counterpart of #131's Wine measurement and it lands on the same next stop, down to the instruction.Setup. Native Windows 11 (not Wine), AMD Radeon RX 6750 GRE 12GB (RDNA2),
LEONIDA_D3D12=vulkan, my own 1.0.2.1 copy, network off.main1c7f5b5106checked out from a tarball (git over HTTPS to github.com does not work from this network), the #131 diff applied to that tree unmodified,runtimestage built withmake_game.py(clang-cl, Windows SDK 10.0.26100). The shim's/EHaflag from the CMake change was picked up and the file compiled clean.main1c7f5b5106main+ #131--dry-runXCRDAPI.dll!DStorageGetFactory(hresult=0 other=1)shim XCRDAPI.dll!DStorageGetFactory, policyhresult=0 other=0--runD3D12 callsD3D12XboxCreateDevice okint30x80000003atexe+0x1d8e505(call at+0x1d8e4f5), 2.38 s, exit 3gta6rt.exe+0xf5478, 3.56 sAMD Radeon RX 6750 GRE 12GB, subgroups 32..64 (default 64), upload heaps in VRAMSo the classification fix in #131 is what clears stop 5 on Windows too: the import is served by the shim instead of returning 0 under the default policy, and the title's own assert at
+0x1d8e505is not reached.The next stop is stop 7, and it is the argument swap in
docs/retail_boot_chain.md§3.1.0xc0000005, read0xd0:The thunk at
+0xf51b0is the generic device forwarder for slot 26.r14is set fromrcxat+0xf51c6(the first argument), and+0xf53e3loadsr10from0x10(%r14), the proxy'sreal_vtable.+0xd0is26 * 8, so this is a direct read ofreal_vtable[26]. When the title calls slot 26 it puts the return buffer inrcxand the proxy inrdx, so the load reads the third qword of the title's return buffer, which is zero here, and the vtable read faults at0xd0instead of jumping. The slot count guard at+0xf53b9(0x18(%r14) > 26) passes, because it also reads the return buffer. Nothing in the tree compares the first argument against the proxy's own vtable, so no path recognises the swap; the log line isdevice slot 26 (forwarded) first calland the call is forwarded by number, as the chain document says.Two smaller points:
GameInput.dllentry appears as shim, module or unimplemented in--dry-run: ordinal 1 resolves through the host's installedGameInput.dll. The gap #127 describes shows under Wine only, so the Windows stop-7 chain does not depend on it.dstorage_testwas not run here; thePAGE_GUARDcase #131 mentions is still unmeasured on Windows.On this host a Windows run and #131's Wine run reach the same stop with the same evidence, which also matches the
main+ #127 + #131 column of #321. Traces stay local.(Prepared with AI assistance.)
Follow-up from the same host, with two local experiments on top of
main+ #131. Neither is proposed code: they are the two stand-insdocs/retail_boot_chain.mddescribes (§3.1 and §3.2), applied here only to see how much of the chain the native Windows path shares. The trace shapes below are what a maintainer would need to decide whether either belongs in the tree.Experiment 1: the slot-26 swap (§3.1). In
proxy_slot, before the slot-count check: if*(void**)selfis not this proxy's own vtable, and the second argument's first word is, call the real method with the two exchanged —(buffer, this)becomes(this, buffer). With that,device slot 26 (forwarded) first callis followed by three handled calls instead of the fault at+0xf5478.The run then reaches stop 8. Slot 8
CreateCommandQueuesucceeds (queue proxy),D3D12XboxCreateDevice#1, slot 8 #2,CreateFence#3, slot 48 routed toCreateCommandQueueX#4 ok. Call #5 is a second slot-48 queue and is refused by the Vulkan layer's own description check:Type 2 is the copy queue, priority 0 and node mask 0 pass, and
flags=0x2is what fails:d3d12_vulkan_device.cpp:5678accepts onlyDISABLE_GPU_TIMEOUT(0x1). §3.2 says the queue is created "withFlagslimited toD3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT", butproxy_create_command_queue(the slot-8 and slot-48 path) hands the title's descriptor to the real device unmasked, so the console's extra flag bit reaches the PC check. The title then asserts in its own code,int3atexe+0x2478866, 5 D3D12 calls, 3.5 s.Experiment 2: mask the queue flags (§3.2). Copying the descriptor and keeping only
DISABLE_GPU_TIMEOUT:Slot 73 routes to
CreateCommandListX(desc words 0x00000000 0x00000002 -> node mask 0, type 0), and the next line isQueryInterface: unknown IID {c3827890-4024-474c-98cf-645b51dc4874}— the PC runtime does not answer the interface the title asks for, so #13 fails and the title asserts atexe+0x2478b7b(13 calls, 3.5 s).Stops walked on this host, all on native Windows and RDNA2: stop 5 on plain
main→ stop 7 with #131 → the copy-queue flag with the §3.1 stand-in → the command-list IID with both stand-ins. Each title assert sits one call after the host-side failure, so the count of D3D12 calls before theint3names the stop without needing a trace.Two things in the tree, as opposed to the two experiments: the §3.2 flag limit is not in
proxy_create_command_queue, and nothing detects the slot-26 swap. If the second one is wanted, the check that costs nothing is the one above — the first argument's vtable word against the proxy's own.(Prepared with AI assistance.)
Fixed on main:
runtime/shims/dstorage.cppservesDStorageGetFactoryasdstorage_xs.dll,xcrdapi.dllanddstorage.dll(:1480), so stop 5 has a shim now. Re-checked at9e7720c9e; the header records the evidence indocs/directstorage.md. Closing is the author's call.Closing this issue because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the report/contribution! If you believe this issue was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.