Enable D3D12 Agility SDK for Windows GPU and shader unit tests #530

Open
flavor1337 wants to merge 1 commit from upstream-pr/530 into main
flavor1337 commented 2026-11-28 00:10:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by flavor1337 on 2026-11-28T00:10:46Z.


Summary

Adds conditional D3D12 Agility SDK support to the victory-gpu and victory-shader unit-test executables on Windows 10.

The standalone tests previously used the system D3D12 runtime, reporting Shader Model 6.5 instead of 6.8.

Test Environment

  • OS: Windows 10 Home (19045)
  • CPU: AMD Ryzen 5 5600G
  • GPU: NVIDIA RTX 5070 12GB
  • Driver: 621.14
  • RAM: 32GB DDR4-3600
  • Rust: 1.98.1
  • Agility SDK: 1.614.1
  • Streamline: 2.14.16

Test Results

Tested against commits 0cef07e9 and df2daaf.

Test Result
Shader failures resolved 34/34
Depth-bounds pipeline Passed
Original patched workspace 1056 passed, 0 failed
Newer patched workspace 1064 passed, 1 failed
Latest GPU tests 424 passed, 0 failed
Latest shader tests 288 passed, 0 failed

Both workspace runs reported 46 ignored tests.

Workspace tests were performed with:

  • VICTORY_D3D12_ADAPTER=NVIDIA
  • VICTORY_INDIRECT_REST=1

Agility SDK 1.614.1 was staged in target/debug/D3D12/ before compilation.

Additional Hardware Validation

  • Shader Model 6.8 verified
  • DLSS Super Resolution passed
  • NVIDIA Reflex initialized
  • 2x, 4x and 6x Frame Generation passed
  • 30/30 repeated diagnostic runs passed
  • Hardware-accelerated GPU scheduling enabled

All diagnostics were performed without game files.

Known Limitations

  • SDK version is currently fixed at 614.
  • SDK must be staged before compilation.
  • Some inherited comments reference the original fork's installation procedure.
  • Two budgeting tests require VICTORY_INDIRECT_REST=1.
  • windows_own_runtime_tells_its_version fails on df2daaf because the native Windows runtime reports version 2 rather than the expected minimum of 4.
  • Some hardware-specific subtests were skipped internally.
  • Streamline emitted nonfatal synchronization and resource alignment warnings.
  • Actual gameplay remains untested.

Attribution

Adapted from Aerodymeus's Windows 10 D3D12 Agility SDK implementation, commit 30c5f91, adjusted for NVIDIA's SDK version 614.

Submitted for review to improve Windows 10 test compatibility. Feedback and suggestions are welcome.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5534786700 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/530). Originally posted by [flavor1337](https://github.com/flavor1337) on 2026-11-28T00:10:46Z. --- ## Summary Adds conditional D3D12 Agility SDK support to the victory-gpu and victory-shader unit-test executables on Windows 10. The standalone tests previously used the system D3D12 runtime, reporting Shader Model 6.5 instead of 6.8. ## Test Environment - OS: Windows 10 Home (19045) - CPU: AMD Ryzen 5 5600G - GPU: NVIDIA RTX 5070 12GB - Driver: 621.14 - RAM: 32GB DDR4-3600 - Rust: 1.98.1 - Agility SDK: 1.614.1 - Streamline: 2.14.16 ## Test Results Tested against commits 0cef07e9 and df2daaf. | Test | Result | |---|---| | Shader failures resolved | 34/34 | | Depth-bounds pipeline | Passed | | Original patched workspace | 1056 passed, 0 failed | | Newer patched workspace | 1064 passed, 1 failed | | Latest GPU tests | 424 passed, 0 failed | | Latest shader tests | 288 passed, 0 failed | Both workspace runs reported 46 ignored tests. Workspace tests were performed with: - VICTORY_D3D12_ADAPTER=NVIDIA - VICTORY_INDIRECT_REST=1 Agility SDK 1.614.1 was staged in target/debug/D3D12/ before compilation. ## Additional Hardware Validation - Shader Model 6.8 verified - DLSS Super Resolution passed - NVIDIA Reflex initialized - 2x, 4x and 6x Frame Generation passed - 30/30 repeated diagnostic runs passed - Hardware-accelerated GPU scheduling enabled All diagnostics were performed without game files. ## Known Limitations - SDK version is currently fixed at 614. - SDK must be staged before compilation. - Some inherited comments reference the original fork's installation procedure. - Two budgeting tests require VICTORY_INDIRECT_REST=1. - windows_own_runtime_tells_its_version fails on df2daaf because the native Windows runtime reports version 2 rather than the expected minimum of 4. - Some hardware-specific subtests were skipped internally. - Streamline emitted nonfatal synchronization and resource alignment warnings. - Actual gameplay remains untested. ## Attribution Adapted from Aerodymeus's Windows 10 D3D12 Agility SDK implementation, commit 30c5f91, adjusted for NVIDIA's SDK version 614. Submitted for review to improve Windows 10 test compatibility. Feedback and suggestions are welcome.
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/530:upstream-pr/530'
git switch 'upstream-pr/530'

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/530'
git switch 'upstream-pr/530'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/530'
git switch 'upstream-pr/530'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/530'
git switch 'main'
git merge --squash 'upstream-pr/530'
git switch 'main'
git merge --ff-only 'upstream-pr/530'
git switch 'main'
git merge 'upstream-pr/530'
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
trustno1-coder/VIctory-NVIDIA!530
No description provided.