Windows 10: root signatures rejected, and keyboard input lost with an XInput keyboard (two fixes on a fork) #729

Open
opened 2026-11-24 08:38:30 +00:00 by grindersky · 4 comments
grindersky commented 2026-11-24 08:38:30 +00:00 (Migrated from github.com)
Contributor

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: CreateRootSignature fails with E_INVALIDARG

Branch: 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.exe now exports D3D12SDKVersion (620) and D3D12SDKPath (.\D3D12\), so the loader uses a newer D3D12Core.dll placed in a D3D12 folder beside the exe (new apps/victory/src/agility.rs, plus a build.rs adding 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-hle passes.

Result: Enter works at the start screen.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6577872391 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/729). Originally posted by [grindersky](https://github.com/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: `CreateRootSignature` fails with `E_INVALIDARG` Branch: https://github.com/grindersky/VIctory/tree/feat/agility-sdk-win10 (commit https://github.com/grindersky/VIctory/commit/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.exe` now exports `D3D12SDKVersion` (620) and `D3D12SDKPath` (`.\D3D12\`), so the loader uses a newer `D3D12Core.dll` placed in a `D3D12` folder beside the exe (new `apps/victory/src/agility.rs`, plus a `build.rs` adding 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 https://github.com/grindersky/VIctory/commit/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-hle` passes. Result: Enter works at the start screen.
bittertea0323 commented 2026-11-24 10:03:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T09:32:49Z.


Confirmed on Windows 10: the D3D12SDKPath + D3D12SDKVersion export 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 · Agility D3D12Core.dll 1.620.2 in
release\D3D12\ beside the exe.

A/B, same host, same title, same minute

A — explicit ID3D12SDKConfiguration::SetSDKVersion at device creation (my attempt; calling
D3D12GetInterface(CLSID_D3D12SDKConfiguration) then SetSDKVersion(620, path) right before
D3D12CreateDevice):

root signature refused: 3
Unsupported bit-flag (c01): 3
host pipeline refused: 3
frames with drawn > 0:   0

B — the two DATA exports from #729 (D3D12SDKVersion = 620,
D3D12SDKPath = ".\\D3D12\\\0", linked with /EXPORT:...,DATA):

root signature refused: 0
Unsupported bit-flag (c01): 0
host pipeline refused: 0
frames with drawn > 0:   11

What this means

  1. The export route is the one that works; a runtime-side SetSDKVersion call before device
    creation did nothing on this host (the loader had already bound the in-box core).
  2. With it, the 1.1 heap-indexing root signatures (0xc01) are accepted, every PSO is created,
    and draws actually reach the GPU on Windows 10 — drawn=0 becomes nonzero for the first time
    on this machine.
  3. The remaining cost is time per frame: frame gaps of 17–34 s during the first two minutes,
    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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7127561947 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/729#issuecomment-7127561947). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T09:32:49Z. --- # Confirmed on Windows 10: the `D3D12SDKPath` + `D3D12SDKVersion` export 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 · Agility `D3D12Core.dll` 1.620.2 in `release\D3D12\` beside the exe. ## A/B, same host, same title, same minute **A — explicit `ID3D12SDKConfiguration::SetSDKVersion` at device creation** (my attempt; calling `D3D12GetInterface(CLSID_D3D12SDKConfiguration)` then `SetSDKVersion(620, path)` right before `D3D12CreateDevice`): ``` root signature refused: 3 Unsupported bit-flag (c01): 3 host pipeline refused: 3 frames with drawn > 0: 0 ``` **B — the two `DATA` exports from #729** (`D3D12SDKVersion = 620`, `D3D12SDKPath = ".\\D3D12\\\0"`, linked with `/EXPORT:...,DATA`): ``` root signature refused: 0 Unsupported bit-flag (c01): 0 host pipeline refused: 0 frames with drawn > 0: 11 ``` ## What this means 1. The export route is the one that works; a runtime-side `SetSDKVersion` call before device creation did **nothing** on this host (the loader had already bound the in-box core). 2. With it, the 1.1 heap-indexing root signatures (`0xc01`) are accepted, every PSO is created, and draws actually reach the GPU on Windows 10 — `drawn=0` becomes nonzero for the first time on this machine. 3. The remaining cost is time per frame: frame gaps of 17–34 s during the first two minutes, 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.
danekbiglike commented 2026-11-24 11:04:13 +00:00 (Migrated from github.com)
Author
Contributor

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.

Revision Result
Parent 787f665 Reading the keyboard’s stand-in gamepad while the idle XInput device was connected returned DEVICE_DISCONNECTED.
Input fix d6b8716 Enter registered as A on the stand-in while slot 0 stayed idle. After release the stand-in returned to neutral, and slot 0 independently reported B and a left-stick X value of 0.5. All eight GameInput tests passed, including the added case.

This 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
#[test]
fn keyboard_press_and_release_beside_xinput_pad() {
    let (hub, host) = fake();
    let slot = 0;
    host.lock().unwrap().pads[slot] = Some(PadState::default());
    host.lock().unwrap().keys = vec![key(0x0D)];
    hub.poll();
    let enter = current(hub, GAMEPAD_KIND, FALLBACK)
        .expect("keyboard stand-in disconnected while XInput is present");
    assert_eq!(pad(enter).buttons, A);
    release(enter);
    let idle = current(hub, GAMEPAD_KIND, slot).unwrap();
    assert_eq!(pad(idle), PadState::default());
    release(idle);

    host.lock().unwrap().keys.clear();
    let controller = PadState { buttons: B, left_x: 0.5, ..Default::default() };
    host.lock().unwrap().pads[slot] = Some(controller);
    hub.poll();
    let released = current(hub, GAMEPAD_KIND, FALLBACK).unwrap();
    assert_eq!(pad(released), PadState::default());
    release(released);
    let held = current(hub, GAMEPAD_KIND, slot).unwrap();
    assert_eq!(pad(held), controller);
    release(held);
}

Run cargo test --locked --lib -p victory-hle gameinput.

AI-assisted test and report.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128747181 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/729#issuecomment-7128747181). Originally posted by [danekbiglike](https://github.com/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. | Revision | Result | | --- | --- | | Parent `787f665` | Reading the keyboard’s stand-in gamepad while the idle XInput device was connected returned `DEVICE_DISCONNECTED`. | | Input fix `d6b8716` | Enter registered as A on the stand-in while slot 0 stayed idle. After release the stand-in returned to neutral, and slot 0 independently reported B and a left-stick X value of 0.5. All eight GameInput tests passed, including the added case. | This exercises the input API with synthetic device readings. Physical Wooting hardware and the Agility SDK change were outside this check. <details> <summary>Regression test for the existing tests module in gameinput.rs</summary> ```rust #[test] fn keyboard_press_and_release_beside_xinput_pad() { let (hub, host) = fake(); let slot = 0; host.lock().unwrap().pads[slot] = Some(PadState::default()); host.lock().unwrap().keys = vec![key(0x0D)]; hub.poll(); let enter = current(hub, GAMEPAD_KIND, FALLBACK) .expect("keyboard stand-in disconnected while XInput is present"); assert_eq!(pad(enter).buttons, A); release(enter); let idle = current(hub, GAMEPAD_KIND, slot).unwrap(); assert_eq!(pad(idle), PadState::default()); release(idle); host.lock().unwrap().keys.clear(); let controller = PadState { buttons: B, left_x: 0.5, ..Default::default() }; host.lock().unwrap().pads[slot] = Some(controller); hub.poll(); let released = current(hub, GAMEPAD_KIND, FALLBACK).unwrap(); assert_eq!(pad(released), PadState::default()); release(released); let held = current(hub, GAMEPAD_KIND, slot).unwrap(); assert_eq!(pad(held), controller); release(held); } ``` Run `cargo test --locked --lib -p victory-hle gameinput`. </details> AI-assisted test and report.
bittertea0323 commented 2026-11-24 14:04:39 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132466549 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/729#issuecomment-7132466549). Originally posted by [bittertea0323](https://github.com/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.
Marvisak commented 2026-11-25 02:06:23 +00:00 (Migrated from github.com)
Author
Contributor

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. main has no D3D12SDKVersion/D3D12SDKPath exports 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:

  • #463: exports when a D3D12\D3D12Core.dll is present.
  • #969: ID3D12SDKConfiguration1. bittertea0323's A/B above found that a runtime SetSDKVersion call did not work on their host, while the exports did.
  • #486: the test binaries.
  • #626 and #1768: fall back to plain root signature flags when 0xC01 is refused.

2. Keyboard stand-in disabled by an idle XInput device. Confirmed in State::poll in crates/victory-hle/src/modules/gameinput.rs. FALLBACK is 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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149974779 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/729#issuecomment-7149974779). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:48:14Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T13:11:02Z at=2026-11-25T01:57:00Z --> 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.** `main` has no `D3D12SDKVersion`/`D3D12SDKPath` exports 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: - #463: exports when a `D3D12\D3D12Core.dll` is present. - #969: `ID3D12SDKConfiguration1`. bittertea0323's A/B above found that a runtime `SetSDKVersion` call did not work on their host, while the exports did. - #486: the test binaries. - #626 and #1768: fall back to plain root signature flags when 0xC01 is refused. **2. Keyboard stand-in disabled by an idle XInput device.** Confirmed in `State::poll` in `crates/victory-hle/src/modules/gameinput.rs`. `FALLBACK` is 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](https://claude.ai/code)_
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#729
No description provided.