Files
compute-runtime/shared/source/memory_properties/memory_properties_flags.h
Baj, Tomasz 2a0c395db5 Initial implementation for creating buffer with ext memory for OpenCl
Related-To: NEO-6757

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
2022-05-05 13:13:54 +02:00

32 lines
758 B
C++

/*
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/memory_properties/memory_properties_flags_common.inl"
namespace NEO {
class Device;
struct MemoryProperties {
uint64_t handle = 0;
uint64_t handleType = 0;
uintptr_t hostptr = 0;
const Device *pDevice = nullptr;
uint32_t memCacheClos = 0;
union {
MemoryFlags flags;
uint32_t allFlags = 0;
};
union {
MemoryAllocFlags allocFlags;
uint32_t allAllocFlags = 0;
};
static_assert(sizeof(MemoryProperties::flags) == sizeof(MemoryProperties::allFlags) && sizeof(MemoryProperties::allocFlags) == sizeof(MemoryProperties::allAllocFlags), "");
};
} // namespace NEO