runtime: fix some get image info bugs.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 19 Jun 2014 06:09:46 +0000 (14:09 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 20 Jun 2014 07:53:31 +0000 (15:53 +0800)
commita11c0123e0b43361f67e644108cb91dc0875d9c7
tree275abaad1473e3d7a959a8c08b9ff3e166d7b263
parent0aa3d33e0da27a3772964aecd72556f0770f63fb
runtime: fix some get image info bugs.

According to ocl spec:

Return height of the image in pixels. For a
1D image, 1D image buffer and 1D image
array object, height = 0.

Return depth of the image in pixels. For a
1D image, 1D image buffer, 2D image or
1D and 2D image array object, depth = 0.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
src/cl_mem.c
utests/get_cl_info.cpp