summaryrefslogtreecommitdiff
path: root/utests/image_from_buffer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-11-06utests: fix image_from_buffer bugsPan Xiuli1-8/+9
Fixed 2 bugs: 1.This test case uses usrptr, so we should never free the orginal buffer space, otherwise undefined behavior would happen: adding or losing one header file causing data in front broken, NDRangeKernel fail etc. 2.The utest need to test when to free image from buffer and the buffer, but the utest helper function will released it again and causes libc made some warnings. We just make the global variable to NULL to avoid these questions. These will fix the utests image_from_buffer broken. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Luo Xionghu <xionghu.luo@intel.com>
2015-10-20use sampler to copy image_from_buffer to another image for verification.Luo Xionghu1-0/+21
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
2015-09-22add utest for creating 2d image from buffer.Luo Xionghu1-0/+82
v2: check cl_khr_image2d_from_buffer support first; use CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT to allocate memory. v3: fix clGetDeviceInfo use. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Guo, Yejun <yejun.guo@intel.com>