SWDEV-373395 - Check CL_DEVICE_IMAGE_SUPPORT for ocltst image related tests

Change-Id: Iffa2be3d2ddeeb9baad108530dcaf69c4cbd984b


[ROCm/clr commit: 49c76fa04f]
This commit is contained in:
jatang committed 2023-01-25 17:43:06 -05:00
1 bovenliggende 610836d5f8
commit 50e98ee028
10 files changed
+51 -30

No files matched your search

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