Mesa (10.0): mesa: Namespace qualify fma to override ambiguity with fma from math.h
Carl Worth
cworth at kemper.freedesktop.org
Thu Jan 9 20:57:13 UTC 2014
Module: Mesa
Branch: 10.0
Commit: 38235d292382ddf0c02369f407bb151362dafbd2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=38235d292382ddf0c02369f407bb151362dafbd2
Author: Thomas Sondergaard <ts at medical-insight.com>
Date: Tue Jan 7 13:31:00 2014 -0700
mesa: Namespace qualify fma to override ambiguity with fma from math.h
MSVC 2013 version of math.h includes an fma() function.
Cc: "10.0" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit e8ff08edd823ddf6b0e07ef84d2ba8afc3abbc34)
---
src/glsl/builtin_functions.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index 8cb75e5..22f2d6d 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -3864,7 +3864,7 @@ builtin_builder::_fma(const glsl_type *type)
ir_variable *c = in_var(type, "c");
MAKE_SIG(type, gpu_shader5, 3, a, b, c);
- body.emit(ret(fma(a, b, c)));
+ body.emit(ret(ir_builder::fma(a, b, c)));
return sig;
}
More information about the mesa-commit
mailing list