2019-08-05 15:16:57 +02:00
|
|
|
/*
|
2020-02-22 22:21:06 +01:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-08-05 15:16:57 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "memory_properties/memory_properties_flags_common.inl"
|
2019-08-05 15:16:57 +02:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2019-08-22 12:31:07 +02:00
|
|
|
struct MemoryPropertiesFlags {
|
|
|
|
|
union {
|
|
|
|
|
MemoryFlags flags;
|
|
|
|
|
uint32_t allFlags = 0;
|
|
|
|
|
};
|
2019-12-05 10:32:42 +01: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 15:16:57 +02:00
|
|
|
};
|
|
|
|
|
} // namespace NEO
|