diff options
author | Yang Rong <rong.r.yang@intel.com> | 2013-09-09 16:10:08 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-09 16:27:05 +0800 |
commit | fe7e7e661a1359726da18a28210c8eeff9903bdd (patch) | |
tree | 356e7eea61d0251d98d6e1d873a46f5f96281c8d /src/cl_mem.h | |
parent | 85e8c1bc0d00bc6c8f4a2d22858a15c199e4481b (diff) |
Add clEnqueueCopyBufferRect api.
Using enqueue ND range to copy two buffers. Now compile the kernel string, after
load binary ready, should using static binary.
V2: Add a comment for function check_copy_overlap and rename CL_INVALID TO CL_INTERNAL_KERNEL_MAX.
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/cl_mem.h')
-rw-r--r-- | src/cl_mem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cl_mem.h b/src/cl_mem.h index 9a70913c..b9b3c0af 100644 --- a/src/cl_mem.h +++ b/src/cl_mem.h @@ -186,6 +186,10 @@ extern void cl_mem_gl_delete(struct _cl_mem_gl_image *); /* Add one more reference to this object */ extern void cl_mem_add_ref(cl_mem); +/* api clEnqueueCopy buffer rect help function */ +extern cl_int cl_mem_copy_buffer_rect(cl_command_queue, cl_mem, cl_mem, + const size_t *, const size_t *, const size_t *, + size_t, size_t, size_t, size_t); /* Directly map a memory object */ extern void *cl_mem_map(cl_mem); |