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

Open
GeaorgeAyvazov wants to merge 2 commits from upstream-pr/197 into main
GeaorgeAyvazov commented 2026-11-24 22:27:15 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by GeaorgeAyvazov on 2026-11-24T22:27:15Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6592661985 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/197). Originally posted by [GeaorgeAyvazov](https://github.com/GeaorgeAyvazov) on 2026-11-24T22:27:15Z. --- 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.
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/197:upstream-pr/197'
git switch 'upstream-pr/197'

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/197'
git switch 'upstream-pr/197'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/197'
git switch 'upstream-pr/197'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/197'
git switch 'main'
git merge --squash 'upstream-pr/197'
git switch 'main'
git merge --ff-only 'upstream-pr/197'
git switch 'main'
git merge 'upstream-pr/197'
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
fxceless/victory-fork!197
No description provided.