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>
Tue, 12 Apr 2016 22:38:43 +0000 (15:38 -0700)
commit9e351e077befbdc179f7926edd8b5dde02f20494
treedc80a074550794c650d27c7f298fca348fa3a05a
parent3aa1a5ee8841fa93da5617630601e8110d428e8a
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