diff options
author | Homer Hsing <homer.xing@intel.com> | 2013-04-22 09:35:00 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-22 18:04:01 +0800 |
commit | 2dbfe92a7277e3d427a5ea3031feb65bb3570d9e (patch) | |
tree | 6a29f662c27ca1c57fa628ece52b9f4bfc8e8970 /include/CL | |
parent | 68a5b7477a11630041451636f68ee9a6bb44fd31 (diff) | |
download | beignet-2dbfe92a7277e3d427a5ea3031feb65bb3570d9e.tar.gz |
Add clIntelMapBufferGTT, clIntelUnmapBufferGTT, cl_mem_map_gtt and cl_mem_unmap_gtt
cl_mem_map_gtt calls cl_buffer_map_gtt.
cl_mem_unmap_gtt calls cl_buffer_unmap_gtt.
clIntelMapBufferGTT is a one to one mapping of drm_intel_gem_bo_map_gtt.
clIntelUnmapBufferGTT is a one to one mapping of drm_intel_gem_bo_unmap_gtt.
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'include/CL')
-rw-r--r-- | include/CL/cl_intel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/CL/cl_intel.h b/include/CL/cl_intel.h index 680f9480..ff1860a6 100644 --- a/include/CL/cl_intel.h +++ b/include/CL/cl_intel.h @@ -40,6 +40,14 @@ clIntelMapBuffer(cl_mem, cl_int*); extern CL_API_ENTRY cl_int CL_API_CALL clIntelUnmapBuffer(cl_mem); +/* 1 to 1 mapping of drm_intel_gem_bo_map_gtt */ +extern CL_API_ENTRY void* CL_API_CALL +clIntelMapBufferGTT(cl_mem, cl_int*); + +/* 1 to 1 mapping of drm_intel_gem_bo_unmap_gtt */ +extern CL_API_ENTRY cl_int CL_API_CALL +clIntelUnmapBufferGTT(cl_mem); + /* Pin /Unpin the buffer in GPU memory (must be root) */ extern CL_API_ENTRY cl_int CL_API_CALL clIntelPinBuffer(cl_mem); |