From ef83bc2790d6be7e0e70a90e3b2cf0cb0dc852ca Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 19 Apr 2013 16:31:09 +0800 Subject: utests: should set pitch to zero if host_ptr is NULL. Per OCL spec, we should set pitch to zero if the host_ptr is NULL. Signed-off-by: Zhigang Gong Simon Richter --- utests/compiler_fill_image0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utests/compiler_fill_image0.cpp') diff --git a/utests/compiler_fill_image0.cpp b/utests/compiler_fill_image0.cpp index 2fef90cf..cf76be3f 100644 --- a/utests/compiler_fill_image0.cpp +++ b/utests/compiler_fill_image0.cpp @@ -12,7 +12,7 @@ static void compiler_fill_image0(void) desc.image_type = CL_MEM_OBJECT_IMAGE2D; desc.image_width = w; desc.image_height = h; - desc.image_row_pitch = w * sizeof(uint32_t); + desc.image_row_pitch = 0; // Setup kernel and images -- cgit v1.2.1