On Linux-based machines, a shared library's path may be resolved in multiple ways, such as from LD_LIBRARY_PATH. For these OSes, use dlopen to see if it exists. Note that trying to create a vk::DynamicLoader with an invalid path throws an exception, and enabling exceptions is not always possible, so we want to detect the error case beforehand. Bug: b/177624844 Change-Id: I5f27cfe485afbac0e4f6bda14eed2809669c2510 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52629Reviewed-by:Nicolas Capens <nicolascapens@google.com> Tested-by:
Antonio Maiorano <amaiorano@google.com> Presubmit-Ready: Antonio Maiorano <amaiorano@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| GLESUnitTests | Loading commit data... | |
| MathUnitTests | Loading commit data... | |
| ReactorBenchmarks | Loading commit data... | |
| ReactorUnitTests | Loading commit data... | |
| SystemBenchmarks | Loading commit data... | |
| SystemUnitTests | Loading commit data... | |
| VulkanBenchmarks | Loading commit data... | |
| VulkanUnitTests | Loading commit data... | |
| VulkanWrapper | Loading commit data... | |
| check_build_files | Loading commit data... | |
| fuzzers | Loading commit data... | |
| kokoro | Loading commit data... | |
| regres | Loading commit data... | |
| scan_sources | Loading commit data... | |
| presubmit.sh | Loading commit data... | |
| rundroid.sh | Loading commit data... |