Windows 10: the D3D12 Agility SDK runtime for victory.exe and the shader tests #420

Closed
GamingRipperDoc wants to merge 2 commits from upstream-pr/420 into main
GamingRipperDoc commented 2026-11-25 00:36:09 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-25T00:36:09Z.


Windows 10 support: the D3D12 Agility SDK runtime for victory.exe and for the victory-shader test executables. Ported from the upstream PRs Marvisak/VIctory#175 (by @kykifox1337-source) and Marvisak/VIctory#362.

Why

Windows 10's in-box D3D12 stops at shader model 6.5 and refuses the root signatures every translated pipeline uses (directly indexed heaps, flags 0x400/0x800). Without a newer runtime, nothing draws on Windows 10 and the title crashes during init (upstream Marvisak/VIctory#348, a duplicate of Marvisak/VIctory#84). This tree has none of the upstream Agility work.

What

Two commits, authorship kept:

  1. 4463b39 (Marvisak/VIctory#175): victory.exe exports D3D12SDKVersion = 620 / D3D12SDKPath = ".\D3D12\"; cargo xtask agility fetches Microsoft.Direct3D.D3D12 1.620.2 from nuget.org, checks its SHA-512, and unpacks D3D12Core.dll / d3d12SDKLayers.dll into target\<profile>\D3D12\ (never into the repository); victory config reports the runtime. Port changes: miniz_oxide is declared in xtask/Cargo.toml itself, since this workspace uses zlib-rs and doesn't list it, and show_config keeps the data_dir line above the new lines.
  2. ff6649a (Marvisak/VIctory#362): the victory-shader test executables get the same exports (path ..\D3D12\, since they live in deps\), only when D3D12Core.dll is staged; without it they behave exactly as before. cargo xtask agility touches crates/victory-shader/build.rs so the next build picks it up. Port change: lib.rs keeps this tree's bvh module next to the test-only agility one.

Note: D3D12 does not fall back to the in-box runtime when the executable names a newer one that is missing (D3D12_ERROR_INVALID_REDIST), so on any machine, Windows 11 included, victory.exe from this branch needs cargo xtask agility once. The test executables don't (their exports are conditional).

Tested

Windows 10 22H2 (19045.7846), AMD RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X, Rust 1.98.1, on main 31714de:

without the runtime with cargo xtask agility
cargo test -p victory-shader --lib 191 passed, 23 failed (no SM 6.6 device) 214 passed, 0 failed
victory config d3d12 sdk : not beside the executable … d3d12 sdk : …\target\diag\D3D12\D3D12Core.dll (version 620)
victory run, 60 s, no input (no SM 6.6 device: nothing draws) menus at ~30 fps, 0 root signatures refused
  • cargo test -p xtask: 6 passed. cargo clippy --workspace --all-targets --locked [--all-features] -- -D warnings: clean. cargo xtask policy: ok.
  • The 60 s run then ended in a crash inside AMD's shader compiler during the first-boot screens; that's a separate issue (filed separately), not caused by this change, which only makes a device available.

No game data used.

AI-assisted (Claude Code); I ran everything above on my machine.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594384796 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/420). Originally posted by [GamingRipperDoc](https://github.com/GamingRipperDoc) on 2026-11-25T00:36:09Z. --- Windows 10 support: the D3D12 Agility SDK runtime for `victory.exe` and for the `victory-shader` test executables. Ported from the upstream PRs Marvisak/VIctory#175 (by @kykifox1337-source) and Marvisak/VIctory#362. ## Why Windows 10's in-box D3D12 stops at shader model 6.5 and refuses the root signatures every translated pipeline uses (directly indexed heaps, flags `0x400`/`0x800`). Without a newer runtime, nothing draws on Windows 10 and the title crashes during init (upstream Marvisak/VIctory#348, a duplicate of Marvisak/VIctory#84). This tree has none of the upstream Agility work. ## What Two commits, authorship kept: 1. **`4463b39` (Marvisak/VIctory#175):** `victory.exe` exports `D3D12SDKVersion = 620` / `D3D12SDKPath = ".\D3D12\"`; `cargo xtask agility` fetches `Microsoft.Direct3D.D3D12` 1.620.2 from nuget.org, checks its SHA-512, and unpacks `D3D12Core.dll` / `d3d12SDKLayers.dll` into `target\<profile>\D3D12\` (never into the repository); `victory config` reports the runtime. Port changes: `miniz_oxide` is declared in `xtask/Cargo.toml` itself, since this workspace uses zlib-rs and doesn't list it, and `show_config` keeps the `data_dir` line above the new lines. 2. **`ff6649a` (Marvisak/VIctory#362):** the `victory-shader` test executables get the same exports (path `..\D3D12\`, since they live in `deps\`), only when `D3D12Core.dll` is staged; without it they behave exactly as before. `cargo xtask agility` touches `crates/victory-shader/build.rs` so the next build picks it up. Port change: `lib.rs` keeps this tree's `bvh` module next to the test-only `agility` one. Note: D3D12 does not fall back to the in-box runtime when the executable names a newer one that is missing (`D3D12_ERROR_INVALID_REDIST`), so on any machine, Windows 11 included, `victory.exe` from this branch needs `cargo xtask agility` once. The test executables don't (their exports are conditional). ## Tested Windows 10 22H2 (19045.7846), AMD RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X, Rust 1.98.1, on `main` `31714de`: | | without the runtime | with `cargo xtask agility` | |---|---|---| | `cargo test -p victory-shader --lib` | 191 passed, **23 failed** (`no SM 6.6 device`) | **214 passed, 0 failed** | | `victory config` | `d3d12 sdk : not beside the executable …` | `d3d12 sdk : …\target\diag\D3D12\D3D12Core.dll (version 620)` | | `victory run`, 60 s, no input | (no SM 6.6 device: nothing draws) | menus at ~30 fps, **0** root signatures refused | - `cargo test -p xtask`: 6 passed. `cargo clippy --workspace --all-targets --locked [--all-features] -- -D warnings`: clean. `cargo xtask policy`: ok. - The 60 s run then ended in a crash inside AMD's shader compiler during the first-boot screens; that's a separate issue (filed separately), not caused by this change, which only makes a device available. No game data used. AI-assisted (Claude Code); I ran everything above on my machine.
kaayzouee commented 2026-11-25 02:10:10 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:41:29Z.


Is this a duplicate of #69?

Both port the upstream Agility SDK work for Windows 10 and shader tests. Please clarify any materially distinct functionality.

This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149843411 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/420#issuecomment-7149843411). Originally posted by [kaayzouee](https://github.com/kaayzouee) on 2026-11-25T01:41:29Z. --- Is this a duplicate of #69? Both port the upstream Agility SDK work for Windows 10 and shader tests. Please clarify any materially distinct functionality. This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.
GamingRipperDoc commented 2026-11-25 04:11:24 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-25T04:10:39Z.


Yes, functionally. #69 came first and carries the same two upstream PRs (Marvisak/VIctory#175 and #362). apps/victory/build.rs, apps/victory/src/agility.rs, crates/victory-shader/build.rs and xtask/src/agility.rs are byte-identical between the two.

The one material difference is the manifest. Since #69 was branched, main replaced miniz_oxide with zlib-rs in [workspace.dependencies] (3bff182). #69's xtask/Cargo.toml still says miniz_oxide.workspace = true. Merged onto current main (no text conflict), the workspace no longer loads:

error inheriting `miniz_oxide` from workspace root manifest's `workspace.dependencies.miniz_oxide`

This PR declares miniz_oxide = "0.9.1" (and sha2) in xtask/Cargo.toml itself, so it builds on current main.

I'm happy to close this in favour of #69 once its manifest is updated. In that case my RX 9070 XT / Windows 10 results in the description can count as an extra data point for #69.

AI-assisted (Claude Code).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7152600887 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/420#issuecomment-7152600887). Originally posted by [GamingRipperDoc](https://github.com/GamingRipperDoc) on 2026-11-25T04:10:39Z. --- Yes, functionally. #69 came first and carries the same two upstream PRs (Marvisak/VIctory#175 and #362). `apps/victory/build.rs`, `apps/victory/src/agility.rs`, `crates/victory-shader/build.rs` and `xtask/src/agility.rs` are byte-identical between the two. The one material difference is the manifest. Since #69 was branched, `main` replaced `miniz_oxide` with `zlib-rs` in `[workspace.dependencies]` (`3bff182`). #69's `xtask/Cargo.toml` still says `miniz_oxide.workspace = true`. Merged onto current `main` (no text conflict), the workspace no longer loads: ``` error inheriting `miniz_oxide` from workspace root manifest's `workspace.dependencies.miniz_oxide` ``` This PR declares `miniz_oxide = "0.9.1"` (and `sha2`) in `xtask/Cargo.toml` itself, so it builds on current `main`. I'm happy to close this in favour of #69 once its manifest is updated. In that case my RX 9070 XT / Windows 10 results in the description can count as an extra data point for #69. AI-assisted (Claude Code).
kaayzouee commented 2026-11-25 06:06:41 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T06:00:21Z.


Thanks for clarifying. Since both PRs are functionally equivalent, I recommend closing #420 in favor of #69.

The manifest incompatibility should be addressed directly in #69 by updating its dependencies against current main. It does not warrant maintaining a separate PR for the same functionality.

Your Windows 10 and RX 9070 XT validation results would still be valuable as additional testing evidence in #69.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7154346500 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/420#issuecomment-7154346500). Originally posted by [kaayzouee](https://github.com/kaayzouee) on 2026-11-25T06:00:21Z. --- Thanks for clarifying. Since both PRs are functionally equivalent, I recommend closing #420 in favor of #69. The manifest incompatibility should be addressed directly in #69 by updating its dependencies against current main. It does not warrant maintaining a separate PR for the same functionality. Your Windows 10 and RX 9070 XT validation results would still be valuable as additional testing evidence in #69.
domints commented 2026-11-25 10:11:16 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by domints on 2026-11-25T10:03:31Z.


@GamingRipperDoc This PR won't build on current main exactly because of you using miniz_oxide, current main has no miniz_oxide anymore, and for at least 12 hours for that matter.
#69 on the other hand, adds unnecessary miniz_oxide back to the root Cargo.toml leaving app with two zip unpacking packages.

I suggest closing both in favor of #402 which is minimal change, resolves conflicts and uses zlib-rs instead of just re-pulling miniz_oxide.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7159164682 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/420#issuecomment-7159164682). Originally posted by [domints](https://github.com/domints) on 2026-11-25T10:03:31Z. --- @GamingRipperDoc This PR won't build on current main exactly because of you using `miniz_oxide`, current main has no `miniz_oxide` anymore, and for at least 12 hours for that matter. #69 on the other hand, adds unnecessary `miniz_oxide` back to the root Cargo.toml leaving app with two zip unpacking packages. I suggest closing both in favor of #402 which is minimal change, resolves conflicts and uses `zlib-rs` instead of just re-pulling `miniz_oxide`.
upstream-sync closed this pull request 2026-11-26 07:03:48 +00:00
GamingRipperDoc commented 2026-11-26 07:03:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-26T06:29:12Z.


Closing this in favor of #402, as @domints suggested: it does the same thing (Agility SDK runtime for SM 6.6 on Windows 10), merges cleanly on current main, and unpacks with zlib-rs instead of bringing miniz_oxide back. This branch no longer builds on main because miniz_oxide is gone.

My Windows 10 22H2 + RX 9070 XT results from this PR still apply to the approach. I'll check #402 on the same machine and report there.

No game data in this comment.

AI-assisted (Claude Code).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7184476036 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/420#issuecomment-7184476036). Originally posted by [GamingRipperDoc](https://github.com/GamingRipperDoc) on 2026-11-26T06:29:12Z. --- Closing this in favor of #402, as @domints suggested: it does the same thing (Agility SDK runtime for SM 6.6 on Windows 10), merges cleanly on current `main`, and unpacks with `zlib-rs` instead of bringing `miniz_oxide` back. This branch no longer builds on `main` because `miniz_oxide` is gone. My Windows 10 22H2 + RX 9070 XT results from this PR still apply to the approach. I'll check #402 on the same machine and report there. No game data in this comment. AI-assisted (Claude Code).

Pull request closed

Sign in to join this conversation.
No reviewers
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
fxceless/victory-fork!420
No description provided.