OSDN Git Service

radv: Fix pipeline cache locking issues
authorAlex Smith <asmith@feralinteractive.com>
Thu, 19 Oct 2017 10:49:39 +0000 (11:49 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 21 Oct 2017 01:52:43 +0000 (03:52 +0200)
commit0fdd531457ecaba263e6a27e030d451774f54b32
tree4d00b02dd9702429f30bb0c24adc379170587cef
parentc71d44c7f845a9ef23251d9a0c95267f4a711578
radv: Fix pipeline cache locking issues

Need to lock around the whole process of retrieving cached shaders, and
around GetPipelineCacheData.

This fixes GPU hangs observed when creating multiple pipelines in
parallel, which appeared to be due to invalid shader code being pulled
from the cache.

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline_cache.c