Re: [Mesa-dev] [PATCH 3/6] nir: add variant of lower_io_to_scalar to be called earlier

2017-10-10 Thread Eric Anholt
Timothy Arceri writes: > On 10/10/17 09:31, Timothy Arceri wrote: >> On 10/10/17 09:06, Eric Anholt wrote: >>> Timothy Arceri writes: >>> This is intended to be called before nir_lower_io() so that we can do some linking optimisations with the results. It can also be used with dri

Re: [Mesa-dev] [PATCH 3/6] nir: add variant of lower_io_to_scalar to be called earlier

2017-10-09 Thread Timothy Arceri
On 10/10/17 09:31, Timothy Arceri wrote: On 10/10/17 09:06, Eric Anholt wrote: Timothy Arceri writes: This is intended to be called before nir_lower_io() so that we can do some linking optimisations with the results. It can also be used with drivers that don't use nir_lower_io() at all such

Re: [Mesa-dev] [PATCH 3/6] nir: add variant of lower_io_to_scalar to be called earlier

2017-10-09 Thread Timothy Arceri
On 10/10/17 09:06, Eric Anholt wrote: Timothy Arceri writes: This is intended to be called before nir_lower_io() so that we can do some linking optimisations with the results. It can also be used with drivers that don't use nir_lower_io() at all such as RADV. +static void +lower_load_to_sca

Re: [Mesa-dev] [PATCH 3/6] nir: add variant of lower_io_to_scalar to be called earlier

2017-10-09 Thread Eric Anholt
Timothy Arceri writes: > This is intended to be called before nir_lower_io() so that we > can do some linking optimisations with the results. It can also > be used with drivers that don't use nir_lower_io() at all such > as RADV. > +static void > +lower_load_to_scalar_early(nir_builder *b, nir_i

[Mesa-dev] [PATCH 3/6] nir: add variant of lower_io_to_scalar to be called earlier

2017-10-05 Thread Timothy Arceri
This is intended to be called before nir_lower_io() so that we can do some linking optimisations with the results. It can also be used with drivers that don't use nir_lower_io() at all such as RADV. --- src/compiler/nir/nir.h| 2 + src/compiler/nir/nir_lower_io_to_scalar.c |