Shader host: select a hardware adapter for testing on hybrid systems #197

Open
github-bot wants to merge 2 commits from github-bot/gh-197 into main AGit
Owner

@⁠GeaorgeAyvazov on GitHub · 2026-11-24 22:27 UTC · original
GeaorgeAyvazov:shader/test-adapter-selection → main · +34 −1 · 2 files · 2 commits · open

A hybrid laptop can run the shader tests on the integrated adapter even when testing results intended for the discrete GPU. Allow Host::new(false) to select a hardware DXGI adapter by case-insensitive name substring via VICTORY_SHADER_ADAPTER. Leaving it unset keeps the Windows default; explicit WARP runs keep their existing path. This covers the shader validation/test host only.

Verified on a laptop with Iris Xe and RTX 3070 Ti. The wave32 mask-join test on this branch returned all 32 mask bits on the selected NVIDIA adapter (the default run had returned only 16). On a local integration branch including #78, #171 and #182, the default shader library suite with the selector set to NVIDIA passed 213 tests with two opt-in tests ignored. Hardware-specific differences on Intel still merit investigation. Code and testing assisted by OpenAI Codex.

**@⁠GeaorgeAyvazov** on GitHub · 2026-11-24 22:27 UTC · [original](https://github.com/fxceless/victory-fork/pull/197) `GeaorgeAyvazov:shader/test-adapter-selection` → `main` · +34 −1 · 2 files · 2 commits · open A hybrid laptop can run the shader tests on the integrated adapter even when testing results intended for the discrete GPU. Allow Host::new(false) to select a hardware DXGI adapter by case-insensitive name substring via VICTORY_SHADER_ADAPTER. Leaving it unset keeps the Windows default; explicit WARP runs keep their existing path. This covers the shader validation/test host only. Verified on a laptop with Iris Xe and RTX 3070 Ti. The wave32 mask-join test on this branch returned all 32 mask bits on the selected NVIDIA adapter (the default run had returned only 16). On a local integration branch including #78, #171 and #182, the default shader library suite with the selector set to NVIDIA passed 213 tests with two opt-in tests ignored. Hardware-specific differences on Intel still merit investigation. Code and testing assisted by OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:02 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/197/head:github-bot/gh-197'
git switch 'github-bot/gh-197'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-197'
git switch 'github-bot/gh-197'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-197'
git switch 'github-bot/gh-197'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-197'
git switch 'main'
git merge --squash 'github-bot/gh-197'
git switch 'main'
git merge --ff-only 'github-bot/gh-197'
git switch 'main'
git merge 'github-bot/gh-197'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.