diff options
author | Yang Rong <rong.r.yang@intel.com> | 2013-09-09 16:10:22 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-13 14:12:16 +0800 |
commit | b70c7ccdf15b080b5fa2a15bdf64da7270f526c4 (patch) | |
tree | ff909c3794a6aac2b1c28154de0aa4eecd698c20 /src/cl_mem.h | |
parent | 1f2ac22b7caf3a2ab833cb2d745d4ec7020e11f7 (diff) |
Implement api clEnqueueCopyImageToBuffer.
Also fix the function cl_mem_kernel_copy_image 3D image error.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/cl_mem.h')
-rw-r--r-- | src/cl_mem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cl_mem.h b/src/cl_mem.h index 530fe79b..0a8c723b 100644 --- a/src/cl_mem.h +++ b/src/cl_mem.h @@ -194,6 +194,12 @@ extern cl_int cl_mem_copy_buffer_rect(cl_command_queue, cl_mem, cl_mem, /* api clEnqueueCopyImage help function */ extern cl_int cl_mem_kernel_copy_image(cl_command_queue, struct _cl_mem_image*, struct _cl_mem_image*, const size_t *, const size_t *, const size_t *); + + +/* api clEnqueueCopyImage help function */ +extern cl_int cl_mem_copy_image_to_buffer(cl_command_queue, struct _cl_mem_image*, cl_mem, + const size_t *, const size_t, const size_t *); + /* Directly map a memory object */ extern void *cl_mem_map(cl_mem); |