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 )