Retail boot stops with int3 after ~1653 D3D12 calls on Volta/Wine (no world frame) #2147
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?
Imported from ubiquitarianism/leonida. Originally posted by 31415-n on 2026-11-25T23:22:41Z.
Reproducible bounded retail run; no game data, paths, addresses or logs attached.
Setup: local 1.0.2.1 package. Port built from main
1fe5072afplus PR #1930 cherry-picks (bary-fallback per-vertex support). Full shader corpus translated 26,503/26,503 with --wave64-emulate on --mesh-compute --bary-fallback; --texel-offset-fallback is unnecessary (maintenance8 present). Run flags: LEONIDA_TITLE_WATCHDOG=0, LEONIDA_LOCAL_DIAGNOSTICS=1, LEONIDA_INPUT_SCRIPT, visible window, 900 s limit.Hardware/systems:
Counts in the Wine 11 visible run: 1653 D3D12 calls (1634 ok, 19 called), 150 [rt] lines. The D3D12 trace ends at CreateDescriptorHeap; the last logged feature is CreateCommandSignature with console argument type 105 as DISPATCH. Raising the arena from the default 256 MiB to 2048 MiB removes the "arena full" line but does not clear the stop.
The exception is 0x80000003 at the same title site in both Wine versions. Decoded with tools/int3_cause.py (PR #1503 applied): the int3 is taken when a window-creation helper returns zero (RegisterClassExA / CreateWindowExA path). No world frame is reached.
Question for the layer owners: which window/descriptor-heap handle check fails at this point, and is this a Wine-only expectation or a D3D12 proxy bug? Related: PR #1930, issue #1492 (V100 GPU test record), issue #3 (descriptor heap slot 14).
Imported from ubiquitarianism/leonida. Originally posted by 31415-n on 2026-11-27T20:46:46Z.
Summary
The stop in this issue is
CreateCommandSignaturerefusing a terminalDISPATCH_MESHargument on a device that has no mesh shaders. The refusal is silent, so the trace shows the previous successful create as its last feature and the failure appears only as the stop.A patch that rewrites that one argument to
DISPATCHon such a device clears the stop completely: withLEONIDA_SKIP_INT3unset the boot reaches 41,824 D3D12 calls and 250PresentX okwith no int3 at all.Two things this comment does: it says which of the already-open pull requests settle which part of the problem and which do not, and it puts the code up so the discussion has something concrete to argue about.
1. What the trace says
Recap of the numbers in this issue: 1,653 D3D12 calls, 0 presents, the trace ends at
CreateDescriptorHeap, and the last logged feature is device slot 41 creating the console argument type 105 asDISPATCH.That last line is the clue. It is not the call that fails; it is the last one that succeeds. The failure is the next signature the title creates, and it is invisible in the trace for two reasons:
Device::CreateCommandSignaturereturnsE_NOTIMPLforDISPATCH_MESHwheninfo.mesh_shaderis false (runtime/shims/d3d12_vulkan_device.cpp, theswitchon the last argument type) and logs nothing;runtime/shims/d3d12_xs_device.cppforwards that description unchanged, also without a line.#377 established the mechanism this issue runs into, and said so in its own body: the title creates five one-argument command signatures at startup through device slot 41, and it stops when one of them is refused — its device set-up returns false and it hits its own int3. #377 closed that for argument type 105 and for
DISPATCH_MESHon a device with mesh shaders. The mesh-less device was left out:That is the wall. On a V100 (no
VK_EXT_mesh_shader) the fifth signature is refused, device set-up returns false, and the title asserts. This also explains why the stop is at the same site in Wine 9 and Wine 11: it is not a Wine behaviour at all.2. The pull requests that already exist
RT-SLOT41DISPATCH;DISPATCH_MESHis created on a device with mesh shadersE_NOTIMPLstays, and the title stops exactly as its own body describesD3D-MESH-INDIRECT-EXECvkCmdDrawMeshTasksIndirectEXTRT-INDIRECT-DISPATCH-MESH-PARITYExecuteIndirectwithDISPATCH_MESHrecords the wayDispatchMeshdoes (viewport arrays,mesh_okwindow)RT-INDIRECT-KIND-SWITCHIndirectKind::dispatch_meshinindirect_record_size, no-WswitchgapsD3D-INDIRECT-STATE-REFUSED3D-INDIRECT-STATE-REPLAYINDIRECT-STATE-ARGSD3D-EXECIND-GRAPHICSDRAW/DRAW_INDEXEDMAKE-GAME-MESH-COMPUTE-NO-EXTmake_gameenables--mesh-computeby itself when the device has noVK_EXT_mesh_shadervk_pipeline_checkchecks--mesh-computeentries as compute pipelinesRT-526LEONIDA_SKIP_ASSERTSsteps over guest assertsINT3-CAUSE-DECODE-AND-TRACE-FIXEStools/int3_cause.py: load widths, high-byte registers, global writers, returns dedup,int 29hflowAlso adjacent, and neither of them this stop: #2054 hardens window fitting in
runtime/shims/lifecycle.cpp, and #2139 makestitle_windowandxgameruntime_offlineskip in session 0.So: no open pull request closes this. The nearest one, #2492, is about recording an indirect mesh dispatch that already exists, not about creating its signature on a device that cannot run one.
3. The two candidate causes that were posted in the coordination thread
Two readings of this stop exist in #1608:
int3_causedecode, and from the launch-6 analysis in this comment: the title re-registerssgaWindowClass, a secondRegisterClassExAanswers atom 0, the helper returns 0, and the assert follows.RegisterClassExAis indeed not shimmed onmain—runtime/shims/lifecycle.cpphas onlyCreateWindowExA/W, so the call goes to the hostuser32.CreateCommandSignaturerefusesDISPATCH_MESH. From this comment: the five startup signatures were checked one by one, the first four returnedS_OK, the fifth (DISPATCH_MESH, 12-byte stride) returnedE_NOTIMPL, and then graphics initialisation returned false.Reading 2 is the cause of this stop. The patch below changes nothing except the creation of that signature, and the assert disappears entirely — with
LEONIDA_SKIP_INT3unset there is no int3 at all, and the run goes 25x further. A window-class registration cannot be affected by that change.Reading 1 is therefore either a consequence (the failed device set-up reaches a window helper that then returns 0) or a misread of the site by the decoder whose fixes are still in #1503. It is not needed to explain this stop, and I am not claiming it is wrong for other stops.
4. The patch
On a device that reports
MeshShaderTier == D3D12_MESH_SHADER_TIER_NOT_SUPPORTED, the terminalDISPATCH_MESHargument of a one-argument signature is rewritten toDISPATCH. That is the same mapping #377 already measured for console argument type 105, and it is sound for the same reason: this work folder's mesh shaders are translated with--mesh-compute, bothExecuteIndirectsites set the compute state first, and the 12-byte record isD3D12_DISPATCH_ARGUMENTSin both cases.The guard reads the same fact the refusal reads:
CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS7)answersMeshShaderTierfromstate_.info.mesh_shader, the very flag theE_NOTIMPLis conditioned on. A mesh-capable device keeps the real signature.The one-time log line is deliberate: the refusal that causes this issue is silent, and that is why it took checking the five signatures by hand to find it.
5. Evidence
Device: Tesla V100-SXM2-16GB (Volta), driver 580.178.04, Vulkan 1.4.312, subgroup 32, no
VK_EXT_mesh_shader. Wine 9.0, 64-bit. Shader library translated with--mesh-compute. Build:mainaa663c4c5with the local--bary-fallbackwork, plus the patch above.PresentX okLEONIDA_SKIP_INT3unsetLEONIDA_SKIP_INT3=1The third row goes further only because other guest asserts further along are stepped over; the one this issue is about is gone in both.
The line that says the patch fired, once per process:
6. What this does not claim
PresentXis a no-op on this machine:vkGetPhysicalDeviceSurfaceSupportKHRanswers unsupported for the V100 on the X display in use, which is driven by another card. The 250PresentX okcalls return success and present nothing. A capture of the source texture is the only thing that shows the title's output here.xs_proxy_mock_test(device slot 41, mock answeringCheckFeatureSupport) and does not exist yet.ExecuteIndirectsites, exactly as it does for the type-105 signature that #377 already serves asDISPATCH.7. Questions for the layer owners
Device::CreateCommandSignatureit would also serve a PC caller and keep one place that knows aboutmesh_shader, but it changes what a PC API call does. Which do you prefer?LEONIDA_…so a run can see the refusal. I lean unconditional, for the same reason as type 105: the alternative is a stop, not a different result.VK_EXT_mesh_shaderthe patch must be a no-op and the real signature must be created. One line in the log from such a run would settle it. Mine cannot.If this is the right shape, I can turn it into a pull request with the mock test and the contract row for
docs/d3d12_vulkan.md(the row is written, it is not in this comment).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:06:30Z.
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.