Re: [Mesa-dev] [v2 3/6] glsl: ir_serializer class for the shader cache

2013-11-07 Thread Kenneth Graunke
On 11/06/2013 12:55 PM, Paul Berry wrote: [snip] > Ok, I think you are correct about the functions. But I believe for > variables, the ir_variable always appears in the IR before any > references to it. Can someone confirm this? (Ken or Ian perhaps?) That's correct, and actually critical. Drive

Re: [Mesa-dev] [v2 3/6] glsl: ir_serializer class for the shader cache

2013-11-06 Thread Tapani
On 11/06/2013 10:55 PM, Paul Berry wrote: On 5 November 2013 23:45, Tapani Pälli > wrote: On 11/05/2013 07:36 PM, Paul Berry wrote: On 1 November 2013 02:16, Tapani Pälli mailto:tapani.pa...@intel.com>> wrote: + +/** + * Function

Re: [Mesa-dev] [v2 3/6] glsl: ir_serializer class for the shader cache

2013-11-06 Thread Paul Berry
On 5 November 2013 23:45, Tapani Pälli wrote: > On 11/05/2013 07:36 PM, Paul Berry wrote: > > On 1 November 2013 02:16, Tapani Pälli wrote: > >> >> + >> +/** >> + * Function to create an unique string for a ir_variable. This is >> + * used by variable dereferences to indicate the exact ir_varia

[Mesa-dev] [v2 3/6] glsl: ir_serializer class for the shader cache

2013-11-01 Thread Tapani Pälli
ir_serializer can serialize a gl_shader structure as binary data, will be used by OES_get_program_binary implementation. Signed-off-by: Tapani Pälli --- src/glsl/Makefile.sources| 1 + src/glsl/ir_cache_serializer.cpp | 933 +++ src/glsl/ir_cache_ser