Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com>
Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
|
|
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>
|