summaryrefslogtreecommitdiffstats
path: root/make/config/clImplCustomCode.c
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2014-03-02 14:02:25 -0600
committerWade Walker <[email protected]>2014-03-02 14:02:25 -0600
commit806f2902482af7c77c6a25ac3f9e4d4f73d56a54 (patch)
treefc9f1a04cb6a7d369ab51df9e5011dd720e92269 /make/config/clImplCustomCode.c
parenteb06798a7af0da8febbf31abd34e62e7100633aa (diff)
Pass function pointers into clEnqueueMapImage.
These pointers were showing up as uninitialized variables; on inspection they just weren't being passed in from the Java side or assigned on the C side. There are currently no tests of this function, which is how we didn't notice this omission.
Diffstat (limited to 'make/config/clImplCustomCode.c')
-rw-r--r--make/config/clImplCustomCode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/config/clImplCustomCode.c b/make/config/clImplCustomCode.c
index a19cd400..1d640863 100644
--- a/make/config/clImplCustomCode.c
+++ b/make/config/clImplCustomCode.c
@@ -348,11 +348,11 @@ Java_com_jogamp_opencl_llb_impl_CLImpl_clEnqueueMapImage0__JJIJLjava_lang_Object
cl_int status;
typedef int32_t (*imageInfoFunctionType)(cl_mem, uint32_t, size_t, void *, size_t *);
- imageInfoFunctionType clGetImageInfo;
+ imageInfoFunctionType clGetImageInfo = (imageInfoFunctionType)(intptr_t)imageInfoAddress;
typedef void* (*mapInfoFunctionType)(cl_command_queue, cl_mem, uint32_t, uint64_t, const size_t *,
const size_t *, size_t *, size_t *, uint32_t, cl_event *, cl_event *, int32_t *);
- mapInfoFunctionType clEnqueueMapImage;
+ mapInfoFunctionType clEnqueueMapImage = (mapInfoFunctionType)(intptr_t)mapImageAddress;
void * _res;