Re: [Mesa-dev] [PATCH V3] util/disk_cache: use a thread queue to write to shader cache

2017-03-14 Thread Timothy Arceri
On 14/03/17 21:27, Grazvydas Ignotas wrote: On Tue, Mar 14, 2017 at 4:06 AM, Timothy Arceri wrote: This should help reduce any overhead added by the shader cache when programs are not found in the cache. To avoid creating any special function just for the sake of the tests we add a one secon

Re: [Mesa-dev] [PATCH V3] util/disk_cache: use a thread queue to write to shader cache

2017-03-14 Thread Grazvydas Ignotas
On Tue, Mar 14, 2017 at 4:06 AM, Timothy Arceri wrote: > This should help reduce any overhead added by the shader cache > when programs are not found in the cache. > > To avoid creating any special function just for the sake of the > tests we add a one second delay whenever we call dick_cache_put(

[Mesa-dev] [PATCH V3] util/disk_cache: use a thread queue to write to shader cache

2017-03-13 Thread Timothy Arceri
This should help reduce any overhead added by the shader cache when programs are not found in the cache. To avoid creating any special function just for the sake of the tests we add a one second delay whenever we call dick_cache_put() to give it time to finish. V2: poll for file when waiting for