mirror of
https://github.com/openharmony/third_party_vulkan-loader.git
synced 2026-07-19 17:13:36 -04:00
94c535286f
Linux can support multiple ABIs, but Vulkan Layer manifest does not allow to specify different library paths, based on the ABI. As a solution, for ICDs, we can simply create multiple manifests, one per ABI, and the Loader will try them one by one until it finds the library that is compatible with the executable class. Instead, for Vulkan Layers, this method doesn't work because the Loader will discard the manifests that have a duplicated layer name. To add support for multiple ABIs to Vulkan Layers, and to make the behavior similar to the ICDs, with this commit we remove the duplicated layer name check. Instead we add to the output list all the Vulkan Layers that we find, and only when we are actually going to dlopen them, we discard the layers with the same name that we already successfully opened. Fixes: #155 Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
Loader Specification and Interfaces
See LoaderAndLayerInterface.md for detailed documentation.
Building
Builds for Linux, Windows, and MacOS are supported via CMake. See top level BUILD.md file.