Fix race condition while initializing shader cache
authorRicardo Garcia <rgarcia@igalia.com>
Fri, 10 Mar 2023 15:07:14 +0000 (16:07 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Fri, 24 Mar 2023 08:25:13 +0000 (08:25 +0000)
commit287ec26dde9e9769112c72ae7417849a31c4ff9f
tree1803cd53dd3d853950b2e5fe96fa73ecceda2054
parent99359e443546495e8676d5fad76feac710a4feeb
Fix race condition while initializing shader cache

No test results should be affected by this change.

Without this patch, I can often (not always) reproduce a crash when
running vk-build-programs. The crash happens during the first seconds of
the program running, while initializing shader cache variables and using
them for the first time.

With this patch, I can no longer make vk-build-programs crash.

Components: Vulkan
VK-GL-CTS issue: 4269

Change-Id: I61db5e9869849813e9bb451ddd4126ca091077da
external/vulkancts/framework/vulkan/vkPrograms.cpp