From 0c7fbc46e63aa21dd579912419f016475147681d Mon Sep 17 00:00:00 2001 From: Ahmed Hesham <117350656+ahesham-arm@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:53:00 +0100 Subject: [PATCH] Fix 1D buffer image tests (#2073) Buffer size needs to be greater than or equal the image row pitch which was not the case. --- .../images/kernel_image_methods/test_1D_buffer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test_conformance/images/kernel_image_methods/test_1D_buffer.cpp b/test_conformance/images/kernel_image_methods/test_1D_buffer.cpp index 1885cbd6..5430f873 100644 --- a/test_conformance/images/kernel_image_methods/test_1D_buffer.cpp +++ b/test_conformance/images/kernel_image_methods/test_1D_buffer.cpp @@ -67,9 +67,7 @@ static int test_get_1Dimage_buffer_info_single(cl_context context, if (gDebugTrace) log_info(" - Creating 1D image %d ...\n", (int)imageInfo->width); - buffer = clCreateBuffer( - context, flags, imageInfo->width * get_pixel_size(imageInfo->format), - NULL, &error); + buffer = clCreateBuffer(context, flags, imageInfo->rowPitch, NULL, &error); if (error != CL_SUCCESS) { log_error("ERROR: Unable to create buffer for 1D image buffer of size "