mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 14:09:03 +00:00
[NFC] Migrate profiling suite to new registration framework (#2187)
Contributes to #2181 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -339,33 +339,33 @@ int read_image( cl_device_id device, cl_context context, cl_command_queue queue,
|
||||
} // end read_image()
|
||||
|
||||
|
||||
int test_read_image_float( cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
|
||||
REGISTER_TEST(read_image_float)
|
||||
{
|
||||
cl_image_format image_format_desc = { CL_RGBA, CL_UNORM_INT8 };
|
||||
PASSIVE_REQUIRE_IMAGE_SUPPORT( device )
|
||||
// 0 to 255 for unsigned image data
|
||||
return read_image( device, context, queue, numElements, readKernelCode[0], readKernelName[0], image_format_desc );
|
||||
|
||||
return read_image(device, context, queue, num_elements, readKernelCode[0],
|
||||
readKernelName[0], image_format_desc);
|
||||
}
|
||||
|
||||
|
||||
int test_read_image_char( cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
|
||||
REGISTER_TEST(read_image_char)
|
||||
{
|
||||
cl_image_format image_format_desc = { CL_RGBA, CL_SIGNED_INT8 };
|
||||
PASSIVE_REQUIRE_IMAGE_SUPPORT( device )
|
||||
// -128 to 127 for signed iamge data
|
||||
return read_image( device, context, queue, numElements, readKernelCode[1], readKernelName[1], image_format_desc );
|
||||
|
||||
return read_image(device, context, queue, num_elements, readKernelCode[1],
|
||||
readKernelName[1], image_format_desc);
|
||||
}
|
||||
|
||||
|
||||
int test_read_image_uchar( cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
|
||||
REGISTER_TEST(read_image_uchar)
|
||||
{
|
||||
cl_image_format image_format_desc = { CL_RGBA, CL_UNSIGNED_INT8 };
|
||||
PASSIVE_REQUIRE_IMAGE_SUPPORT( device )
|
||||
// 0 to 255 for unsigned image data
|
||||
return read_image( device, context, queue, numElements, readKernelCode[2], readKernelName[2], image_format_desc );
|
||||
|
||||
return read_image(device, context, queue, num_elements, readKernelCode[2],
|
||||
readKernelName[2], image_format_desc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user