2022-04-26 18:25:41 +08:00
|
|
|
/*
|
2023-01-05 19:41:06 +08:00
|
|
|
* Copyright (C) 2022-2023 Intel Corporation
|
2022-04-26 18:25:41 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "opencl/source/mem_obj/buffer.h"
|
2023-01-05 19:41:06 +08:00
|
|
|
#include "opencl/source/sharings/unified/unified_sharing_types.h"
|
2022-04-26 18:25:41 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
2022-06-24 23:44:30 +08:00
|
|
|
bool Buffer::validateHandleType(const MemoryProperties &memoryProperties, UnifiedSharingMemoryDescription &extMem) {
|
2022-06-15 19:07:49 +08:00
|
|
|
if (memoryProperties.handleType == static_cast<uint64_t>(UnifiedSharingHandleType::Win32Nt)) {
|
|
|
|
extMem.type = UnifiedSharingHandleType::Win32Nt;
|
|
|
|
return true;
|
|
|
|
}
|
2022-04-26 18:25:41 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
} // namespace NEO
|