Re: [Mesa-dev] [PATCH 02/10] glsl: serialize methods for IR instructions

2014-02-04 Thread Paul Berry
On 29 January 2014 01:24, Tapani Pälli wrote: > + > + > +/** > + * Serialization of exec_list, writes length of the list + > + * calls serialize_data for each instruction > + */ > +void > +serialize_list(exec_list *list, memory_writer &mem) > +{ > + uint32_t list_len = 0; > + foreach_list(nod

[Mesa-dev] [PATCH 02/10] glsl: serialize methods for IR instructions

2014-01-29 Thread Tapani Pälli
Patch adds a new virtual function for ir_instruction base class which has to be implemented by each instruction. This data will be used by the shader binary cache implementation. Signed-off-by: Tapani Pälli --- src/glsl/Makefile.sources | 1 + src/glsl/ir.h | 45 + src/glsl/ir