Skip to content

victory: run on Windows 10 with the Agility SDK runtime - #2

Open
CocoBeans64 wants to merge 1 commit into
mainfrom
agility-sdk
Open

CocoBeans64 wants to merge 1 commit into
mainfrom
agility-sdk

Conversation

@CocoBeans64

Copy link
Copy Markdown
Owner

Summary

  • Windows 10's own Direct3D 12 runtime stops at shader model 6.5 on the GPU (6.2 on WARP), so every title pipeline was refused ("root signature flags c01" unsupported) and nothing was drawn.
  • victory.exe now exports D3D12SDKVersion (614) and D3D12SDKPath (.\D3D12\), set by apps/victory/build.rs (/EXPORT:…,DATA, MSVC only). With D3D12Core.dll from the NuGet package Microsoft.Direct3D.D3D12 1.614.x in that folder, the loader uses it and the device reports SM 6.6. Without the folder, or on a newer Windows, the system runtime is used: no change.
  • The README says how to set it up (and the WARP redistributable for software rendering).

Test

  • Windows 10 Pro 22H2 (19045.7846), Ryzen 7 7800X3D, RX 6800 XT, AMD driver 32.0.21045.5002.
  • dumpbin /exports target\diag\victory.exe lists both symbols; the loaded modules show target\diag\D3D12\D3D12Core.dll.
  • translate --pipelines no longer stops on "the device supports SM 0x65 only" (GPU) / "0x62" (WARP); 22,117 pipelines created on WARP.
  • A run on the RX 6800 XT (upstream 67e8ae1 + this change) reaches the world: intro, a playable stretch with the camera at about 1 fps, the next cutscene; no crash, no driver reset. Unlit areas as described in the README.

🤖 Generated with Claude Code

Windows 10's own Direct3D 12 runtime stops at shader model 6.5 on the GPU
(6.2 on WARP), so every title pipeline was refused and nothing was drawn.
The executable now exports D3D12SDKVersion (614) and D3D12SDKPath
(".\D3D12\"): with D3D12Core.dll from the Microsoft.Direct3D.D3D12
package in that folder, the loader uses it and the device reports SM 6.6.
Without the folder, or on a newer Windows, the system runtime is used.
The README says how to set it up.

Tested on Windows 10 22H2 (19045.7846), RX 6800 XT, driver
32.0.21045.5002: the title reaches the world (intro, a playable stretch,
next cutscene) with no crash; WARP 1.0.22 next to the exe also gives SM 6.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CocoBeans64 pushed a commit that referenced this pull request Nov 25, 2026
)

RDNA2 flushes denormal operands of the legacy multiplies to zero, so
0 x anything = 0 also holds for them. The lowering only tested for an exact
float zero, whose result also depends on the host's denormal mode. Test the
exponent bits instead. Follow-up to #2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant