feat(agc): choose the Vulkan device by name with ANYPS5_GPU #876
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/876"
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?
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-06T12:17:43Z.
What
VulkanDevicepicks the first discrete GPU and there is no way to run on another device. On a machine with more than one GPU (laptops with an integrated and a discrete GPU, desktops with an iGPU, or lavapipe beside a real GPU) that blocks testing the other device and running a title on it.ANYPS5_GPU=<text>selects the first usable device whose name contains the text, compared without regard to case. The names are the ones already printed in thePhysical device candidatelines. An empty value is the same as unset.VulkanDevice::DeviceName()returns the selected device's name; the newagc_driver_device_selectiontest uses it to check the default, the upper-cased full name, and a name that matches nothing. The test clearsANYPS5_GPUfirst, so it also passes when the suite as a whole runs underANYPS5_GPU.docs/user/USAGE.mdgets a "GPU selection" paragraph.Tested
Linux, Ubuntu 24.04 container (GCC 13, Ninja,
-DBUILD_TESTING=ON) on a host with two AMD GPUs and lavapipe:ctest: 360 of 360 pass on the default device (AMD Radeon RX 7700 XT, RADV, Mesa 25.2.8); 360 of 360 pass withANYPS5_GPU=raphael, which moves every GPU test to the integrated Ryzen 7 9800X3D GPU (RDNA 2, subgroup 64).ANYPS5_GPU=nvidia:Vulkan: no usable device whose name contains ANYPS5_GPU="nvidia"; devices: AMD Radeon RX 7700 XT (RADV NAVI32), AMD Ryzen 7 9800X3D 8-Core Processor (RADV RAPHAEL_MENDOCINO), llvmpipe (LLVM 20.1.2, 256 bits).Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T16:24:09Z.
Checked on RADV (Radeon 660M) + CI's lavapipe side by side:
ANYPS5_GPU=llvmpipe/LLVMPIPEselects lavapipe,rembrandtthe iGPU, unset/empty keeps the default, an unknown name throws listing both devices. Full ctest green on the merge with main; the test fails with the name filter removed and with a case-sensitive compare. Merging.