From 81a156d099b5c224d4a528b66a80e25626ed65bc Mon Sep 17 00:00:00 2001 From: Niels Ole Salscheider Date: Tue, 2 Jul 2013 10:44:37 +0200 Subject: [PATCH] st/clover: Allow double precision operations Pass "cl_khr_fp64" preprocessor definition to clang Signed-off-by: Niels Ole Salscheider Reviewed-by: Tom Stellard --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 2c6c1d46882..f3ab11373a1 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -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; -- 2.30.2