Enable multithreading in glslang
authorPyry Haulos <phaulos@google.com>
Fri, 11 Nov 2016 00:19:52 +0000 (16:19 -0800)
committerPyry Haulos <phaulos@google.com>
Fri, 11 Nov 2016 17:15:50 +0000 (12:15 -0500)
commitee21fb0d13a9c55c81c0c8d38a6ffae9a99df133
tree214fad1adaf5138781280a83e826d2f6c4cf91b0
parentd57bc1191f327c63ab3756f77ad75f54e74d387f
Enable multithreading in glslang

Glslang is internally synchronized and able to support multithreaded
compilation as long as global lock is implemented.

This change provides 12x speedup in building SPIR-V binaries on a
40-core machine.

Change-Id: I27b8ce22db980c3657ac3ba67b7cec1543859d0d
external/glslang/osinclude.cpp
external/vulkancts/framework/vulkan/vkGlslToSpirV.cpp
external/vulkancts/modules/vulkan/vktBuildPrograms.cpp