mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Add acquire/release (#1899)
Add acquire/release commands where appropriate. This is related to 1886.
This commit is contained in:
@@ -96,6 +96,26 @@ void init_cl_vk_ext(cl_platform_id opencl_platform, cl_uint num_devices,
|
||||
"clReImportSemaphoreSyncFdKHR!");
|
||||
}
|
||||
}
|
||||
|
||||
clEnqueueAcquireExternalMemObjectsKHRptr =
|
||||
(pfnclEnqueueAcquireExternalMemObjectsKHR)
|
||||
clGetExtensionFunctionAddressForPlatform(
|
||||
opencl_platform, "clEnqueueAcquireExternalMemObjectsKHR");
|
||||
if (nullptr == clEnqueueAcquireExternalMemObjectsKHRptr)
|
||||
{
|
||||
throw std::runtime_error("Failed to get the function pointer of "
|
||||
"clEnqueueAcquireExternalMemObjectsKHR!");
|
||||
}
|
||||
|
||||
clEnqueueReleaseExternalMemObjectsKHRptr =
|
||||
(pfnclEnqueueReleaseExternalMemObjectsKHR)
|
||||
clGetExtensionFunctionAddressForPlatform(
|
||||
opencl_platform, "clEnqueueReleaseExternalMemObjectsKHR");
|
||||
if (nullptr == clEnqueueReleaseExternalMemObjectsKHRptr)
|
||||
{
|
||||
throw std::runtime_error("Failed to get the function pointer of "
|
||||
"clEnqueueReleaseExternalMemObjectsKHR!");
|
||||
}
|
||||
}
|
||||
|
||||
cl_int setMaxImageDimensions(cl_device_id deviceID, size_t &max_width,
|
||||
|
||||
Reference in New Issue
Block a user