mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-28 09:50:44 +00:00
cbe28ac790
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 |
||
---|---|---|
.. | ||
images | ||
LoaderApplicationInterface.md | ||
LoaderDriverInterface.md | ||
LoaderInterfaceArchitecture.md | ||
LoaderLayerInterface.md |