[GH #622] Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop #622
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 Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T05:46:34Z.
Upstream labels: area: gpu, triage: has patch, run report, gpu: nvidia, area: runtime
Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop
AI-assisted: yes
Kind: verified local fixes + a reproduction note, not a PR yet. No game data.
Environment
main@d2a4bae, release profile, real GPUSymptom before the fixes
Identical to the closed #348:
XUserAddAsynccompletes and the title immediately faults:token and signature: offlinenever appeared in the log, so the token path was not reached;the fault is between
XUserAddAsyncand any token call.Fix 1 (decisive): implement XUser maximum-users slot 0x30
crates/victory-hle/src/modules/xuser.rshadmissing::<6>at slot 0x30 (maximum users).The title calls it during account init, gets
E_NOTIMPLwith no output written, anddereferences the result regardless.
VTABLE slot 0x30 points at
get_max_users. Result: the title gets past Game Init and intothe render loop —
frame presentedruns continuously (64 frames in the first ~2 s, 96 drawssubmitted).
Fix 2: report offline token as success
token_asyncreturnedFAILED_TO_GET_TOKENfor every request. Changed to complete withS_OKand the existing one-byteTOKENresult buffer (same shape asresolve_privilege_async).This path was not reached in our run, so it is untested here; it is included because #348
flagged it as the same class of failure.
Fix 3: fall back when Windows 10 d3d12core rejects the 1.1 heap-indexing flags
crates/victory-gpu/src/pipeline/host.rsalways setCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED(0xc00) on a 1.1 rootsignature. Windows 10's d3d12core refuses the whole signature with
Unsupported bit-flag set (root signature flags c01), which dropped every draw.The build now retries serialization without those two flags when the first attempt fails:
The retry succeeds and the signature is created. (On this host the draw is still dropped by
the next step — see below — so this fix removes one of the two stacked failures.)
What remains on this host
After fix 1,
frame presentedcontinues butdrawn=0:Both graphics and compute PSOs are refused even with the root-signature fallback. The compute
refusals match #468 (wave64 compute programs, 32-wide subgroup device). The graphics refusals
on an RTX 4070 SUPER likely overlap #199. The D3D12 debug layer was not installed on this host,
so no
D3D12 ERRORdetail was available.Why this is useful
Fix 1 turns "crashes at Game Init on every NVIDIA/Windows 10 box" into "reaches the render
loop". It is the missing piece that #348 proposed but which is still absent from
main(
missing::<6>at slot 0x30 as ofd2a4bae). The other two are small and each removes adocumented failure class.
Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:09:24Z.
Submitted PR #648 implementing get_max_users at slot 0x30 with synthetic unit test coverage while keeping oken_async offline semantics and all 87 tests in ictory-hle green.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T06:17:46Z.
Agility SDK plan for Windows 10 hosts (SM 6.6 without OS upgrade) — path verified, one Rust linking gap remains
Follow-up to the reproduction in this issue. Everything below was measured on this host
(Windows 10 19045, RTX 4070 SUPER); the concept is proven, the last mechanical step needs
a repo owner's hand.
Why: the PSO refusals on Windows 10 are an OS boundary
With the root-signature fallback in place, every remaining
0x80070057PSO refusal traces toone fact: the title's shaders are emitted as SM 6.6 with
ResourceDescriptorHeap[], andWindows 10 19045's
d3d12core(10.0.19041.1806) refuses the 1.1 heap-indexing root-signatureflags. On Windows 11 the same binary's menus draw (issue #348 follow-up). This is not a shader
bug and not a driver bug — verified by running on WARP, where the refusals are identical.
The fix that works without upgrading Windows: Agility SDK
Ship
D3D12Core.dll(Agility SDK 1.620.2, stable) besidevictory.exeand export the twoactivation symbols. The OS
d3d12.dllthen routes all D3D12 through the new core.Measured on this host:
build/native/bin/x64/D3D12Core.dllfrom theMicrosoft.Direct3D.D3D12NuGet package (1.620.2, 4.6 MB) next to the exe.D3D12GetInterface(function) andD3D12SDKVersion(data). With only the function exported, the OS does not activate the core and the
refusals stay. With both exported, the old
flags c01refusal disappears from the logentirely.
D3D12GetInterfacewhile the loader lock is held. A
LoadLibraryW("D3D12Core.dll")forwarder deadlocks:the process shows 0 threads / 0 CPU immediately after
CreateProcessand never reachesmain. This is exactly why the SDK wants the import linked statically.
What I could not finish on this host: the Rust import
The forwarder must be a static import so
D3D12Core.dllis loaded as a normal PE dependency(before the loader-lock call). The repo does not ship
D3D12Core.lib, so I generated onewith
lib /def:D3D12Core.def /machine:x64 /out:D3D12Core.lib(the DLL exports exactlyD3D12GetInterfaceandD3D12SDKVersion).The blocker is mechanical: in the current Rust setup neither
#[link(name = "D3D12Core")]on theunsafe externblock nor a full-pathcargo:rustc-link-arg=...D3D12Core.libproduced anD3D12Core.dllrow in the PE importtable (
dumpbin /importsshows onlyd3d12.dll), and a#[used]static holding the importdid not keep it alive under
/OPT:REF,ICF. The command line that should work is:with the forwarder body being a plain call to the imported
D3D12GetInterface. A repo ownerwho knows this toolchain's linking idioms will close this in minutes; the runtime behaviour
on this host is already measured on both sides of the gap.
Working diff (the forwarder + exports, minus the linking plumbing) is on the PR branch
bittertea0323:fix/win10-init-and-rootsig(PR #623); it intentionally does not includethe Agility bits yet.
Outcome expected once linked
With the core active, the
flags c01refusal and the computeE_INVALIDARGclass tied tothe OS runtime should clear on Windows 10; what remains is the wave64 compute set that
genuinely needs 64-lane waves (issue #468), which is a hardware property, not an OS one.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T06:43:57Z.
Follow-up to the Agility plan comment: measured result on this host — the activation shape is now exactly the official one, and this Windows 10 install still refuses it.
What the final shape is (all verified by dumpbin)
This is the documented Agility layout: forwarder to the SYSTEM d3d12.dll, core loaded
by the OS at D3D12CreateDevice time. The earlier hang (0 threads) is gone.
What this host does with it
With the exports present, the process fails at startup with
0xC0000142(STATUS_DLL_INIT_FAILED) — with the core present and with the coreabsent, and with both Agility 1.620.2 and 1.610.5. Without the exports the same binary
boots normally. So on this install the presence of the two exports alone is fatal.
Why
The system d3d12.dll here is 10.0.19041.1266 (July 2021), on Windows 10 22H2 UBR 2006.
Cumulative updates do not advance this d3d12.dll on this install (it has not moved past
1266 while UBR went to 2006), so the Agility forwarding mechanism — which newer
d3d12.dll builds implement — is not available; the old shell reacts to the exports by
attempting activation and failing the process.
The boundary, stated plainly
19041.1266 (a Store-updated D3D12Core or a servicing update that advances d3d12.dll).
feature flag (default OFF) so Windows 10 hosts with old d3d12 shells keep booting.
The WIP code for the activation is on branch
bittertea0323:fix/agility-win10-wip(do-not-merge, as committed). The measured boundary is this comment.
upstream-sync referenced this issue2026-11-25 02:06:19 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:46:24Z.
Automated triage for the maintainers.
This run report is about the Windows 10 in-box D3D12 runtime, which is tracked in #84. Other reports of the same failure: #598, #729, #749, #753, #828, #1532. Notes on the three fixes, checked against current
main:missing::<6>in theVTABLEincrates/victory-hle/src/modules/xuser.rs. The snippet above adds aHandleargument that the public call does not have. The real call passes only the output pointer, so this version would write through the wrong register. The open #398 adds this slot. Several Windows 10 runs in #84 and on PR #175 lost the+0xb5a5f8crash with only the Agility runtime loaded and no change to this slot. Whether the slot matters for that crash is therefore not established.token_asyncin the same file deliberately completes withFAILED_TO_GET_TOKEN(offline). By your own account this path was not reached.drawn=0). Same finding as on #626.The useful new data point is the Agility result: with the two exports on a host whose system
d3d12.dllis 10.0.19041.1266, every launch fails with0xC0000142. This bears on how #463/#969 gate the exports.The code is on fork branches (
fix/win10-init-and-rootsig,fix/agility-win10-wip), and #623 was closed. Pull requests are open to everyone. For slot 0x30, please review or build on #398 rather than opening another one.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by zyq39965 on 2026-11-26T11:59:49Z.
Independent reproduction of the same
+0xb5a5f8fault on a different GPU and Windows 10 build,plus three pieces of evidence that may change the diagnosis. No game data included.
Environment
victory 0.1.0(victory-3d-rtx-pareto-residency.exe,9,989,120 bytes), i.e. the
f4b48adtree — notmaingame_scarlett_master.exe, 120,181,760 bytes,SHA-256
E95020B2FA4A721DB3DF59FDECF75621730AC559D8835252F6C3B658D5A08993--console series-s,--execute1. The fault is byte-for-byte the one you describe
Same offset, same
read 0x68, samer15 = 0x651e95c4d06fbfb1as in the report above,so this is the same missing-slot null dereference and not a second bug.
Title version is also
930.048.020-vb_sub_story.2.
missing::<6>at slot 0x30 is still inmaintodaycrates/victory-hle/src/modules/xuser.rs, fetched frommainat 2026-11-26:So your Fix 1 has not landed, and the published prebuilt still carries the old vtable.
Anyone on Windows 10 / NVIDIA who downloads the prebuilt crashes identically within seconds
of Game Init, before any root-signature difference can matter.
3. The
c01refusal does not reproduce in isolation on this hostBoth the prebuilt and
--unimplemented zeroruns print, 7 times:The claim that Windows 10's inbox runtime simply refuses
0x400|0x800does not hold on thismachine. Calling the inbox
D3D12SerializeVersionedRootSignature(d3d12.dll10.0.19041.1266)directly with
D3D_ROOT_SIGNATURE_VERSION_1_1andFlags = 0xC01returns S_OK for everydescriptor shape I tried:
If the flags alone were the blocker, all five would fail. So the refusal is more likely
triggered by something specific in the descriptor
root_signature()builds — the staticsampler entries, the range/visibility combination, or the parameter array — rather than by
the flag bits. That matters because the Agility SDK workaround (and Fix 3's retry) are both
directed at the flags. It may be worth logging the full serialized description, or bisecting
which of
params/samplersmakes serialization fail, before deciding where the fix belongs.4. Prebuilt users cannot use the Agility SDK workaround at all
I scanned the published
victory-3d-rtx-pareto-residency.exeandvictory.exefor thestrings needed to opt into the Agility SDK. Neither binary contains any of them:
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-26T12:30:45Z.
## @zyq39965 — your S_OK result and the E_INVALIDARG we see are two different calls, and the Agility result already tells them apart
Your third point is worth answering precisely, because it reads as evidence that the flags are not the blocker, and I do not think it is.
D3D12SerializeVersionedRootSignatureonly turns the description into a byte blob. It does not ask the device to support anything. The call that refuses us isID3D12Device::CreateRootSignature, and our log names it:So a S_OK from Serialize with the same flags is expected on 19045 and does not contradict the refusal. To test the hypothesis you are aiming at, the serialized blob has to be handed to
CreateRootSignatureon a device — that is the call whose result we are reporting.The control that settles it
On this host (Windows 10 19045.7846, RTX 4070 SUPER, driver 591.74) I switched the runtime at run time through
ID3D12SDKConfiguration1(CreateDeviceFactory+ApplyToGlobalState), withD3D12Core.dll1.620.2 beside the exe:Same binary, same title, same root-signature descriptions, same OS build, same driver. The only variable is which D3D12 core answers
CreateRootSignature. If the refusal came from something in the description — static samplers, the range/visibility combination, the parameter array, as you list — swapping the runtime could not change it. Your five-shape table would then be the right next step; as it stands, the flag bits are the only thing that moved.I am not saying your table is useless — it rules out
Serializeas the failure point on 19045, which is a real clarification, and it is why the fix has to be at device level rather than at description level.On your point 4, which I agree with
Confirmed, and it is the reason the tree I run carries a patch rather than the stock prebuilt. Three files, twelve lines —
ID3D12SDKConfiguration1at run time instead of the exports, so nobuild.rsand no link plumbing is needed:https://github.com/bittertea0323/cool-fox-archive(tree with the patch, plus the 404'd upstream it mirrors)https://github.com/bittertea0323/gta6-win10-notes(write-up, measurements,patches/agility.rs)That path also sidesteps the
0xC0000142you hit: those exports are what the old shell reacts to, andApplyToGlobalStatehas no such window. It is worth trying on your 19045.7846 host — if the runtime switch works there too, the two exports being fatal is a property of the forwarder, not of Agility on Windows 10.Not measured by me: your RTX 5060, your 19045.7846 UBR, and whether
ApplyToGlobalStatesucceeds on a shell that refuses the exports. I am reporting what the switch did on 19045.7846 with a forwarder-free patch, not diagnosing your build.