Re: [Mesa-dev] [PATCH 08/37] glsl: add initial implementation of shader cache

2017-01-24 Thread Timothy Arceri
On Tue, 2017-01-24 at 16:33 -0800, Eric Anholt wrote: > Timothy Arceri writes: > > > From: Timothy Arceri > > > > This uses disk_cache.c to write out a serialization of various > > state that's required in order to successfully load and use a > > binary written out by a drivers backend, this st

Re: [Mesa-dev] [PATCH 08/37] glsl: add initial implementation of shader cache

2017-01-24 Thread Eric Anholt
Timothy Arceri writes: > From: Timothy Arceri > > This uses disk_cache.c to write out a serialization of various > state that's required in order to successfully load and use a > binary written out by a drivers backend, this state is referred to as > "metadata" throughout the implementation. > >

Re: [Mesa-dev] [PATCH 08/37] glsl: add initial implementation of shader cache

2017-01-23 Thread Timothy Arceri
On Tue, 2017-01-24 at 07:54 +0200, Tapani Pälli wrote: > Hi Timothy; > > On 01/24/2017 01:12 AM, Timothy Arceri wrote: > > From: Timothy Arceri > > > > 8< > > > + > > +static void > > +write_uniforms(struct blob *metadata, struct gl_shader_program > > *prog) > > +{ > > +   blob_write_uint32(me

Re: [Mesa-dev] [PATCH 08/37] glsl: add initial implementation of shader cache

2017-01-23 Thread Tapani Pälli
Hi Timothy; On 01/24/2017 01:12 AM, Timothy Arceri wrote: From: Timothy Arceri 8< + +static void +write_uniforms(struct blob *metadata, struct gl_shader_program *prog) +{ + blob_write_uint32(metadata, prog->SamplersValidated); + blob_write_uint32(metadata, prog->data->NumUniformStorage

[Mesa-dev] [PATCH 08/37] glsl: add initial implementation of shader cache

2017-01-23 Thread Timothy Arceri
From: Timothy Arceri This uses disk_cache.c to write out a serialization of various state that's required in order to successfully load and use a binary written out by a drivers backend, this state is referred to as "metadata" throughout the implementation. This initial version is intended to wo