summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJunyan He <junyan.he@intel.com>2016-04-27 16:00:48 +0800
committerJunyan He <junyan.he@intel.com>2016-04-27 16:00:48 +0800
commit8c7d57dad366c0ccedb2c1ace1bc61836b99b2bf (patch)
treea1162f4f784c8ce301290f1e8d02b7717b66d951 /include
parent761edcf7c7a65ca2d36820da36804204291479af (diff)
add info
Diffstat (limited to 'include')
-rw-r--r--include/cl_mem.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/cl_mem.h b/include/cl_mem.h
index fa687f1c..3cc985dc 100644
--- a/include/cl_mem.h
+++ b/include/cl_mem.h
@@ -22,13 +22,15 @@
#include <assert.h>
#include "CL/cl.h"
-typedef struct _cl_mapped_ptr {
+typedef struct _cl_mapped_ptr_info {
void* ptr;
size_t offset;
size_t size;
+ cl_map_flags flags;
size_t origin[3]; /* mapped origin */
size_t region[3]; /* mapped region */
-} cl_mapped_ptr;
+} _cl_mapped_ptr_info;
+typedef _cl_mapped_ptr_info* cl_mapped_ptr_info;
typedef struct _cl_mem_dstr_cb {
struct _cl_mem_dstr_cb * next;
@@ -45,7 +47,7 @@ typedef struct _cl_mem {
cl_context ctx; /* Context it belongs to */
cl_mem_flags flags; /* Flags specified at the creation time */
void* host_ptr; /* Pointer of the host mem specified by CL_MEM_USE_HOST_PTR */
- cl_mapped_ptr* mapped_ptr; /* Store the mapped addresses and size by caller. */
+ cl_mapped_ptr_info mapped_ptr; /* Store the mapped addresses and size by caller. */
int mapped_ptr_sz; /* The array size of mapped_ptr. */
int map_ref; /* The mapped count. */
cl_mem_dstr_cb *dstr_cb; /* The destroy callback. */