mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Skip, don't fail, image tests on no image support (#706)
Fixes #693 by returning `TEST_SKIP` instead of `TEST_FAIL` from the `verifyImageSupport()` kernel helper function when `checkForImageSupport()` reports the device does not support images.
This commit is contained in:
@@ -1367,12 +1367,17 @@ size_t get_pixel_bytes( const cl_image_format *fmt )
|
|||||||
|
|
||||||
test_status verifyImageSupport( cl_device_id device )
|
test_status verifyImageSupport( cl_device_id device )
|
||||||
{
|
{
|
||||||
if( checkForImageSupport( device ) )
|
int result = checkForImageSupport( device );
|
||||||
|
if( result == 0 )
|
||||||
{
|
{
|
||||||
log_error( "ERROR: Device does not supported images as required by this test!\n" );
|
return TEST_PASS;
|
||||||
return TEST_FAIL;
|
|
||||||
}
|
}
|
||||||
return TEST_PASS;
|
if( result == CL_IMAGE_FORMAT_NOT_SUPPORTED )
|
||||||
|
{
|
||||||
|
log_error( "SKIPPED: Device does not supported images as required by this test!\n" );
|
||||||
|
return TEST_SKIP;
|
||||||
|
}
|
||||||
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int checkForImageSupport( cl_device_id device )
|
int checkForImageSupport( cl_device_id device )
|
||||||
|
|||||||
Reference in New Issue
Block a user