summaryrefslogtreecommitdiff
path: root/utests/compiler_copy_image.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-04-22standalone utest for unified OpenCL implementation.Luo Xionghu1-4/+4
use the variable NOT_BUILD_STAND_ALONE_UTEST to control the build type: for beignet build, set it to 1; for stand alone build, do NOT need set it. remove all clXXXIntel extension call and such kind of tests since we intend to provide the unit test independently for viariant OpenCL implementation; replace the clMapBufferIntel/clMapBufferGTTIntel with clEnqueueMapBuffer/clEnqueueMapImage; link the utest binary to libOpenCL to follow the icd standard; remove the useless env in setenv.sh since we need make install the package after build. v2: fix the indent error; use function pointer for extesion case like vme and libva since we link to libOpenCL; v3: builtin_kernel_block_motion_estimate_intel released kernel twice; v4: find OpenCL library for standalone utest and link to libcl for not standalone utest; check default variables in setenv.sh whether empty before use. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2014-06-13Add checks for clCreateImage and add 1d image creating logicJunyan He1-3/+13
Add more check for Image creating according to the spec. Update the according image utest cases to pass it. The 1d image creating is also be added. Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-05-22Fix the bug of forgetting release sampler in utest.Junyan He1-0/+2
utest helper will not help us to free the sampler resource as buffer and kernel. So we need to release it by ourself. Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-06-19update to OpenCL 1.1 headerHomer Hsing1-8/+2
Based on our current progress, we plan to implement OpenCL 1.1 rather than OpenCL 1.2 for the next release. Thus we downgrade the header file to 1.1 in this commit. put OpenCL 1.1 header in include/CL/ add OpenCL 1.2 defs, used by some code, by "#ifndef CL_VERSION_1.2" " some OpenCL 1.2 defs" "#endif" add OCL_CREATE_IMAGE2D, OCL_CREATE_IMAGE3D, OCL_CREATE_GL_IMAGE2D, OCL_CREATE_GL_IMAGE3D update test cases Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-04-22utests: should set pitch to zero if host_ptr is NULL.Zhigang Gong1-1/+2
Per OCL spec, we should set pitch to zero if the host_ptr is NULL. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Simon Richter <Simon.Richter@hogyros.de>
2013-04-10Use new OCL1.2 API rather than those deprecated API.Zhigang Gong1-5/+10
Use clCreateImage to replace the old API clCreateImage2D. It will silent the compiler warnings. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Homer Hsing <homer.xing@intel.com>
2013-04-10utest: Added one image2d test case copy_image.Zhigang Gong1-0/+46
This case create two images, and initialize one then copy the initilaized on to the other one via OCL kernel. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>