diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-19 14:09:46 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-20 15:53:31 +0800 |
commit | a11c0123e0b43361f67e644108cb91dc0875d9c7 (patch) | |
tree | 275abaad1473e3d7a959a8c08b9ff3e166d7b263 /utests/get_cl_info.cpp | |
parent | 0aa3d33e0da27a3772964aecd72556f0770f63fb (diff) | |
download | beignet-a11c0123e0b43361f67e644108cb91dc0875d9c7.tar.gz |
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>
Diffstat (limited to 'utests/get_cl_info.cpp')
-rw-r--r-- | utests/get_cl_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/get_cl_info.cpp b/utests/get_cl_info.cpp index 0e87e286..b2c1686e 100644 --- a/utests/get_cl_info.cpp +++ b/utests/get_cl_info.cpp @@ -546,7 +546,7 @@ void get_image_info(void) size_t depth; OCL_CALL(clGetImageInfo, image, CL_IMAGE_DEPTH, sizeof(depth), &depth, NULL); - OCL_ASSERT(depth == 1); + OCL_ASSERT(depth == 0); } MAKE_UTEST_FROM_FUNCTION(get_image_info); |