Re: [Mesa-dev] [PATCH 03/88] glsl: Add initial functions to implement an on-disk cache

2016-09-26 Thread Timothy Arceri
On Mon, 2016-09-26 at 08:29 -0600, Brian Paul wrote: > On 09/23/2016 11:24 PM, Timothy Arceri wrote: > > > > From: Carl Worth > > > > This code provides for an on-disk cache of objects. Objects are > > stored > > and retrieved via names that are arbitrary 20-byte sequences, > > (intended to be S

Re: [Mesa-dev] [PATCH 03/88] glsl: Add initial functions to

2016-09-26 Thread Timothy Arceri
On Mon, 2016-09-26 at 08:42 -0700, Eric Anholt wrote: > Timothy Arceri writes: > > > > > On Sun, 2016-09-25 at 13:26 -0700, Eric Anholt wrote: > > > > > > Timothy Arceri writes: > > > > > > > > +static void > > > > +test_put_key_and_get_key(void) > > > > +{ > > > > +   struct program_cache *c

Re: [Mesa-dev] [PATCH 03/88] glsl: Add initial functions to

2016-09-26 Thread Eric Anholt
Timothy Arceri writes: > On Sun, 2016-09-25 at 13:26 -0700, Eric Anholt wrote: >> Timothy Arceri writes: >> > +static void >> > +test_put_key_and_get_key(void) >> > +{ >> > +   struct program_cache *cache; >> > +   bool result; >> > + >> > +   uint8_t key_a[20] = {  0,  1,  2,  3,  4,  5,  6,  7

Re: [Mesa-dev] [PATCH 03/88] glsl: Add initial functions to implement an on-disk cache

2016-09-26 Thread Brian Paul
On 09/23/2016 11:24 PM, Timothy Arceri wrote: From: Carl Worth This code provides for an on-disk cache of objects. Objects are stored and retrieved via names that are arbitrary 20-byte sequences, (intended to be SHA-1 hashes of something identifying for the content). The directory used for the

Re: [Mesa-dev] [PATCH 03/88] glsl: Add initial functions to

2016-09-25 Thread Timothy Arceri
On Sun, 2016-09-25 at 13:26 -0700, Eric Anholt wrote: > Timothy Arceri writes: > > > > > From: Carl Worth > > > > This code provides for an on-disk cache of objects. Objects are > > stored > > and retrieved via names that are arbitrary 20-byte sequences, > > (intended to be SHA-1 hashes of som

Re: [Mesa-dev] [PATCH 03/88] glsl: Add initial functions to implement an on-disk cache

2016-09-25 Thread Eric Anholt
Timothy Arceri writes: > From: Carl Worth > > This code provides for an on-disk cache of objects. Objects are stored > and retrieved via names that are arbitrary 20-byte sequences, > (intended to be SHA-1 hashes of something identifying for the > content). The directory used for the cache can be

[Mesa-dev] [PATCH 03/88] glsl: Add initial functions to implement an on-disk cache

2016-09-23 Thread Timothy Arceri
From: Carl Worth This code provides for an on-disk cache of objects. Objects are stored and retrieved via names that are arbitrary 20-byte sequences, (intended to be SHA-1 hashes of something identifying for the content). The directory used for the cache can be specified by means of environment v