On 07/11/17 09:25 AM, Samuel Pitoiset wrote:
> The unsafe algebra codepath has been redefined a lot, and
> setUnsafeAlgebra() has been replaced with setFast().
> 
> Signed-off-by: Samuel Pitoiset <[email protected]>
> ---
>  src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp 
> b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> index d988910a7e..1319407290 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> @@ -830,7 +830,11 @@ lp_create_builder(LLVMContextRef ctx, enum lp_float_mode 
> float_mode)
>        llvm::unwrap(builder)->setFastMathFlags(flags);
>        break;
>     case LP_FLOAT_MODE_UNSAFE_FP_MATH:
> +#if HAVE_LLVM >= 0x0600
> +      flags.setFast();
> +#else
>        flags.setUnsafeAlgebra();
> +#endif
>        llvm::unwrap(builder)->setFastMathFlags(flags);
>        break;
>     }
> 

Reviewed-and-Tested-by: Michel Dänzer <[email protected]>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to