mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Add support for ntHandles in OCL
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5dda77d628
commit
97ea332a9f
@@ -39,6 +39,10 @@ bool ClMemoryPropertiesHelper::parseMemoryProperties(const cl_mem_properties_int
|
||||
handle = static_cast<uint64_t>(properties[i + 1]);
|
||||
handleType = static_cast<uint64_t>(UnifiedSharingHandleType::LinuxFd);
|
||||
break;
|
||||
case CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR:
|
||||
handle = static_cast<uint64_t>(properties[i + 1]);
|
||||
handleType = static_cast<uint64_t>(UnifiedSharingHandleType::Win32Nt);
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user