summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-06-21 23:28:46 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-06-24 12:31:03 +0200
commit05e741c6d6df0be159bd14e705fa1a06e2bcf4b7 (patch)
tree83aeedce76f8c37ba79fac7bd8878548046f9221 /src/gallium/drivers/radeonsi/si_pipe.c
parent0e1fefa72239562a9dcc2bab785f8d5a501c1b95 (diff)
downloadexternal_mesa3d-05e741c6d6df0be159bd14e705fa1a06e2bcf4b7.zip
external_mesa3d-05e741c6d6df0be159bd14e705fa1a06e2bcf4b7.tar.gz
external_mesa3d-05e741c6d6df0be159bd14e705fa1a06e2bcf4b7.tar.bz2
radeonsi: set LLVM denormal flags
- make sure FP32 denormals will stay disabled in LLVM in the future (the current default is disabled) - tell LLVM that FP64 denormals are enabled Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 65c0daa..0de25b9 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -32,6 +32,9 @@
#include "util/u_suballoc.h"
#include "vl/vl_decoder.h"
+#define SI_LLVM_DEFAULT_FEATURES \
+ "+DumpCode,+vgpr-spilling,-fp32-denormals,+fp64-denormals"
+
/*
* pipe_context
*/
@@ -262,9 +265,9 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
r600_get_llvm_processor_name(sscreen->b.family),
#if HAVE_LLVM >= 0x0308
sscreen->b.debug_flags & DBG_SI_SCHED ?
- "+DumpCode,+vgpr-spilling,+si-scheduler" :
+ SI_LLVM_DEFAULT_FEATURES ",+si-scheduler" :
#endif
- "+DumpCode,+vgpr-spilling",
+ SI_LLVM_DEFAULT_FEATURES,
LLVMCodeGenLevelDefault,
LLVMRelocDefault,
LLVMCodeModelDefault);