Re: [Mesa-dev] [PATCH 07/10] nir: add loop unroll support for wrapper loops

2018-07-22 Thread Timothy Arceri
On 22/07/18 19:50, Jason Ekstrand wrote: On Tue, Jul 10, 2018 at 11:49 PM Timothy Arceri > wrote: This adds support for unrolling the classic     do {         // ...     } while (false) that is used to wrap multi-line macros. GLSL IR also wr

Re: [Mesa-dev] [PATCH 07/10] nir: add loop unroll support for wrapper loops

2018-07-22 Thread Timothy Arceri
On 22/07/18 19:50, Jason Ekstrand wrote: On Tue, Jul 10, 2018 at 11:49 PM Timothy Arceri > wrote: This adds support for unrolling the classic     do {         // ...     } while (false) that is used to wrap multi-line macros. GLSL IR also wr

Re: [Mesa-dev] [PATCH 07/10] nir: add loop unroll support for wrapper loops

2018-07-22 Thread Jason Ekstrand
On Tue, Jul 10, 2018 at 11:49 PM Timothy Arceri wrote: > This adds support for unrolling the classic > > do { > // ... > } while (false) > > that is used to wrap multi-line macros. GLSL IR also wraps switch > statements in a loop like this. > > shader-db results IVB: > > total loo

[Mesa-dev] [PATCH 07/10] nir: add loop unroll support for wrapper loops

2018-07-10 Thread Timothy Arceri
This adds support for unrolling the classic do { // ... } while (false) that is used to wrap multi-line macros. GLSL IR also wraps switch statements in a loop like this. shader-db results IVB: total loops in shared programs: 2515 -> 2512 (-0.12%) loops in affected programs: 33 -