mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +00:00
Fix formatting in case of Read-Write image checks.
Fix formatting in case of Read-write image checks. Also, combine two ifs into one in case of kerne_read_write tests
This commit is contained in:
@@ -177,12 +177,9 @@ static int doTest( cl_device_id device, cl_context context, cl_command_queue que
|
||||
}
|
||||
}
|
||||
|
||||
if (testTypesToRun & kReadWriteTests)
|
||||
if ((testTypesToRun & kReadWriteTests) && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
if(checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
if( ( testTypesToRun & kReadWriteTests ) && !gTestMipmaps )
|
||||
|
||||
@@ -201,7 +201,7 @@ int test_read_image_set_2D( cl_device_id device, cl_context context, cl_command_
|
||||
image_descriptor imageInfo = { 0 };
|
||||
size_t pixelSize;
|
||||
|
||||
if(gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
if (gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ int test_image_set( cl_device_id device, cl_context context, cl_command_queue qu
|
||||
gDeviceLt20 = true;
|
||||
}
|
||||
|
||||
if(gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
if (gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ int test_read_image_set_1D( cl_device_id device, cl_context context, cl_command_
|
||||
RandomSeed seed( gRandomSeed );
|
||||
int error;
|
||||
|
||||
if(gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
if (gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ int test_read_image_set_1D_array( cl_device_id device, cl_context context, cl_co
|
||||
image_descriptor imageInfo = { 0 };
|
||||
size_t pixelSize;
|
||||
|
||||
if(gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
if (gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ int test_read_image_set_2D_array( cl_device_id device, cl_context context, cl_co
|
||||
|
||||
int error;
|
||||
|
||||
if(gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
if (gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ int test_read_image_set_3D( cl_device_id device, cl_context context, cl_command_
|
||||
|
||||
int error;
|
||||
|
||||
if(gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
if (gTestReadWrite && checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user