summaryrefslogtreecommitdiff
path: root/utests/compiler_fill_image0.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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: Refine the fill image0 test case to use map gtt.Zhigang Gong2013-05-171-4/+3
| | | | | | | | | | Now we don't fill the whole image to a const color. we fill it according to the coords. Then we can use map gtt to get the result and verify the result easily on cpu side. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Simon Richter <Simon.Richter@hogyros.de>
* 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-1/+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 for the int4 constant vector.Zhigang Gong2013-04-101-0/+34
This test case will initialize a int4 vector according to a constant expression. And will hit a bug as current compiler doesn't handle the ConstantDataSequential type constant correctly. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>