Fix map gtt fail when memory object size is too large.
authorYang Rong <rong.r.yang@intel.com>
Tue, 20 May 2014 02:46:19 +0000 (10:46 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 22 May 2014 05:06:45 +0000 (13:06 +0800)
commitde996fa90c26997a9d2ecd22192c146a661161f3
tree0df219ea9a2e668e68d346f934932b3539273705
parenta13372ca0116861983a64868d9165dd7b7119e51
Fix map gtt fail when memory object size is too large.

After max allocate size is changed to 256M, the large memory object would map gtt
fail  in some system. So when image size is large then 128M, disable tiling, and
used normal map. But in function clEnqueueMapBuffer/Image, may still fail because
unsync map.

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_enqueue.c
src/cl_enqueue.h
src/cl_mem.c
src/cl_mem.h