summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-10-28 13:10:20 +0200
committerTor Lillqvist <tml@collabora.com>2014-10-28 13:10:20 +0200
commit726ff5d2e87a918621aa3c072cdf8f23022ac614 (patch)
tree4e515f70d03880bb23a651a7363967f5c64636cc /sc/source/core/opencl
parent2435dfef425adf256c2655731dc37dea819628db (diff)
Bin unused OPENCLWRAPPER_CL_MAP_WRITE_FLAG
Change-Id: I004836b811ddac5a62215507e280e460ad50e8fa
Diffstat (limited to 'sc/source/core/opencl')
-rw-r--r--sc/source/core/opencl/openclwrapper.hxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx
index b9e0edfe4e27..538bec1fcd36 100644
--- a/sc/source/core/opencl/openclwrapper.hxx
+++ b/sc/source/core/opencl/openclwrapper.hxx
@@ -23,20 +23,6 @@
#include "clcc/clew.h"
-// CL_MAP_WRITE_INVALIDATE_REGION is new in OpenCL 1.2.
-
-// When compiling against an older OpenCL, use CL_MAP_WRITE.
-
-// FIXME: But what if this code has been compiled against OpenCL 1.2
-// headers but then runs against an OpenCL 1.1 implementation?
-// Probably the code should check at run-time the version of the
-// OpenCL implementation and choose which flag to use based on that.
-#ifdef CL_MAP_WRITE_INVALIDATE_REGION
-#define OPENCLWRAPPER_CL_MAP_WRITE_FLAG CL_MAP_WRITE_INVALIDATE_REGION
-#else
-#define OPENCLWRAPPER_CL_MAP_WRITE_FLAG CL_MAP_WRITE
-#endif
-
#define MaxTextExtent 4096
//support AMD opencl
#define CL_QUEUE_THREAD_HANDLE_AMD 0x403E