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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int checkForReadWriteImageSupport( cl_device_id device )
|
int checkForReadWriteImageSupport(cl_device_id device)
|
||||||
{
|
{
|
||||||
if (checkForImageSupport(device))
|
if (checkForImageSupport(device))
|
||||||
{
|
{
|
||||||
@@ -1494,7 +1494,7 @@ int checkForReadWriteImageSupport( cl_device_id device )
|
|||||||
// READ_WRITE images are not supported on 1.X devices.
|
// READ_WRITE images are not supported on 1.X devices.
|
||||||
else if (device_cl_version < Version(2, 0))
|
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;
|
return CL_IMAGE_FORMAT_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
// Support for read-write image arguments is required
|
// 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;
|
return TEST_SKIPPED_ITSELF;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user