Add support for ntHandles in OCL

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2022-06-15 11:07:49 +00:00
committed by Compute-Runtime-Automation
parent 5dda77d628
commit 97ea332a9f
8 changed files with 64 additions and 4 deletions

View File

@@ -9,6 +9,10 @@
namespace NEO {
bool Buffer::validateHandleType(MemoryProperties &memoryProperties, UnifiedSharingMemoryDescription &extMem) {
if (memoryProperties.handleType == static_cast<uint64_t>(UnifiedSharingHandleType::Win32Nt)) {
extMem.type = UnifiedSharingHandleType::Win32Nt;
return true;
}
return false;
}
} // namespace NEO