i965: Lower DFRACEXP/DLDEXP
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 15 Oct 2014 14:41:02 +0000 (17:41 +0300)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:02 +0000 (11:25 +0200)
v2 (Connor): rebase on master which moved this to brw_link.cpp
v3 (Sam):
- Only enable DFREXP_DLDEXP_TO_ARITH in process_glsl_ir(). This is
used for doubles. Single floating point op is lowered by NIR.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_link.cpp

index 516316e26ae5883658e28982ef3db6ce667472b9..c169658e33799ea9573e9e7ffc047fc73c9581c7 100644 (file)
@@ -110,6 +110,7 @@ process_glsl_ir(gl_shader_stage stage,
                       SUB_TO_ADD_NEG |
                       EXP_TO_EXP2 |
                       LOG_TO_LOG2 |
+                      DFREXP_DLDEXP_TO_ARITH |
                       CARRY_TO_ARITH |
                       BORROW_TO_ARITH);