mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
feature: cl_khr_external_memory - return platform info
- return supported memory handle types when querying CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR Related-To: NEO-6757 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
18ead77e78
commit
776917159d
@@ -103,6 +103,11 @@ cl_int Platform::getInfo(cl_platform_info paramName,
|
||||
case CL_PLATFORM_ICD_SUFFIX_KHR:
|
||||
param = &platformInfo->icdSuffixKhr;
|
||||
break;
|
||||
case CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR: {
|
||||
paramSize = sizeof(this->clDevices[0]->getDeviceInfo().externalMemorySharing);
|
||||
getInfoStatus = GetInfo::getInfo(paramValue, paramValueSize, &this->clDevices[0]->getDeviceInfo().externalMemorySharing, paramSize);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user