Re: [Mesa-dev] [PATCH 3/3] nir/algebraic: Add lowering for ldexp

2016-04-13 Thread Matt Turner
On Wed, Apr 13, 2016 at 12:37 PM, Jason Ekstrand wrote: > The algorithm used is different from both the naieve suggestion from the > GLSL spec and the one used in GLSL IR today. Unfortunately, the GLSL IR > implementation doesn't handle some of the corner cases correctly and Let's change this to

[Mesa-dev] [PATCH 3/3] nir/algebraic: Add lowering for ldexp

2016-04-13 Thread Jason Ekstrand
The algorithm used is different from both the naieve suggestion from the GLSL spec and the one used in GLSL IR today. Unfortunately, the GLSL IR implementation doesn't handle some of the corner cases correctly and neither does a naieve f * 2.0^exp implementation. Assuming that hardware does the s