Under Wine, no Agility SDK offer: Direct3D 12 there is vkd3d-proton #1198

Closed
github-bot wants to merge 1 commit from github-bot/gh-1198 into main AGit
Owner

@⁠domx4q on GitHub · 2026-11-28 15:24 UTC · original
domx4q:fix/wine-no-agility-offer → main · +11 −2 · 2 files · 1 commits · closed without merging

Summary

Under Wine (Proton), play offered Microsoft's D3D12 Agility runtime and waited at Download it now? [Y/n]. Wine reports a Windows 10 build, so check_shader_model took it for Windows 10's own Direct3D 12.

  • On a console nobody sees, the start just stopped. Behind gamescope (proton runinprefix, no terminal) no window ever came and the CPU stayed idle.
  • Under Wine, Direct3D 12 is vkd3d-proton. It reports shader model 6.9 and handles the root signatures, so Microsoft's runtime is no use there.
  • The change: the offer is skipped when ntdll exports wine_get_version. The check that already exists as xmem::on_wine() is now pub, so play can call it.

Testing

  • Proton Experimental 11 with vkd3d-proton master on an RTX 4090 (NVIDIA 620.73.04): before, a sandboxed start hung with no window; after, it starts straight into the game. That start has been used for many runs since.
  • cargo xwin clippy -p victory --target x86_64-pc-windows-msvc: no warnings in the changed files. The two warnings it reports are already on main (shadow.rs:1708, gameinput.rs:1383).
  • Windows is unchanged: on_wine() is false there.
**@⁠domx4q** on GitHub · 2026-11-28 15:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1198) `domx4q:fix/wine-no-agility-offer` → `main` · +11 −2 · 2 files · 1 commits · closed without merging ## Summary Under Wine (Proton), `play` offered Microsoft's D3D12 Agility runtime and waited at `Download it now? [Y/n]`. Wine reports a Windows 10 build, so `check_shader_model` took it for Windows 10's own Direct3D 12. - On a console nobody sees, the start just stopped. Behind `gamescope` (`proton runinprefix`, no terminal) no window ever came and the CPU stayed idle. - Under Wine, Direct3D 12 is vkd3d-proton. It reports shader model 6.9 and handles the root signatures, so Microsoft's runtime is no use there. - The change: the offer is skipped when ntdll exports `wine_get_version`. The check that already exists as `xmem::on_wine()` is now `pub`, so `play` can call it. ## Testing - Proton Experimental 11 with vkd3d-proton master on an RTX 4090 (NVIDIA 620.73.04): before, a sandboxed start hung with no window; after, it starts straight into the game. That start has been used for many runs since. - `cargo xwin clippy -p victory --target x86_64-pc-windows-msvc`: no warnings in the changed files. The two warnings it reports are already on `main` (`shadow.rs:1708`, `gameinput.rs:1383`). - Windows is unchanged: `on_wine()` is false there.
Wine reports a Windows 10 build, so play offered Microsoft's D3D12 runtime and
waited at 'Download it now? [Y/n]' on a console nobody saw (a sandboxed start
behind gamescope never got its window). vkd3d-proton runs shader model 6.9 and
takes the root signatures; Microsoft's runtime is no use there.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 15:27:37 +00:00
github-bot closed this pull request 2026-11-28 22:07:01 +00:00
Author
Owner

@⁠domx4q on GitHub · 2026-11-28 22:03 UTC · original

Closing: main now skips the D3D12 check under Wine itself (f678275, check_shader_model returns early on crate::on_wine()), which covers what this did. Thanks!

**@⁠domx4q** on GitHub · 2026-11-28 22:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1198#issuecomment-7246464495) Closing: main now skips the D3D12 check under Wine itself (f678275, `check_shader_model` returns early on `crate::on_wine()`), which covers what this did. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1198
No description provided.