summaryrefslogtreecommitdiff
path: root/utests/compiler_fill_image.cpp
Commit message (Collapse)AuthorAgeFilesLines
* standalone utest for unified OpenCL implementation.Luo Xionghu2016-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add checks for clCreateImage and add 1d image creating logicJunyan He2014-06-131-1/+10
| | | | | | | | | 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>
* update to OpenCL 1.1 headerHomer Hsing2013-06-191-6/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* utests: should set pitch to zero if host_ptr is NULL.Zhigang Gong2013-04-221-1/+1
| | | | | | | | 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>
* Use new OCL1.2 API rather than those deprecated API.Zhigang Gong2013-04-101-2/+7
| | | | | | | | 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>
* fix two unused variablesLu Guanqun2013-04-101-1/+0
| | | | | | | I don't find these two warnings until now, and here's the simple fix. Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* utest: Added one test case to fill a image2d.Zhigang Gong2013-04-101-0/+36
This test case fill a image2d according to a input color value. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>