mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 15:19:02 +00:00
Add check for support for Read-Wrie images
Read-Write images have required OpenCL 2.x. Read-Write image tests are already being skipped for 1.x devices. With OpenCL 3.0, read-write images being optional, the tests should be run or skipped depending on the implementation support. Add a check to decide if Read-Write images are supported or required to be supported depending on OpenCL version and decide if the tests should be run on skipped. Fixes issue #894
This commit is contained in:
@@ -177,10 +177,11 @@ static int doTest( cl_device_id device, cl_context context, cl_command_queue que
|
||||
}
|
||||
}
|
||||
|
||||
if (testTypesToRun & kReadWriteTests) {
|
||||
if (gDeviceLt20) {
|
||||
log_info("TEST skipped, Opencl 2.0 + requried for this test");
|
||||
return ret;
|
||||
if (testTypesToRun & kReadWriteTests)
|
||||
{
|
||||
if(checkForReadWriteImageSupport(device))
|
||||
{
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user