From aad303074cc3bfee3fd3c38601de87dbc9f71cba Mon Sep 17 00:00:00 2001 From: John Kesapides <46718829+JohnKesapidesARM@users.noreply.github.com> Date: Tue, 8 Nov 2022 16:09:10 +0000 Subject: [PATCH] Fix image type on format check for test_readimage. (#1566) Signed-off-by: John Kesapides Signed-off-by: John Kesapides --- test_conformance/basic/test_readimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/basic/test_readimage.cpp b/test_conformance/basic/test_readimage.cpp index 25cbe1fc..0aa70525 100644 --- a/test_conformance/basic/test_readimage.cpp +++ b/test_conformance/basic/test_readimage.cpp @@ -346,7 +346,7 @@ int test_readimage3d(cl_device_id device, cl_context context, int err = test_readimage( device, context, queue, &format[0]); - if (check_format(device, context, CL_MEM_OBJECT_IMAGE2D, format[1])) + if (check_format(device, context, CL_MEM_OBJECT_IMAGE3D, format[1])) { err |= test_readimage( device, context, queue, &format[1]); @@ -374,4 +374,4 @@ int test_readimage3d_fp32(cl_device_id device, cl_context context, return test_readimage(device, context, queue, &format); -} \ No newline at end of file +}