Re: [Mesa-dev] [PATCH 2/2] nir: Lower ldexp to arithmetic.

2016-01-20 Thread Kenneth Graunke
On Tuesday, January 19, 2016 10:14:18 PM PST Kenneth Graunke wrote: > This is a port of Matt's GLSL IR lowering pass to NIR. It's required > because we translate SPIR-V directly to NIR, bypassing GLSL IR. > > I haven't introduced a lower_ldexp flag, as I believe all current NIR > consumers would

Re: [Mesa-dev] [PATCH 2/2] nir: Lower ldexp to arithmetic.

2016-01-20 Thread Kenneth Graunke
On Tuesday, January 19, 2016 10:14:18 PM PST Kenneth Graunke wrote: > This is a port of Matt's GLSL IR lowering pass to NIR. It's required > because we translate SPIR-V directly to NIR, bypassing GLSL IR. > > I haven't introduced a lower_ldexp flag, as I believe all current NIR > consumers would

Re: [Mesa-dev] [PATCH 2/2] nir: Lower ldexp to arithmetic.

2016-01-20 Thread Ian Romanick
On 01/19/2016 10:14 PM, Kenneth Graunke wrote: > This is a port of Matt's GLSL IR lowering pass to NIR. It's required > because we translate SPIR-V directly to NIR, bypassing GLSL IR. > > I haven't introduced a lower_ldexp flag, as I believe all current NIR > consumers would set the flag. i965 w

[Mesa-dev] [PATCH 2/2] nir: Lower ldexp to arithmetic.

2016-01-19 Thread Kenneth Graunke
This is a port of Matt's GLSL IR lowering pass to NIR. It's required because we translate SPIR-V directly to NIR, bypassing GLSL IR. I haven't introduced a lower_ldexp flag, as I believe all current NIR consumers would set the flag. i965 wants this, vc4 doesn't implement this feature, and st_gls