radeonsi: reduce the scope of sel->mutex in si_shader_select_with_key
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 22 Oct 2017 15:38:32 +0000 (17:38 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 9 Nov 2017 10:37:51 +0000 (11:37 +0100)
commit0f54ee6072d067027c389d61abc7aea8956b2c1e
tree177150ba792725701e564ba994fb4125272a88c7
parent4f493c79eee01724152b6e56c71b81303e3bc54e
radeonsi: reduce the scope of sel->mutex in si_shader_select_with_key

We only need the lock to guard changes in the variant linked list. The
actual compilation can happen outside the lock, since we use the ready
fence as a guard.

v2: fix double-unlock

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c