Win10 + RDNA1: Agility SDK, mesh->compute fallback, per-stage sampler… #459

Open
bbing13 wants to merge 1 commit from upstream-pr/459 into main
bbing13 commented 2026-11-27 12:15:51 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by bbing13 on 2026-11-27T12:15:51Z.


Brings two upstream pull requests this fork does not carry, so that a Windows 10 host and a GPU without mesh shaders can run the title at all:

  • Agility SDK (upstream #969): an app-local D3D12Core.dll loaded through ID3D12SDKConfiguration1, giving Windows 10 shader model 6.6 and the 0xc01 root-signature flags. Without it every host pipeline is refused on Windows 10.
  • Mesh → compute fallback (upstream #961): a mesh program runs as a compute dispatch plus a fallback vertex shader; its bindings move to spaces 8/9. Adds the mesh-compute subcommand.

One fix found while testing both on an RX 5700: each stage's static samplers now take a space of their own. Before, a pixel shader's s0 and the compute form of a mesh program's s0 both named space 0, and D3D12 refuses that root signature. That fixed a real defect (the pipeline that used to fail after 297 ms now builds and runs), but it did not stop the world's first frame from failing.

Status on the test machine

Windows 10 19045 / Ryzen 5 3600 / 16 GiB / RX 5700 8 GB:

Stage State
Language, legal notice, main menu works, 30 fps, 1.9 GB VRAM, 7.8 GB RAM
Shader translation 9,282 of 9,282 mesh programs as compute, 0 failed
World (first mission intro) ends in a host command list did not close (0x80070057), 9 of 9 runs

The world failure is written up separately in #458, with the full exclusion list (VRAM budget, 720p at half scale, one pipeline worker, 30 s wait budgets, -Safe, RTSS stopped, and more) and two facts that should save the next person time. Short version: the pipeline is created successfully before the list is refused, and dropping the refused list is not a fix because the runtime's own state is already damaged by then.

What is in the diff

docs/WIN10-RDNA1.md records what was added, how it was measured, and where a fix would start. No game files, screenshots or dumps: cargo xtask policy passes (267 files ok). The one exception the repository already carries, crates/victory-formats/src/bcpack-tables.bin, is unchanged.

Builds with cargo build --release --locked -p victory on the pinned 1.98.1 toolchain.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5526458349 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/459). Originally posted by [bbing13](https://github.com/bbing13) on 2026-11-27T12:15:51Z. --- Brings two upstream pull requests this fork does not carry, so that a Windows 10 host and a GPU without mesh shaders can run the title at all: - **Agility SDK** (upstream #969): an app-local `D3D12Core.dll` loaded through `ID3D12SDKConfiguration1`, giving Windows 10 shader model 6.6 and the `0xc01` root-signature flags. Without it every host pipeline is refused on Windows 10. - **Mesh → compute fallback** (upstream #961): a mesh program runs as a compute dispatch plus a fallback vertex shader; its bindings move to spaces 8/9. Adds the `mesh-compute` subcommand. One fix found while testing both on an RX 5700: each stage's static samplers now take a space of their own. Before, a pixel shader's `s0` and the compute form of a mesh program's `s0` both named space 0, and D3D12 refuses that root signature. That fixed a real defect (the pipeline that used to fail after 297 ms now builds and runs), but it did not stop the world's first frame from failing. ### Status on the test machine Windows 10 19045 / Ryzen 5 3600 / 16 GiB / RX 5700 8 GB: | Stage | State | |---|---| | Language, legal notice, main menu | works, 30 fps, 1.9 GB VRAM, 7.8 GB RAM | | Shader translation | 9,282 of 9,282 mesh programs as compute, 0 failed | | World (first mission intro) | ends in `a host command list did not close (0x80070057)`, 9 of 9 runs | The world failure is written up separately in #458, with the full exclusion list (VRAM budget, 720p at half scale, one pipeline worker, 30 s wait budgets, `-Safe`, RTSS stopped, and more) and two facts that should save the next person time. Short version: the pipeline is created successfully before the list is refused, and dropping the refused list is not a fix because the runtime's own state is already damaged by then. ### What is in the diff `docs/WIN10-RDNA1.md` records what was added, how it was measured, and where a fix would start. No game files, screenshots or dumps: `cargo xtask policy` passes (`267 files ok`). The one exception the repository already carries, `crates/victory-formats/src/bcpack-tables.bin`, is unchanged. Builds with `cargo build --release --locked -p victory` on the pinned 1.98.1 toolchain.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/459:upstream-pr/459'
git switch 'upstream-pr/459'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/459'
git switch 'upstream-pr/459'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/459'
git switch 'upstream-pr/459'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/459'
git switch 'main'
git merge --squash 'upstream-pr/459'
git switch 'main'
git merge --ff-only 'upstream-pr/459'
git switch 'main'
git merge 'upstream-pr/459'
git push origin 'main'
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
avatarmanz/VIctory-7900XTX!459
No description provided.