Host device on the high-performance adapter, not adapter 0 (iGPU PCs) #555
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!555
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-555"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@regiumlepidi on GitHub · 2026-11-28 00:50 UTC · original
regiumlepidi:gpu-preference→main· +73 −5 · 3 files · 2 commits · openD3D12CreateDevice(None)takes DXGI adapter 0, i.e. whichever adapter drives the main display. On a PC whose CPU has an integrated GPU (every Ryzen 7000/9000, most Intel desktop CPUs) that can be the integrated one. It happened to me when the monitor went to sleep during an unattended run: the device went to the Ryzen 9800X3D's Radeon (a 31.5 GB shared-memory budget, DLSS refused with "adapter not supported", under 1 fps) while the RTX 5070 Ti sat idle. Plugging the monitor into the motherboard would do the same.Changes
host.rs: the device is created on the adapter thatIDXGIFactory6::EnumAdapterByGpuPreference(HIGH_PERFORMANCE)ranks first, never a software adapter, and the log names it.streamline.rs: Streamline's adapter query uses the same choice. It used adapter 0 on its own, so even with the device fixed, DLSS still said "adapter not supported".VICTORY_GPU_PREFERENCE=0restores the old behaviour. On a single-GPU PC both choices are the same adapter, so nothing changes there.Verified in runs on an RTX 5070 Ti, driver 617.42, with the monitor asleep. Before: adapter 0 = AMD Radeon(TM) Graphics. After:
host device on the high-performance adapter adapter="NVIDIA GeForce RTX 5070 Ti", a 15227 MB budget, Streamline loads withdlss=true, and the opening is back to 15–23 fps.cargo check -p victory-gpuandcargo xtask policypass.This change was made with AI assistance (Claude Code), and I tested it on my own hardware.
🤖 Generated with Claude Code
@regiumlepidi on GitHub · 2026-11-28 01:33 UTC · original
Added a second commit: the translator's own
Host(victory translate --pipelinesand the GPU unit tests) also created its device on adapter 0. With the monitor asleep that put the pipelines on the integrated Radeon, and its compiler (amdxc64.dll) crashed the wholetranslate --pipelinesrun with an access violation on one valid pixel program (PS_BreakableGlass_AlphaPrepass, cad3ecfdcdcf2a7d). The same program builds fine on the RTX 5070 Ti. Same choice as the host device now, with the sameVICTORY_GPU_PREFERENCE=0escape hatch.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.