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

2018-08-28 Thread Timothy Arceri
On 29/08/18 03:59, Jason Ekstrand wrote: On Mon, Aug 27, 2018 at 4:10 AM Timothy Arceri > wrote: In GLSL IR we cheat with switch statements and simply convert them into loops with a single iteration. This allowed us to make use of the existing jump instr

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

2018-08-28 Thread Jason Ekstrand
On Mon, Aug 27, 2018 at 4:10 AM Timothy Arceri wrote: > In GLSL IR we cheat with switch statements and simply convert them > into loops with a single iteration. This allowed us to make use of > the existing jump instruction handling provided by the loop handing > code, it also allows dead code to

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

2018-08-27 Thread Timothy Arceri
In GLSL IR we cheat with switch statements and simply convert them into loops with a single iteration. This allowed us to make use of the existing jump instruction handling provided by the loop handing code, it also allows dead code to be cleaned up once we have wrapped the code in a loop. However