diff options
author | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2016-08-28 16:42:34 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-09-10 15:48:54 -0700 |
commit | cfa914a1b4e20e7ef416171f5212f21e8224befc (patch) | |
tree | 78245d19ba7fdbd80b18a23d324b8dce528d0858 /src/gallium/state_trackers/clover | |
parent | a8c0c7301cccd6bba1842ae8aa901cd45d9d5ffd (diff) | |
download | external_mesa3d-cfa914a1b4e20e7ef416171f5212f21e8224befc.zip external_mesa3d-cfa914a1b4e20e7ef416171f5212f21e8224befc.tar.gz external_mesa3d-cfa914a1b4e20e7ef416171f5212f21e8224befc.tar.bz2 |
st/clover: Define __OPENCL_VERSION__ on the device side
This is required by the OpenCL standard.
Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Vedran Miletić <vedran@miletic.net>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/invocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 5490d72..b5e8b52 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -153,6 +153,9 @@ namespace { // Add libclc include c.getPreprocessorOpts().Includes.push_back("clc/clc.h"); + // Add definition for the OpenCL version + c.getPreprocessorOpts().addMacroDef("__OPENCL_VERSION__=110"); + // clc.h requires that this macro be defined: c.getPreprocessorOpts().addMacroDef("cl_clang_storage_class_specifiers"); c.getPreprocessorOpts().addRemappedFile( |