Fix the compare_image_2d_and_1d_array test case bug
authorJunyan He <junyan.he@linux.intel.com>
Mon, 27 Oct 2014 07:34:11 +0000 (15:34 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 28 Oct 2014 02:14:46 +0000 (10:14 +0800)
commit6e451c195917b807988ef8f521b23594eef3e898
treee3b96073ed24c394f7dc7c05d90e04c7fe6ae7b8
parent70f4cd18f52d6b7ecd1e9bae3085d1ecd57bf113
Fix the compare_image_2d_and_1d_array test case bug

The test case use OCL_MAP_BUFFER_GTT to map the image
buffers and then do the result comparison, which may
cause problems.
On IVB and HSW, the slice pitch is equal but on BDW,
because we change the slice pitch of image array, it
cause this bug.
Modify it by using the standard clEnqueueReadImage API.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
utests/compare_image_2d_and_1d_array.cpp