Re: [Mesa-dev] [wip 6/9] glsl: ir_deserializer class for the binary shader cache

2014-01-17 Thread Paul Berry
On 14 January 2014 03:35, Tapani Pälli wrote: > On 01/14/2014 01:24 AM, Paul Berry wrote: > > On 2 January 2014 03:58, Tapani Pälli wrote: > > + var->state_slots = NULL; >> + >> + if (var->num_state_slots > 0) { >> + var->state_slots = ralloc_array(var, ir_state_slot, >> + va

Re: [Mesa-dev] [wip 6/9] glsl: ir_deserializer class for the binary shader cache

2014-01-14 Thread Tapani Pälli
On 01/14/2014 01:24 AM, Paul Berry wrote: On 2 January 2014 03:58, Tapani Pälli > wrote: + + +/** + * Reads header part of the binary blob. Main purpose of this header is to + * validate that cached shader was produced with same Mesa driver

Re: [Mesa-dev] [wip 6/9] glsl: ir_deserializer class for the binary shader cache

2014-01-13 Thread Paul Berry
On 2 January 2014 03:58, Tapani Pälli wrote: > + > + > +/** > + * Reads header part of the binary blob. Main purpose of this header is to > + * validate that cached shader was produced with same Mesa driver version. > + */ > +int > +ir_deserializer::read_header(struct gl_shader *shader) > +{ > +

[Mesa-dev] [wip 6/9] glsl: ir_deserializer class for the binary shader cache

2014-01-02 Thread Tapani Pälli
ir_deserializer can create a gl_shader structure out of binary data, this will be used by shader binary cache implementation. Signed-off-by: Tapani Pälli --- src/glsl/Makefile.sources| 1 + src/glsl/ir_deserializer.cpp | 979 +++ src/glsl/ir_deserial