2019-02-15 11:31:47 +01:00
|
|
|
/*
|
2024-03-25 14:44:36 +00:00
|
|
|
* Copyright (C) 2020-2024 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"
|
2021-10-04 15:23:42 +00:00
|
|
|
#include "shared/source/helpers/constants.h"
|
2021-04-23 16:43:48 +00:00
|
|
|
|
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 {
|
2023-05-11 09:36:46 +00:00
|
|
|
StorageInfo();
|
2020-04-21 13:16:45 +02:00
|
|
|
uint32_t getNumBanks() const;
|
2024-03-25 14:44:36 +00:00
|
|
|
uint32_t getMemoryBanks() const { return static_cast<uint32_t>(memoryBanks.to_ulong()); }
|
|
|
|
|
uint32_t getTotalBanksCnt() const;
|
|
|
|
|
|
|
|
|
|
size_t colouringGranularity = MemoryConstants::pageSize64k;
|
2023-05-11 09:36:46 +00:00
|
|
|
DeviceBitfield memoryBanks{};
|
|
|
|
|
DeviceBitfield pageTablesVisibility{};
|
|
|
|
|
DeviceBitfield subDeviceBitfield{};
|
2024-03-25 14:44:36 +00:00
|
|
|
ColouringPolicy colouringPolicy = ColouringPolicy::deviceCountBased;
|
|
|
|
|
uint32_t numOfChunks = 0;
|
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 cpuVisibleSegment = false;
|
2021-05-13 19:42:16 +00:00
|
|
|
bool isLockable = false;
|
2021-04-23 16:43:48 +00:00
|
|
|
bool localOnlyRequired = false;
|
2022-02-09 13:14:31 +00:00
|
|
|
bool systemMemoryPlacement = true;
|
2023-02-22 07:29:42 +00:00
|
|
|
bool systemMemoryForced = false;
|
2021-04-23 16:43:48 +00:00
|
|
|
char resourceTag[AppResourceDefines::maxStrLen + 1] = "";
|
2023-03-08 04:06:00 +00:00
|
|
|
bool isChunked = false;
|
2019-02-15 11:31:47 +01:00
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|