Repository navigation
Include most Vulkan tests in ASan build. - #8489
Conversation
| # Only build SwiftShader Vulkan ICD. | ||
| RUN cmake -S swiftshader/ -B build-swiftshader/ \ | ||
| -GNinja \ | ||
| -DSWIFTSHADER_BUILD_VULKAN=ON \ |
There was a problem hiding this comment.
Have instructions for building swiftshader changed? I think we may wasn't to drop the comment about only building Vulkan if we're no longer explicitly setting anything to do that
There was a problem hiding this comment.
Some of the options no longer exist: https://swiftshader.googlesource.com/SwiftShader/+/c27e99245d423648fe5f0eafa73d49ce7b53d201/CMakeLists.txt#148, as of https://swiftshader-review.googlesource.com/c/SwiftShader/+/60688:
Remove OpenGL ES targets from the CMake build
The legacy SwiftShader OpenGL ES implementation has been deprecated for
two years, in favor of SwANGLE. Specifically the CMake build was only
meant for development and internal testing purposes, and should have no
further uses.
I was seeing warnings (not errors) for setting unknown options.
The # Only build SwiftShader Vulkan ICD. comment still applies to setting the -DSWIFTSHADER_BUILD_TESTS=OFF option and building just the vk_swiftshader target.
Progress on #5715 and #5716
Leaks in the Vulkan-related libraries we use were hidden behind incomplete handling of shared library loading/unloading in ASan. By disabling calls to
dlclose()in bothiree/base/internal/dynamic_library_posix.cand the Vulkan Loader (libvulkan.so.1) so those libraries remained open for ASan to reference, I was able to get useful leak reports. Those reports showed that my NVIDIA system Vulkan ICD (libnvidia-glcore.so) was leaking and an up to date SwiftShader (libvk_swiftshader.so) was not leaking.This PR updates SwiftShader to a commit that doesn't leak (with our usage, anyways) and enables most of the Vulkan tests that were previously excluded from running under ASan.
A few tests are still failing with crashes in ASan, with logs like this:
(full logs here), so I'm keeping those disabled explicitly.