From 2dbfe92a7277e3d427a5ea3031feb65bb3570d9e Mon Sep 17 00:00:00 2001 From: Homer Hsing Date: Mon, 22 Apr 2013 09:35:00 +0800 Subject: 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 Reviewed-by: Zhigang Gong --- include/CL/cl_intel.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/CL') 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); -- cgit v1.2.1