Re: [Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-05-07 Thread Vadim Girlin
On Mon, 2012-05-07 at 11:37 -0700, Ian Romanick wrote: > On 04/29/2012 12:54 AM, Vadim Girlin wrote: > > On Sat, 2012-04-28 at 13:02 -0700, Kenneth Graunke wrote: > >> On 04/28/2012 12:24 PM, Vadim Girlin wrote: > >>> On Sat, 2012-04-28 at 11:42 -0700, Kenneth Graunke wrote: > On 04/28/2012 11

Re: [Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-05-07 Thread Ian Romanick
On 04/29/2012 12:54 AM, Vadim Girlin wrote: On Sat, 2012-04-28 at 13:02 -0700, Kenneth Graunke wrote: On 04/28/2012 12:24 PM, Vadim Girlin wrote: On Sat, 2012-04-28 at 11:42 -0700, Kenneth Graunke wrote: On 04/28/2012 11:20 AM, Vadim Girlin wrote: According to GLSL 1.30 specification, initial

Re: [Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-04-29 Thread Vadim Girlin
On Sat, 2012-04-28 at 13:02 -0700, Kenneth Graunke wrote: > On 04/28/2012 12:24 PM, Vadim Girlin wrote: > > On Sat, 2012-04-28 at 11:42 -0700, Kenneth Graunke wrote: > >> On 04/28/2012 11:20 AM, Vadim Girlin wrote: > >>> According to GLSL 1.30 specification, initial value for all uniforms > >>> wit

Re: [Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-04-28 Thread Kenneth Graunke
On 04/28/2012 12:24 PM, Vadim Girlin wrote: On Sat, 2012-04-28 at 11:42 -0700, Kenneth Graunke wrote: On 04/28/2012 11:20 AM, Vadim Girlin wrote: According to GLSL 1.30 specification, initial value for all uniforms without initializer is 0. Some applications rely on this behaviour, e.g. google

Re: [Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-04-28 Thread Vadim Girlin
On Sat, 2012-04-28 at 11:42 -0700, Kenneth Graunke wrote: > On 04/28/2012 11:20 AM, Vadim Girlin wrote: > > According to GLSL 1.30 specification, initial value for all uniforms > > without initializer is 0. Some applications rely on this behaviour, > > e.g. google's MapGL doesn't set all sampler u

Re: [Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-04-28 Thread Kenneth Graunke
On 04/28/2012 11:20 AM, Vadim Girlin wrote: According to GLSL 1.30 specification, initial value for all uniforms without initializer is 0. Some applications rely on this behaviour, e.g. google's MapGL doesn't set all sampler uniforms. (see https://bugs.freedesktop.org/show_bug.cgi?id=49088 ) S

[Mesa-dev] [PATCH] glsl: initialize samplers mapping with 0

2012-04-28 Thread Vadim Girlin
According to GLSL 1.30 specification, initial value for all uniforms without initializer is 0. Some applications rely on this behaviour, e.g. google's MapGL doesn't set all sampler uniforms. (see https://bugs.freedesktop.org/show_bug.cgi?id=49088 ) Signed-off-by: Vadim Girlin --- Tested with r