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:
Nikhil Joshi
2020-09-17 14:30:31 +05:30
parent d9c0a8abf9
commit 0038a98f64
9 changed files with 13 additions and 16 deletions

View File

@@ -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 )

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}