st/clover: Allow double precision operations
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Tue, 2 Jul 2013 08:44:37 +0000 (10:44 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 26 Jul 2013 01:55:56 +0000 (18:55 -0700)
Pass "cl_khr_fp64" preprocessor definition to clang

Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 2c6c1d468824db259896db392601d22383b3d7fe..f3ab11373a1eee5423653c1a0e852749665c3b91 100644 (file)
@@ -175,6 +175,7 @@ namespace {
 
       // clc.h requires that this macro be defined:
       c.getPreprocessorOpts().addMacroDef("cl_clang_storage_class_specifiers");
+      c.getPreprocessorOpts().addMacroDef("cl_khr_fp64");
 
       c.getLangOpts().NoBuiltin = true;
       c.getTargetOpts().Triple = triple;