Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-11 Thread Timothy Arceri
On Thu, 2015-09-10 at 21:36 -0700, Jason Ekstrand wrote: > On Thu, Sep 10, 2015 at 7:43 PM, Timothy Arceri < > t_arc...@yahoo.com.au> wrote: > > On Tue, 2015-09-08 at 14:14 -0700, Jason Ekstrand wrote: > > > On Mon, Sep 7, 2015 at 3:09 PM, Timothy Arceri < > > > t_arc...@yahoo.com.au > > > > wrote:

Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-10 Thread Jason Ekstrand
On Thu, Sep 10, 2015 at 7:43 PM, Timothy Arceri wrote: > On Tue, 2015-09-08 at 14:14 -0700, Jason Ekstrand wrote: >> On Mon, Sep 7, 2015 at 3:09 PM, Timothy Arceri > > wrote: >> > On Mon, 2015-09-07 at 11:24 -0700, Jason Ekstrand wrote: >> > > On Tue, Sep 1, 2015 at 7:44 PM, Timothy Arceri < >> >

Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-10 Thread Timothy Arceri
On Tue, 2015-09-08 at 14:14 -0700, Jason Ekstrand wrote: > On Mon, Sep 7, 2015 at 3:09 PM, Timothy Arceri > wrote: > > On Mon, 2015-09-07 at 11:24 -0700, Jason Ekstrand wrote: > > > On Tue, Sep 1, 2015 at 7:44 PM, Timothy Arceri < > > > t_arc...@yahoo.com.au> > > > wrote: > > > > This allows the c

Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-08 Thread Jason Ekstrand
On Mon, Sep 7, 2015 at 3:09 PM, Timothy Arceri wrote: > On Mon, 2015-09-07 at 11:24 -0700, Jason Ekstrand wrote: >> On Tue, Sep 1, 2015 at 7:44 PM, Timothy Arceri >> wrote: >> > This allows the correct offset to be easily calculated for indirect >> > indexing when a struct array contains multiple

Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-07 Thread Timothy Arceri
On Tue, 2015-09-08 at 08:09 +1000, Timothy Arceri wrote: > On Mon, 2015-09-07 at 11:24 -0700, Jason Ekstrand wrote: > > On Tue, Sep 1, 2015 at 7:44 PM, Timothy Arceri < > > t_arc...@yahoo.com.au> > > wrote: > > > This allows the correct offset to be easily calculated for > > > indirect > > > indexi

Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-07 Thread Timothy Arceri
On Mon, 2015-09-07 at 11:24 -0700, Jason Ekstrand wrote: > On Tue, Sep 1, 2015 at 7:44 PM, Timothy Arceri > wrote: > > This allows the correct offset to be easily calculated for indirect > > indexing when a struct array contains multiple samplers, or any crazy > > nesting. > > > > The indices for

Re: [Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-07 Thread Jason Ekstrand
On Tue, Sep 1, 2015 at 7:44 PM, Timothy Arceri wrote: > This allows the correct offset to be easily calculated for indirect > indexing when a struct array contains multiple samplers, or any crazy > nesting. > > The indices for the folling struct will now look like this: > Sampler index: 0 Name: s[

[Mesa-dev] [PATCH V3 1/6] glsl: order indices for samplers inside a struct array

2015-09-01 Thread Timothy Arceri
This allows the correct offset to be easily calculated for indirect indexing when a struct array contains multiple samplers, or any crazy nesting. The indices for the folling struct will now look like this: Sampler index: 0 Name: s[0].tex Sampler index: 1 Name: s[1].tex Sampler index: 2 Name: s[0]