[Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Timothy Arceri
--- src/glsl/link_uniform_initializers.cpp | 51 -- src/glsl/link_uniforms.cpp | 28 +++ 2 files changed, 52 insertions(+), 27 deletions(-) diff --git a/src/glsl/link_uniform_initializers.cpp b/src/glsl/link_uniform_initializers.cpp

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Ilia Mirkin
On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri t_arc...@yahoo.com.au wrote: --- src/glsl/link_uniform_initializers.cpp | 51 -- src/glsl/link_uniforms.cpp | 28 +++ 2 files changed, 52 insertions(+), 27 deletions(-) diff --git

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 19:46 -0400, Ilia Mirkin wrote: On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri t_arc...@yahoo.com.au wrote: --- src/glsl/link_uniform_initializers.cpp | 51 -- src/glsl/link_uniforms.cpp | 28 +++ 2

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Ilia Mirkin
Perhaps I'm blind, but I don't see where that array var is used beyond just being incremented. Mind pointing it out? On Mar 21, 2015 11:31 PM, Timothy Arceri t_arc...@yahoo.com.au wrote: On Sat, 2015-03-21 at 19:46 -0400, Ilia Mirkin wrote: On Sat, Mar 21, 2015 at 5:49 AM, Timothy Arceri

Re: [Mesa-dev] [RFC PATCH 07/12] glsl: Add support for linking uniform arrays of arrays

2015-03-21 Thread Timothy Arceri
On Sat, 2015-03-21 at 23:35 -0400, Ilia Mirkin wrote: Perhaps I'm blind, but I don't see where that array var is used beyond just being incremented. Mind pointing it out? No problem. unsigned int length = MIN2(val-type-length, (storage-array_elements - *array_elements)); On Mar 21, 2015