Add checks for clCreateImage and add 1d image creating logic
authorJunyan He <junyan.he@linux.intel.com>
Fri, 13 Jun 2014 07:07:10 +0000 (15:07 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 13 Jun 2014 06:41:37 +0000 (14:41 +0800)
commitf3b94f587ef998270a98798bbec0b82e5527a433
tree0b3ffb50c30eff70c7b82264a4008d184a4a0264
parentc45f5b9fdb184c411224cb9bbb886146d11f061e
Add checks for clCreateImage and add 1d image creating logic

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>
src/cl_api.c
src/cl_mem.c
utests/compiler_copy_image.cpp
utests/compiler_copy_image1.cpp
utests/compiler_copy_image_3d.cpp
utests/compiler_fill_image.cpp
utests/compiler_fill_image0.cpp