cli: add --gpu <index> to select a Vulkan physical deviceFeature gpu select #417
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!417
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/417/head"
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?
@francoisatt on GitHub · 2026-08-30 18:00 UTC · original
francoisatt:feature-gpu-select→main· +14 −0 · 4 files · 3 commits · merged 2026-08-30 23:43 UTCProblem
VulkanFindPhysicalDeviceoverwritesbest_devicefor every discreteGPU it encounters, so with more than one discrete GPU the last
enumerated one wins, arbitrarily. There is no way to override it.
On my machine three devices are enumerated (RTX 5080, an integrated AMD
Radeon, RTX 4060 Ti) and the 4060 Ti is picked.
Change
Adds
--gpu <index>to select a physical device by enumeration index.The requested device still has to pass the same compatibility checks as
any other; if it is out of range or unsuitable, the emulator logs the
reason and falls back to automatic selection. Default behaviour is
unchanged.
Testing
--helplists the new option--gpu abcprints an error and exits 1 with usage, matching--user-id/--present-modeNote
clang-format (pre-commit v22.1.3) realigned a few pre-existing lines in
the touched files; those changes are mechanical.
AI assistance
This change was written with AI assistance. I reviewed, built and tested
it myself.