Add clEnqueueMapBuffer and clEnqueueMapImage non-blocking map support.
authorYang Rong <rong.r.yang@intel.com>
Fri, 23 Aug 2013 03:04:21 +0000 (11:04 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 30 Aug 2013 08:32:06 +0000 (16:32 +0800)
commit0237652c579123436e5f48514f733e36c8b5264a
treea98e04a5c133deb44e00279b87261c6b4fbde1d6
parentd47f27ae3ef94671a716d2d4d3c34b77e3b45559
Add clEnqueueMapBuffer and clEnqueueMapImage non-blocking map support.

There is a unsync map function drm_intel_gem_bo_map_unsynchronized in drm, that can
be used to do non-blocking map. But this function only map gtt, so force to use map
gtt for all clEnqueueMapBuffer and clEnqueueMapImage.

V2: refined comment, and using map_gtt_unsync in clEnqueueMapBuffer/Image
    instead of map_auto to avoid confuse.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_api.c
src/cl_driver.h
src/cl_driver_defs.c
src/cl_enqueue.c
src/cl_mem.c
src/cl_mem.h
src/intel/intel_driver.c