Fix clEnqueueMapImage error.
authorYang Rong <rong.r.yang@intel.com>
Mon, 23 Sep 2013 05:16:24 +0000 (13:16 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 26 Sep 2013 00:43:20 +0000 (08:43 +0800)
commit0e3327e642cb33dbdd30f9183deca1ec892093f9
tree175a04842cbae12a74a69f016c436632ae8122dc
parentde83e9baf9a13627e8e70161f3cde37f34b6fca9
Fix clEnqueueMapImage error.

Correct map size calc and remove ptr + offset because has done in _cl_map_mem.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: "Lu, Guanqun" <guanqun.lu@intel.com>
src/cl_api.c