2019-08-05 21:16:57 +08:00
|
|
|
/*
|
2020-02-23 05:21:06 +08:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-08-05 21:16:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/memory_properties/memory_properties_flags_common.inl"
|
2019-08-05 21:16:57 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
2019-08-22 18:31:07 +08:00
|
|
|
struct MemoryPropertiesFlags {
|
|
|
|
union {
|
|
|
|
MemoryFlags flags;
|
|
|
|
uint32_t allFlags = 0;
|
|
|
|
};
|
2019-12-05 17:32:42 +08:00
|
|
|
union {
|
|
|
|
MemoryAllocFlags allocFlags;
|
|
|
|
uint32_t allAllocFlags = 0;
|
|
|
|
};
|
|
|
|
static_assert(sizeof(MemoryPropertiesFlags::flags) == sizeof(MemoryPropertiesFlags::allFlags) && sizeof(MemoryPropertiesFlags::allocFlags) == sizeof(MemoryPropertiesFlags::allAllocFlags), "");
|
2019-08-05 21:16:57 +08:00
|
|
|
};
|
|
|
|
} // namespace NEO
|