anv: Check if shader if present before uploading to cache
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 5 Mar 2016 20:20:16 +0000 (12:20 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 5 Mar 2016 21:54:24 +0000 (13:54 -0800)
commitf2b37132cb6a804b958d2e1dff17e7d77e430b96
tree4db1cf753cd114215c46c63ec38fc54c9e00caaa
parent30bbe28b7efc7e6b6fef78ac3233bb7485679d1e
anv: Check if shader if present before uploading to cache

Between the initial check the returns NO_KERNEL and compiling the
shader, other threads may have added the shader to the cache. Before
uploading the kernel, check again (under the mutex) that the compiled
shader still isn't present.
src/intel/vulkan/anv_pipeline_cache.c