SWDEV-373395 - Check CL_DEVICE_IMAGE_SUPPORT for ocltst image related tests
Change-Id: Iffa2be3d2ddeeb9baad108530dcaf69c4cbd984b
[ROCm/clr commit: 49c76fa04f]
Este cometimento está contido em:
1 ascendente
610836d5f8
cometimento
50e98ee028
10 ficheiros modificados
+51
-30
Não existem ficheiros que correspondam à sua pesquisa
@@ -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");
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador