19 lines
478 B
C++
19 lines
478 B
C++
![]() |
/*
|
||
|
* Copyright (C) 2022 Intel Corporation
|
||
|
*
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include "opencl/source/mem_obj/buffer.h"
|
||
|
|
||
|
namespace NEO {
|
||
|
bool Buffer::validateHandleType(MemoryProperties &memoryProperties, UnifiedSharingMemoryDescription &extMem) {
|
||
|
if (memoryProperties.handleType == static_cast<uint64_t>(UnifiedSharingHandleType::LinuxFd)) {
|
||
|
extMem.type = UnifiedSharingHandleType::LinuxFd;
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
} // namespace NEO
|