Re: [Mesa-dev] [PATCH V4 6/6] nir: support indirect indexing samplers in struct arrays

2015-09-15 Thread Timothy Arceri
On Tue, 2015-09-15 at 14:01 -0700, Jason Ekstrand wrote: > On Tue, Sep 15, 2015 at 11:52 AM, Jason Ekstrand < > ja...@jlekstrand.net> wrote: > > On Tue, Sep 15, 2015 at 12:51 AM, Timothy Arceri < > > t_arc...@yahoo.com.au> wrote: > > > As a bonus we get indirect support for arrays of arrays for fre

Re: [Mesa-dev] [PATCH V4 6/6] nir: support indirect indexing samplers in struct arrays

2015-09-15 Thread Jason Ekstrand
On Tue, Sep 15, 2015 at 11:52 AM, Jason Ekstrand wrote: > On Tue, Sep 15, 2015 at 12:51 AM, Timothy Arceri > wrote: >> As a bonus we get indirect support for arrays of arrays for free. >> >> V4: fix struct member location caclulation, use nir_ssa_def rather than >> nir_src for the indirect as su

Re: [Mesa-dev] [PATCH V4 6/6] nir: support indirect indexing samplers in struct arrays

2015-09-15 Thread Jason Ekstrand
On Tue, Sep 15, 2015 at 12:51 AM, Timothy Arceri wrote: > As a bonus we get indirect support for arrays of arrays for free. > > V4: fix struct member location caclulation, use nir_ssa_def rather than > nir_src for the indirect as suggested by Jason > > V3: Use nir_instr_rewrite_src() with empty sr

[Mesa-dev] [PATCH V4 6/6] nir: support indirect indexing samplers in struct arrays

2015-09-15 Thread Timothy Arceri
As a bonus we get indirect support for arrays of arrays for free. V4: fix struct member location caclulation, use nir_ssa_def rather than nir_src for the indirect as suggested by Jason V3: Use nir_instr_rewrite_src() with empty src rather then clearing the use_link list directly for the old indir