-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent loader device ordering #781
Consistent loader device ordering #781
Conversation
CI Vulkan-Loader build queued with queue ID 10473. |
CI Vulkan-Loader build # 932 running. |
CI Vulkan-Loader build # 932 passed. |
CI Vulkan-Loader build queued with queue ID 10485. |
CI Vulkan-Loader build # 933 running. |
CI Vulkan-Loader build # 933 passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main comment|concern is the semantics of the env-vars being added. Code wise, nothing major save for some nit picks. Also need to add documentations for the new env-vars being added.
CI Vulkan-Loader build queued with queue ID 11329. |
CI Vulkan-Loader build # 936 running. |
CI Vulkan-Loader build # 936 passed. |
CI Vulkan-Loader build queued with queue ID 12266. |
CI Vulkan-Loader build # 942 running. |
CI Vulkan-Loader build # 942 passed. |
The loader ICD ordering could be random on Linux based on using readdir to find ICD manifest files. This can result in random behaviors as applications that select only the first device can switch which device is used. To resolve this, we now sort based on device type and then internally to the types based on PCI bus information. This also introduces a VK_LOADER_DEFAULT_DEVICE environment variable that can be used to force a specific PCI device. This environment variable is actually a duplicate of the MESA_VK_DEVICE_SELECT variable, which is also looked for if the loader environment variable is not found. Note, that at least one ICD must support it for the extension to be used at all. So we only do the sorting if one ICD supports it. Fixes part of #657
CI Vulkan-Loader build queued with queue ID 15510. |
CI Vulkan-Loader build # 952 running. |
CI Vulkan-Loader build # 952 passed. |
The loader ICD ordering could be random on Linux based on using readdir
to find ICD manifest files. This can result in random behaviors as
applications that select only the first device can switch which device is
used. To resolve this, we now sort based on device type and then
internally to the types based on PCI bus information.
This also introduces a VK_LOADER_DEFAULT_DEVICE environment variable
that can be used to force a specific PCI device. This environment variable
is actually a duplicate of the MESA_VK_DEVICE_SELECT variable, which is
also looked for if the loader environment variable is not found.
Note, that at least one ICD must support it for the extension to be used at all.
So we only do the sorting if one ICD supports it.
Fixes part of #657