aboutsummaryrefslogtreecommitdiff
path: root/src/core/icd.cpp
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2015-02-12 11:00:41 +0000
committerGil Pitney <gil.pitney@linaro.org>2015-02-12 11:00:41 +0000
commitb5b21023bc7431740d3240aaf60858110b1fbb20 (patch)
treea658297ed2fb69aad50b8f19cccc3eba2a2c65e6 /src/core/icd.cpp
parent4c15971a8f7bd8c143533bf173a0483b86697fc4 (diff)
ICD: Update with entries matching OpenCL 1.2 dispatch table
This initial commit has the new 1.2 entries commented out, to be added one at a time as those new APIs are added. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'src/core/icd.cpp')
-rw-r--r--src/core/icd.cpp35
1 files changed, 32 insertions, 3 deletions
diff --git a/src/core/icd.cpp b/src/core/icd.cpp
index 2c62035..d79ef1c 100644
--- a/src/core/icd.cpp
+++ b/src/core/icd.cpp
@@ -29,6 +29,7 @@
#include "platform.h"
#include "icd.h"
+// TODO: Ensure this matches OCL 1.2 disptach table:
void * dispatch_table[] =
{
(void*) clGetPlatformIDs,
@@ -120,9 +121,37 @@ void * dispatch_table[] =
(void*) clEnqueueReadBufferRect,
(void*) clEnqueueWriteBufferRect,
(void*) clEnqueueCopyBufferRect,
- (void*) 0, //clCreateSubDevicesEXT,
- (void*) 0, //clRetainDeviceEXT,
- (void*) 0, //clReleaseDeviceEXT
+
+ (void *) 0, //clCreateEventFromGLsyncKHR;
+
+ (void *) 0, //clCreateSubDevices;
+ (void *) 0, //clRetainDevice;
+ (void *) 0, //clReleaseDevice;
+ (void *) 0, // clCreateImage,
+ (void *) 0, // clCreateProgramWithBuiltInKernels;
+ (void *) 0, // clCompileProgram;
+ (void *) 0, // clLinkProgram;
+ (void *) 0, // clUnloadPlatformCompiler;
+ (void *) 0, // clGetKernelArgInfo;
+ (void *) 0, // clEnqueueFillBuffer;
+ (void *) 0, // clEnqueueFillImage;
+ (void *) 0, // clEnqueueMigrateMemObjects;
+ (void *) 0, // clEnqueueMarkerWithWaitList;
+ (void *) 0, // clEnqueueBarrierWithWaitList;
+ (void *) 0, // clGetExtensionFunctionAddressForPlatform;
+ (void *) 0, // clCreateFromGLTexture;
+
+ (void *) 0, // clGetDeviceIDsFromD3D11KHR;
+ (void *) 0, // clCreateFromD3D11BufferKHR;
+ (void *) 0, // clCreateFromD3D11Texture2DKHR;
+ (void *) 0, // clCreateFromD3D11Texture3DKHR;
+ (void *) 0, // clCreateFromDX9MediaSurfaceKHR;
+ (void *) 0, // clEnqueueAcquireD3D11ObjectsKHR;
+ (void *) 0, // clEnqueueReleaseD3D11ObjectsKHR;
+
+ (void *) 0, // clGetDeviceIDsFromDX9MediaAdapterKHR;
+ (void *) 0, // clEnqueueAcquireDX9MediaSurfacesKHR;
+ (void *) 0, // clEnqueueReleaseDX9MediaSurfacesKHR;
};