mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
Fix some more formatting for RW-image checks
Remove unnecessary spaces at various places. Also, fix lengthy lines.
This commit is contained in:
@@ -1467,7 +1467,7 @@ int checkFor3DImageSupport( cl_device_id device )
|
||||
return 0;
|
||||
}
|
||||
|
||||
int checkForReadWriteImageSupport( cl_device_id device )
|
||||
int checkForReadWriteImageSupport(cl_device_id device)
|
||||
{
|
||||
if (checkForImageSupport(device))
|
||||
{
|
||||
@@ -1482,8 +1482,8 @@ int checkForReadWriteImageSupport( cl_device_id device )
|
||||
cl_uint are_rw_images_supported{};
|
||||
test_error(
|
||||
clGetDeviceInfo(device, CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS,
|
||||
sizeof(are_rw_images_supported),
|
||||
&are_rw_images_supported, nullptr),
|
||||
sizeof(are_rw_images_supported),
|
||||
&are_rw_images_supported, nullptr),
|
||||
"clGetDeviceInfo failed for CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS\n");
|
||||
if (0 == are_rw_images_supported)
|
||||
{
|
||||
@@ -1494,7 +1494,7 @@ int checkForReadWriteImageSupport( cl_device_id device )
|
||||
// READ_WRITE images are not supported on 1.X devices.
|
||||
else if (device_cl_version < Version(2, 0))
|
||||
{
|
||||
log_info("READ_WRITE_IMAGE tests skipped, Opencl 2.0 + requried for this test");
|
||||
log_info("READ_WRITE_IMAGE tests skipped, Opencl 2.0+ is requried.");
|
||||
return CL_IMAGE_FORMAT_NOT_SUPPORTED;
|
||||
}
|
||||
// Support for read-write image arguments is required
|
||||
|
||||
@@ -177,7 +177,8 @@ static int doTest( cl_device_id device, cl_context context, cl_command_queue que
|
||||
}
|
||||
}
|
||||
|
||||
if ((testTypesToRun & kReadWriteTests) && checkForReadWriteImageSupport(device))
|
||||
if ((testTypesToRun & kReadWriteTests)
|
||||
&& checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user