nir/algebraic: Add lowering for ldexp
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 25 Mar 2016 19:12:38 +0000 (12:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Apr 2016 22:44:19 +0000 (15:44 -0700)
commit4455bfa9a0cc53a3c7e3c171b022cbe6d6dcdff8
tree1ff121fe95cd27affd8d148dfe222b9a5f7be607
parent765dd6534937e125b95c7998862b1a4ec76a22d8
nir/algebraic: Add lowering for ldexp

The algorithm used is different from both the naive suggestion from the
GLSL spec and the one used in GLSL IR today.  Unfortunately, the GLSL IR
implementation that we have today doesn't handle denormals (for those that
care) or the case where the float source is +-inf.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_opt_algebraic.py