SWDEV-373395 - Check CL_DEVICE_IMAGE_SUPPORT for ocltst image related tests
Change-Id: Iffa2be3d2ddeeb9baad108530dcaf69c4cbd984b
[ROCm/clr commit: 49c76fa04f]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
610836d5f8
tiomantas
50e98ee028
10 comhad athraithe
+51
-30
Níor tháinig aon chomhaid le do chuardach
@@ -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");
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir