From 02b49458a37313efa1b6bbaf99a73f406cd3eece Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 26 Nov 2022 10:02:17 -0800 Subject: vo: vulkan: allow picking devices by UUID We currently only allow specifying the Vulkan device to use by name. We did this to avoid confusion around devices being enumerated in an unpredictable order. However, there is a valid edge case where a system may contain multiple devices of the same type - which means they will have the same name, and so you can't control which one is used. This change implements picking devices by UUID so that if names don't work, you have some option available. As Vulkan 1.1 is a hard requirement for libplacebo, we can just use UUIDs without conditional checks. Fixes #10898 --- DOCS/man/options.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'DOCS/man/options.rst') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 21afd00c4d..e7a746d587 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -5586,11 +5586,11 @@ them. results, as can missing or incorrect display FPS information (see ``--override-display-fps``). -``--vulkan-device=`` - The name of the Vulkan device to use for rendering and presentation. Use +``--vulkan-device=`` + The name or UUID of the Vulkan device to use for rendering and presentation. Use ``--vulkan-device=help`` to see the list of available devices and their - names. If left unspecified, the first enumerated hardware Vulkan device will - be used. + names and UUIDs. If left unspecified, the first enumerated hardware Vulkan + device will be used. ``--vulkan-swap-mode=`` Controls the presentation mode of the vulkan swapchain. This is similar -- cgit v1.2.3