mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
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:
@@ -346,7 +346,7 @@ int test_readimage3d(cl_device_id device, cl_context context,
|
|||||||
int err = test_readimage<CL_MEM_OBJECT_IMAGE3D, cl_uchar>(
|
int err = test_readimage<CL_MEM_OBJECT_IMAGE3D, cl_uchar>(
|
||||||
device, context, queue, &format[0]);
|
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>(
|
err |= test_readimage<CL_MEM_OBJECT_IMAGE3D, cl_uchar>(
|
||||||
device, context, queue, &format[1]);
|
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,
|
return test_readimage<CL_MEM_OBJECT_IMAGE3D, cl_float>(device, context,
|
||||||
queue, &format);
|
queue, &format);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user