Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Jason Ekstrand
On Sat, Nov 14, 2015 at 9:30 AM, Jason Ekstrand wrote: > On Sat, Nov 14, 2015 at 9:25 AM, Connor Abbott wrote: >> On Sat, Nov 14, 2015 at 11:55 AM, Rob Clark wrote: >>> well, clone just needs to know the number of elements, so this is the >>> simplest possible solution.. not against tracking the

Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Jason Ekstrand
On Sat, Nov 14, 2015 at 9:25 AM, Connor Abbott wrote: > On Sat, Nov 14, 2015 at 11:55 AM, Rob Clark wrote: >> well, clone just needs to know the number of elements, so this is the >> simplest possible solution.. not against tracking the type as well, if >> that is needed elsewhere.. or if there w

Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Connor Abbott
On Sat, Nov 14, 2015 at 11:55 AM, Rob Clark wrote: > well, clone just needs to know the number of elements, so this is the > simplest possible solution.. not against tracking the type as well, if > that is needed elsewhere.. or if there was a helper to map type to # > of elements, I suppose, but f

Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Connor Abbott
On Sat, Nov 14, 2015 at 11:55 AM, Jason Ekstrand wrote: > On Sat, Nov 14, 2015 at 8:19 AM, Connor Abbott wrote: >> I think it would be better if we kept track of the type of the >> constant instead. That would also allow us to simplify the constant >> construction code in, err, something else...

Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Rob Clark
well, clone just needs to know the number of elements, so this is the simplest possible solution.. not against tracking the type as well, if that is needed elsewhere.. or if there was a helper to map type to # of elements, I suppose, but for now this makes clone possible. BR, -R On Sat, Nov 14, 2

Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Jason Ekstrand
On Sat, Nov 14, 2015 at 8:19 AM, Connor Abbott wrote: > I think it would be better if we kept track of the type of the > constant instead. That would also allow us to simplify the constant > construction code in, err, something else... We do keep track of the type. It's in the variable. Do you

Re: [Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-14 Thread Connor Abbott
I think it would be better if we kept track of the type of the constant instead. That would also allow us to simplify the constant construction code in, err, something else... On Wed, Nov 11, 2015 at 8:23 PM, Jason Ekstrand wrote: > From: Rob Clark > > This will simplify things somewhat in clone

[Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-11 Thread Jason Ekstrand
From: Rob Clark This will simplify things somewhat in clone. Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- src/glsl/nir/glsl_to_nir.cpp | 5 + src/glsl/nir/nir.h | 5 + 2 files changed, 10 insertions(+) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/gls