Windows 10: root signatures rejected, and keyboard input lost with an XInput keyboard (two fixes on a fork) #729
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 grindersky on 2026-11-24T08:38:30Z.
I can't open pull requests here (they're limited to collaborators), so here are two small fixes on my fork, one branch each, based on current
main(787f665). Happy to change anything, or for you to cherry-pick them.Tested on Windows 10 22H2 with an NVIDIA GPU and a Wooting keyboard.
1. Windows 10:
CreateRootSignaturefails withE_INVALIDARGBranch: https://github.com/grindersky/VIctory/tree/feat/agility-sdk-win10 (commit
github.com/grindersky/VIctory@4aae06c)The D3D12 runtime built into Windows 10 predates shader model 6.6 and rejects root signatures that index the descriptor heaps directly, even on GPUs that support them, so the title fails at startup.
victory.exenow exportsD3D12SDKVersion(620) andD3D12SDKPath(.\D3D12\), so the loader uses a newerD3D12Core.dllplaced in aD3D12folder beside the exe (newapps/victory/src/agility.rs, plus abuild.rsadding the linker exports). Without that folder the system runtime is used as before; Windows 11 is unaffected. The DLLs are not added to the repo; the README explains where to get them (Microsoft.Direct3D.D3D12 NuGet, 1.620.x).Result: the title reaches the start screen and menus on Windows 10.
2. No keyboard input when a keyboard also presents an XInput pad
Branch: https://github.com/grindersky/VIctory/tree/fix/keyboard-beside-xinput-pad (commit
github.com/grindersky/VIctory@d6b8716)Some keyboards (Wooting) also present an XInput pad that never reports input. Because the keyboard stand-in pad was disconnected while any XInput pad was connected, there was no usable input at the start screen.
The stand-in now stays connected alongside host pads (
crates/victory-hle/src/modules/gameinput.rs); the README input section and gameinput tests are updated to match.cargo test -p victory-hlepasses.Result: Enter works at the start screen.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T09:32:49Z.
Confirmed on Windows 10: the
D3D12SDKPath+D3D12SDKVersionexport route clears the root-signature refusals (measured A/B)Follow-up to #729 and #749. I reproduced grindersky's branch on a second Windows 10 host and
falsified my own alternative in the same session. Numbers only.
Environment
Windows 10 22H2 UBR 3393 (KB5029331) · RTX 4070 SUPER 12 GB · Ryzen 7 7800X3D · VIctory
main@
8e79c80+ the commit from #729 cherry-picked · AgilityD3D12Core.dll1.620.2 inrelease\D3D12\beside the exe.A/B, same host, same title, same minute
A — explicit
ID3D12SDKConfiguration::SetSDKVersionat device creation (my attempt; callingD3D12GetInterface(CLSID_D3D12SDKConfiguration)thenSetSDKVersion(620, path)right beforeD3D12CreateDevice):B — the two
DATAexports from #729 (D3D12SDKVersion = 620,D3D12SDKPath = ".\\D3D12\\\0", linked with/EXPORT:...,DATA):What this means
SetSDKVersioncall before devicecreation did nothing on this host (the loader had already bound the in-box core).
0xc01) are accepted, every PSO is created,and draws actually reach the GPU on Windows 10 —
drawn=0becomes nonzero for the first timeon this machine.
i.e. shader translation dominates. Not a correctness problem, and it should shrink as the
DXIL cache fills.
Note for the issue as a whole
The #729 keyboard fix (an XInput-presenting keyboard kept the stand-in pad disconnected) matters
on this host too: the title needs Enter at the start screen and nothing could send it.
Imported from Marvisak/VIctory. Originally posted by danekbiglike on 2026-11-24T10:24:52Z.
I ran a before/after check for the keyboard part of this issue on native Windows. I used the existing GameInput fake host to model an idle XInput device in slot 0, then pressed and released Enter on the keyboard. The same test ran against both revisions in separate build directories.
787f665DEVICE_DISCONNECTED.d6b8716This exercises the input API with synthetic device readings. Physical Wooting hardware and the Agility SDK change were outside this check.
Regression test for the existing tests module in gameinput.rs
Run
cargo test --locked --lib -p victory-hle gameinput.AI-assisted test and report.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T13:11:02Z.
Thanks - the GameInput stand-in check on d6b8716 matches what we saw with physical hardware: keyboard input arrives as A on the stand-in pad while an idle XInput device sits in slot 0. The Agility half of this issue is covered by the A/B measured above in this thread. Leaving the regression details for maintainers to fold in.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:48:14Z.
Automated triage for the maintainers.
Both problems are still present on current
main. Pull requests are open to everyone now, so please open one per branch.1. Windows 10 root signatures / shader model 6.6.
mainhas noD3D12SDKVersion/D3D12SDKPathexports and no Agility loading, so Windows 10's in-box runtime is used. This is the cluster tracked in #84, the oldest report, which proposes the same export route. Other reports of the same failure: #473, #598, #622, #749, #753, #828, #1532 and #1612. Open PRs for it:D3D12\D3D12Core.dllis present.ID3D12SDKConfiguration1. bittertea0323's A/B above found that a runtimeSetSDKVersioncall did not work on their host, while the exports did.2. Keyboard stand-in disabled by an idle XInput device. Confirmed in
State::pollincrates/victory-hle/src/modules/gameinput.rs.FALLBACKis fed only when no host pad slot is connected ((!any_pad).then(...)), so a keyboard that also presents an idle XInput pad hides the keyboard pad. Open PR #1430 addresses this by keeping the stand-in while the XInput slots are at rest. Bundle #1610 left your branch out because it conflicted with the #845 change in the same file.Generated by Claude Code