Fix image type on format check for test_readimage. (#1566)

Signed-off-by: John Kesapides <john.kesapides@arm.com>

Signed-off-by: John Kesapides <john.kesapides@arm.com>
This commit is contained in:
John Kesapides
2022-11-08 16:09:10 +00:00
committed by GitHub
parent 133834615e
commit aad303074c

View File

@@ -346,7 +346,7 @@ int test_readimage3d(cl_device_id device, cl_context context,
int err = test_readimage<CL_MEM_OBJECT_IMAGE3D, cl_uchar>(
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<CL_MEM_OBJECT_IMAGE3D, cl_uchar>(
device, context, queue, &format[1]);
@@ -374,4 +374,4 @@ int test_readimage3d_fp32(cl_device_id device, cl_context context,
return test_readimage<CL_MEM_OBJECT_IMAGE3D, cl_float>(device, context,
queue, &format);
}
}