SWDEV-373395 - Check CL_DEVICE_IMAGE_SUPPORT for ocltst image related tests

Change-Id: Iffa2be3d2ddeeb9baad108530dcaf69c4cbd984b
This commit is contained in:
jatang
2023-01-25 17:43:06 -05:00
والد 73f913be51
کامیت 49c76fa04f
10فایلهای تغییر یافته به همراه51 افزوده شده و 30 حذف شده
@@ -80,6 +80,16 @@ void OCLBufferFromImage::open(unsigned int test, char *units,
return;
}
cl_bool imageSupport;
size_t size;
_wrapper->clGetDeviceInfo(devices_[deviceId], CL_DEVICE_IMAGE_SUPPORT,
sizeof(imageSupport), &imageSupport, &size);
if (!imageSupport) {
testDescString = "Image not supported, skipping this test! ";
done = true;
return;
}
clCreateBufferFromImageAMD =
(clCreateBufferFromImageAMD_fn)clGetExtensionFunctionAddressForPlatform(
platform_, "clCreateBufferFromImageAMD");