radeonsi: don't lock shader cache mutex during compilation
authorMarek Olšák <marek.olsak@amd.com>
Sat, 11 Jun 2016 17:32:53 +0000 (19:32 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 4 Jul 2016 22:47:13 +0000 (00:47 +0200)
commit84824935cf28b72bac9f73787aadf20b95dea230
tree23f8199806dcc944d80abcb6146f4e0f328bfab9
parent850cd953b16a12c85d39a454302da38b00cfe68c
radeonsi: don't lock shader cache mutex during compilation

to allow multiple shaders to be compiled simultaneously.

ALso, shader-db can again use all 4 cores.

v2: Remove the pipe_mutex_unlock call in the error path.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
src/gallium/drivers/radeonsi/si_state_shaders.c