mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
On a hybrid laptop (issue #3) Indium took whichever Vulkan device the loader listed first, usually the integrated GPU, and still created a VkDevice on every other supported GPU, waking a discrete GPU it never used. Drawables reach the presenting OpenGL context as opaque FDs, which only work on one physical device, and nothing checked that. Indium now appends the device list, the selected device and the reason to guest /tmp/metal-device.log, and creates a VkDevice for the selected device only (/tmp/metal-all-devices restores the old behaviour). /tmp/metal-gpu or METAL_INDIUM_GPU selects a device by index or name for diagnosis. QuartzCore logs the presenting GL renderer and compares its device UUID with the Vulkan device's (match=yes / MISMATCH); it queries Vulkan itself, so it needs no new libindium export. On the RX 6600 desktop the game selected RADV, created 1 VkDevice of 2 supported (lavapipe no longer gets one) and logged match=yes in a match. Running on NVIDIA through prime-run is documented but not validated. Co-Authored-By: Claude Opus 5.5 <[email protected]>