2019-02-15 11:31:47 +01:00
|
|
|
/*
|
2021-05-16 20:51:16 +02:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2019-02-15 11:31:47 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2021-04-23 16:43:48 +00:00
|
|
|
#include "shared/source/helpers/app_resource_defines.h"
|
|
|
|
|
#include "shared/source/helpers/common_types.h"
|
|
|
|
|
|
2019-03-07 15:14:11 +01:00
|
|
|
#include <cstdint>
|
2021-04-23 16:43:48 +00:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2019-02-28 16:12:23 +01:00
|
|
|
struct StorageInfo {
|
2021-04-23 16:43:48 +00:00
|
|
|
StorageInfo() = default;
|
|
|
|
|
StorageInfo(DeviceBitfield memoryBanks, DeviceBitfield pageTablesVisibility)
|
|
|
|
|
: memoryBanks(memoryBanks), pageTablesVisibility(pageTablesVisibility){};
|
2020-04-21 13:16:45 +02:00
|
|
|
uint32_t getNumBanks() const;
|
2021-04-23 16:43:48 +00:00
|
|
|
DeviceBitfield memoryBanks;
|
|
|
|
|
DeviceBitfield pageTablesVisibility;
|
2021-08-04 11:56:36 +00:00
|
|
|
DeviceBitfield subDeviceBitfield;
|
2021-04-23 16:43:48 +00:00
|
|
|
bool cloningOfPageTables = true;
|
|
|
|
|
bool tileInstanced = false;
|
2020-04-21 13:16:45 +02:00
|
|
|
bool multiStorage = false;
|
2021-04-23 16:43:48 +00:00
|
|
|
bool readOnlyMultiStorage = false;
|
|
|
|
|
bool cpuVisibleSegment = false;
|
2021-05-13 19:42:16 +00:00
|
|
|
bool isLockable = false;
|
2021-04-23 16:43:48 +00:00
|
|
|
bool localOnlyRequired = false;
|
|
|
|
|
char resourceTag[AppResourceDefines::maxStrLen + 1] = "";
|
|
|
|
|
uint32_t getMemoryBanks() const { return static_cast<uint32_t>(memoryBanks.to_ulong()); }
|
2019-02-15 11:31:47 +01:00
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|