Re: [Mesa-dev] [PATCH v4 6/7] nir: add loop unroll support for wrapper loops

2018-08-29 Thread Ian Romanick
On 08/27/2018 02:08 AM, 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. Yes! This has been several items down on my to-

Re: [Mesa-dev] [PATCH v4 6/7] nir: add loop unroll support for wrapper loops

2018-08-28 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Aug 27, 2018 at 4:09 AM 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-

[Mesa-dev] [PATCH v4 6/7] nir: add loop unroll support for wrapper loops

2018-08-27 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 -