diff options
author | Michael Bien <[email protected]> | 2010-06-21 20:41:27 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-06-21 20:41:27 +0200 |
commit | fc51fd6a3ead949fb2a6145e785bc97f57d71150 (patch) | |
tree | f233522dfb04576714697e0716abf3a94f7e0d4c /resources/cl-impl.cfg | |
parent | 4b96c9539e7b31bbfd5b349d16b51dd5eb556707 (diff) |
switched to dynamic linking. All custom code functions must be called via funciton pointers since this point.
Diffstat (limited to 'resources/cl-impl.cfg')
-rw-r--r-- | resources/cl-impl.cfg | 64 |
1 files changed, 36 insertions, 28 deletions
diff --git a/resources/cl-impl.cfg b/resources/cl-impl.cfg index 58c550f5..f42b814c 100644 --- a/resources/cl-impl.cfg +++ b/resources/cl-impl.cfg @@ -21,29 +21,29 @@ GetProcAddressTableExpr addressTable ProcAddressNameExpr $UpperCase(arg) #dynamic binding for OpenGL specific functions... -ForceProcAddressGen clGetGLContextInfoKHR -ForceProcAddressGen clCreateFromGLBuffer -ForceProcAddressGen clCreateFromGLRenderbuffer -ForceProcAddressGen clCreateFromGLTexture2D -ForceProcAddressGen clCreateFromGLTexture3D -ForceProcAddressGen clEnqueueAcquireGLObjects -ForceProcAddressGen clEnqueueReleaseGLObjects -ForceProcAddressGen clGetGLObjectInfo -ForceProcAddressGen clGetGLTextureInfo -ForceProcAddressGen clCreateEventFromGLsyncKHR -ForceProcAddressGen clIcdGetPlatformIDsKHR -ForceProcAddressGen clCreateSubBuffer -ForceProcAddressGen clCreateSubDevicesEXT -ForceProcAddressGen clCreateUserEvent -ForceProcAddressGen clEnqueueCopyBufferRect -ForceProcAddressGen clEnqueueReadBufferRect -ForceProcAddressGen clEnqueueWriteBufferRect -ForceProcAddressGen clReleaseDeviceEXT -ForceProcAddressGen clRetainDeviceEXT -ForceProcAddressGen clSetUserEventStatus +#ForceProcAddressGen clGetGLContextInfoKHR +#ForceProcAddressGen clCreateFromGLBuffer +#ForceProcAddressGen clCreateFromGLRenderbuffer +#ForceProcAddressGen clCreateFromGLTexture2D +#ForceProcAddressGen clCreateFromGLTexture3D +#ForceProcAddressGen clEnqueueAcquireGLObjects +#ForceProcAddressGen clEnqueueReleaseGLObjects +#ForceProcAddressGen clGetGLObjectInfo +#ForceProcAddressGen clGetGLTextureInfo +#ForceProcAddressGen clCreateEventFromGLsyncKHR +#ForceProcAddressGen clIcdGetPlatformIDsKHR +#ForceProcAddressGen clCreateSubBuffer +#ForceProcAddressGen clCreateSubDevicesEXT +#ForceProcAddressGen clCreateUserEvent +#ForceProcAddressGen clEnqueueCopyBufferRect +#ForceProcAddressGen clEnqueueReadBufferRect +#ForceProcAddressGen clEnqueueWriteBufferRect +#ForceProcAddressGen clReleaseDeviceEXT +#ForceProcAddressGen clRetainDeviceEXT +#ForceProcAddressGen clSetUserEventStatus #...or force all -#ForceProcAddressGen __ALL__ +ForceProcAddressGen __ALL__ Unignore clGetExtensionFunctionAddress RenameJavaMethod clGetExtensionFunctionAddress clGetExtensionFunctionAddressImpl @@ -57,21 +57,29 @@ CustomCCode #include <GL3/gl3.h> CustomCCode #include <inttypes.h> # implement manually via custom code -Ignore clCreateContext -Ignore clCreateContextFromType -Ignore clBuildProgram -Ignore clEnqueueNativeKernel -Ignore clReleaseContext +Ignore clCreateContext +ForceProcAddressGen clCreateContext + +Ignore clCreateContextFromType +ForceProcAddressGen clCreateContextFromType + +Ignore clBuildProgram +ForceProcAddressGen clBuildProgram + +Ignore clEnqueueNativeKernel +ForceProcAddressGen clEnqueueNativeKernel + +Ignore clReleaseContext +ForceProcAddressGen clReleaseContext #take buffer capacity from input param 5 ReturnValueCapacity clEnqueueMapBuffer {5} #this one is more complicated, we have to calculate the capacity with custom code ManuallyImplement clEnqueueMapImage +ForceProcAddressGen clEnqueueMapImage #include custom code IncludeAs CustomJavaCode CLAbstractImpl clImplCustomCode.java IncludeAs CustomCCode clImplCustomCode.c -#JavaEpilogue clCreateKernelsInProgram if(kernels!=null && CPU.is32Bit() && kernels.lenght > 1) { convert32To64(kernels); } - |