[Mesa-dev] [PATCH] radv/ac: set no signed zero fp math on radv
Dave Airlie
airlied at gmail.com
Sun Apr 23 19:15:56 UTC 2017
From: Dave Airlie <airlied at redhat.com>
This is taken from radeonsi, and looks it should enable
output mods in llvm now.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/common/ac_nir_to_llvm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 4d2e469..36aa5e8 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -287,6 +287,9 @@ create_llvm_function(LLVMContextRef ctx, LLVMModuleRef module,
}
}
+ LLVMAddTargetDependentFunctionAttr(main_function,
+ "no-signed-zeros-fp-math",
+ "true");
if (unsafe_math) {
/* These were copied from some LLVM test. */
LLVMAddTargetDependentFunctionAttr(main_function,
--
2.7.4
More information about the mesa-dev
mailing list