util: Fix race condition on libgcrypt initialization
authorMark Janes <mark.a.janes@intel.com>
Tue, 12 Apr 2016 18:52:53 +0000 (11:52 -0700)
committerMark Janes <mark.a.janes@intel.com>
Fri, 15 Apr 2016 17:24:40 +0000 (10:24 -0700)
commitade3108bb5b074013417b31e61b8077ccefb7484
tree822a94d66857161e55a6eabd07188b356bf53b89
parent2d5bd66e4f5ba15464c1e915a259d2442e88f736
util: Fix race condition on libgcrypt initialization

Fixes intermittent Vulkan CTS failures within the test groups:
dEQP-VK.api.object_management.multithreaded_per_thread_device
dEQP-VK.api.object_management.multithreaded_per_thread_resources
dEQP-VK.api.object_management.multithreaded_shared_resources

Signed-off-by: Mark Janes <mark.a.janes@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94904

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/util/mesa-sha1.c